/* ============================================================
   STRATALIS — RESPONSIVE FIXES  (clean rewrite v3)
   ============================================================ */

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(201,169,110,0.35);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,15,26,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu-overlay.open { display: flex; }

.mobile-menu-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 16px 0;
  width: 200px;
  text-align: center;
  border-bottom: 1px solid rgba(201,169,110,0.08);
  transition: color 0.2s;
}
.mobile-menu-overlay a:first-of-type { border-top: 1px solid rgba(201,169,110,0.08); }
.mobile-menu-overlay a:hover,
.mobile-menu-overlay a.active { color: var(--gold); }

.mobile-menu-cta {
  margin-top: 24px !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
  border-top: 1px solid rgba(201,169,110,0.4) !important;
  color: var(--gold) !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 13px 32px !important;
}

/* ── CLOSE BUTTON ── */
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.28);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-menu-close:hover { background: rgba(201,169,110,0.12); border-color: var(--gold); }
.mobile-menu-close span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  position: absolute;
}
.mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

/* ── INNER PAGE HERO: SERVICES & CONTACT ── */
.svc-hero, .ct-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
}
.svc-canvas-el, .ct-canvas-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.svc-hero-c, .ct-hero-c {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 96px;
  padding-top: 70px; /* clear fixed nav */
}
.svc-hero-c > div,
.ct-hero-c > div { position: relative; z-index: 2; }

/* ── ABOUT HERO ── */
.ab-hero, .enhanced-about-hero {
  position: relative;
  min-height: 520px;
  height: 60vh;
  max-height: 640px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
}
.ab-canvas-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.ab-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ab-hero-c {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 96px;
  padding-top: 70px; /* clear fixed nav */
  display: flex;
  align-items: center;
}

/* ── FORCE VISIBILITY: inner page hero text ── */
.svc-hero .hero-eyebrow,
.svc-hero .hero-h1,
.svc-hero .hero-sub,
.ct-hero .hero-eyebrow,
.ct-hero .hero-h1,
.ct-hero .hero-sub,
.ab-hero .hero-eyebrow,
.ab-hero .hero-h1,
.ab-hero .hero-sub,
.enhanced-about-hero .hero-eyebrow,
.enhanced-about-hero .hero-h1,
.enhanced-about-hero .hero-sub {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ── ABOUT: white gap fix — section directly after hero ── */
#page-about > section:first-of-type {
  margin-top: 0 !important;
  padding-top: 80px !important;
}

/* ── VALUES GRID: 5 items — last row fix ── */
.vals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  margin-top: 52px;
}
/* On mobile/tablet, 5th item orphan fix */
@media (max-width: 900px) {
  .vals-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 5th item spans full width so no empty cell */
  .vals-grid .val:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ── HOME HERO MOBILE ── */
@media (max-width: 768px) {
  .hero {
    height: 100svh;
    min-height: 640px;
  }
  .hero-content {
    padding: 0 22px !important;
    padding-top: 62px !important;
    justify-content: center;
    max-width: 100%;
  }
  .hero-h1 {
    font-size: clamp(28px, 7.5vw, 42px) !important;
    margin-bottom: 16px;
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 13.5px !important;
    line-height: 1.75;
    margin-bottom: 28px !important;
    max-width: 100%;
  }
  /* Buttons: natural width, not full-width */
  .hero-btns {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: auto !important;
    min-width: 220px;
    display: inline-block;
    text-align: center;
  }
  .hero-scroll, .hero-stat-strip { display: none !important; }
  .hero-eyebrow { margin-bottom: 14px; }
}

/* ── SERVICES / CONTACT HERO MOBILE ── */
@media (max-width: 768px) {
  .svc-hero, .ct-hero {
    height: auto !important;
    min-height: 300px;
    padding: 0;
  }
  .svc-hero-c, .ct-hero-c {
    padding: 100px 22px 48px !important;
    align-items: flex-start !important;
  }
  .svc-hero .hero-h1,
  .ct-hero .hero-h1 {
    font-size: clamp(26px, 7vw, 38px) !important;
    margin-bottom: 10px;
  }
  .svc-hero .hero-sub,
  .ct-hero .hero-sub {
    font-size: 13px !important;
    line-height: 1.7;
  }
}

/* ── ABOUT HERO MOBILE ── */
@media (max-width: 768px) {
  .ab-hero, .enhanced-about-hero {
    height: auto !important;
    min-height: 0;
    max-height: none;
  }
  .ab-hero-c {
    padding: 100px 22px 48px !important;
    align-items: flex-start !important;
  }
  .ab-hero-split { grid-template-columns: 1fr !important; }
  .ab-hero-panel { display: none !important; }
  .about-hero-title { font-size: clamp(28px, 7.5vw, 40px) !important; }
  .about-hero-sub { font-size: 13.5px !important; }
  .about-hero-rule { margin: 14px 0 !important; width: 36px !important; }
}

/* ── GENERAL SECTIONS MOBILE ── */
@media (max-width: 768px) {
  nav {
    padding: 0 18px !important;
    height: 60px !important;
  }
  .nav-right .nav-links,
  .nav-right .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .nav-right { gap: 0 !important; }

  section,
  .caps-sec, .countries-sec, .ind-sec,
  .why-sec, .conf-sec, .cases-sec,
  .cta-strip { padding: 52px 22px !important; }

  .vals-sec { padding: 52px 22px !important; }

  .intro-sec { grid-template-columns: 1fr !important; gap: 0 !important; }
  .intro-left { padding: 52px 22px !important; }
  .intro-right { padding: 44px 22px !important; }
  #page-home .intro-sec {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  .s-title { font-size: clamp(24px, 6.5vw, 36px) !important; }
  .section-header { margin-bottom: 36px !important; }

  /* CAPS */
  .caps-grid { grid-template-columns: 1fr !important; }
  .cap { padding: 28px 22px !important; }

  /* COUNTRIES */
  .countries-grid { grid-template-columns: 1fr !important; }
  .country-card { padding: 22px 18px !important; }

  /* INDUSTRIES */
  .ind-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .ind { padding: 22px 16px !important; }
  .ind-n { font-size: 15px; }
  .ind-s { font-size: 11.5px; }

  /* WHY */
  .why-sec { grid-template-columns: 1fr !important; gap: 36px !important; }
  .why-sticky { position: relative !important; top: auto !important; }

  /* ABOUT */
  .ab-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 52px 22px !important;
  }
  #page-about > section:first-of-type { padding: 52px 22px !important; }

  /* VALUES: 5th item centering */
  .vals-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .vals-grid .val:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .val { padding: 32px 16px !important; }

  /* SERVICES */
  .svc-list { padding: 0 22px 52px !important; }
  .svc-hdr { padding: 22px 0 !important; gap: 12px; }
  .svc-nm { font-size: 17px !important; }
  .svc-inner {
    grid-template-columns: 1fr !important;
    padding: 0 0 24px 0 !important;
    gap: 18px !important;
  }

  /* CASES */
  .cases-sec { padding: 52px 22px !important; }
  .cases-grid { grid-template-columns: 1fr !important; gap: 2px !important; }
  .case { padding: 32px 22px !important; }
  .case-t { font-size: 20px; }

  /* CONTACT */
  .ct-grid { grid-template-columns: 1fr !important; }
  .ct-form-wrap { padding: 44px 22px !important; }
  .ct-info { padding: 44px 22px !important; background: var(--navy); }
  .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .ct-form-wrap .btn-primary {
    width: 100% !important;
    padding: 16px !important;
    font-size: 11px !important;
  }

  /* FOOTER */
  .site-footer .footer-main {
    grid-template-columns: 1fr !important;
    padding: 44px 22px 32px !important;
    gap: 28px !important;
  }
  .footer-bottom {
    padding: 16px 22px !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center;
  }
  .footer-brand-block p { max-width: 100% !important; }
  .footer-cta-block p { max-width: 100% !important; }
}

/* ── SMALL PHONES ── */
@media (max-width: 420px) {
  .ind-grid { grid-template-columns: 1fr !important; }
  .hero-h1 { font-size: 26px !important; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { min-width: 180px; }
}

/* ── TABLET 769–1024 ── */
@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 0 36px; }
  .hero-content { padding: 0 48px; }
  .svc-hero-c, .ct-hero-c, .ab-hero-c { padding: 0 48px; padding-top: 70px; }
  section, .caps-sec, .countries-sec, .ind-sec, .why-sec,
  .conf-sec, .vals-sec, .cases-sec, .cta-strip { padding: 72px 48px !important; }
  .svc-list { padding: 0 48px 72px; }
  .ct-form-wrap { padding: 72px 48px; }
  .ct-info { padding: 72px 40px; }
  .footer-main { padding: 48px 48px 36px; grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { padding: 16px 48px; }
  .caps-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cases-grid { grid-template-columns: 1fr !important; }
  .vals-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .vals-grid .val:last-child:nth-child(3n+1),
  .vals-grid .val:last-child:nth-child(3n+2) { grid-column: auto; }
  /* 5 items in 3-col = row 1: III IV V, last 2 (I II) centred */
}

/* ── SERVICES LIST TOP BORDER ── */
.svc-item:first-child { border-top: 1px solid var(--border); }

/* ── NAV ABOVE ALL ── */
#main-nav { z-index: 400 !important; }

/* ── ABOUT HERO: override position:absolute from style.css ── */
.ab-hero-c {
  position: relative !important;
  z-index: 2;
  width: 100%;
  padding: 0 96px;
  padding-top: 70px;
  display: flex !important;
  align-items: center;
  gap: 64px;
  min-height: inherit;
}

/* ── ABOUT HERO HEIGHT: take natural space, not position:absolute child ── */
.ab-hero, .enhanced-about-hero {
  display: flex !important;
  align-items: center;
  height: auto !important;
  min-height: 520px;
}

/* ── SERVICES / CONTACT hero: flex container ── */
.svc-hero, .ct-hero {
  display: flex !important;
  align-items: center;
}
.svc-hero-c, .ct-hero-c {
  position: relative !important;
  z-index: 2;
  width: 100%;
  display: flex !important;
  align-items: center;
}

/* ── HOME: intro section below hero — no gap ── */
#page-home .intro-sec {
  margin-top: 0 !important;
}

/* ── VALS-SEC: needs top padding for tag ── */
.vals-sec {
  padding-top: 72px !important;
}
.vals-sec .tag { margin-bottom: 10px !important; }
.vals-sec .s-title { margin-bottom: 0 !important; }

@media (max-width: 768px) {
  .ab-hero-c {
    padding: 90px 22px 44px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    min-height: 0;
  }
  .ab-hero, .enhanced-about-hero {
    min-height: 0 !important;
  }
  .svc-hero-c, .ct-hero-c {
    padding: 90px 22px 44px !important;
  }
}
