/* ==========================================================================
   San Diego Leak Detection Pros — Global Stylesheet
   Brand: #045CB4 | Font: Poppins
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #045CB4;
  --brand-dark: #034a90;
  --brand-darker: #023468;
  --brand-light: #e8f1fb;
  --brand-tint: #f4f8fd;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --ink: #101828;
  --body: #4a5568;
  --muted: #6b7683;
  --line: #e4e9f0;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --dark: #0b1b2b;
  --focus: #ffbf47;
  --content: 1250px;
  --gutter: clamp(18px, 4vw, 24px);
  --section-y: clamp(56px, 7vw, 96px);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
  --shadow: 0 14px 40px rgba(16, 24, 40, .12);
  --shadow-lg: 0 26px 60px rgba(16, 24, 40, .18);
  --t: .25s ease;

  /* Navigation palette */
  --nav-bg: #000000;
  --nav-border: rgba(255, 255, 255, .16);
  --nav-fg: #ffffff;
  --nav-fg-dim: #c8d2df;
  --nav-hover-bg: rgba(255, 255, 255, .12);
  --nav-active-bg: rgba(255, 255, 255, .2);
  --nav-panel-bg: #ffffff;
  --nav-panel-fg: #1f2937;
  --nav-panel-fg-dim: #4b5563;
  --nav-panel-hover: #e8f1fb;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-dark); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
button { font-family: inherit; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section--tint { background: var(--brand-tint); }
.section--dark { background: var(--dark); color: #c8d3e0; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 54px); text-align: center; }
.section-head p { font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow--onDark { color: #cfe3f8; background: rgba(255, 255, 255, .1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--t); white-space: nowrap;
}
.btn svg { flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(4, 92, 180, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(4, 92, 180, .34); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(194, 65, 12, .3); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand); }
.btn--outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 18px 34px; font-size: 1.02rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 230px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav__list { display: flex; align-items: center; gap: 2px; }
.main-nav__item { position: relative; }
.main-nav__item > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; color: var(--nav-fg);
  transition: background var(--t), color var(--t);
}
.main-nav__item > a:hover { background: var(--nav-hover-bg); color: var(--nav-fg); }
.main-nav__item.is-active > a { background: var(--nav-active-bg); color: var(--nav-fg); }
.chev { transition: transform var(--t); }
.main-nav__item.is-open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 250px;
  background: var(--nav-panel-bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 20;
}
.main-nav__item:hover > .dropdown,
.main-nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--nav-panel-fg); }
.dropdown a:hover { background: var(--nav-panel-hover); color: var(--brand); }
.dropdown--mega {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  min-width: 440px; right: 0; left: auto;
}
.has-mega > .dropdown--mega { transform: translateY(8px); }

.header__cta { padding: 13px 22px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--nav-border);
  border-radius: 10px; background: rgba(255, 255, 255, .06); cursor: pointer; padding: 0;
  transition: background var(--t);
}
.nav-toggle:hover { background: var(--nav-hover-bg); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--nav-fg); margin: 4px auto; transition: all var(--t); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-close { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__call { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(105deg, #02284e 0%, #045CB4 58%, #045CB4 100%);
  color: #fff; padding: clamp(64px, 9vw, 96px) 0 clamp(64px, 9vw, 100px); overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: #9fc9f0; }
.hero__lead { font-size: 1.12rem; color: #dbe8f6; max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__points li { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; color: #eaf3fc; }
.hero__points svg { color: #4ade80; flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg);
  object-fit: cover; aspect-ratio: 4 / 3;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  gap: clamp(18px, 2.5vw, 24px);
  padding-top: clamp(22px, 3vw, 32px); padding-bottom: clamp(22px, 3vw, 32px);
}
.trust { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trust img { height: clamp(34px, 4vw, 44px); width: auto; object-fit: contain; }
.trust__num { font-size: clamp(1.35rem, 3.4vw, 1.6rem); font-weight: 800; color: var(--brand); line-height: 1; }
.trust__label { font-size: .84rem; font-weight: 500; color: var(--muted); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all var(--t);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe2f6; }
.service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__icon {
  position: absolute; bottom: -22px; right: 20px;
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 22px rgba(4, 92, 180, .35);
}
.service-card__body { padding: 30px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card__body p { font-size: .92rem; margin-bottom: 16px; }
.service-card__link { margin-top: auto; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; }
.service-card__link svg { transition: transform var(--t); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* Feature list */
.feature { display: flex; gap: 18px; }
.feature__icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-light); color: var(--brand); display: grid; place-items: center;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; margin: 0; }

/* Split (about) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto;
  width: 62%; height: 62%; border: 3px solid var(--brand-light); border-radius: var(--radius); z-index: -1;
}
.split__stat {
  position: absolute; left: -18px; bottom: -18px; z-index: 2;
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.split__stat strong { display: block; font-size: 1.9rem; line-height: 1; }
.split__stat span { font-size: .82rem; opacity: .85; }
.checklist { display: grid; gap: 12px; margin: 22px 0 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: .95rem; color: var(--ink); }
.checklist svg { color: var(--brand); flex: none; margin-top: 3px; }

/* ---------- Warning signs ---------- */
.sign-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all var(--t);
}
.sign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #cfe2f6; }
.sign-card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 16px;
}
.sign-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.sign-card p { font-size: .9rem; margin: 0; }

/* ---------- Technology (dark) ---------- */
.tech-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 30px 24px; transition: all var(--t);
}
.tech-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); transform: translateY(-4px); }
.tech-card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand); color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(4, 92, 180, .4);
}
.tech-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tech-card p { font-size: .9rem; margin: 0; color: #b9c9da; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 24px 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -18px; left: 24px;
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 22px rgba(4, 92, 180, .3);
}
.step h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.testimonial__stars { color: #f6a723; display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial p { font-size: .95rem; font-style: italic; color: var(--ink); }
.testimonial__author { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.testimonial__author strong { display: block; color: var(--ink); font-size: .92rem; }
.testimonial__author span { font-size: .8rem; color: var(--muted); }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px; }
.areas a {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.areas a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* ---------- Map embed ---------- */
.map-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- Contact page ---------- */
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }

.call-panel {
  background: var(--brand-light); border: 1px solid #cfe2f6; border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px); text-align: center; height: 100%;
}
.call-panel h2 { margin-bottom: 6px; }
.call-panel p { color: var(--body); margin-bottom: 12px; }
.call-panel__num {
  display: block; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800;
  color: var(--brand); margin: 4px 0 16px; letter-spacing: -.01em;
}
.call-panel .btn { width: 100%; }
.call-panel__note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-family: inherit; font-size: .95rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px;
}

.emergency {
  background: linear-gradient(100deg, #7c2d12, var(--accent));
  border-radius: 22px; padding: clamp(30px, 4.5vw, 48px); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.emergency h2 { color: #fff; margin-bottom: 6px; }
.emergency p { color: #ffe6d5; margin: 0; max-width: 620px; }
.emergency__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.call-bar { display: none; }
@media (max-width: 768px) {
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 840;
    background: var(--accent); box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .call-bar a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    color: #fff; font-weight: 700; font-size: 1.05rem; padding: 10px;
  }
  .call-bar a:hover, .call-bar a:focus-visible { color: #fff; }
  .has-callbar { padding-bottom: 88px; }
  .has-callbar .to-top { bottom: 100px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 54px 20px 22px; position: relative;
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.faq__q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform var(--t);
}
.faq__item.is-open .faq__q::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; margin: 0; font-size: .94rem; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--brand-darker), var(--brand));
  border-radius: 22px; padding: 52px; color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d6e6f7; margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Legal pages (Privacy Policy / Terms & Conditions)
   ========================================================================== */
.page-hero {
  background: linear-gradient(105deg, #02284e 0%, #045CB4 58%, #045CB4 100%);
  color: #fff; padding: clamp(46px, 7vw, 80px) 0 clamp(46px, 7vw, 72px);
}
.page-hero h1 { color: #fff; margin: 6px 0 12px; }
.page-hero p { color: #dbe8f6; max-width: 720px; margin: 0; }

.legal { max-width: 880px; margin: 0 auto; }
.legal__meta { font-size: .88rem; color: var(--muted); margin-bottom: 30px; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 40px; }
.legal h3 { font-size: 1.08rem; margin-top: 26px; }
.legal p, .legal li { font-size: .96rem; }
.legal ul, .legal ol { margin: 0 0 1.25rem; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 9px; }
.legal a { font-weight: 500; word-break: break-word; }
.legal__address { font-style: normal; line-height: 1.8; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #000000; color: #9fb0c3; padding-top: 72px; font-size: .9rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; letter-spacing: .01em; }
.site-footer a { color: #b6c6d8; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; }
.footer__about p { font-size: .9rem; line-height: 1.75; margin-bottom: 20px; }
.footer__brand { display: inline-block; margin-bottom: 20px; }
.footer__brand img { width: 210px; }
.footer__trust { display: flex; gap: 14px; align-items: center; }
.footer__trust img { height: 32px; width: auto; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px 7px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a, .footer__contact a { font-size: .9rem; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 11px; }
.footer__contact svg { color: #5b9ada; flex: none; margin-top: 4px; }
.footer__btn { margin-top: 20px; width: 100%; }
.footer__areas { margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__areas h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer__areas-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; }
.footer__areas-list a { font-size: .84rem; }
.footer__bottom {
  margin-top: 44px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__bottom p { margin: 0; font-size: .84rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { font-size: .84rem; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .main-nav { gap: 10px; }
  .main-nav__item > a { padding: 10px 10px; font-size: .88rem; }
  .brand img { width: 198px; }
  .header__cta { padding: 11px 18px; font-size: .86rem; }
  .header__inner { gap: 14px; }
  .hero__grid { gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer__areas-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .header__call {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
    color: #fff; background: var(--brand); border: 1px solid var(--brand);
    transition: background var(--t), border-color var(--t);
  }
  .header__call:hover, .header__call:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

  /* Dim the page. Kept BELOW the header (z-index 900) so the drawer, which
     lives inside the header's stacking context, stays tappable on top. */
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0;
    background: rgba(6, 12, 20, .6); z-index: 850; pointer-events: auto;
  }

  .main-nav {
    position: fixed; top: 0; right: 0; width: min(88vw, 360px); height: 100vh; height: 100dvh;
    background: #0a0f16; flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    transform: translateX(100%); transition: transform .3s ease;
    overflow: hidden; overscroll-behavior: contain;
    box-shadow: -20px 0 50px rgba(0, 0, 0, .5); z-index: 950;
  }
  .main-nav.is-open { transform: translateX(0); }

  .nav-close {
    display: grid; place-items: center; position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 44px; height: 44px; border-radius: 12px; color: var(--nav-fg); cursor: pointer;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--nav-border);
    transition: background var(--t);
  }
  .nav-close:hover, .nav-close:focus-visible { background: var(--nav-hover-bg); }

  .main-nav__list {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    flex-direction: column; align-items: stretch; gap: 0; padding: 68px 18px 12px;
  }
  .main-nav__item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav__item > a {
    width: 100%; padding: 16px 8px; font-size: 1.02rem; font-weight: 600;
    justify-content: space-between; border-radius: 0;
  }
  .main-nav__item.is-active > a { background: transparent; color: var(--nav-fg); }
  .main-nav__item.is-active::before {
    content: ""; position: absolute; left: -18px; top: 14px; bottom: 14px;
    width: 3px; border-radius: 3px; background: var(--brand);
  }
  .main-nav__item.is-open > a { color: var(--nav-fg); }

  .dropdown {
    display: none; background: transparent; border: 0; box-shadow: none; border-radius: 0;
    position: static; opacity: 1; visibility: visible; transform: none;
    margin: 0; padding: 0 0 10px 14px;
  }
  .dropdown a { display: block; color: var(--nav-fg-dim); padding: 12px 10px; border-radius: 8px; }
  .dropdown a:hover, .dropdown a:focus { background: var(--nav-hover-bg); color: var(--nav-fg); }
  .main-nav__item.is-open > .dropdown { display: block; }
  .dropdown--mega { display: none; grid-template-columns: 1fr 1fr; gap: 2px 10px; min-width: 0; right: auto; left: auto; transform: none; }
  .main-nav__item.is-open > .dropdown--mega { display: grid; }
  .dropdown--mega a { padding: 11px 8px; }

  .header__cta { flex: none; margin: 14px 18px calc(14px + env(safe-area-inset-bottom)); align-self: stretch; }

  .hero__grid, .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 32px) 24px; }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .cta-band { grid-template-columns: 1fr; padding: clamp(30px, 5vw, 42px); }
}

@media (max-width: 640px) {
  .header__inner { min-height: 72px; }
  .brand img { width: 176px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trustbar__inner { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__areas-list { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .hero__actions .btn { flex: 1; }
  h1 { font-size: 1.9rem; }
  .cta-band { padding: 30px 24px; border-radius: 16px; }
  .cta-band__actions .btn { width: 100%; }
}
