/* ==========================================================================
   Claim Secure Solutions — global stylesheet
   Brand: deep navy (#1B3A5C) primary, teal (#2FB6A8) accent, light backgrounds
   Structure: 1) tokens  2) base  3) layout  4) header/nav  5) components
              6) sections  7) footer  8) forms  9) animation  10) responsive
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  --navy:        #1B3A5C;
  --navy-900:    #12283f;
  --navy-800:    #16324f;
  --navy-700:    #234d78;
  --teal:        #2FB6A8;
  --teal-600:    #259a8e;
  --teal-700:    #1d7d73;
  --teal-50:     #e7f7f4;

  --ink:         #1f2a37;
  --muted:       #566372;
  --white:       #ffffff;
  --bg:          #ffffff;
  --bg-alt:      #f4f7fa;
  --bg-navy:     #1B3A5C;
  --line:        #e4e9f0;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:    0 10px 34px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 58, 92, 0.14);
  --ring:      0 0 0 4px rgba(47, 182, 168, 0.28);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Lenis smooth-scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

a { color: var(--teal-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 8px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #dfe7f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--teal); }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--navy .lead { color: #c3d2e2; }

/* 4. Header / navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(27, 58, 92, 0.08);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-head); font-weight: 700;
  color: var(--navy); font-size: 1.06rem; letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-600); font-weight: 600; margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { flex: 0 0 auto; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  color: var(--navy); position: relative; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--teal-700); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--teal); border-radius: 2px;
}

/* dropdown for Services */
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { padding: 11px 14px; border-radius: 9px; font-weight: 500; }
.submenu a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .3s, opacity .2s;
}
.hamburger span { position: relative; }
.hamburger span::before { position: absolute; top: -6px; }
.hamburger span::after  { position: absolute; top: 6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* The mobile slide-down panel is hidden on desktop; the mobile media query
   below turns it back on (as a fixed, off-screen panel) at <=860px. */
.mobile-panel { display: none; }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 11px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s, box-shadow .25s, background .2s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(47,182,168,.32); }
.btn-primary:hover { background: var(--teal-600); color: #fff; box-shadow: 0 12px 26px rgba(47,182,168,.4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-700); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--navy-900); box-shadow: var(--shadow-lg); }
.btn-ghost-light { background: rgba(255,255,255,.1); color:#fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color:#fff; }
.btn svg { width: 18px; height: 18px; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(47,182,168,.28), transparent 60%),
    radial-gradient(900px 520px at 10% 110%, rgba(47,182,168,.12), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-800) 100%);
  color: #eaf1f8;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding-block: clamp(60px, 9vw, 110px);
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .accent { color: var(--teal); }
.hero p { color: #c6d5e5; font-size: 1.18rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-trust div { line-height: 1.2; }
.hero-trust b { font-family: var(--font-head); font-size: 1.6rem; color: #fff; display:block; }
.hero-trust span { font-size: .84rem; color: #9fb4ca; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; z-index: 2; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 22px;
  padding: 30px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero-card img { width: 118px; margin: 0 auto 18px; }
.hero-card h3 { color: #fff; text-align: center; margin-bottom: 18px; }
.hero-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: #d7e3f0; }
.hero-check:last-child { margin-bottom: 0; }
.hero-check .tick {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #06322d; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; margin-top: 2px;
}

/* 7. Cards & components ---------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
  /* Flex column so a trailing "Learn more" link pins to the bottom and all
     links across a row line up regardless of description length. */
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6e6e3; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card .card-link {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; align-self: flex-start; /* stay left, drop to card bottom */
}
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

.icon-badge {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 20px;
}
.icon-badge svg { width: 30px; height: 30px; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

/* stat counters */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.stat { text-align: center; padding: 20px; }
.stat b {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.2rem); display: block; line-height: 1;
}
.stat .suffix { color: var(--teal); }
.stat span { color: #b9c9da; font-size: .95rem; margin-top: 10px; display: block; }

/* steps / how it works */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 30px 96px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 26px; top: 28px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  color: #fff; background: linear-gradient(150deg, var(--teal), var(--teal-700));
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* testimonials */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); height: 100%;
  /* Flex column so every author block aligns to the bottom of its card,
     even when the quotes above differ in length. */
  display: flex; flex-direction: column;
}
.quote .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 24px; font-size: 1.05rem; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-family: var(--font-head);
  font-weight: 600;
}
.quote figcaption b { display: block; color: var(--navy); font-family: var(--font-head); }
.quote figcaption small { color: var(--muted); }

/* value / feature list */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center;
}
.feature .tick svg { width: 17px; height: 17px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }

/* breadcrumbs */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  padding-block: 16px; font-size: .9rem; color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li::after { content: "/"; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-700); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 500; }

/* page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(47,182,168,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy));
  color: #eaf1f8; padding-block: clamp(56px, 8vw, 92px); position: relative; overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity:.5;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c6d5e5; max-width: 60ch; font-size: 1.15rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(150deg, var(--teal-700), var(--teal));
  color: #fff; border-radius: 24px; padding: clamp(38px, 6vw, 64px);
  text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.18), transparent 60%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2fbf7; max-width: 52ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* info list (contact) */
.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center;
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list b { font-family: var(--font-head); color: var(--navy); display: block; }
.info-list a { color: var(--muted); }
.info-list a:hover { color: var(--teal-700); }

.map-embed {
  border: 0; width: 100%; height: 100%; min-height: 380px;
  border-radius: var(--radius); filter: saturate(1.05);
}

/* 8. Forms ----------------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 500;
  font-size: .92rem; color: var(--navy); margin-bottom: 8px;
}
.field label .req { color: var(--teal-700); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fdfefe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,182,168,.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: #c0392b; font-size: .84rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #e07a70; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.form-status {
  display: none; margin-top: 18px; padding: 14px 18px; border-radius: 11px;
  background: var(--teal-50); color: var(--teal-700); font-weight: 500;
  border: 1px solid #bfe8e2;
}
.form-status.show { display: block; }

/* 9. Animation (GSAP + reduced-motion fallback) ---------------------------- */
[data-reveal] { will-change: transform, opacity; }
/* If JS/GSAP is unavailable, content must still be visible: no default hiding. */
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-anim [data-reveal="left"] { transform: translateX(-34px); }
.js-anim [data-reveal="right"] { transform: translateX(34px); }
.js-anim [data-reveal="scale"] { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* 10. Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b7c6d8; padding-top: clamp(56px, 7vw, 84px); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-text b { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: #9fb2c6; font-size: .96rem; }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: #a9bcd0; font-size: .96rem; }
.footer-col a:hover { color: var(--teal); }
/* Contact rows carry icons + some two-line entries, so give them a slightly
   larger but still even gap. The old per-li margin-bottom stacked on top of the
   column's grid gap and doubled the spacing (11 + 13 = 24px). */
.footer-contact { gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; line-height: 1.5; font-size: .95rem; color: #a9bcd0; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal); flex: 0 0 18px; margin-top: 2px; }
.footer-contact a { color: #a9bcd0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center; padding-block: 26px; font-size: .88rem; color: #7f94aa;
}
.footer-bottom a { color: #9fb2c6; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #cdd9e6;
}
.footer-social a:hover { background: var(--teal); color: #06322d; }
.footer-social svg { width: 18px; height: 18px; }

/* utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-teal { color: var(--teal-700); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border-radius: 100px; background: var(--teal-50); color: var(--teal-700);
  font-family: var(--font-head); font-weight: 500; font-size: .86rem;
}
.section--navy .pill { background: rgba(255,255,255,.08); color: #d7f2ee; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul.check { list-style: none; display: grid; gap: 12px; margin: 1.2em 0; }
.prose ul.check li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul.check li::before {
  content: "✓"; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700); font-weight: 800; font-size: 13px;
  display: grid; place-items: center; margin-top: 3px;
}

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero p { max-width: 46ch; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* The full desktop nav (brand + 5 links + 2 buttons) needs ~1100px; below
   that the CTA buttons clip off-screen. Switch to the hamburger menu early
   enough that the header never overflows. */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: inline-flex; }

  /* mobile slide-down panel */
  .mobile-panel {
    display: block;
    position: fixed; inset: 76px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 18px var(--gutter) 26px; z-index: 99;
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.16,1,.3,1);
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .mobile-panel.open { transform: translateY(0); }
  .mobile-panel ul { list-style: none; display: grid; gap: 4px; }
  .mobile-panel > ul > li > a, .mobile-panel .m-sub-toggle {
    display: block; width: 100%; text-align: left; padding: 14px 12px; border-radius: 10px;
    font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--navy);
    background: none; border: 0; cursor: pointer;
  }
  .mobile-panel a[aria-current="page"] { color: var(--teal-700); background: var(--bg-alt); }
  .mobile-panel .m-submenu { padding-left: 14px; display: none; }
  .mobile-panel .m-submenu.open { display: block; }
  .mobile-panel .m-submenu a { font-size: .98rem; color: var(--muted); padding: 11px 12px; }
  .mobile-panel .btn { display: flex; justify-content: center; margin-top: 14px; width: 100%; }
}

@media (max-width: 860px) {
  /* Collapse two-column splits whose columns are set via inline styles
     (index, about, services pages). Inline styles beat class rules, so
     !important is required — same approach as .contact-grid below. */
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Once stacked, the sidebar form card no longer needs to be sticky. */
  .form-card[style*="sticky"] { position: static !important; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .brand-text span { display: none; }
  .hero-trust { gap: 18px 24px; }
  .hero-trust b { font-size: 1.35rem; }

  /* Reclaim horizontal space inside cards on narrow phones */
  .card, .quote, .hero-card { padding: 24px; }

  /* How-it-works steps: 96px of left padding leaves too little room for
     text on phones — shrink the number badge and tighten the inset. */
  .step { padding: 26px 20px 26px 78px; }
  .step::before { width: 40px; height: 40px; font-size: 1.15rem; left: 20px; top: 24px; border-radius: 11px; }

  /* Long unbreakable strings (email address, URLs) must never force
     horizontal scrolling on small screens. */
  .footer-contact li, .footer-contact a, .info-list li > div, .info-list a { overflow-wrap: anywhere; min-width: 0; }
}

@media (max-width: 480px) {
  /* Wide CTA labels ("Start with a Free Consultation") can exceed very
     small screens — go full-width and let them breathe. */
  .hero-actions .btn, .cta-actions .btn {
    width: 100%; justify-content: center; white-space: normal; text-align: center;
  }
}
