/*
 * geo.css — shared design system for the vertical GEO landing pages
 * (/plumber-answering-service, /electrician-answering-service, … /real-estate-answering-service).
 * Self-contained cluster stylesheet: mirrors the brand tokens used by
 * tradie-conversion.html and apps/web/src/styles.css (Figtree, mango/green
 * palette). One stylesheet keeps the 11-page cluster visually consistent and
 * each page's HTML lean (only per-page meta, JSON-LD, and content differ).
 */
:root {
  --ink: #171717;
  --ink-soft: #3c4043;
  --muted: #5f6368;
  --line: #e8eaed;
  --mango: #f59e0b;        /* official bright — borders, decorative accents */
  --mango-deep: #c96f00;   /* official deep — solid fills w/ white text, active */
  --mango-ink: #9c5a12;    /* official stem — AA-safe mango text on white/tint (5.4:1) */
  --mango-dark: #b56300;   /* darker deep — primary-button hover */
  --mango-bright: #f59e0b; /* bright — accents on dark surfaces */
  --blue: #1a73e8;
  --green: #15803d;
  --green-tint: #eaf6ee;
  --red: #b42318;
  --cream: #fff7ed;
  --surface: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 22px 70px rgba(23, 23, 23, 0.14);
  --shadow-sm: 0 4px 18px rgba(23, 23, 23, 0.08);
  --focus-ring: rgba(26, 115, 232, 0.55);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Figtree, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mango-ink); margin: 0 0 0.75rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-align: center; line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mango-deep); color: #fff; box-shadow: 0 10px 26px rgba(201, 111, 0, 0.28); }
.btn-primary:hover { background: var(--mango-dark); }
.btn-secondary { background: #fff; color: var(--mango-ink); border-color: #f2c9b3; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--mango); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 234, 237, 0.86);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.05rem; }
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a { font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.navlinks a:hover { color: var(--mango-ink); }
.nav .btn { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
@media (max-width: 720px) { .navlinks a:not(.btn) { display: none; } }

/* ---- Hero / answer block ---- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem; background: linear-gradient(180deg, var(--cream) 0%, #fff 72%); }
.hero h1 { max-width: 16ch; }
.hero-lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink-soft); max-width: 60ch; margin: 0 0 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 1rem; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }
.answer-card {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--mango); border-radius: var(--radius); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm); max-width: 68ch;
}
.answer-card p:last-child { margin-bottom: 0; }
.answer-card .lead-fact { font-weight: 700; color: var(--ink); }

/* ---- Sections ---- */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 62ch; margin-bottom: 1.75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---- Cited-stat callout ---- */
.stat-callout {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start;
  background: var(--green-tint); border: 1px solid #cfe8d6; border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 1.5rem 0;
}
.stat-callout .stat-num { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; color: var(--green); line-height: 1; letter-spacing: -0.03em; }
.stat-callout .stat-body p { margin: 0 0 0.4rem; }
.stat-callout cite { display: block; font-style: normal; font-size: 0.82rem; color: var(--muted); }
.stat-callout cite a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Failure-mode scenario ---- */
.scenario {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); margin: 1.25rem 0;
}
.scenario h3 { color: var(--red); }
.scenario p:last-child { margin-bottom: 0; }

/* ---- Fix steps ---- */
.steps { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.step .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mango-deep); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.step h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.step p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
.tech-note { font-size: 0.9rem; color: var(--muted); margin-top: 1.25rem; }
.tech-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Calculated-cost box ---- */
.calc {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 1.5rem 0;
}
.calc h3 { color: #fff; }
.calc .calc-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.8rem; font-size: 1.05rem; padding: 0.4rem 0; border-bottom: 1px dashed rgba(255,255,255,0.18); }
.calc .calc-row:last-of-type { border-bottom: none; }
.calc .calc-row .val { font-weight: 800; color: var(--mango-bright); margin-left: auto; }
.calc .calc-total { margin-top: 0.9rem; font-size: 1.15rem; font-weight: 800; }
.calc .calc-total .val { color: #ffd9a8; }
.calc small { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.95rem; font-size: 1.5rem; font-weight: 400; color: var(--mango-deep); transition: transform 0.15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 70ch; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---- Internal cross-links ---- */
.crosslinks { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .crosslinks { grid-template-columns: repeat(3, 1fr); } }
.crosslink { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); }
.crosslink:hover { border-color: var(--mango); }
.crosslink strong { display: block; color: var(--mango-ink); }
.crosslink span { font-size: 0.9rem; color: var(--muted); }

/* ---- Final CTA band ---- */
.cta-band { background: linear-gradient(135deg, #fff3e6 0%, #ffe6cf 100%); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }
.footer .foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--mango-ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Sticky mobile CTA ---- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; padding: 0.85rem 1rem; }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 76px; } }

/* ---- Utility ---- */
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 0; }
