/* ============================================================
   Legacy Waters Environmental Services — Design System
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0A1628;
  --navy-light: #122040;
  --teal: #1A8C8E;
  --teal-dark: #157577;
  --ocean: #2BA3B5;
  --sage: #6B8F71;
  --white: #FFFFFF;
  --light-gray: #F4F7FA;
  --mid-gray: #C5CDD8;
  --text: #2D3748;
  --text-light: #8896A6;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ocean); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Section Labels / Headings --- */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--navy);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 40px;
}
.section-subtitle-center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Accent Bar --- */
.accent-bar {
  width: 56px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 24px;
}
.accent-bar-center { margin-left: auto; margin-right: auto; }

/* --- Wave Divider --- */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { width: 100%; height: 80px; display: block; }

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 140, 142, 0.35);
}
.btn-outline {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 50px;
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-call {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-call:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--transition);
  height: var(--header-height);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo-link { display: flex; align-items: center; }
.logo { height: 42px; width: auto; }

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.3px;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(26, 140, 142, 0.15);
}
.nav-cta-mobile { display: none; }
.header-cta-desktop { flex-shrink: 0; }

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  z-index: 1100;
  position: relative;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.72) 100%);
  z-index: 1;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 860px;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}
.hero .btn-primary { font-size: 1rem; padding: 16px 40px; }

/* ============================================================
   SECTIONS — General
   ============================================================ */
section { padding: 80px 0; }
.section-alt { background: var(--light-gray); }

/* --- Two-Col Content (About / Intro) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--teal);
}
.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-card-body { padding: 20px; flex: 1; }
.service-card-icon { font-size: 1.6rem; margin-bottom: 6px; }
.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}
.service-card-link:hover { color: inherit; }

/* ============================================================
   SERVICE PAGE LAYOUT
   ============================================================ */
.service-hero {
  padding: 140px 0 80px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.service-hero .section-label { color: var(--ocean); }
.service-hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.service-hero .accent-bar { margin-left: auto; margin-right: auto; background: var(--ocean); }
.service-section { padding: 72px 0; }
.service-section-alt { background: var(--light-gray); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-row-reverse { direction: rtl; }
.service-row-reverse > * { direction: ltr; }
.service-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.service-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.service-text p { margin-bottom: 16px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
  padding: 80px 0;
  background: var(--light-gray);
}
.faq-section .section-heading,
.faq-section .section-label { text-align: center; display: block; }
.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--mid-gray);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--teal); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--teal); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { padding: 80px 0; background: var(--light-gray); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid var(--mid-gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 140, 142, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.form-error-msg {
  font-size: 0.82rem;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}
.form-group.has-error .form-error-msg { display: block; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-band-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta-band-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* ============================================================
   BLOG HERO
   ============================================================ */
.blog-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--navy);
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.blog-hero .accent-bar { margin-left: auto; margin-right: auto; }
.blog-hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ============================================================
   BLOG TOOLBAR
   ============================================================ */
.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-search-wrap { flex: 1; max-width: 360px; }
.blog-search {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 18px;
  border: 2px solid var(--mid-gray);
  border-radius: 50px;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.blog-search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 140, 142, 0.15);
}
.blog-post-count {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}
.blog-no-results {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  padding: 40px 0;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.blog-card-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: 4px 10px;
  border-radius: 4px;
}
.blog-card-date {
  font-size: 0.82rem;
  color: var(--text-light);
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--light-gray);
}
.blog-card-author {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.blog-card-read-more {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
}

/* ============================================================
   POST PAGE
   ============================================================ */

/* --- Post Hero (21:9 desktop) --- */
.post-hero {
  padding: 140px 0 60px;
  background-size: cover;
  background-position: center;
  text-align: center;
  background-color: var(--navy);
}
.post-hero .section-label { color: var(--ocean); }
.post-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.post-hero .accent-bar { margin-left: auto; margin-right: auto; background: var(--ocean); }
.post-date { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-top: 8px; }

/* --- Post Content --- */
.post-content {
  padding: 64px 0;
  background: var(--light-gray);
}
.post-content .container-narrow { max-width: 760px; }
.post-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--navy);
}
.post-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--navy);
}
.post-content p {
  margin-bottom: 20px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content ul, .post-content ol {
  list-style: disc;
  margin: 0 0 20px 24px;
  color: var(--text);
}
.post-content ol { list-style: decimal; }
.post-content li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(26, 140, 142, 0.3);
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--teal-dark); text-decoration-color: var(--teal-dark); }
.post-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}
.post-content blockquote p { margin-bottom: 0; }
.post-content img { border-radius: var(--radius); margin: 32px 0; }

/* --- Post Navigation --- */
.post-nav { background: var(--light-gray); padding: 32px 0; border-top: 1px solid var(--mid-gray); }
.post-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.post-nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  max-width: 45%;
}
.post-nav-link:hover { color: var(--navy); }
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; margin-left: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.95rem; line-height: 1.6; }
.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal); }
.footer-contact p { margin-bottom: 6px; font-size: 0.92rem; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.powered-by a {
  font-family: var(--font-heading);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.powered-by a:hover { color: var(--teal); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: 140px 0 80px;
  background: var(--navy);
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.about-hero .accent-bar { margin-left: auto; margin-right: auto; background: var(--ocean); }

.team-member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.team-member img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PLACEHOLDER / COMING SOON
   ============================================================ */
.placeholder-section {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--navy);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-section h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}
.placeholder-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 900px */
@media (max-width: 900px) {
  :root { --header-height: 64px; }

  .hamburger { display: flex; }
  .header-cta-desktop { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-nav.open {
    max-height: 100vh;
  }
  .nav-list {
    flex-direction: column;
    padding: 14px 24px 24px;
    gap: 0;
    height: auto;
  }
  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  }
  .main-nav.open .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  /* Staggered link animation */
  .main-nav.open .nav-item:nth-child(1) .nav-link { transition-delay: 0.05s; }
  .main-nav.open .nav-item:nth-child(2) .nav-link { transition-delay: 0.1s; }
  .main-nav.open .nav-item:nth-child(3) .nav-link { transition-delay: 0.15s; }
  .main-nav.open .nav-item:nth-child(4) .nav-link { transition-delay: 0.2s; }
  .main-nav.open .nav-item:nth-child(5) .nav-link { transition-delay: 0.25s; }
  .main-nav.open .nav-item:nth-child(6) .nav-link,
  .main-nav.open .nav-item:nth-child(6) .btn-call { transition-delay: 0.3s; }

  .nav-cta-mobile {
    display: block;
    padding-top: 10px;
  }
  .nav-cta-mobile .btn-call {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s, background 0.2s ease;
    display: inline-block;
  }
  .main-nav.open .nav-cta-mobile .btn-call {
    opacity: 1;
    transform: translateY(0);
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .service-row { grid-template-columns: 1fr; gap: 32px; }
  .service-row-reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero { padding: 120px 0 56px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search-wrap { max-width: 100%; }
  .team-member { grid-template-columns: 1fr; }

  section { padding: 56px 0; }
}

/* Mobile — 660px */
@media (max-width: 660px) {
  body { font-size: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .hero { min-height: 85vh; }
  .hero-video-wrap { display: none; }
  .hero-fallback {
    display: block;
    background-image: url('../images/hero-fallback-mobile.webp') !important;
  }

  .service-hero { padding: 120px 0 56px; }
  .post-hero { padding: 120px 0 48px; }
  .blog-hero { padding: 120px 0 48px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 2rem; }

  .faq-question { font-size: 0.95rem; padding: 16px 0; }

  /* Post nav: wrap titles on mobile */
  .post-nav-inner { flex-direction: column; gap: 16px; }
  .post-nav-link { max-width: 100%; white-space: normal; }
}
