/* ============ Tokens ============ */
:root {
  /* Brand colors sampled from the A.R.K flyer */
  --navy-900: #0e2147;
  --navy-800: #153060;   /* brand navy */
  --navy-700: #1f3f78;
  --blue-500: #2a78c8;   /* logo blue */
  --blue-400: #5aa2e6;
  --blue-50:  #eef4fb;
  --accent:   #f07a22;   /* brand orange — decorative only (2.8:1 on white) */
  --accent-strong: #b44f0d; /* orange for text & white-text fills (≥4.5:1 on white and bg-alt) */
  --accent-d: #973f08;   /* hover */
  --danger:   #c42b33;
  --ok:       #187a43;
  --ink:      #14254a;
  --muted:    #5a6878;
  --line:     #dfe6ee;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fb;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(10, 26, 47, .25);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: light; -webkit-tap-highlight-color: rgba(42,120,200,.15); }
a, button, input, select, textarea, label { touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
p  { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: .75rem;
}

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .section-dark :focus-visible, .footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px;
  padding: .8rem 1.4rem; cursor: pointer; font-size: 1rem;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.contact-book { display: flex; width: fit-content; margin: -.5rem 0 1.75rem; }

/* ============ Top bar ============ */
.topbar { background: var(--navy-900); color: #cfe0f3; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; }
.topbar-phone { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34d27b; flex: none;
  box-shadow: 0 0 0 0 rgba(52,210,123,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,210,123,0); } 100% { box-shadow: 0 0 0 0 rgba(52,210,123,0); } }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 50px; width: auto; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: .95rem; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--blue-500); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  font: 600 .8rem var(--font-head); letter-spacing: .05em;
  background: var(--blue-50); color: var(--navy-700);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .75rem; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--blue-400); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(100deg, rgba(14,33,71,.97) 0%, rgba(14,33,71,.88) 45%, rgba(21,48,96,.55) 100%),
    url("assets/hero-flood.jpg") center / cover no-repeat,
    var(--navy-900);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7.5rem);
}
/* Orange diagonal stripe, echoing the flyer */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: linear-gradient(to top right, #fff 49.5%, transparent 50%);
  border-top: 0;
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 48px;
  background: linear-gradient(to top right, var(--accent) 49.5%, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }

.free-badge {
  display: inline-flex; flex-direction: column; line-height: 1.1;
  background: var(--accent-strong); color: #fff; border-radius: 12px;
  padding: .55rem .95rem; margin-bottom: 1.4rem; transform: rotate(-2deg);
  box-shadow: 0 10px 25px -10px rgba(240,122,34,.7);
}
.free-badge strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.free-badge span { font-size: .8rem; font-weight: 600; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: #ffb37a; }
.hero .lead { font-size: 1.15rem; color: #c7d6e8; max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-badges li { display: flex; flex-direction: column; font-size: .85rem; color: #9fb4cc; }
.hero-badges strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; }

.hero-card {
  position: relative; min-width: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 2rem; backdrop-filter: blur(6px);
}
.hc-label { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 1.25rem; }
.hc-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(255,255,255,.18); }
.hc-timeline li { position: relative; padding: 0 0 1.2rem 1.25rem; display: grid; gap: .1rem; }
.hc-timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue-400); border: 2px solid var(--navy-800);
}
.hc-timeline li:nth-child(2)::before { background: #f5b13d; }
.hc-timeline li:nth-child(3)::before { background: var(--accent); }
.hc-timeline b { font-family: var(--font-head); font-size: .85rem; color: #fff; }
.hc-timeline span { color: #b6c7da; font-size: .95rem; }
.hc-foot { margin: .5rem 0 0; font-weight: 600; color: #fff; }

.hero-circle {
  position: absolute; right: -28px; top: -44px; width: 118px; height: 118px;
  border-radius: 50%; object-fit: cover; border: 5px solid #fff;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.hero-card .hc-label { padding-right: 70px; }

/* ============ Sections ============ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .eyebrow { color: #ffb37a; }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-body { padding: 1.4rem 1.6rem 1.7rem; }
.card p { color: var(--muted); margin: 0; }
.card-media { aspect-ratio: 16 / 9; background: var(--navy-800); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-icon {
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
}
.card-media-icon svg { width: 56px; height: 56px; color: var(--accent); }
.card-media-fire {
  background:
    radial-gradient(circle at 50% 120%, rgba(240,122,34,.55), transparent 60%),
    linear-gradient(140deg, var(--navy-700), var(--navy-900));
}
.card-media-fire svg { width: 64px; height: 64px; color: #ffb37a; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 1rem;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 40%; border-radius: 22px; box-shadow: var(--shadow); }
.about-stamp {
  position: absolute; left: -14px; bottom: -18px; background: var(--accent-strong); color: #fff;
  border-radius: 16px; padding: .8rem 1.1rem; display: grid; line-height: 1.1;
  box-shadow: 0 12px 25px -10px rgba(240,122,34,.7);
}
.about-stamp strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; }
.about-stamp span { font-size: .8rem; font-weight: 600; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7ae0' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Insurance & who we serve */
.insurance-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.insurance-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.insurance-copy .checklist { margin-bottom: 2rem; }
.serve { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem; }
.serve h3 { margin-bottom: 1.25rem; }
.serve-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.serve-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start; }
.serve-list li + li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.serve-list svg { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--navy-700); }
.serve-list b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.serve-list span { color: var(--muted); }
.serve-ref { margin: 1.5rem 0 0; padding: 1rem 1.1rem; background: var(--blue-50); border-radius: 12px; font-size: .95rem; }
.serve-ref strong { color: var(--navy-800); }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
.review {
  margin: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column;
}
.review blockquote { margin: .75rem 0 1rem; color: #dbe6f2; flex: 1; }
.review-main blockquote { font-size: 1.15rem; }
.review figcaption { color: #9fb4cc; font-weight: 600; font-size: .9rem; }
.stars { color: #f5b13d; letter-spacing: .15em; }
.reviews-link { margin: 2rem 0 0; }
.reviews-link a { color: var(--blue-400); font-weight: 600; text-decoration: none; }
.reviews-link a:hover { text-decoration: underline; }

/* Area */
.area-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.area-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.area-lead { color: var(--muted); font-size: 1.05rem; }
.area-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .1rem; min-width: 0; }
.area-list li b { font-family: var(--font-head); font-weight: 700; }
.area-list li span { font-size: .85rem; color: var(--muted); }
.area-list .area-wide { grid-column: 1 / -1; background: var(--navy-800); color: #fff; border-color: var(--navy-800); font-weight: 600; }
.map-wrap { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-phone {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--accent-strong); text-decoration: none;
  font-variant-numeric: tabular-nums; white-space: nowrap; margin: .5rem 0 1.5rem;
}
.contact-phone:hover { color: var(--accent-d); }
.contact-list { margin: 0; display: grid; gap: 1.1rem; }
.contact-list dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: .15rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--blue-500); }

.contact-form {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 22px; padding: 2rem;
}
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(31,122,224,.15); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(196,43,51,.12); }
.field-error { margin: 0; font-size: .85rem; font-weight: 500; color: var(--danger); }
.field-error[hidden] { display: none; }
.req { color: var(--danger); }
.field ::placeholder { color: #8593a3; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.field-check { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1.1rem; }
.field-check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--blue-500); }
.field-check label { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.field-check a { color: var(--blue-500); }
.form-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.form-note.ok { color: var(--ok); font-weight: 600; }
.form-note.err { color: var(--danger); font-weight: 600; }

/* Footer */
.footer { background: var(--navy-900); color: #9fb4cc; padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { color: #fff; font-family: var(--font-head); }
.footer-brand p, .footer-copy { margin: 0; }
.footer-brand a { text-decoration: none; }
.footer-brand a:hover { color: #fff; }
.footer-logo { background: #fff; border-radius: 10px; padding: 4px 6px; height: 54px; width: auto; }
.footer-copy a { text-decoration: none; }
.footer-copy a:hover { color: #fff; }

/* Legal pages (privacy-policy.html, sms-terms.html) */
.legal-actions { margin-left: auto; }
.legal-actions .lang-toggle { text-decoration: none; }
.legal-body { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { margin-top: 1.6rem; }
.legal .legal-h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--blue-500); }
.legal-meta { color: var(--muted); font-size: .9rem; }
.legal-callout { background: var(--blue-50); border-left: 4px solid var(--blue-500); border-radius: 8px; padding: 1rem 1.1rem; }
.legal-divider { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* Mobile sticky call */
.mobile-call { display: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .area-grid, .contact-grid, .insurance-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; margin-top: 2rem; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}

@media (max-width: 600px) {
  .topbar-inner > span:not(.pulse) { font-size: .78rem; }
  .topbar-phone { display: none; }
  .header-call { display: none; }
  .cards, .steps, .area-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-ctas .btn { width: 100%; }
  .contact-form, .serve { padding: 1.4rem; }
  .logo img { height: 42px; }
  .hero-circle { right: -6px; width: 92px; height: 92px; top: -36px; }
  .about-stamp { left: 10px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-call {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    background: var(--accent-strong); color: #fff; text-decoration: none;
    font-family: var(--font-head); font-weight: 700; padding: .95rem; border-radius: 999px;
    box-shadow: 0 10px 25px -8px rgba(194,86,15,.6);
    transition: transform .25s, opacity .25s;
  }
  /* Hidden while the hero's own call buttons are on screen */
  .mobile-call.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
