/* ============================================================
   FlexiClean Town Pages — extends tokens.css + components.css
   Used by service-area-*.html and the picker.
   ============================================================ */

/* ---------- BREADCRUMB ---------- */
.fc-crumb {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--fc-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(242,244,247,0.55);
  margin-bottom: 0.5rem;
}
.fc-crumb a { color: rgba(242,244,247,0.55); }
.fc-crumb a:hover { color: var(--fc-aqua); }
.fc-crumb__sep { color: rgba(242,244,247,0.3); }
.fc-crumb__active { color: var(--fc-aqua); }

/* ---------- HERO CHIPS (drive-time, response) ---------- */
.fc-chiprow { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.fc-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--fc-font-mono); font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--fc-line-strong);
  border-radius: var(--fc-radius-pill);
  background: rgba(11,29,48,0.5);
  backdrop-filter: blur(8px);
  color: rgba(242,244,247,0.85);
}
.fc-chip--em {
  color: var(--fc-emerald);
  border-color: rgba(22,178,142,0.4);
  background: rgba(22,178,142,0.06);
}
.fc-chip svg { color: currentColor; }
.fc-chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}

/* ---------- LOCAL REASONS (3-up grid) ---------- */
.fc-reasons {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .fc-reasons { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.fc-reason {
  position: relative;
  background: var(--fc-navy-1);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius-xl);
  padding: 2rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color var(--fc-base) var(--fc-ease), transform var(--fc-base) var(--fc-ease);
  overflow: hidden;
}
.fc-reason:hover {
  border-color: rgba(40,193,208,0.35);
  transform: translateY(-2px);
}
.fc-reason__num {
  font-family: var(--fc-font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--fc-aqua);
  text-transform: uppercase;
}
.fc-reason__title {
  font-family: var(--fc-font-display); font-weight: 600;
  font-size: 1.35rem; line-height: 1.15; margin: 0;
  letter-spacing: -0.01em;
}
.fc-reason__body { font-size: 0.95rem; color: rgba(242,244,247,0.72); line-height: 1.55; }
.fc-reason::after {
  content: ""; position: absolute; right: -30%; bottom: -50%; width: 60%; height: 100%;
  background: var(--fc-glow-aqua); opacity: 0.25; pointer-events: none;
}

/* ---------- NEIGHBORHOODS ---------- */
.fc-hoods {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 880px) { .fc-hoods { grid-template-columns: 1fr; } }

.fc-hoods__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fc-hood {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--fc-line-strong);
  border-radius: var(--fc-radius-pill);
  background: var(--fc-navy-1);
  color: rgba(242,244,247,0.88);
  font-size: 0.88rem;
  transition: border-color var(--fc-fast) var(--fc-ease), color var(--fc-fast) var(--fc-ease);
}
.fc-hood::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--fc-aqua);
  box-shadow: 0 0 6px var(--fc-aqua);
}
.fc-hood:hover { border-color: var(--fc-aqua); color: var(--fc-white); }

/* Mini-map ---------- */
.fc-minimap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, var(--fc-navy-1), var(--fc-navy-2));
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius-xl);
  overflow: hidden;
  padding: 1.5rem;
}
.fc-minimap__title {
  position: absolute; top: 1rem; left: 1.25rem;
  font-family: var(--fc-font-mono); font-size: 0.72rem; letter-spacing: var(--fc-tracking-label);
  color: var(--fc-aqua); text-transform: uppercase;
  z-index: 2;
}
.fc-minimap__coast {
  position: absolute; inset: 0;
  opacity: 0.5;
}
.fc-minimap__pin {
  position: absolute;
  width: 14px; height: 14px;
  background: rgba(40,193,208,0.55);
  border: 2px solid var(--fc-aqua);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.fc-minimap__pin--active {
  width: 22px; height: 22px;
  background: var(--fc-emerald);
  border-color: var(--fc-white);
  box-shadow: 0 0 0 6px rgba(22,178,142,0.18), 0 0 24px rgba(22,178,142,0.5);
  z-index: 3;
}
.fc-minimap__pin--active::after {
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--fc-font-mono); font-size: 0.75rem;
  background: var(--fc-white); color: var(--fc-navy);
  padding: 0.25rem 0.6rem;
  border-radius: var(--fc-radius-sm);
  white-space: nowrap;
}
.fc-minimap__pin--active::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px);
  width: 8px; height: 8px; background: var(--fc-white);
  transform: translateX(-50%) rotate(45deg);
}
.fc-minimap__legend {
  position: absolute; bottom: 1rem; left: 1.25rem; right: 1.25rem;
  display: flex; justify-content: space-between;
  font-family: var(--fc-font-mono); font-size: 0.72rem;
  color: rgba(242,244,247,0.55);
  letter-spacing: 0.06em;
  z-index: 2;
}

/* ---------- FEATURED SERVICE BLOCK (town spotlight) ---------- */
.fc-spotlight {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  background: linear-gradient(135deg, var(--fc-navy-2), var(--fc-navy-1));
  border: 1px solid rgba(40,193,208,0.25);
  border-radius: var(--fc-radius-xl);
  overflow: hidden;
}
@media (min-width: 960px) {
  .fc-spotlight { grid-template-columns: 1fr 1fr; }
}
.fc-spotlight::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: var(--fc-glow-aqua); opacity: 0.55; pointer-events: none;
}
.fc-spotlight__body {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; z-index: 1;
}
.fc-spotlight__photo {
  min-height: 320px;
  background-size: cover; background-position: center;
  position: relative;
}
.fc-spotlight__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,48,0.5) 0%, transparent 50%);
}
.fc-spotlight__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  width: max-content;
  font-family: var(--fc-font-mono); font-size: 0.75rem;
  letter-spacing: var(--fc-tracking-label); text-transform: uppercase;
  color: var(--fc-emerald);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(22,178,142,0.3);
  border-radius: var(--fc-radius-pill);
  background: rgba(22,178,142,0.08);
}
.fc-spotlight__title {
  font-family: var(--fc-font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0; max-width: 18ch;
  text-wrap: balance;
}
.fc-spotlight__copy {
  font-size: 1rem; color: rgba(242,244,247,0.75); line-height: 1.6;
  max-width: 50ch;
}
.fc-spotlight__bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.5rem;
  font-size: 0.92rem; color: rgba(242,244,247,0.8);
}
.fc-spotlight__bullets li { display: flex; gap: 0.6rem; align-items: flex-start; }
.fc-spotlight__bullets li::before { content: "✓"; color: var(--fc-emerald); font-weight: 700; flex: 0 0 auto; }
.fc-spotlight__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.fc-spotlight__price {
  font-family: var(--fc-font-mono); color: var(--fc-aqua); font-size: 0.95rem;
  margin-top: -0.25rem;
}

/* ---------- SECONDARY SERVICES (compact row) ---------- */
.fc-altsvcs {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fc-altsvc {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--fc-navy-1);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius-lg);
  padding: 1.25rem 1.25rem 1.1rem;
  transition: border-color var(--fc-fast) var(--fc-ease), transform var(--fc-fast) var(--fc-ease);
}
.fc-altsvc:hover { border-color: rgba(40,193,208,0.35); transform: translateY(-2px); color: var(--fc-white); }
.fc-altsvc__name { font-family: var(--fc-font-display); font-weight: 600; font-size: 1.05rem; }
.fc-altsvc__price { font-family: var(--fc-font-mono); font-size: 0.82rem; color: var(--fc-aqua); }
.fc-altsvc__desc { font-size: 0.85rem; color: rgba(242,244,247,0.65); line-height: 1.45; }

/* ---------- TOWN PICKER (service-areas/index.html) ---------- */
.fc-pickergrid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.fc-pickcard {
  position: relative;
  background: var(--fc-navy-1);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius-xl);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color var(--fc-base) var(--fc-ease), transform var(--fc-base) var(--fc-ease);
  overflow: hidden;
}
.fc-pickcard:hover {
  border-color: rgba(40,193,208,0.4);
  transform: translateY(-4px);
  color: var(--fc-white);
}
.fc-pickcard::after {
  content: ""; position: absolute; right: -40%; bottom: -60%; width: 80%; height: 100%;
  background: var(--fc-glow-aqua); opacity: 0.2; pointer-events: none;
  transition: opacity var(--fc-base) var(--fc-ease);
}
.fc-pickcard:hover::after { opacity: 0.5; }
.fc-pickcard__name {
  font-family: var(--fc-font-display); font-weight: 700; font-size: 1.6rem;
  line-height: 1.1; letter-spacing: -0.01em;
}
.fc-pickcard__meta {
  font-family: var(--fc-font-mono); font-size: 0.78rem;
  color: rgba(242,244,247,0.65); letter-spacing: 0.04em;
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.fc-pickcard__meta b { color: var(--fc-aqua); font-weight: 500; }
.fc-pickcard__tag {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--fc-font-mono); font-size: 0.7rem;
  color: var(--fc-emerald);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(22,178,142,0.3);
  border-radius: var(--fc-radius-pill);
  background: rgba(22,178,142,0.08);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.fc-pickcard__cta {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--fc-font-mono); font-size: 0.8rem;
  color: var(--fc-aqua); letter-spacing: 0.04em;
}
.fc-pickcard__cta::after { content: " →"; transition: transform var(--fc-fast) var(--fc-ease); display: inline-block; }
.fc-pickcard:hover .fc-pickcard__cta::after { transform: translateX(4px); }

/* ---------- LOCAL REVIEWS (compact, town-tagged) ---------- */
.fc-localreview__hood {
  display: inline-block;
  font-family: var(--fc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--fc-aqua);
  text-transform: uppercase;
  margin-right: 0.5rem;
}

/* ============================================================
   TOWN CARD GLOW — town-specific hover (extends MOTION & DEPTH v2)
   The universal motion layer (reveal, button sheen, FAQ, generic
   card depth) now lives in components.css and is shared site-wide.
   This block only adds the diffuse aqua "light behind the card"
   to the town-only cards (reason / altsvc / pickcard), matching the
   homepage service grid. Inherited by every service-area-*.html.
   ============================================================ */

.fc-reason,
.fc-altsvc,
.fc-pickcard {
  transition: border-color var(--fc-base) var(--fc-ease),
              transform var(--fc-base) var(--fc-ease),
              box-shadow var(--fc-base) var(--fc-ease);
}
.fc-reason:hover,
.fc-altsvc:hover,
.fc-pickcard:hover {
  border-color: rgba(40, 193, 208, 0.35);
  box-shadow: var(--fc-shadow-aqua);
}

/* Diffuse radial light that switches on behind the card on hover.
   .fc-reason / .fc-pickcard already own ::after — we just brighten it.
   .fc-altsvc gets its own glow layer. */
.fc-reason::after { transition: opacity var(--fc-base) var(--fc-ease); }
.fc-reason:hover::after { opacity: 0.55; }

.fc-altsvc { position: relative; overflow: hidden; }
.fc-altsvc::after {
  content: ""; position: absolute; right: -35%; bottom: -55%;
  width: 70%; height: 100%;
  background: var(--fc-glow-aqua);
  opacity: 0; pointer-events: none;
  transition: opacity var(--fc-base) var(--fc-ease);
}
.fc-altsvc:hover::after { opacity: 0.45; }

/* Spotlight is a large block — soft resting shadow, no jump. */
.fc-spotlight { box-shadow: var(--fc-shadow-card); }

/* ============================================================
   MOBILE OPTIMIZATION LAYER — 2026-08-06
   ------------------------------------------------------------
   The 9 service-area pages measured ~10,400px at 375px wide.
   These three blocks were 2,650px of that. Desktop layout is
   untouched (the multi-column rules live at min-width 880/960).
   ============================================================ */
@media (max-width: 720px) {

  /* --- LOCAL REASONS: 880px. The copy is the SEO value and stays
     word for word; 2rem/1.75rem of padding per card does not.
     Kept at one column on purpose — these are 30-word paragraphs
     and a 164px column would shred them. --- */
  .fc-reasons { gap: 0.75rem; }
  .fc-reason { padding: 1.25rem 1.15rem 1.15rem; gap: 0.45rem; }
  .fc-reason__title { font-size: 1.1rem; line-height: 1.25; }
  .fc-reason__body { font-size: 0.9rem; line-height: 1.5; }

  /* --- SPOTLIGHT: 1,167px, and 320px of it was a photo with a
     hard min-height meant for a 2-column desktop cell. --- */
  .fc-spotlight__body { padding: 1.5rem 1.15rem; gap: 0.7rem; }
  .fc-spotlight__title { font-size: 1.5rem; line-height: 1.2; }
  .fc-spotlight__bullets { grid-template-columns: 1fr 1fr; gap: 0.5rem 0.75rem; font-size: 0.85rem; }
  .fc-spotlight__photo { min-height: 200px; }

  /* --- SECONDARY SERVICES: 4 full-width cards, 601px, each one a
     name + price + one line. They pair up cleanly. --- */
  .fc-altsvcs { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .fc-altsvc { padding: 0.9rem 0.9rem 0.85rem; gap: 0.25rem; }
  .fc-altsvc__name { font-size: 0.95rem; line-height: 1.25; }
  .fc-altsvc__desc { font-size: 0.8rem; line-height: 1.4; }

  /* Touch devices keep the sticky :hover lift otherwise. */
  .fc-reason:hover, .fc-altsvc:hover { transform: none; }
}

/* --- Second pass, 2026-08-06. These two live here rather than in
   components.css because town.css loads *after* it, so the base
   rules in this file were winning the cascade. --- */
@media (max-width: 720px) {
  /* The four trust badges wrapped onto 3-4 lines = 126px. A single
     horizontal scroll row was tried and reverted: the chips hold no
     focusable children, so the row had no keyboard operation (WCAG
     2.1.1), and measurement showed it pushed "24h re-clean guarantee"
     and "5.0/5 · Verified reviews" — the two strongest trust signals
     on the page — off screen behind a hidden scrollbar. Shrinking the
     badges instead fits them in two visible rows for a similar saving
     and costs nothing in accessibility. */
  .fc-chiprow { gap: 0.4rem; }
  .fc-chip { padding: 0.35rem 0.6rem; font-size: 0.7rem; gap: 0.35rem; }
  .fc-chip svg { width: 11px; height: 11px; }

  /* .fc-hoods is `1.1fr 1fr` at every width — at 375px that's two
     ~170px columns with a pill list crushed into one of them. */
  .fc-hoods { grid-template-columns: 1fr; gap: 1.25rem; }
  .fc-hood { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
}

/* --- Third pass, 2026-08-16. Mobile legibility floor: nothing visible
   below 12px. These three live here and not in components.css for the
   reason in gotcha #16 — components.css loads BEFORE this file, so a
   same-specificity rule there can never win. The bare `.fc-chip` rule
   added to components.20260816.css did exactly that and stayed at
   11.2px.

   Base specificity checked for each one before writing the override:
     .fc-chip            (0,1,0) — set to 0.7rem in the 2026-08-06
                         block above. Same specificity, but later in
                         the SAME file, so source order decides it.
     .fc-minimap__title  (0,1,0) — 0.72rem, base rule, no media query.
     .fc-minimap__legend (0,1,0) — the two <span>s only inherit 0.72rem
                         from the flex container, so the override
                         targets `span` (0,1,1) and beats it outright.

   `.fc-map__label` also computes to 11.2px but lives inside
   `.fc-map__canvas`, which is display:none below 720px — not visible,
   not a legibility bug, deliberately left alone.

   Everything is inside the media query on purpose: desktop scroll
   height must not move. --- */
@media (max-width: 720px) {
  .fc-chip { font-size: 0.75rem; }
  .fc-minimap__title { font-size: 0.75rem; }
  .fc-minimap__legend span { font-size: 0.75rem; }

  /* Found by measuring instead of trusting the list: `.fc-pickcard__tag`
     (0,1,0, 0.7rem, no media query) shipped at 11.2px on
     `service-areas.html`, which loads this file too. The floor is a
     property of the page, not of the three classes someone happened to
     name — scan every town.css page, not just the town pages. */
  .fc-pickcard__tag { font-size: 0.75rem; }

  /* `.fc-wizsteps li` (0,1,1, 0.72rem) is the last one under the floor:
     the four ZIP/Property/Details/Contact steps on `estimate.html` at
     11.52px. That class is owned by components.css, not by this file —
     it is only patched here because components.20260816.css is frozen
     and this file loads after it, which is the same cascade fact that
     put the rules above in this file. **Move it back to
     components.<next>.css at the next bump of that file** and delete
     this rule; a components-owned class living in town.css is a trap
     for whoever greps for it. Same selector shape (0,1,1) so it wins on
     load order, not by inflating specificity. */
  .fc-wizsteps li { font-size: 0.75rem; }
}

/* --- FIRST VIEW ON SMALL PHONES: the town hero starts higher, so the
   "Call" button ends above the Amira launcher at 375x812 instead of
   running under it. --- */
@media (max-width: 420px) {
  .fc-hero2:has(> .fc-availcard) { padding-top: 0.75rem; }
}
