/* TorontoWindshieldRepair.com — style.css v8
   Warm paper, ink, one red. Space and soft surfaces instead of rules.
   Buttons use a.btn / button.btn selectors so content link styles never override them. */

:root {
  --paper: #F6F1E7;
  --surface: #FFFDF9;
  --sand: #EFE8DA;
  --ink: #1F1D1A;
  --muted: #6A6356;
  --hair: rgba(31, 29, 26, .09);
  --red: #B9381F;
  --red-dark: #9A2D17;
  --ny: #D9A21B; --sc: #3F74B5; --et: #3B8A5A; --ey: #8A5AA6; --mi: #C2557A; --br: #2E8C8C; --mk: #7A6A2E; --rh: #4F6B8A;
  --shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 8px 24px rgba(31, 29, 26, .06);
  --shadow-hover: 0 2px 4px rgba(31, 29, 26, .05), 0 14px 32px rgba(31, 29, 26, .09);
  --r: 16px;
  --r-sm: 10px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1120px;
  --narrow: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--red-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.hp { position: absolute; left: -5000px; }

/* ---------- Buttons ---------- */
a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 0;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
a.btn:active, button.btn:active { transform: translateY(1px); }
a.btn.btn-call, button.btn.btn-call { background: var(--red); color: #fff; }
a.btn.btn-call:hover, button.btn.btn-call:hover { background: var(--red-dark); color: #fff; }
a.btn.btn-quote, button.btn.btn-quote { background: var(--ink); color: var(--paper); }
a.btn.btn-quote:hover, button.btn.btn-quote:hover { background: #000; color: var(--paper); }
a.btn.btn-outline, a.btn.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
a.btn.btn-xl { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-icon { width: 18px; height: 18px; flex: none; }
.btn-stack { display: inline-flex; flex-direction: column; }
.btn-sub { font-size: .8rem; font-weight: 500; opacity: .9; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 231, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
a.logo { display: flex; flex-direction: column; gap: 1px; color: var(--ink); text-decoration: none; line-height: 1.15; }
a.logo:hover { color: var(--ink); }
.wm { font-family: var(--font); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.wm b { color: var(--red); font-weight: 700; }
.tagline { font-size: .74rem; color: var(--muted); }
.main-nav { display: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.site-header a.btn { min-height: 40px; padding: 8px 16px; font-size: .92rem; white-space: nowrap; }

/* ---------- Heroes ---------- */
.hero { padding: 40px 0 32px; }
.hero-lede { font-size: 1.12rem; color: var(--muted); max-width: 44ch; }
.hero-lede .dot { margin-right: 8px; }
.hero-actions { margin-top: 20px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.home-hero { padding: 48px 0 40px; }
.home-hero h1 { max-width: 16ch; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

/* Finder: one soft panel */
.finder { display: grid; gap: 10px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; margin-top: 24px; max-width: 760px; }
.finder-field { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--paper); }
.finder-field span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.finder-field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236A6356' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); padding: 2px 22px 2px 0; width: 100%; cursor: pointer; }
.finder-field select:focus { outline: none; }
.finder-field:focus-within { box-shadow: 0 0 0 2px var(--red); }
a.btn.finder-go { width: 100%; }
.finder.single { margin: 0 0 20px; max-width: 420px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section.soft, .section.tint { background: var(--sand); }
.section-head { max-width: 60ch; margin-bottom: 24px; }
.section-head p { color: var(--muted); }
.more-link { margin-top: 18px; }

/* ---------- Listing ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.list-head h2 { margin: 0; }
.result-count { margin: 0; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.shop-rows { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.shop { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px; transition: box-shadow .2s ease; }
.shop:hover { box-shadow: var(--shadow-hover); }
.shop.is-featured { box-shadow: var(--shadow), inset 0 0 0 2px rgba(185, 56, 31, .35); }
.shop h3 { margin: 0 0 4px; font-size: 1.25rem; }
.shop h3 a { color: var(--ink); text-decoration: none; }
.shop h3 a:hover { color: var(--red-dark); }
.shop-where { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
.shop-where .dot { margin-right: 7px; }
.shop-does { margin: 0; font-size: .95rem; }
.shop-hours { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.shop-act { display: flex; align-items: center; gap: 16px; }
.shop-act a.btn { flex: 1; font-family: var(--mono); font-weight: 500; letter-spacing: .01em; }
.shop-more { font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--red-dark); background: rgba(185, 56, 31, .1); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 1px; flex: none; }
.dot-north-york { background: var(--ny); } .dot-scarborough { background: var(--sc); } .dot-etobicoke { background: var(--et); } .dot-east-york { background: var(--ey); }
.dot-mississauga { background: var(--mi); } .dot-brampton { background: var(--br); } .dot-markham { background: var(--mk); } .dot-richmond-hill { background: var(--rh); }
.empty { display: none; padding: 18px 20px; background: var(--surface); border-radius: var(--r); color: var(--muted); }
.small-print { font-size: .86rem; color: var(--muted); }

/* Guides grid */
.guide-grid { display: grid; gap: 12px; }
a.guide-card { display: block; background: var(--surface); border-radius: var(--r); padding: 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
a.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
a.guide-card h3 { margin-bottom: 4px; }
a.guide-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Areas + featured */
.split { display: grid; gap: 32px; align-items: start; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.area-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 10px 16px; color: var(--ink); text-decoration: none; font-weight: 500; box-shadow: var(--shadow); }
a.area-chip:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
a.area-chip span { color: var(--muted); font-size: .88rem; }
.featured-open { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin-top: 8px; }
.featured-open h2 { font-size: 1.4rem; }
.featured-open p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 16px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Content pages ---------- */
.content-grid { display: grid; gap: 40px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose > h2:first-child, .prose > .details:first-child + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.aside-title { font-size: 1.25rem; }
aside .shop { padding: 18px; }
aside .shop-act { flex-wrap: wrap; }
.callout { background: var(--surface); border-radius: var(--r-sm); padding: 16px 20px; margin: 0 0 1.4em; box-shadow: var(--shadow); }
.callout p:last-child { margin: 0; }
.disclaimer { font-size: .88rem; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); }
.rule-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rule-table th, .rule-table td { text-align: left; padding: 12px 16px; vertical-align: top; }
.rule-table thead th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.rule-table tbody tr:nth-child(odd) { background: rgba(239, 232, 218, .55); }
.coin-figure { display: flex; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--r-sm); padding: 16px 20px; margin: 0 0 1.4em; box-shadow: var(--shadow); }
.coin-figure svg { width: 80px; height: 80px; flex: none; }
.coin-figure figcaption { font-size: .96rem; }
.sources { font-size: .88rem; color: var(--muted); padding-left: 1.2em; }
.sources li { margin-bottom: 6px; }
.details { margin: 0 0 1.6em; display: grid; gap: 2px; background: var(--surface); border-radius: var(--r); padding: 8px 20px; box-shadow: var(--shadow); }
.details div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; }
.details div + div { box-shadow: 0 -1px 0 var(--hair); }
.details dt { color: var(--muted); font-size: .9rem; }
.details dd { margin: 0; }
.owner-note { margin-top: 2em; font-size: .95rem; color: var(--muted); }
.legal h2 { font-size: 1.3rem; }

/* Forms */
.form-card { background: var(--surface); border-radius: var(--r); padding: 24px 20px; box-shadow: var(--shadow); max-width: 560px; border: 0 !important; }
.field { margin: 0 0 14px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field select { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r-sm); }
.field input:focus, .field select:focus { outline: none; border-color: var(--red); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--red); }
.form-card button.btn { width: 100%; }
.form-status { margin: 12px 0 0; font-size: .92rem; font-weight: 600; }
.form-status.is-error { color: var(--red-dark); }
.thanks, .error-page { padding: 56px 0 64px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC8B8; padding: 48px 0 32px; font-size: .94rem; margin-top: 0; }
.site-footer h2 { font-family: var(--font); color: #F6F1E7; font-size: .9rem; font-weight: 600; margin-bottom: .8em; }
.footer-grid { display: grid; gap: 28px; }
.footer-wm { margin: 0 0 .6em; }
.footer-wm .wm { color: #F6F1E7; font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #CFC8B8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 32px; padding-top: 18px; box-shadow: 0 -1px 0 rgba(246, 241, 231, .12); font-size: .85rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: #CFC8B8; }

/* ---------- Floating mobile bar ---------- */
.sticky-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: rgba(255, 253, 249, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 10px 30px rgba(31, 29, 26, .18); }
.sticky-bar a.btn { min-height: 46px; font-size: .95rem; }

/* ---------- Cookie banner (scoped, explicit values) ---------- */
#tw-consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: #FFFDF9; color: #1F1D1A; border-radius: 16px; padding: 18px; box-shadow: 0 16px 40px rgba(31, 29, 26, .22); font-family: "Inter", Arial, sans-serif; font-size: .92rem; line-height: 1.5; max-width: 460px; }
#tw-consent p { margin: 0 0 14px; color: #1F1D1A; }
#tw-consent a { color: #9A2D17; }
#tw-consent .tw-consent-actions { display: flex; gap: 8px; }
#tw-consent button.tw-btn { flex: 1; min-height: 44px; border-radius: 999px; font-family: "Inter", Arial, sans-serif; font-size: .95rem; font-weight: 600; cursor: pointer; }
#tw-consent button.tw-btn-accept { background: #1F1D1A; color: #F6F1E7; border: 0; }
#tw-consent button.tw-btn-decline { background: #EFE8DA; color: #1F1D1A; border: 0; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .finder { grid-template-columns: 1fr 1fr auto; align-items: stretch; }
  .finder.single { grid-template-columns: 1fr; }
  a.btn.finder-go { width: auto; padding: 0 28px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; }
  .shop-act { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; min-width: 190px; }
  aside .shop { grid-template-columns: 1fr; }
  aside .shop-act { flex-direction: row; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  #tw-consent { left: 20px; bottom: 20px; right: auto; }
  .main-nav { display: flex; gap: 2px; }
  .hero { padding: 56px 0 40px; }
  .home-hero { padding: 72px 0 56px; }
  .section { padding: 72px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 400px) { .wm { font-size: .9rem; } .site-header .wrap { gap: 10px; } .site-header a.btn { padding: 8px 14px; font-size: .88rem; } }
.slot { background: transparent; border-radius: var(--r); padding: 20px; display: grid; gap: 14px; box-shadow: inset 0 0 0 2px rgba(185, 56, 31, .28); }
.slot h3 { margin: 0 0 4px; font-size: 1.2rem; }
.slot .shop-does { color: var(--muted); }
.slot .shop-act a.btn { font-family: var(--font); }
@media (min-width: 720px) { .slot { grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; } .slot .shop-act { min-width: 190px; } }
