/* =========================================================
   ABC Lock and Safe — Portland Locksmith
   Modern 2026 redesign
   Palette pulled from the service van: white, navy, amber
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors — van-derived */
  --navy:       #143a6b;        /* deep van blue */
  --navy-2:     #1c4d8e;        /* mid van blue */
  --navy-soft:  #e8eef7;        /* navy tint background */
  --amber:      #f5a623;        /* van orange-yellow */
  --amber-2:    #f7b94a;
  --amber-soft: #fef5e3;
  --red:        #d4321c;        /* logo red, used for emergency only */

  /* Neutrals */
  --bg:         #ffffff;
  --bg-soft:    #f7f8fa;
  --bg-tint:    #f1f3f7;
  --ink:        #0e1422;        /* near-black, slight blue cast */
  --ink-2:      #2c3447;
  --muted:      #5a6478;
  --muted-2:    #8892a6;
  --line:       #e6e9ef;
  --line-2:     #d7dce5;

  /* Typography — standardized system fonts, no exotic display faces */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --max:        1240px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-xl: 0 40px 80px rgba(15, 23, 42, .14);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

p { margin: 0 0 1em; color: var(--ink-2); }
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.bg-soft  { background: var(--bg-soft); }
.bg-tint  { background: var(--bg-tint); }
.bg-navy  { background: var(--navy); color: white; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: white; }
.bg-navy p { color: rgba(255,255,255,.78); }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 100px;
  background: var(--amber-soft);
  color: #8a5a0a;
  margin-bottom: 1.25rem;
}
.eyebrow--navy {
  background: var(--navy-soft);
  color: var(--navy);
}
.eyebrow--white {
  background: rgba(255,255,255,.12);
  color: white;
  backdrop-filter: blur(8px);
}

/* ---------- Top emergency bar ---------- */
.alert-bar {
  background: var(--navy);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}
.alert-bar__inner {
  display: flex; justify-content: center; align-items: center; gap: 0.85rem;
  padding: 0.55rem var(--gutter);
  text-align: center;
  flex-wrap: wrap;
}
.alert-bar__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, .8);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,166,35,.8); }
  70%  { box-shadow: 0 0 0 10px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
.alert-bar a {
  font-weight: 600;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}

/* SVG-based brand block */
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--ink);
}
.brand__mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; gap: 0.15rem; justify-content: center; }
.nav a {
  display: inline-flex; align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  position: relative;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--navy-soft);
}

.nav__group { position: relative; }
.nav__group > button {
  background: transparent; border: 0;
  padding: 0.55rem 0.9rem;
  font: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 0.3rem;
  border-radius: 8px;
  transition: background .15s var(--ease);
}
.nav__group > button:hover { background: var(--bg-soft); color: var(--navy); }
.nav__group > button::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
}
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: white; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  min-width: 230px; padding: 0.5rem; border-radius: 12px;
  display: none;
  z-index: 60;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu { display: block; }
.nav__menu a {
  display: block; padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 6px;
}
.nav__menu a:hover { background: var(--bg-soft); }

.cta-call {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink);
  color: white;
  padding: 0.65rem 1.05rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.cta-call:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cta-call__icon {
  width: 14px; height: 14px;
  fill: var(--amber);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }

@media (max-width: 960px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 0.5rem; }
  .nav-toggle { display: block; order: 3; justify-self: end; }
  .cta-call { padding: 0.55rem 0.85rem; font-size: 0.82rem; order: 2; justify-self: end; }
  .nav {
    grid-column: 1 / -1; order: 4;
    flex-direction: column; gap: 0.15rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; text-align: left; padding: 0.7rem 0.9rem; }
  .nav__group { width: 100%; }

  /* Submenu toggle button (the dropdown parent) — full width + chevron */
  .nav__group > button {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Submenus (regular + mega) — hidden by default on mobile, shown when parent.is-open */
  .nav__menu,
  .nav__megamenu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: var(--bg-soft);
    padding: 0.4rem;
    margin: 0.25rem 0 0.5rem;
    border-radius: 10px;
    width: auto;
    transform: none;
    min-width: 0;
  }
  .nav__group.is-open > .nav__menu,
  .nav__group.is-open > .nav__megamenu {
    display: block;
  }
  .nav__group.is-open > button::after {
    transform: rotate(225deg) translateY(-2px);
  }

  .nav__megamenu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .nav__megamenu-footer {
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
}

@media (max-width: 560px) {
  /* Hide subtitle on small screens; keep name compact and on one line */
  .brand__name small { display: none; }
  .brand__name { font-size: 0.95rem; white-space: nowrap; }
  .brand__mark { width: 36px; height: 36px; }
  .cta-call { padding: 0.5rem 0.7rem; font-size: 0; }
  .cta-call__icon { width: 16px; height: 16px; margin: 0; }
  /* Show only the icon, no number text — saves ~120px of width */
  .site-header__inner { padding: 0.65rem var(--gutter); gap: 0.35rem; }
}

@media (max-width: 380px) {
  /* Drop the brand text entirely on tiny screens; just show the mark + nav controls */
  .brand__name { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(245, 166, 35, .35);
}
.btn--primary:hover {
  background: var(--amber-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 166, 35, .45);
}
.btn--navy {
  background: var(--navy);
  color: white;
}
.btn--navy:hover {
  background: var(--ink);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover {
  background: white;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn--ghost-light {
  background: rgba(255,255,255,.08);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}
.btn--lg {
  padding: 1.1rem 1.85rem;
  font-size: 1rem;
}
.btn__arrow {
  width: 16px; height: 16px;
  transition: transform .2s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: linear-gradient(180deg, white 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent {
  color: var(--navy);
  background-image: linear-gradient(transparent 60%, rgba(245, 166, 35, 0.45) 60%, rgba(245, 166, 35, 0.45) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.05em;
}
.hero p.lede { max-width: 50ch; margin-bottom: 2rem; }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__trust-item {
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__trust-item svg {
  width: 20px; height: 20px;
  color: var(--navy);
  flex-shrink: 0;
}
.hero__trust-item div {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.2;
}
.hero__trust-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 5;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__photo-overlay {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
}
.hero__photo-overlay-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.hero__photo-overlay-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.hero__photo-overlay-phone:hover { color: var(--navy); }

.hero__badge {
  position: absolute;
  top: -12px; right: -12px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  z-index: 2;
  white-space: nowrap;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, white 0%, var(--bg-soft) 100%);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.page-hero h1 .accent {
  color: var(--navy);
  background-image: linear-gradient(transparent 60%, rgba(245, 166, 35, 0.45) 60%, rgba(245, 166, 35, 0.45) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.05em;
}
.page-hero p { max-width: 60ch; }

.crumbs {
  display: flex; gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  align-items: center;
}
.crumbs a:hover { color: var(--navy); }
.crumbs span { color: var(--muted-2); }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

.svc {
  background: white;
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: 0.75rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  min-height: 240px;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc__icon {
  width: 44px; height: 44px;
  background: var(--navy-soft);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 0.5rem;
  transition: background .25s var(--ease);
}
.svc:hover .svc__icon { background: var(--amber-soft); }
.svc__icon svg { width: 22px; height: 22px; color: var(--navy); }
.svc:hover .svc__icon svg { color: #8a5a0a; }
.svc h3 { font-size: 1.2rem; }
.svc p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}
.svc__arrow {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  align-self: flex-start;
  transition: gap .2s var(--ease);
}
.svc:hover .svc__arrow { gap: 0.6rem; }
.svc__arrow svg { width: 14px; height: 14px; }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}
.stat__num {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  display: block;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
}
.stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

/* ---------- Promise cards ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .promises { grid-template-columns: 1fr; } }
.promise {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.promise__icon {
  width: 44px; height: 44px;
  background: var(--amber-soft);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.promise__icon svg { width: 22px; height: 22px; color: #8a5a0a; }
.promise h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.promise p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- Service detail cards ---------- */
.svc-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .svc-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-cols { grid-template-columns: 1fr; } }

.svc-col {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.svc-col__kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.svc-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 1rem;
}
.svc-col ul { list-style: none; padding: 0; margin: 0; }
.svc-col li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.svc-col li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%23143a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.svc-col li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq__item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.faq__item:hover { border-color: var(--line-2); }
.faq__item[open] {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 24px; height: 24px;
  flex-shrink: 0;
  background: var(--bg-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%23143a6b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.faq__item[open] summary::after {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8h8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq__answer {
  padding: 0 1.4rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
}
.faq__answer p { margin: 0 0 0.7rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: white;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
@media (max-width: 800px) { .cta-band__inner { grid-template-columns: 1fr; } }

.cta-band h2 {
  color: white;
  margin-bottom: 1rem;
}
.cta-band__phone {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.cta-band__phone:hover { color: var(--amber); }
.cta-band__sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
  padding-bottom: 1.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__top { grid-template-columns: 1fr; } }

.footer h4 {
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 0.3rem 0; }
.footer a {
  color: rgba(255,255,255,.7);
  font-size: 0.92rem;
  transition: color .15s var(--ease);
}
.footer a:hover { color: var(--amber); }

.footer__brand .brand { color: white; }
.footer__brand .brand__name { color: white; }
.footer__brand .brand__name small { color: rgba(255,255,255,.55); }

.footer__brand p {
  color: rgba(255,255,255,.65);
  font-size: 0.92rem;
  max-width: 36ch;
  margin: 1rem 0 1.25rem;
}
.footer__phone {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber) !important;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}

.footer__certs {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.footer__certs-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.footer__certs-imgs {
  display: flex; gap: 1rem; align-items: center;
}
.footer__certs-imgs img {
  height: 56px;
  width: auto;
  border-radius: 6px;
}

.footer__bottom {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  margin-top: 1.5rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact-card dd a:hover { color: var(--navy); }
.contact-card dd small {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 0.2rem;
}

/* Form */
.form { display: grid; gap: 1rem; }
.form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: block;
}
.form input, .form textarea, .form select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-2);
  background: white;
  border-radius: 10px;
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(20, 58, 107, .12);
}
.form textarea { resize: vertical; min-height: 130px; }

/* ---------- Photo block ---------- */
.figure-block {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}
.figure-block img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Brand chips ---------- */
.brand-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}
.brand-chip {
  background: white;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.brand-chip:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.brand-chip strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.brand-chip small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Locations ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .locations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .locations-grid { grid-template-columns: 1fr; } }

.loc-card {
  background: white;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 0.4rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.loc-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.loc-card__pin {
  width: 32px; height: 32px;
  background: var(--navy-soft);
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
  transition: background .2s var(--ease);
}
.loc-card:hover .loc-card__pin { background: var(--amber-soft); }
.loc-card__pin svg { width: 16px; height: 16px; color: var(--navy); }
.loc-card:hover .loc-card__pin svg { color: #8a5a0a; }
.loc-card strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.loc-card small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.loc-card .loc-card__arrow {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap .2s var(--ease);
}
.loc-card:hover .loc-card__arrow { gap: 0.55rem; }
.loc-card .loc-card__arrow svg { width: 12px; height: 12px; }

/* Location stats strip on city pages */
.loc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2rem 0;
  overflow: hidden;
}
@media (max-width: 700px) { .loc-stats { grid-template-columns: 1fr; } }
.loc-stats > div {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--line);
}
@media (max-width: 700px) {
  .loc-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .loc-stats > div:last-child { border-bottom: 0; }
}
.loc-stats > div:last-child { border-right: 0; }
.loc-stats__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.loc-stats__val {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-feature-settings: "tnum";
}

/* Neighbors strip */
.neighbors {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}
.neighbors a {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.95rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.neighbors a:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-soft);
}

/* ---------- Mega menu (Locations dropdown) — desktop ---------- */
@media (min-width: 961px) {
  .nav__megamenu {
    position: absolute; top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: white; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    width: 540px;
    padding: 1.25rem;
    border-radius: 14px;
    display: none;
    z-index: 60;
  }
  .nav__group:hover .nav__megamenu,
  .nav__group:focus-within .nav__megamenu { display: block; }
  .nav__megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.15rem 1rem;
  }
}
/* Megamenu styles that apply at all sizes */
.nav__megamenu-grid {
  display: grid;
}
.nav__megamenu a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
}
.nav__megamenu a:hover { background: var(--bg-soft); color: var(--navy); }
.nav__megamenu-footer {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}
.nav__megamenu-footer a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.3rem 0.6rem;
}
.nav__megamenu-footer a svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav__megamenu-footer a:hover svg { transform: translateX(3px); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal .7s var(--ease) forwards;
  }
  .reveal[data-delay="1"] { animation-delay: .08s; }
  .reveal[data-delay="2"] { animation-delay: .16s; }
  .reveal[data-delay="3"] { animation-delay: .24s; }
  .reveal[data-delay="4"] { animation-delay: .32s; }
  @keyframes reveal {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Sticky bottom call bar (mobile) ---------- */
.mobile-call {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.85rem var(--gutter);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 80;
  box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.mobile-call a { color: var(--ink); }
@media (max-width: 700px) {
  .mobile-call { display: block; }
  body { padding-bottom: 60px; }
}

/* ---------- Inline links ---------- */
.prose a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s var(--ease);
}
.prose a:hover { color: var(--amber); }
.prose strong { color: var(--ink); font-weight: 600; }

@media print {
  .alert-bar, .mobile-call, .site-header, .cta-band, .footer { display: none; }
}
