/* =================================================================
   California Mill Equipment — main.css
   Full design system. Compiled from HTML prototype.
   ================================================================= */

/* ── Google Fonts are loaded via wp_enqueue_style in functions.php ── */

/* =================================================================
   1. RESET & BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #CC2222;
  --red-dark:   #A81A1A;
  --red-light:  #E03030;
  --navy:       #1E2255;
  --navy-mid:   #252B6B;
  --navy-light: #2F3680;
  --black:      #0D0D0D;
  --off-white:  #F6F4F1;
  --gray-light: #E8E6E3;
  --gray:       #888;
  --white:      #FFFFFF;

  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;

  --radius:   2px;
  --shadow:   0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.2);

  --nav-height: 72px;
  --container:  1400px;
  --container-md: 1100px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* =================================================================
   2. TYPOGRAPHY UTILITIES
   ================================================================= */
.section-label {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.prose { line-height: 1.8; font-size: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: .5rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }

/* =================================================================
   3. BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
  border-radius: var(--radius);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.btn--sm  { padding: .5rem 1.2rem; font-size: .85rem; }
.btn--lg  { padding: 1.1rem 2.8rem; font-size: 1.1rem; }

/* =================================================================
   4. NAVIGATION
   ================================================================= */
.nav-wrap {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  z-index: 1000;
}

.nav-wrap--sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
}

/* Offset page content when sticky */
body:has(.nav-wrap--sticky) #page-content { padding-top: var(--nav-height); }
body:has(.nav-wrap--sticky) .hero         { margin-top: calc(-1 * var(--nav-height)); padding-top: 0; }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 2rem;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.5rem;
}
.nav-logo-svg,
.nav-logo-img { width: 52px; height: 52px; object-fit: contain; }

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-logo-text span { color: var(--red); display: block; font-size: .8rem; font-weight: 600; }

/* Nav links list */
.nav-links {
  display: flex;
  list-style: none;
  gap: .15rem;
  flex: 1;
}

.nav-links > li { position: relative; }

.nav-links > li > a.nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.05rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  background: rgba(255,255,255,.06);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links > li > a.nav-link:hover,
.nav-links > li:hover > a.nav-link,
.nav-links > li.current-menu-item > a.nav-link,
.nav-links > li.current-page-ancestor > a.nav-link {
  background: var(--red);
  color: var(--white);
}

.chevron { font-size: .65rem; transition: transform .2s; opacity: .7; }
.nav-links > li:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border-top: 3px solid var(--red);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s;
  z-index: 999;
  min-width: 220px;
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a.nav-link {
  display: block;
  padding: .7rem 1.3rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .18s, border-color .18s, color .18s;
  background: transparent;
}
.dropdown a.nav-link:hover {
  background: rgba(255,255,255,.07);
  border-left-color: var(--red);
  color: var(--white);
}

/* Mega drop */
.has-mega-menu .dropdown {
  width: 880px;
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
}
@media (max-width: 960px) { .has-mega-menu .dropdown { width: 100%; grid-template-columns: 1fr 1fr; } }

.has-mega-menu .dropdown a.nav-link {
  display: flex;
  flex-direction: column;
  padding: .7rem;
  border-left: 3px solid transparent;
  border-bottom: none;
  background: transparent;
  gap: .2rem;
}
.has-mega-menu .dropdown a.nav-link:hover {
  border-left-color: var(--red);
  background: rgba(255,255,255,.05);
}

/* Phone */
.nav-phone {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--red);
  padding: .5rem 1.2rem;
  transition: background .2s;
}
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-phone:hover { background: var(--red-dark); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: .5rem;
}
.nav-toggle__bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =================================================================
   5. HERO
   ================================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0c1e;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroDrift 7s ease-in-out infinite alternate;
  opacity: .45;
  z-index: 0;
}
@keyframes heroDrift {
  0%   { transform: scale(1.00) translateX(0); }
  100% { transform: scale(1.07) translateX(-1.5%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,12,30,.85) 0%, rgba(20,25,60,.7) 50%, rgba(180,20,20,.25) 100%);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  animation: heroFadeUp 1.1s cubic-bezier(.22,.6,.36,1) both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-since {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(204,34,34,.4);
  padding: .3rem 1rem;
  margin-bottom: 1.4rem;
  animation: heroFadeUp 1.1s .15s cubic-bezier(.22,.6,.36,1) both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 8rem);
  color: var(--white);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0,0,0,.7);
  animation: heroFadeUp 1.1s .25s cubic-bezier(.22,.6,.36,1) both;
}
.hero-title .red { color: var(--red); }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 1.1rem;
  animation: heroFadeUp 1.1s .4s cubic-bezier(.22,.6,.36,1) both;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: heroFadeUp 1.1s .55s cubic-bezier(.22,.6,.36,1) both;
}

.scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  animation: heroFadeUp 1.1s .8s both;
}
.scroll-arrow__icon {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceDown 1.8s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%       { transform: translateY(7px); opacity: 1; }
}
.scroll-arrow__icon svg { width: 12px; height: 12px; }

/* =================================================================
   6. PAGE HERO (interior pages)
   ================================================================= */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
  margin-top: var(--nav-height);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,30,.85) 0%, rgba(10,12,30,.3) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.page-hero__subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-top: .6rem;
}

/* =================================================================
   7. BREADCRUMB
   ================================================================= */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-light);
  padding: .65rem 2rem;
  font-size: .82rem;
  color: var(--gray);
}
.breadcrumb__inner { max-width: var(--container-md); margin: 0 auto; }
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* =================================================================
   8. SERVICES SECTION
   ================================================================= */
.services-section {
  background: var(--white);
  padding: 6rem 2rem 5rem;
}

.services-header {
  max-width: var(--container);
  margin: 0 auto 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.services-header .section-title { color: var(--navy); }
.services-intro { max-width: 380px; color: #666; line-height: 1.7; font-size: .95rem; }

.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Service cards */
.svc-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.svc-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
  background-color: var(--navy);
}
.svc-card:hover .svc-card-bg { transform: scale(1.08); }

.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.08) 100%);
  transition: background .3s;
}
.svc-card:hover .svc-card-overlay {
  background: linear-gradient(to top, rgba(180,20,20,.88) 0%, rgba(100,10,10,.5) 55%, rgba(0,0,0,.2) 100%);
}
.svc-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.5rem;
  z-index: 1;
}
.svc-card-num {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: .3rem;
  transition: color .2s;
  text-transform: uppercase;
}
.svc-card:hover .svc-card-num { color: rgba(255,200,200,.9); }
.svc-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.15;
}
.svc-card-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: .4rem;
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .4s;
  opacity: 0;
}
.svc-card:hover .svc-card-desc { max-height: 80px; opacity: 1; }
.svc-card-link {
  display: inline-block;
  margin-top: .7rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: .1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s, opacity .4s;
}
.svc-card:hover .svc-card-link { max-height: 40px; opacity: 1; }

/* CTA tile */
.svc-card--cta {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-card-content--centered {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 1.2rem;
}
.svc-cta-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
}

/* No-ACF notice */
.svc-grid-notice {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gray);
  background: var(--off-white);
}

/* =================================================================
   9. ABOUT SECTION
   ================================================================= */
.about-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 7rem 2rem;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
  pointer-events: none;
}
.about-inner {
  position: relative;
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-body .section-label { color: rgba(255,255,255,.5); }
.about-body .section-title { color: var(--white); margin-bottom: 1.5rem; }
.about-body .prose p { color: rgba(255,255,255,.75); }
.about-content { color: rgba(255,255,255,.78); margin-bottom: 1.5rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.stat-box {
  border-left: 4px solid var(--red);
  padding: .7rem 1rem;
  background: rgba(255,255,255,.05);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .2rem;
}
.about-image-col { display: flex; flex-direction: column; gap: 1.2rem; }
.about-img-main {
  height: 320px;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,.1);
  background-color: var(--navy-light);
}
.about-img-secondary {
  height: 160px;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,.1);
  background-color: var(--navy-mid);
}
.about-img-main--placeholder,
.about-img-secondary--placeholder { opacity: .3; }

/* =================================================================
   10. PARTNERS
   ================================================================= */
.partners-section {
  background: var(--off-white);
  padding: 5rem 2rem;
}
.partners-section--inline { padding: 3rem 0 0; background: transparent; }

.partners-header {
  max-width: var(--container-md);
  margin: 0 auto 2.5rem;
  text-align: center;
}
.partners-header .section-title { color: var(--navy); }
.partners-header p { color: #666; margin-top: .6rem; }

.partners-grid {
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
}
.partner-tile {
  background: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .7rem;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.partner-tile:hover { background: #f0f0f0; }
.partner-logo-badge {
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}
.partner-logo-img { max-height: 56px; width: auto; object-fit: contain; }
.partner-name {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.partner-desc { font-size: .78rem; color: #666; line-height: 1.45; }

/* =================================================================
   11. WHY CAL MILL
   ================================================================= */
.why-section {
  background: var(--red);
  padding: 5rem 2rem;
}
.why-inner {
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-text .section-label { color: rgba(255,255,255,.6); }
.why-text .section-title { color: var(--white); margin-bottom: 1.3rem; }
.why-content p, .why-text p { color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.75; margin-bottom: .85rem; }

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid rgba(255,255,255,.5);
  padding: .75rem 1.5rem;
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.avail-dot {
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.why-team { position: relative; }
.why-team-img {
  width: 100%; height: 340px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  border: 4px solid rgba(255,255,255,.2);
  display: block;
  background-color: var(--navy);
}
.why-team-img--placeholder { opacity: .3; }
.why-team-caption {
  background: var(--navy);
  padding: .7rem 1rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

/* =================================================================
   12. CONTACT SECTION
   ================================================================= */
.contact-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: .92;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.contact-text .section-label { color: var(--red); }
.contact-text .section-title { color: var(--white); margin-bottom: 1.2rem; }
.contact-text p { color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: .8rem; }

.contact-phone-big {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  margin-top: .5rem;
  letter-spacing: .04em;
  transition: color .2s;
}
.contact-phone-big svg { width: 28px; height: 28px; fill: var(--red); }
.contact-phone-big:hover { color: var(--red); }

.contact-form-box,
.contact-form-notice {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 2.2rem;
  color: rgba(255,255,255,.7);
}

/* CF7 form styling inside contact box */
.contact-form-box .wpcf7-form p { margin-bottom: 1rem; }
.contact-form-box .wpcf7-form input,
.contact-form-box .wpcf7-form textarea,
.contact-form-box .wpcf7-form select {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  padding: .65rem .9rem;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.contact-form-box .wpcf7-form input:focus,
.contact-form-box .wpcf7-form textarea:focus { border-color: var(--red); }
.contact-form-box .wpcf7-form input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  transition: background .2s;
  width: 100%;
}
.contact-form-box .wpcf7-form input[type="submit"]:hover { background: var(--red-dark); }
.contact-form-box label { color: rgba(255,255,255,.55); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .3rem; }
.contact-form-box .wpcf7-not-valid-tip { color: #ffaaaa; font-size: .8rem; margin-top: .25rem; }
.contact-form-box .wpcf7-response-output { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.3); color: var(--white); font-size: .88rem; }

/* =================================================================
   13. READY BAR
   ================================================================= */
.ready-bar {
  background: var(--red);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ready-bar__text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* =================================================================
   14. FOOTER
   ================================================================= */
.site-footer {
  background: #080a14;
  padding: 3.5rem 2rem 0;
}
.footer-inner {
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: .5rem; }
.footer-brand .nav-logo-text { color: var(--white); }

.footer-tagline {
  font-family: var(--font-display);
  color: var(--red);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-desc {
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: .8rem;
}
.footer-phone {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  text-decoration: none;
  margin-bottom: .25rem;
  transition: color .18s;
}
.footer-phone:hover { color: var(--white); }
.footer-phone--secondary { font-size: .82rem; }
.footer-address {
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  margin-top: .5rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.social-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  transition: background .2s, color .2s;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--red); color: var(--white); }

.footer-col__title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-menu a {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: .4rem;
  transition: color .18s;
}
.footer-menu a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-copyright,
.footer-since {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* =================================================================
   15. SERVICE PAGE LAYOUT
   ================================================================= */
.service-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.service-intro { margin-bottom: 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.feature-card {
  background: var(--off-white);
  padding: 1.5rem;
  border-top: 4px solid var(--red);
}
.feature-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.feature-card__desc  { font-size: .9rem; color: #555; line-height: 1.6; }

.service-gallery { margin-bottom: 3rem; }
.service-gallery__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); text-transform: uppercase; margin-bottom: 1.2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }

.service-cta { text-align: center; padding: 2rem 0; }

/* Sidebar */
.service-sidebar { position: sticky; top: calc(var(--nav-height) + 2rem); }
.sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--red);
}
.sidebar-menu a {
  display: block;
  padding: .5rem 0;
  color: #555;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: color .18s, padding-left .18s;
}
.sidebar-menu a:hover { color: var(--red); padding-left: .4rem; }
.sidebar-cta { margin-top: 1.5rem; background: var(--navy); padding: 1.2rem; text-align: center; }
.sidebar-cta p { color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: .85rem; }

/* Related services */
.related-services {
  background: var(--off-white);
  padding: 4rem 2rem;
}
.related-services .section-label { text-align: center; margin-bottom: 1.5rem; }
.related-grid {
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.related-card {
  background: var(--white);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-card__img { height: 200px; background-size: cover; background-position: center; }
.related-card__body { padding: 1.2rem; }
.related-card__body h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: .4rem; }
.related-card__body p  { font-size: .85rem; color: #666; line-height: 1.5; }

/* =================================================================
   16. TEAM PAGE
   ================================================================= */
.team-intro { max-width: var(--container-md); margin: 0 auto 3rem; padding-top: 3rem; }
.team-grid-full {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 0 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card-full {
  background: var(--white);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.team-card-full__photo { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.team-avatar--lg {
  width: 100%; height: 200px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
}
.team-card-full__body { padding: 1.5rem; flex: 1; }
.team-bio { font-size: .9rem; color: #666; line-height: 1.6; margin-top: .5rem; }
.team-contact-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.team-link {
  font-size: .82rem;
  color: var(--red);
  text-decoration: none;
  border: 1px solid rgba(204,34,34,.3);
  padding: .2rem .55rem;
  transition: background .18s, color .18s;
}
.team-link:hover { background: var(--red); color: var(--white); }

/* Homepage team cards (compact) */
.team-section { background: var(--navy); padding: 5.5rem 2rem; }
.team-header { max-width: var(--container-md); margin: 0 auto 3rem; text-align: center; }
.team-header .section-title { color: var(--white); }
.team-header p { color: rgba(255,255,255,.6); margin-top: .5rem; }
.team-grid {
  max-width: var(--container-md);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1.5rem;
}
.team-card {
  background: rgba(255,255,255,.05);
  border-top: 4px solid var(--red);
  padding: 1.3rem 1.2rem 1.5rem;
  text-align: center;
  transition: background .2s;
}
.team-card:hover { background: rgba(255,255,255,.09); }
.team-avatar {
  width: 72px; height: 72px;
  background: var(--navy-light);
  border-radius: 50%;
  margin: 0 auto .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  border: 3px solid rgba(255,255,255,.12);
}
.team-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: .04em; text-transform: uppercase; }
.team-role  { font-size: .78rem; font-weight: 600; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }
.team-phone { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: .35rem; }

/* =================================================================
   17. CONTACT & ABOUT PAGES
   ================================================================= */
.page-container { max-width: var(--container-md); margin: 0 auto; padding: 4rem 2rem; }
.contact-page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-details { list-style: none; margin: 1.5rem 0; }
.contact-details li { margin-bottom: .6rem; font-size: .95rem; }
.contact-details a { color: var(--red); }
.hours-table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .9rem; }
.hours-table td { padding: .4rem .6rem; border-bottom: 1px solid #eee; }
.contact-map { margin-top: 1.5rem; }
.about-page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-page-img img { width: 100%; height: 380px; object-fit: cover; }

/* =================================================================
   18. SCROLL REVEAL
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =================================================================
   19. RESPONSIVE
   ================================================================= */

/* Large tablet */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3,1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .has-mega-menu .dropdown { width: 640px; grid-template-columns: repeat(3,1fr); }
}

/* Tablet */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-phone  { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
    z-index: 998;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li > a.nav-link { font-size: 1.15rem; padding: .85rem 1rem; background: transparent; }
  .has-mega-menu .dropdown,
  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: .3rem .3rem .3rem 1.5rem;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
  }
  .nav-links > li.is-open .dropdown { display: block; }

  .about-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-inner      { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner  { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: repeat(2,1fr); }
  .partners-grid  { grid-template-columns: repeat(2,1fr); }
  .team-grid      { grid-template-columns: repeat(3,1fr); }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar{ position: static; }
  .related-grid   { grid-template-columns: 1fr 1fr; }
  .contact-page-layout { grid-template-columns: 1fr; }
  .about-page-layout   { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .about-stats   { grid-template-columns: 1fr 1fr; }
  .team-grid     { grid-template-columns: repeat(2,1fr); }
  .related-grid  { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; }
  .hero-cta-row  { flex-direction: column; align-items: center; }
  .contact-phone-big { font-size: 1.5rem; }
}

/* =================================================================
   20. UTILITIES
   ================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
