/*
 * City landing pages (frontend/seo). Same tokens as src/app/globals.css
 * (light theme) and the same frame as components/marketing/public-shell.tsx.
 * No JavaScript, no web fonts beyond the self-hosted IBM Plex Sans.
 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --color-canvas: 250 250 248;
  --color-surface: 255 255 255;
  --color-surface-sunken: 242 242 238;
  --color-border: 226 226 220;
  --color-text: 22 24 26;
  --color-text-muted: 90 95 99;
  --color-text-subtle: 103 108 113;
  --color-primary: 28 122 42;
  --color-on-primary: 255 255 255;
  --color-primary-hover: 23 101 31;
  --color-primary-subtle: 232 243 233;
  --color-accent: 166 124 0;
  --color-accent-text: 115 85 0;
  --color-accent-bright: 227 178 60;
  --color-ink: 17 19 17;
  --color-on-ink: 245 245 240;
  --color-ink-muted: 168 173 168;
  --color-ink-border: 42 46 42;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 9999px;
  --e1: 0 1px 2px rgb(22 24 26 / 0.06);
  --e2: 0 8px 24px rgb(22 24 26 / 0.12);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--color-text));
  background: rgb(var(--color-canvas));
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: rgb(var(--color-primary)); text-underline-offset: 4px; }
a:hover { color: rgb(var(--color-primary-hover)); }
:focus-visible { outline: 2px solid rgb(var(--color-primary)); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 650; }
h3 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0.75rem 0 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.muted { color: rgb(var(--color-text-muted)); }
.caption { font-size: 0.8125rem; margin: 0.25rem 0; }
.label { font-size: 0.875rem; font-weight: 600; color: rgb(var(--color-text)); margin: 0 0 0.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: rgb(var(--color-accent-bright)); color: rgb(var(--color-ink)); padding: 0.5rem 0.75rem; border-radius: var(--r-sm); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(var(--color-surface) / 0.96); border-bottom: 1px solid rgb(var(--color-border)); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo img { height: 32px; width: auto; }
.header-nav { display: none; align-items: center; gap: 0.25rem; }
.header-nav a:not(.btn) { display: inline-flex; align-items: center; height: 36px; padding: 0 0.875rem; border-radius: var(--r-full); color: rgb(var(--color-text-muted)); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.header-nav a:not(.btn):hover { background: rgb(var(--color-surface-sunken)); color: rgb(var(--color-text)); }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-full); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); display: flex; flex-direction: column; gap: 0.25rem; width: min(18rem, calc(100vw - 2rem)); padding: 0.5rem; background: rgb(var(--color-surface)); border: 1px solid rgb(var(--color-border)); border-radius: var(--r-lg); box-shadow: var(--e2); }
.menu nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 0.75rem; border-radius: var(--r-md); color: rgb(var(--color-text)); text-decoration: none; font-weight: 500; }
@media (min-width: 768px) { .header-nav { display: flex; } .menu { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.25rem; border-radius: var(--r-full); background: rgb(var(--color-primary)); color: rgb(var(--color-on-primary)); font-weight: 600; text-decoration: none; transition: background-color 140ms var(--ease); }
.btn:hover { background: rgb(var(--color-primary-hover)); color: rgb(var(--color-on-primary)); }
.btn-sm { min-height: 36px; padding: 0 1rem; font-size: 0.875rem; margin-left: 0.5rem; }
.btn-lg { min-height: 52px; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; color: rgb(var(--color-on-ink)); font-weight: 500; }
.btn-ghost:hover { color: rgb(var(--color-accent-bright)); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 1rem 0; font-size: 0.875rem; color: rgb(var(--color-text-muted)); }
.crumbs a { color: rgb(var(--color-text-muted)); text-decoration: none; }
.crumbs a:hover { color: rgb(var(--color-text)); text-decoration: underline; }
.crumbs .sep { margin-left: 0.5rem; }
.crumbs [aria-current] { color: rgb(var(--color-text)); }

/* Hero: ink band with the gold rule, like the home page */
.hero { background: rgb(var(--color-ink)); color: rgb(var(--color-on-ink)); }
.hero > .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr minmax(0, 420px); } }
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: rgb(var(--color-on-ink) / 0.86); max-width: 62ch; }
.eyebrow { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--color-accent-bright)); }
.hero-media { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgb(var(--color-ink-border)); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.chips li { padding: 0.3rem 0.8rem; border: 1px solid rgb(var(--color-accent-bright) / 0.45); border-radius: var(--r-full); font-size: 0.875rem; color: rgb(var(--color-on-ink)); }
.gold-rule { height: 4px; background: rgb(var(--color-accent-bright)); }

/* Content */
.stack { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.card { background: rgb(var(--color-surface)); border: 1px solid rgb(var(--color-border)); border-radius: var(--r-lg); box-shadow: var(--e1); padding: 1.5rem; }
@media (min-width: 768px) { .card { padding: 2rem; } }
.section-label { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--color-accent-text)); }
.section-title { margin-bottom: 1rem; }
.two-col, .split-grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 768px) { .two-col, .split-grid { grid-template-columns: 1fr 1fr; } }
.split-grid > div { padding: 1.25rem; border-radius: var(--r-md); background: rgb(var(--color-surface-sunken)); }
.split-grid > div:last-child { background: rgb(var(--color-primary-subtle)); }
.check, .cross { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.check li, .cross li { position: relative; padding-left: 1.75rem; }
.check li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45rem; width: 0.55rem; height: 0.9rem; border: solid rgb(var(--color-primary)); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cross li { color: rgb(var(--color-text-muted)); }
.cross li::before, .cross li::after { content: ""; position: absolute; left: 0.15rem; top: 0.8rem; width: 0.85rem; height: 2px; background: rgb(var(--color-text-subtle)); transform: rotate(45deg); }
.cross li::after { transform: rotate(-45deg); }

/* Plans */
.tiers { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 768px) { .tiers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.tier { border: 1px solid rgb(var(--color-border)); border-radius: var(--r-lg); padding: 1.25rem; display: flex; flex-direction: column; }
.tier:last-child:not(:first-child) { border-color: rgb(var(--color-primary) / 0.5); box-shadow: 0 0 0 1px rgb(var(--color-primary) / 0.25); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tier-price { margin: 0; font-size: 1.5rem; font-weight: 700; color: rgb(var(--color-text)); }
.tier > p { color: rgb(var(--color-text-muted)); font-size: 0.9375rem; flex: 1; }
.tier-meta { display: flex; gap: 1.5rem; margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid rgb(var(--color-border)); font-size: 0.875rem; }
.tier-meta dt { color: rgb(var(--color-text-muted)); }
.tier-meta dd { margin: 0; font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.steps p { margin-top: 0.25rem; color: rgb(var(--color-text-muted)); font-size: 0.9375rem; }
.step-n { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: var(--r-full); background: rgb(var(--color-ink)); color: rgb(var(--color-accent-bright)); font-weight: 700; }

/* Local facts */
.facts { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.facts div { padding: 0.875rem 1rem; border-radius: var(--r-md); background: rgb(var(--color-surface-sunken)); }
.facts dt { font-size: 0.8125rem; color: rgb(var(--color-text-muted)); }
.facts dd { margin: 0.125rem 0 0; font-weight: 600; }

/* FAQ */
.faq { border-bottom: 1px solid rgb(var(--color-border)); }
.faq:first-of-type { margin-top: 0.75rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.375rem; color: rgb(var(--color-primary)); }
.faq[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 1rem; }
.faq p { margin: 0 0 1rem; color: rgb(var(--color-text-muted)); max-width: 75ch; }

/* Link lists and grids */
.link-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem 1.5rem; }
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-grid, .city-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } .city-grid { grid-template-columns: repeat(4, 1fr); } }
.svc a, .city-grid a { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; background: rgb(var(--color-surface)); border: 1px solid rgb(var(--color-border)); border-radius: var(--r-lg); box-shadow: var(--e1); color: rgb(var(--color-text)); text-decoration: none; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.svc a:hover, .city-grid a:hover { border-color: rgb(var(--color-primary) / 0.5); box-shadow: var(--e2); color: rgb(var(--color-text)); }
.svc p { color: rgb(var(--color-text-muted)); font-size: 0.9375rem; flex: 1; }
.svc .svc-meta { flex: 0; font-weight: 600; color: rgb(var(--color-primary)); }
.city-grid a { gap: 0.25rem; padding: 1rem; }
.city-grid .muted { font-size: 0.875rem; }
.az { display: grid; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 640px) { .az { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .az { grid-template-columns: repeat(4, 1fr); } }
.az h3 { color: rgb(var(--color-accent-text)); border-bottom: 1px solid rgb(var(--color-border)); padding-bottom: 0.25rem; }
.az ul { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.9375rem; }
.az li { padding: 0.125rem 0; }

/* Closing CTA */
.cta { background: rgb(var(--color-ink)); color: rgb(var(--color-on-ink)); border-radius: var(--r-lg); padding: 2rem; text-align: center; border-top: 4px solid rgb(var(--color-accent-bright)); }
.cta p { color: rgb(var(--color-on-ink) / 0.86); margin-bottom: 1.25rem; }

/* Footer */
.site-footer { background: rgb(var(--color-surface)); color: rgb(var(--color-text-muted)); border-top: 1px solid rgb(var(--color-border)); }
.footer-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid img { height: 32px; width: auto; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid nav a { color: rgb(var(--color-text-muted)); text-decoration: none; font-size: 0.875rem; }
.footer-grid nav a:hover { color: rgb(var(--color-text)); text-decoration: underline; }
.footer-grid p { font-size: 0.875rem; max-width: 48ch; }
.footer-base { border-top: 1px solid rgb(var(--color-border)); padding: 1rem 0; }
.footer-base a { color: inherit; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .actions, .cta { display: none; } .hero { background: none; color: inherit; } }
