/* ===== Tokens ===== */
:root {
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --blue: #0a66c2;
  --blue-dark: #084f96;
  --accent: #e8590c;
  --accent-dark: #c2410c;
  --ink: #1b2430;
  --muted: #4a5668;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --line: #d9e1ea;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.08);
  --max: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .5em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Placeholders (replace before launch) ===== */
.placeholder {
  background: #fff3a8;
  color: #3d2e00;
  outline: 2px dashed #d4a400;
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 .2em;
  font-weight: 600;
}
.dark .placeholder, .site-footer .placeholder, .hero .placeholder, .topbar .placeholder {
  color: #3d2e00;
}
.placeholder-note {
  background: #fff8cc;
  border: 2px dashed #d4a400;
  color: #3d2e00;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9rem;
  margin: 0 0 20px;
}
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 16px;
  border: 3px dashed #d4a400;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fffbe0, #fffbe0 12px, #fff3a8 12px, #fff3a8 24px);
  color: #3d2e00;
  font-weight: 700;
  font-size: .95rem;
}
.logo-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px;
  border: 2px dashed #d4a400; border-radius: 8px;
  background: #fff3a8; color: #3d2e00; font-size: .6rem; font-weight: 700; line-height: 1.1; text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #9a3412; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ===== Top bar + header ===== */
.topbar { background: var(--navy); color: #dbe7f3; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar strong { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.05rem; min-width: 0; }
.brand-name { overflow-wrap: anywhere; }
.brand-name .placeholder { white-space: nowrap; }
@media (max-width: 400px) { .brand-name .placeholder { white-space: normal; } }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 10px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 6px; white-space: nowrap; }
.primary-nav a:hover { background: var(--bg-alt); color: var(--blue-dark); }
.header-call { white-space: nowrap; }
.header-call .call-label { display: inline; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .primary-nav a { padding: 12px 8px; border-bottom: 1px solid var(--bg-alt); }
  .header-inner { position: relative; }
}
@media (max-width: 480px) {
  .header-call { padding: 10px 14px; }
  .header-call .call-label { display: none; }
  .brand { font-size: .95rem; }
}

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #0f3d6e 60%, #13508c 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-lead { font-size: 1.15rem; color: #dbe7f3; max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #dbe7f3; font-size: .95rem; }
.hero-badges li::before { content: "\2713"; color: #ffb37a; font-weight: 800; margin-right: 6px; }
.hero-grid { align-items: start; }
.hero-widget { min-width: 0; }
.hero-widget h2 { color: #fff; font-size: 1.25rem; text-align: center; margin-bottom: 12px; }
#diagnose { scroll-margin-top: 90px; }
/* FinderlyFix widget matched to the site palette (overridden by any branding
   published in the FinderlyFix portal) */
finderly-diagnosis-widget {
  display: block;
  --fx-color-primary: #c2410c;    /* --accent-dark: white text passes 4.5:1 */
  --fx-color-on-primary: #ffffff;
  --fx-color-surface: #ffffff;
  --fx-color-text: #1b2430;       /* --ink */
  --fx-border-light: #d9e1ea;     /* --line */
  --fx-accent-text-light: #0b2a4a;/* --navy */
  --fx-radius: 12px;              /* --radius */
  --fx-raised-light: #f3f6fa;     /* --bg-alt */
  --fx-tint-light: #eaf2fb;
  font-family: var(--font);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .25));
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: #e7f0fa; color: var(--blue-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-icon svg { width: 26px; height: 26px; }
.card-emergency { border-color: #f5b48f; background: #fff7f2; }
.card-emergency .card-icon { background: #ffe3d3; color: var(--accent-dark); }
.card ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }

/* ===== Areas ===== */
.areas-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.areas-list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-weight: 600; color: var(--navy); }
.areas-list li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
@media (max-width: 960px) { .areas-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .areas-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .areas-list { grid-template-columns: 1fr; } }
.areas-note { margin-top: 20px; color: var(--muted); }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.why-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.why-list .tick { width: 40px; height: 40px; border-radius: 50%; background: #e7f0fa; color: var(--blue-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.why-list h3 { margin-bottom: .2em; }
.why-list p { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.stat strong { display: block; font-size: 1.3rem; color: var(--navy); }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.testimonial { position: relative; }
.testimonial blockquote { margin: 0 0 14px; font-size: 1rem; color: var(--ink); }
.testimonial figcaption { font-weight: 700; color: var(--navy); font-size: .95rem; }
.sample-tag { display: inline-block; margin-bottom: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff3a8; color: #3d2e00; border: 1px dashed #d4a400; border-radius: 4px; padding: 2px 8px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contact-list .label { font-weight: 700; color: var(--navy); }
@media (max-width: 420px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }
.contact-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.contact-cta h3 { color: #fff; font-size: 1.4rem; }
.contact-cta p { color: #dbe7f3; }
.contact-cta .btn { width: 100%; margin-top: 8px; }
.map-box { margin-top: 20px; min-height: 200px; }

/* ===== Footer ===== */
.site-footer { background: #081f37; color: #c9d6e4; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }

/* ===== Mobile sticky call bar ===== */
.mobile-callbar { display: none; }
@media (max-width: 640px) {
  .mobile-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px; gap: 8px; box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .mobile-callbar .btn { flex: 1; min-height: 46px; padding: 10px; font-size: .95rem; }
  body { padding-bottom: 66px; }
}
