/* Clockwork Pages -- Professional Overrides */

/* ============================================================
   COLOR VARIABLES (via custom properties for easy maintenance)
   ============================================================ */
:root {
  --cw-primary: #D65D0C;
  --cw-primary-hover: #BF5209;
  --cw-primary-light: rgba(214, 93, 12, 0.08);
  --cw-dark: #1B2838;
  --cw-dark-soft: #243447;
  --cw-text: #2D3748;
  --cw-text-light: #718096;
  --cw-bg: #ffffff;
  --cw-bg-alt: #F7F8FA;
  --cw-border: #E2E8F0;
  --cw-link: #2563EB;
  --cw-link-hover: #1D4ED8;
  --cw-radius: 6px;
  --cw-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --cw-shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --cw-shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --cw-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
body, input, select, textarea {
  font-family: 'Inter', 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cw-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--cw-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }

h2 { letter-spacing: -0.005em; }

p {
  color: var(--cw-text);
  line-height: 1.75;
}

a {
  color: var(--cw-link);
  transition: color var(--cw-transition);
}

a:hover {
  color: var(--cw-link-hover);
}


/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: var(--cw-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  height: 3.5rem;
  line-height: 3.5rem;
}

#header > .logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

#header > .logo span {
  color: var(--cw-primary) !important;
}

#header > nav > a:hover {
  color: var(--cw-primary);
}


/* ============================================================
   NAV MENU
   ============================================================ */
#menu {
  background: var(--cw-dark);
}

#menu ul.links li a {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 0;
  font-weight: 500;
  transition: color var(--cw-transition), padding-left var(--cw-transition);
}

#menu ul.links li a:hover {
  color: var(--cw-primary);
  padding-left: 0.5rem;
}


/* ============================================================
   BANNER
   ============================================================ */
#banner {
  height: 38rem !important;
  min-height: 38rem;
}

#banner:after {
  background: linear-gradient(135deg, var(--cw-primary) 0%, var(--cw-dark) 70%);
  opacity: 0.75;
}

#banner:before {
  opacity: 0.35;
}

#banner h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
}

#banner p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.35rem;
  font-weight: 300;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

@media screen and (max-width: 736px) {
  #banner {
    height: auto !important;
    min-height: 0;
    padding: 5rem 2rem;
  }
  #banner h1 { font-size: 2rem; }
  #banner p { font-size: 1.1rem; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.button,
input[type="submit"],
input[type="button"],
button {
  border-radius: var(--cw-radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--cw-transition);
  height: 3.25rem;
  line-height: 3.25rem;
  padding: 0 2rem;
}

.button.special,
a.button.special {
  background: var(--cw-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(214, 93, 12, 0.35), var(--cw-shadow-sm);
  border: none !important;
}

.button.special:hover,
a.button.special:hover {
  background: var(--cw-primary-hover) !important;
  box-shadow: 0 6px 20px rgba(214, 93, 12, 0.45), var(--cw-shadow-md);
  transform: translateY(-1px);
}

.button.special:active,
a.button.special:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(214, 93, 12, 0.3);
}

/* Default outline buttons */
.wrapper .button:not(.special):not(.alt),
.wrapper a.button:not(.special):not(.alt) {
  box-shadow: inset 0 0 0 2px var(--cw-primary);
  color: var(--cw-primary) !important;
  background: transparent;
}

.wrapper .button:not(.special):not(.alt):hover,
.wrapper a.button:not(.special):not(.alt):hover {
  background: var(--cw-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(214, 93, 12, 0.3);
  transform: translateY(-1px);
}

/* Alt buttons (footer form) */
.button.alt,
input[type="submit"].button.alt {
  background: var(--cw-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}

.button.alt:hover,
input[type="submit"].button.alt:hover {
  background: var(--cw-primary-hover) !important;
  transform: translateY(-1px);
}

/* Disabled state */
.button:disabled,
.button.disabled,
input[type="submit"]:disabled {
  opacity: 0.4 !important;
  transform: none !important;
  cursor: not-allowed;
}


/* ============================================================
   SERVICE / HIGHLIGHT CARDS
   ============================================================ */
.highlights .content {
  background: var(--cw-bg) !important;
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow-sm) !important;
  border: 1px solid var(--cw-border);
  transition: all var(--cw-transition);
  text-align: left;
  padding: 2.5rem;
}

.highlights .content:hover {
  box-shadow: var(--cw-shadow-lg) !important;
  transform: translateY(-4px);
  border-color: rgba(214, 93, 12, 0.2);
}

.highlights .content header {
  margin-bottom: 1.25rem;
}

.highlights .content .icon {
  font-size: 3rem;
  color: var(--cw-primary);
  display: inline-block;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  text-align: center;
  background: var(--cw-primary-light);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all var(--cw-transition);
}

.highlights .content:hover .icon {
  background: var(--cw-primary);
  color: #ffffff;
}

.highlights .content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.highlights .content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cw-text-light);
}

.highlights .content ul {
  margin: 1rem 0;
  padding-left: 0;
}

.highlights .content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--cw-text);
  line-height: 1.6;
}

.highlights .content ul li:before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cw-primary);
  font-size: 0.8rem;
}

.highlights .content .button {
  margin-top: 1.25rem;
}


/* ============================================================
   SECTION WRAPPERS -- alternating backgrounds
   ============================================================ */
.wrapper {
  background: var(--cw-bg);
}

.wrapper + .wrapper {
  background: var(--cw-bg-alt);
}

.wrapper header.special h2 {
  position: relative;
  display: inline-block;
}

.wrapper header.special h2:after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--cw-primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.wrapper header.special p {
  color: var(--cw-text-light);
  font-size: 1.1rem;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
#cta {
  background-image: none;
  background: linear-gradient(135deg, var(--cw-dark) 0%, var(--cw-dark-soft) 100%);
  position: relative;
  overflow: hidden;
}

#cta:before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: rgba(214, 93, 12, 0.06);
  transform: rotate(15deg);
  pointer-events: none;
}

#cta .inner {
  position: relative;
  z-index: 2;
}

#cta h2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

#cta p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

#cta .button.special {
  font-size: 1rem;
  height: 3.5rem;
  line-height: 3.5rem;
  padding: 0 2.5rem;
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials .content {
  background: var(--cw-bg) !important;
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow-sm) !important;
  border: 1px solid var(--cw-border);
  transition: all var(--cw-transition);
}

.testimonials .content:hover {
  box-shadow: var(--cw-shadow-md) !important;
  transform: translateY(-2px);
}

.testimonials .content blockquote {
  border-left-color: var(--cw-primary);
  border-left-width: 3px;
  font-style: italic;
  color: var(--cw-text);
  line-height: 1.8;
}

.testimonials .content .credit strong {
  color: var(--cw-primary) !important;
  font-weight: 700;
}

.testimonials .content .author .image img {
  border: 3px solid var(--cw-border);
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--cw-dark);
}

#footer a {
  color: rgba(255,255,255,0.7);
}

#footer a:hover {
  color: var(--cw-primary);
}

#footer h3,
#footer h4 {
  color: #ffffff;
  font-weight: 600;
}

#footer h3 {
  font-size: 1.4rem;
}

#footer {
  color: rgba(255,255,255,0.85) !important;
}

#footer p,
#footer label,
#footer .content p,
#footer .content section p {
  color: rgba(255,255,255,0.85) !important;
}

#footer .copyright {
  border-top-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
}

#footer ul.plain {
  padding-left: 0;
}

#footer ul.plain li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

#footer ul.plain li .icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  border-radius: 4px;
  margin-right: 0.85rem !important;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.08) !important;
  color: var(--cw-primary) !important;
  line-height: 2rem !important;
}

#footer ul.plain li a {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  min-width: 0;
}

#footer ul.plain li span.contact-text,
#footer ul.plain li a span.contact-text {
  word-break: break-word;
}


/* ============================================================
   FORMS (Footer & Contact Page)
   ============================================================ */
#footer input[type="text"],
#footer input[type="email"],
#footer textarea,
.wrapper input[type="text"],
.wrapper input[type="email"],
.wrapper textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--cw-radius);
  color: #ffffff;
  transition: border-color var(--cw-transition), box-shadow var(--cw-transition);
  padding: 0.75rem 1rem;
}

#footer input[type="text"]:focus,
#footer input[type="email"]:focus,
#footer textarea:focus {
  border-color: var(--cw-primary);
  box-shadow: 0 0 0 3px rgba(214, 93, 12, 0.15);
  outline: none;
}

.wrapper input[type="text"],
.wrapper input[type="email"],
.wrapper textarea {
  background: #ffffff;
  border: 1px solid var(--cw-border);
  color: var(--cw-text);
}

.wrapper input[type="text"]:focus,
.wrapper input[type="email"]:focus,
.wrapper textarea:focus {
  border-color: var(--cw-primary);
  box-shadow: 0 0 0 3px rgba(214, 93, 12, 0.1);
  outline: none;
}


/* ============================================================
   ABOUT PAGE -- differentiators
   ============================================================ */
#cta + .wrapper .highlights .content {
  text-align: center;
}


/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--cw-dark) 0%, var(--cw-dark-soft) 100%);
  padding: 5rem 0 3.5rem !important;
  text-align: center;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.15rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.page-hero header.special h2:after {
  display: none;
}

@media screen and (max-width: 736px) {
  .page-hero {
    padding: 3.5rem 1.5rem 2.5rem !important;
  }
  .page-hero h1 {
    font-size: 1.75rem;
  }
}


/* ============================================================
   SMOOTH SCROLL
   ============================================================ */
html {
  scroll-behavior: smooth;
}


/* ============================================================
   SELECTION COLOR
   ============================================================ */
::selection {
  background: var(--cw-primary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--cw-primary);
  color: #ffffff;
}


/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media screen and (max-width: 980px) {
  #header {
    height: 48px;
    line-height: 48px;
  }
  body {
    padding-top: 48px;
  }

  .highlights .content {
    padding: 2rem;
  }

  #cta h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 736px) {
  .highlights .content .icon {
    font-size: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.5rem;
  }

  .highlights .content h3 {
    font-size: 1.05rem;
  }

}
