/* Foster City Locksmiths — global styles
   Palette: deep teal + warm amber (distinguishes from San Jose navy+gold)
   Fonts: Plus Jakarta Sans (headings) + DM Sans (body)
   Mobile-first: 390 / 768 / 1024 / 1440 breakpoints */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }

:root {
  /* === Palette — 7 custom properties, no bare hex outside :root === */
  --teal:            #0D5C63;   /* primary brand — deep teal */
  --teal-soft:       #1A7A82;   /* secondary / hover states */
  --amber:           #E8972E;   /* CTA buttons */
  --amber-deep:      #C47818;   /* CTA hover — 15% darker */
  --cream:           #F7F3EE;   /* light section background */
  --cream-warm:      #EDE6D8;   /* warm band sections */
  --bg-dark:         #0A3D42;   /* dark sections (footer, contrast bands) */
  --text:            #1A1A1A;
  --text-muted:      #576069;
  --text-light:      #F7F3EE;
  --text-light-muted:#D7E3E5;   /* bumped from #B9CDD0 for stronger contrast on dark bg (9.1:1 vs 7.2:1) */
  --border:          #D9CFC0;
  --border-dark:     #194D52;
  --white:           #FFFFFF;

  /* === Typography === */
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans',           system-ui, -apple-system, sans-serif;

  /* === Layout === */
  --container:        1200px;
  --container-narrow: 880px;
  --pad-x:     clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 9vw, 120px);

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(13,92,99,.06), 0 2px 8px rgba(13,92,99,.04);
  --shadow:    0 6px 18px rgba(13,92,99,.10), 0 2px 6px rgba(13,92,99,.06);
  --shadow-lg: 0 24px 48px rgba(13,92,99,.14), 0 8px 16px rgba(13,92,99,.07);

  /* === UI === */
  --radius:    10px;
  --radius-lg: 18px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

/* === Base === */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--teal);
}
h1 { font-size: clamp(1.85rem, 5vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); }

p { color: var(--text); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }

/* Accessibility */
.skip-link { position: absolute; top: -999px; left: 8px; background: var(--teal); color: var(--white); padding: 8px 16px; border-radius: var(--radius); font-size: .9rem; z-index: 9999; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px; /* touch target */
}
.btn-cta   { background: var(--amber); color: var(--ink); box-shadow: 0 4px 14px rgba(232,151,46,.35); font-weight: 700; }
.btn-cta:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,151,46,.55), 0 0 0 2px var(--ink); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-soft); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-large { font-size: 1.05rem; padding: 15px 32px; min-height: 52px; }

/* === TBD banner (placeholder data warning) === */
.tbd-banner {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  color: #78350f;
  text-align: center;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 500;
  z-index: 1000;
  position: relative;
}

/* === Layout === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--section-y) 0; }
.section--cream { background: var(--cream); }
.section--cream-warm { background: var(--cream-warm); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--dark h2, .section--dark h3 { color: var(--text-light); }
.section--teal { background: var(--teal); color: var(--text-light); }
.section--teal h2, .section--teal h3 { color: var(--text-light); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px,7vw,72px); }
.section-head p { font-size: 1.1rem; color: var(--text-muted); margin-top: 16px; }

/* eyebrow chip */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232,151,46,.12);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section--dark .eyebrow, .section--teal .eyebrow { background: rgba(232,151,46,.25); }

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================================
   STICKY HEADER
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: box-shadow .3s;
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header__logo img { height: 46px; width: auto; }
.site-header__nav {
  display: none;
  flex: 1;
  gap: 2px;
}
.site-header__nav a {
  color: var(--text-light-muted);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-header__nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.site-header__nav a.is-active { color: var(--amber); }
.site-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.site-header__phone {
  display: none; /* hidden on mobile — sticky bar handles CTA */
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--amber);
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open state */
.site-header.is-nav-open .site-header__nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  padding: 16px var(--pad-x) 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  z-index: 899;
}
.site-header.is-nav-open .site-header__nav a { display: block; padding: 12px 16px; font-size: 1rem; }

/* Desktop nav */
@media (min-width: 1024px) {
  .site-header__nav { display: flex; }
  .site-header__phone { display: block; }
  .nav-toggle { display: none; }
  .site-header.is-nav-open .site-header__nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
}

/* ========================================================
   MOBILE PHOTO BANNER (non-home, mobile only)
   ======================================================== */
.mobile-banner {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
}
.mobile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mobile-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,61,66,.35) 0%, rgba(10,61,66,.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
}
.mobile-banner__pill {
  background: var(--amber);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
@media (min-width: 768px) {
  .mobile-banner { display: none; }
}

/* ========================================================
   HOME HERO
   ======================================================== */
.home-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subject (locksmith tech + keys) sits at ~70% horizontal in the source —
     keep him visible on wide viewports by anchoring crop to the right. */
  object-position: 70% center;
}
@media (max-width: 767px) {
  .home-hero__bg {
    /* Mobile: subject anchored near center so face stays in frame at 390px wide */
    object-position: 65% center;
  }
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  /* Desktop: dark only behind text on the left, fully transparent over the photo subject on the right */
  background: linear-gradient(90deg, rgba(10,61,66,.82) 0%, rgba(10,61,66,.70) 25%, rgba(10,61,66,.30) 55%, rgba(10,61,66,0) 80%);
}
@media (max-width: 767px) {
  .home-hero__overlay {
    /* Mobile: text spans the width, so use a gentle vertical fade for legibility without hiding the photo */
    background: linear-gradient(180deg, rgba(10,61,66,.30) 0%, rgba(10,61,66,.55) 60%, rgba(10,61,66,.65) 100%);
  }
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px,14vw,120px) var(--pad-x) clamp(64px,12vw,100px);
}
.home-hero__text { max-width: 620px; }
.home-hero__text h1 {
  color: var(--white);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.06;
  margin-bottom: 20px;
}
.home-hero__sub {
  color: rgba(247,243,238,.87);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.home-hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247,243,238,.85);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Home: mobile photo banner between header and hero — home-specific */
.home-mobile-banner {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
}
.home-mobile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-mobile-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,61,66,.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-mobile-banner__text {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .home-mobile-banner { display: none; }
  .home-hero { min-height: 80vh; }
}

/* ========================================================
   PAGE HERO (services, about, areas, etc.)
   ======================================================== */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(36px,8vw,64px);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  /* Desktop: dark behind text on the left, transparent over the photo subject on the right */
  background: linear-gradient(90deg, rgba(10,61,66,.80) 0%, rgba(10,61,66,.65) 28%, rgba(10,61,66,.25) 58%, rgba(10,61,66,0) 82%);
}
@media (max-width: 767px) {
  .page-hero__overlay {
    /* Mobile: text spans the width and sits bottom-left, so use a vertical fade */
    background: linear-gradient(180deg, rgba(10,61,66,.25) 0%, rgba(10,61,66,.50) 60%, rgba(10,61,66,.65) 100%);
  }
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px,10vw,80px) var(--pad-x) 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero__sub { color: rgba(247,243,238,.85); font-size: clamp(1rem,2vw,1.15rem); max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.breadcrumb a, .breadcrumb span { font-size: .82rem; color: rgba(247,243,238,.65); font-family: var(--font-head); font-weight: 500; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { color: rgba(247,243,238,.4); }
@media (min-width: 768px) {
  .page-hero { min-height: 50vh; }
}

/* ========================================================
   SERVICES GRID
   ======================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--teal-soft); }

/* Photo at the top of each card — relevant to that service line */
.svc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream-warm);
}
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
  display: block;
}
.svc-card:hover .svc-card__media img { transform: scale(1.04); }

/* Small icon overlay sits FULLY INSIDE the photo at the bottom-left, badge style.
   Negative offsets here would be clipped by .svc-card { overflow: hidden }. */
.svc-card__icon {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: background .2s, color .2s, transform .2s;
  z-index: 2;
}
.svc-card:hover .svc-card__icon { background: var(--amber); color: var(--white); transform: translateY(-2px); }

/* Body sits below the photo */
.svc-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-card h3 { color: var(--teal); margin-bottom: 10px; }
.svc-card p { color: var(--text-muted); font-size: .97rem; flex: 1; }
.svc-card__list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.svc-card__list li { font-size: .88rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.svc-card__list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; background: var(--amber); border-radius: 50%; }
.svc-card__more { margin-top: 20px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.svc-card:hover .svc-card__more { color: var(--amber-deep); }
.arrow { transition: transform .2s; }
.svc-card:hover .arrow { transform: translateX(4px); }

@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* ========================================================
   TRUST / STATS BAR
   ======================================================== */
.trust-bar {
  background: var(--bg-dark);
  padding: clamp(28px,5vw,44px) 0;
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-bar__item {}
.trust-bar__value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem,4vw,2.4rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-bar__label { font-size: .88rem; color: var(--text-light-muted); line-height: 1.4; }
@media (min-width: 640px) { .trust-bar__grid { grid-template-columns: repeat(4, 1fr); } }

/* ========================================================
   REVIEWS
   ======================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.review-card__stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-card__text { font-size: .97rem; line-height: 1.65; color: var(--text); margin-bottom: 20px; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__portrait { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-card__name { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--teal); }
.review-card__meta { font-size: .8rem; color: var(--text-muted); }

@media (min-width: 640px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* ========================================================
   PROCESS STEPS
   ======================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step-counter;
}
.step { position: relative; padding-left: 72px; counter-increment: step-counter; }
.step::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: .97rem; }
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .step { padding-left: 0; padding-top: 72px; }
  .step::before { top: 0; }
}

/* ========================================================
   AREAS GRID
   ======================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.area-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--teal);
  cursor: default;
  transition: box-shadow .2s, border-color .2s;
}
.area-chip:hover { box-shadow: var(--shadow); border-color: var(--teal-soft); }
.area-chip svg { color: var(--amber); flex-shrink: 0; }
@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(4, 1fr); } }

/* ========================================================
   FAQ ACCORDION
   ======================================================== */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  transition: color .2s;
  min-height: 44px;
}
.faq-toggle:hover { color: var(--amber-deep); }
.faq-toggle svg { flex-shrink: 0; transition: transform .3s var(--ease); color: var(--amber); }
.faq-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s;
}
.faq-body.is-open { max-height: 400px; }
.faq-body p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.7;
}

/* ========================================================
   CONTACT FORM
   ======================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px,6vw,48px);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  min-height: 44px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,92,99,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; }
.form-success { display: none; background: rgba(13,92,99,.08); border: 1px solid var(--teal); border-radius: var(--radius); padding: 20px; text-align: center; }
.form-success.is-visible { display: block; }
.form-error-msg { display: none; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; margin-top: 12px; }
.form-error-msg.is-visible { display: block; }
/* honeypot */
.hp-field { display: none; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1fr; } }

/* ========================================================
   CTA BAND
   ======================================================== */
.cta-band {
  background: var(--teal);
  padding: clamp(48px,9vw,88px) 0;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.cta-band__text h2 { color: var(--white); }
.cta-band__text p { color: rgba(247,243,238,.82); max-width: 560px; margin-top: 12px; font-size: 1.05rem; }
.cta-band__fud { margin-top: 16px; font-size: .82rem; color: rgba(247,243,238,.7); font-family: var(--font-head); font-weight: 500; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; text-align: left; }
  .cta-band__text { flex: 1; }
  .cta-band__actions { flex-direction: column; }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: clamp(48px,9vw,88px) 0 0;
}
/* === DARK-SECTION OVERRIDES =========================================
   Global rules (p { color:var(--text) }, a { color:var(--teal) },
   h4 { color:var(--text-muted) }) would otherwise render near-black /
   dark-teal text on dark backgrounds (footer, dark bands, hero overlay,
   CTA band). Override here to force readable light variants. */
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span:not(.skip-link),
.site-footer strong { color: var(--text-light-muted); }
.site-footer__brand p { color: var(--text-light); }  /* description: highest contrast */
.site-footer h4 { color: var(--amber); }              /* keep amber heading style */
.site-footer__list a:hover,
.site-footer__credit a:hover { color: var(--white); }

.section--dark,
.section--dark p,
.section--dark li,
.section--dark span,
.cta-band,
.cta-band__text p,
.cta-band p,
.home-hero,
.home-hero p,
.home-hero span,
.page-hero,
.page-hero p,
.page-hero span { color: var(--text-light); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.cta-band h1,
.cta-band h2,
.cta-band h3,
.home-hero h1,
.page-hero h1 { color: var(--white); }
.section--dark a:not(.btn):not(.btn-cta):not(.btn-primary):not(.btn-outline-light),
.cta-band a:not(.btn):not(.btn-cta):not(.btn-primary):not(.btn-outline-light),
.home-hero a:not(.btn):not(.btn-cta):not(.btn-primary):not(.btn-outline-light),
.page-hero a:not(.btn):not(.btn-cta):not(.btn-primary):not(.btn-outline-light) { color: var(--amber); }
.home-hero__sub,
.page-hero__sub { color: var(--text-light); opacity: .92; }
.site-footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.site-footer__brand img { margin-bottom: 16px; }
.site-footer__brand p { font-size: .92rem; line-height: 1.65; max-width: 320px; }
.footer-phone-line { margin-top: 14px; }
.footer-phone {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}
.footer-phone:hover { color: var(--white); }
.footer-area, .footer-hours { font-size: .85rem; color: var(--text-light-muted); margin-top: 6px; }
.site-footer h4 {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.site-footer__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list li { font-size: .9rem; }
.site-footer__list a { color: var(--text-light-muted); }
.site-footer__list a:hover { color: var(--white); }
.site-footer__list span { color: var(--text-light-muted); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--border-dark);
  font-size: .82rem;
  color: var(--text-light-muted);
}
.site-footer__credit a { color: var(--text-light-muted); }
.site-footer__credit a:hover { color: var(--white); }
.site-footer__legal { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.site-footer__legal a { color: var(--text-light-muted); }
.site-footer__legal a:hover { color: var(--white); }
.site-footer__legal span { color: var(--text-light-muted); opacity: .6; }

@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ========================================================
   LEGAL DOCUMENT PAGES (terms, privacy)
   ======================================================== */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.legal-doc h2 {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--teal);
  margin: 36px 0 12px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin: 0 0 16px; }
.legal-doc ul { margin: 0 0 20px 24px; padding: 0; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--teal); border-bottom: 1px solid currentColor; }
.legal-doc a:hover { color: var(--amber-deep); }
.container--narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ========================================================
   URGENCY STRIP (top of every page — emergency local-service playbook)
   ======================================================== */
.urgency-strip {
  background: var(--amber);
  color: var(--ink);
  text-align: center;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 8px 14px;
  position: relative;
  z-index: 50;
}
.urgency-strip__link {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.urgency-strip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #C0392B;
  box-shadow: 0 0 0 4px rgba(192,57,43,.25);
  animation: urgency-pulse 1.6s infinite;
  flex: 0 0 auto;
}
@keyframes urgency-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(192,57,43,.25); }
  50%      { box-shadow: 0 0 0 8px rgba(192,57,43,.0); }
}
@media (prefers-reduced-motion: reduce) { .urgency-strip__dot { animation: none; } }
.urgency-strip__sep { opacity: .55; }
.urgency-strip__cta {
  text-decoration: underline;
  font-weight: 700;
}
@media (max-width: 480px) {
  .urgency-strip { font-size: .76rem; padding: 7px 10px; }
  .urgency-strip__city { display: none; }
  .urgency-strip__sep:first-of-type { display: none; }
}

/* ========================================================
   EYEBROW — urgent variant (locksmith / emergency local service)
   ======================================================== */
.eyebrow--urgent {
  color: #C0392B;
  font-weight: 700;
}
.eyebrow--urgent::before {
  content: "\2022";
  margin-right: 6px;
  color: #C0392B;
  font-size: 1.4em;
  vertical-align: -2px;
}

/* ========================================================
   HERO FUD reducers (under CTA buttons)
   ======================================================== */
.hero__fud {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--text-light);
  opacity: .8;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .01em;
}

/* ========================================================
   HOME HELP-NOW FORM (compact, emergency-framed, side-by-side)
   ======================================================== */
.home-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .home-form-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.home-form-intro h2 { margin: 8px 0 14px; }
.home-form-intro p { color: var(--text-muted); line-height: 1.65; }
.home-form-phone { color: var(--teal); font-weight: 700; border-bottom: 1px solid currentColor; }
.home-form-phone:hover { color: var(--amber-deep); }
.home-form-bullets {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-form-bullets li {
  position: relative;
  padding-left: 26px;
  font-size: .96rem;
  color: var(--text);
  line-height: 1.5;
}
.home-form-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232,151,46,.18);
}
.home-form-call { margin: 18px 0 8px; display: inline-flex; align-items: center; }

/* Form panel — urgent variant (red eyebrow + tight head + FUD line under button) */
.form-panel--urgent {
  border: 2px solid var(--amber);
  box-shadow: 0 14px 32px rgba(232,151,46,.15);
}
.form-panel__head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.form-panel__badge {
  display: inline-block;
  background: rgba(192,57,43,.10);
  color: #C0392B;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.form-panel__sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
  line-height: 1.55;
}
.form-panel__fud {
  margin-top: 14px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 500;
}
.form-optional {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ========================================================
   MOBILE STICKY CALL BAR (mobile only — never scrolls away)
   ======================================================== */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--amber);
  color: var(--white);
  padding: 14px 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  transition: background .2s;
  min-height: 56px;
}
.sticky-call:hover { background: var(--amber-deep); color: var(--white); }
.sticky-call__icon { flex-shrink: 0; }
/* Body padding so content isn't hidden behind the sticky bar on mobile */
@media (max-width: 767px) {
  .sticky-call { display: flex; }
  body { padding-bottom: 56px; }
  /* On home mobile, show banner above hero */
  .home-mobile-banner { display: block; }
}

/* ========================================================
   GALLERY STRIP (body sections beyond hero)
   ======================================================== */
.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery-strip img {
  border-radius: var(--radius);
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .gallery-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-strip img { height: 260px; }
}

/* ========================================================
   TWO-COLUMN SECTIONS (about, etc.)
   ======================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.two-col--reverse .two-col__media { order: -1; }
.two-col__media img { border-radius: var(--radius-lg); width: 100%; height: 360px; object-fit: cover; box-shadow: var(--shadow-lg); }
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--reverse .two-col__media { order: unset; }
}

/* ========================================================
   MAP EMBED
   ======================================================== */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-wrapper iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ========================================================
   LISTS + MISC
   ======================================================== */
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .97rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* [data-tbd] highlight for placeholder values */
[data-tbd] { outline: 2px dashed #f59e0b; outline-offset: 2px; }
