/* ============================================================
   T-Town Heating & Air — design system
   Source: awesome-design-md / lamborghini DESIGN.md, adapted.
   True black canvas, surface layering instead of shadows, one gold
   accent reserved for calls to action and highlights, zero-radius
   geometry, uppercase condensed display type.
   Dark is the default look; light is an opt-in via the theme toggle.
   ============================================================ */

/* ---- Tokens (default: dark / "night") ---- */
:root {
  /* Lamborghini-sheet palette */
  --abyss:      #000000;   /* Level 0 page */
  --iron:       #181818;   /* Level 1 deep */
  --charcoal:   #202020;   /* Level 1 surface */
  --graphite:   #494949;
  --ash:        #7D7D7D;
  --steel:      #969696;
  --smoke:      #F5F5F5;
  --gold:       #FFC000;   /* sole accent */
  --gold-dark:  #917300;   /* hover / pressed */
  --gold-text:  #FFCE3E;   /* inline accents */

  /* Roles */
  --bg:          var(--abyss);
  --surface:     var(--charcoal);
  --surface-2:   var(--iron);
  --text:        #FFFFFF;
  --text-muted:  #A6A6A6;
  --border:      #2A2A2A;
  --border-ghost: rgba(255,255,255,.5);
  --accent:      var(--gold);
  --accent-strong: var(--gold-dark);
  --accent-text: var(--gold-text);
  --accent-soft: #2A2300;
  --on-accent:   #000000;
  --band-bg:     var(--iron);
  --footer-bg:   var(--iron);

  --radius:     0px;
  --radius-lg:  0px;
  --measure:    65ch;

  /* LamboType stand-in: Barlow Condensed (neo-grotesk, compressed widths) */
  --font-display: "Barlow Condensed", "Arial Narrow", ui-sans-serif, sans-serif;
  --font-body:    "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-label:   "Barlow Condensed", "Arial Narrow", ui-sans-serif, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.4rem, 1.7rem + 3vw, 3.9rem);
  --step-4:  clamp(3rem, 1.6rem + 6vw, 7.5rem);
}

/* ---- Tokens (light, opt-in) — the sheet's rare "white-mode" sections ---- */
:root[data-theme="light"] {
  --bg:          #F8F8F8;
  --surface:     #FFFFFF;
  --surface-2:   #E6E6E6;
  --text:        #000000;
  --text-muted:  #494949;
  --border:      #DCDCDC;
  --border-ghost: rgba(0,0,0,.45);
  --accent-text: var(--gold-dark);
  --accent-soft: #FFF3CC;
  --band-bg:     #000000;
  --footer-bg:   #000000;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Layout ---- */
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: 1rem; }

/* ---- Type: uppercase, tight, weight 400 — the typeface carries it ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; line-height: 1; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: .92; }
h2 { font-size: var(--step-3); line-height: .98; }
h3 { font-size: var(--step-1); line-height: 1.15; letter-spacing: .02em; }
p { max-width: var(--measure); }
.lead { font-size: var(--step-1); color: var(--text-muted); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--accent-text);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Buttons: sharp rectangles, color-only interaction ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-label); font-weight: 500; font-size: var(--step-0);
  text-transform: uppercase; letter-spacing: .14em;
  padding: 1rem 1.6rem; border-radius: 0;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  min-height: 48px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-ghost); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--lg { padding: 1.3rem 2rem; min-height: 58px; }

/* ---- Header / nav: floats on the canvas, no container chrome ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: var(--step-1); line-height: 1; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-family: var(--font-label); font-weight: 400; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: .2rem; list-style: none; padding: 0; }
.nav__links a { text-decoration: none; padding: .5rem .9rem; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: var(--step--1); color: var(--text-muted); transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.nav__cta { display: inline-flex; align-items: center; gap: 1rem; }
.nav__phone { font-family: var(--font-label); letter-spacing: .12em; font-size: var(--step-0); text-decoration: none; white-space: nowrap; }
.nav__phone:hover { color: var(--accent-text); }
.nav__toggle { display: none; background: none; border: 1px solid var(--border-ghost); border-radius: 0; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; color: var(--text); }
.nav__toggle svg { width: 22px; height: 22px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--border); border-radius: 0; background: transparent; cursor: pointer; color: var(--text-muted); transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[data-active="dark"] .icon-sun { display: block; }
.theme-toggle[data-active="dark"] .icon-moon { display: none; }
@media (max-width: 560px) { .nav__cta .btn--primary { display: none; } }

@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: var(--step-0); }
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--accent-text); }
  .nav__phone { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__copy .lead { margin-top: 1.6rem; }
.hero__copy .btn-row, .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 3rem; background: var(--bg); }
.hero__stats .stat { background: var(--surface); padding: 1.1rem 1.2rem; }
.stat b { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1; color: var(--accent-text); }
.stat b span { display: inline; margin: 0; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.stat > span { display: block; margin-top: .4rem; font-family: var(--font-label); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .16em; color: var(--text-muted); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hero__stats .stat { padding: .9rem .8rem; } }

/* Thermostat dial — interactive. A single gold arc on black whose length
   (--arc, 0–270deg) tracks the set temperature; hard stops only. */
@property --arc { syntax: "<angle>"; inherits: true; initial-value: 148deg; }
.gauge {
  --arc: 148deg;
  aspect-ratio: 1; width: 100%; max-width: 440px; margin-inline: auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 225deg, var(--accent) 0deg var(--arc), var(--surface) var(--arc) 270deg, transparent 270deg 360deg);
  padding: 4px;
  position: relative;
  transition: --arc .9s cubic-bezier(.2,.8,.2,1);
}
/* Tick ring just inside the arc, sweeping the same 270deg */
.gauge::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 225deg, var(--graphite) 0deg 1deg, transparent 1deg 9deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
/* Heat mode warms the face slightly; cool mode uses the sheet's Cyan Pulse on the status only */
.gauge__face {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center; text-align: center;
  transition: background .9s ease;
}
.gauge[data-mode="heat"] .gauge__face { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.gauge__temp { font-family: var(--font-display); font-weight: 400; font-size: clamp(4.2rem, 17vw, 8rem); line-height: .9; margin-top: .5rem; }
.gauge__temp sup { font-size: .38em; vertical-align: top; color: var(--accent-text); }
.gauge__label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .26em; font-size: var(--step--1); color: var(--text-muted); }
.gauge__status { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .18em; font-size: var(--step--1); color: var(--accent-text); margin-top: .7rem; min-height: 1.5em; }
.gauge[data-mode="cool"] .gauge__status { color: #29ABE2; }
.gauge__mode { margin-top: 1.1rem; display: inline-flex; gap: 2px; }
.gauge__mode button {
  font-family: var(--font-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em;
  min-width: 64px; min-height: 40px; padding: .4rem .8rem; border: 0; border-radius: 0; cursor: pointer;
  background: var(--surface); color: var(--text-muted);
  transition: background .2s ease, color .2s ease;
}
.gauge__mode button:hover { color: var(--text); }
.gauge__mode button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 400px) { .gauge__mode button { min-width: 56px; padding-inline: .5rem; } }

/* ---- Booking (homepage) ---- */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book > * { min-width: 0; }
.book__pitch h2 { margin-top: 1rem; }
.book__pitch .lead { margin-top: 1.2rem; }
.book__facts { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; gap: 2px; }
.book__facts li { background: var(--charcoal); padding: 1.1rem 1.3rem; display: grid; gap: .2rem; }
.book__facts b { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: var(--step-1); color: #fff; }
.book__facts span { color: #A6A6A6; }
.book__facts a { color: var(--gold-text); text-decoration: none; white-space: nowrap; }
.book__facts a:hover { text-decoration: underline; }
.book__form { background: var(--charcoal); padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.band .book__form .field label { color: #A6A6A6; }
.band .book__form input, .band .book__form select, .band .book__form textarea { background: #000; border-color: #333; color: #fff; }
.book__note { font-size: var(--step--1); color: #7D7D7D; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
input[type="date"] { color-scheme: dark; }
:root[data-theme="light"] .field input[type="date"] { color-scheme: light; }

/* ---- Cards / services: surface layering, no shadows ---- */
.grid { display: grid; gap: 2px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 0; border-radius: 0;
  padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem;
  text-decoration: none;
  transition: background .2s ease;
}
.card--link:hover { background: var(--surface-2); }
.card--link:hover .card__meta { color: var(--accent-text); }
.card__icon { width: 36px; height: 36px; color: var(--accent-text); stroke-width: 1.4; }
.card p { color: var(--text-muted); font-size: var(--step-0); }
.card__meta { margin-top: auto; padding-top: .6rem; font-family: var(--font-label); text-transform: uppercase; font-size: var(--step--1); color: var(--text); letter-spacing: .16em; transition: color .2s; }

/* Numbered steps (a real sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; gap: 1.4rem; align-content: start; padding: 1.8rem; background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1;
  color: var(--accent-text);
}
.step p { color: var(--text-muted); margin-top: .5rem; }

/* Feature band — one step down into the dark */
.band { background: var(--band-bg); color: #F5F5F5; }
.band h2, .band h3 { color: #fff; }
.band p, .band .lead { color: #A6A6A6; }
.band .eyebrow, .band .stat b, .band .step::before { color: var(--gold-text); }
.band .card, .band .step { background: var(--charcoal); }
.band .card p { color: #A6A6A6; }
.band .card__icon { color: var(--gold-text); }
.band .info-list a { color: #A6A6A6; }

/* Section head */
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1rem; }

/* ---- Testimonials ---- */
.quote { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.quote p { font-size: var(--step-0); line-height: 1.65; color: var(--text); }
.quote figcaption { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; gap: .9rem; }
.avatar { width: 42px; height: 42px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; color: var(--accent-text); flex: none; }
.quote cite { font-style: normal; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: var(--step--1); }
.quote cite span { display: block; letter-spacing: .1em; color: var(--text-muted); }
.stars { color: var(--accent); letter-spacing: .2em; margin-bottom: 1rem; font-size: var(--step--1); }

/* ---- Contact / forms ---- */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: var(--step--1); color: var(--text-muted); }
.field label .req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  padding: .95rem 1rem; border: 1px solid var(--border); border-radius: 0;
  background: var(--surface); transition: border-color .15s ease;
  width: 100%; min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #E5484D; }
.field__error { font-size: var(--step--1); color: #FF6B6B; min-height: 1.1em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* Contact / info list */
.info-list { list-style: none; display: grid; gap: 1.4rem; padding: 0; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-list svg { width: 22px; height: 22px; color: var(--accent-text); margin-top: 3px; }
.info-list b { display: block; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: var(--step-1); }
.info-list a { color: var(--text-muted); text-decoration: none; }
.info-list a[href]:hover { color: var(--accent-text); }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.hours th, .hours td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; font-family: var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.hours tr.today td, .hours tr.today td:last-child { color: var(--accent-text); }

/* ---- Footer ---- */
.site-footer { background: var(--footer-bg); color: #A6A6A6; padding-block: 4rem 2rem; border-top: 1px solid #202020; }
.site-footer a { color: #A6A6A6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-text); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .22em; font-family: var(--font-label); font-weight: 500; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .6rem; padding: 0; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #7D7D7D; margin-top: 1.1rem; font-size: var(--step-0); }
.footer-bottom { border-top: 1px solid #202020; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: var(--step--1); color: #7D7D7D; }
.footer-bottom .badge { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- Page hero (interior) ---- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: 1.2rem; font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); }
.crumbs { font-family: var(--font-label); text-transform: uppercase; font-size: var(--step--1); color: var(--text-muted); letter-spacing: .2em; margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; color: var(--text-muted); }
.crumbs a:hover { color: var(--accent-text); }

/* ---- CTA strip — gold field, black type ---- */
.cta-strip { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; background: var(--accent); color: var(--on-accent); padding: clamp(2rem, 5vw, 3.6rem); }
.cta-strip h2 { color: var(--on-accent); font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
.cta-strip .eyebrow { color: var(--on-accent) !important; }
.cta-strip p { color: var(--on-accent) !important; opacity: .8; }
.cta-strip .btn--primary { background: #000; color: #fff; }
.cta-strip .btn--primary:hover { background: #202020; }
.cta-strip .btn--ghost { border-color: rgba(0,0,0,.55); color: #000; }
.cta-strip .btn--ghost:hover { background: #000; color: var(--gold); border-color: #000; }
@media (max-width: 680px) { .cta-strip { grid-template-columns: 1fr; } }

/* ---- Toast ---- */
.toast-tray { position: fixed; inset: auto 1rem 1rem auto; z-index: 100; display: grid; gap: .6rem; }
.toast {
  background: #202020; color: #fff; padding: 1rem 1.2rem; border-radius: 0;
  display: flex; align-items: center; gap: .8rem; max-width: 360px;
  border-left: 3px solid var(--gold);
  animation: toast-in .3s cubic-bezier(.2,.8,.2,1);
}
.toast svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.toast b { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; }
.toast span { font-size: var(--step--1); color: #A6A6A6; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* image with graceful fallback */
.media { position: relative; overflow: hidden; background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.media--tall { aspect-ratio: 4/5; }
.media--wide { aspect-ratio: 16/10; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 2px; }
.chip { font-family: var(--font-label); text-transform: uppercase; font-size: var(--step--1); letter-spacing: .16em; padding: .75rem 1.1rem; border-radius: 0; color: var(--text); background: var(--surface); display: inline-flex; align-items: center; }
.chip svg { width: 15px; height: 15px; display: inline; color: var(--accent-text); margin-right: .55rem; }

/* ============================================================
   Compact, mobile-first layer. Base rules target phones; wider
   screens opt in via min-width queries. Keeps the site short.
   ============================================================ */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.section-head { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.section-head h2 { margin-top: .7rem; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }

/* Hero: tight on phones, dial right under the copy */
.hero.section { padding-block: 2rem 2.5rem; }
.hero__copy .lead { margin-top: 1rem; }
.hero__copy .btn-row { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1.5rem; }
.hero__copy .btn-row .btn { width: 100%; min-height: 54px; padding: 1rem; }
.hero__stats { margin-top: 1.5rem; }
.hero__stats .stat { padding: .8rem .9rem; }
.stat b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); }
.stat > span { font-size: .72rem; letter-spacing: .12em; }
.gauge { max-width: 300px; }
@media (min-width: 600px) {
  .hero__copy .btn-row { display: flex; }
  .hero__copy .btn-row .btn { width: auto; padding-inline: 2rem; }
}
@media (min-width: 861px) {
  .hero.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
  .gauge { max-width: 420px; }
  .hero__stats { margin-top: 2.5rem; }
}

/* Services: compact tiles, two across on phones */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.svc { background: var(--surface); padding: 1.1rem 1rem; display: grid; gap: .35rem; align-content: start; text-decoration: none; transition: background .2s ease; min-height: 128px; }
.svc svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: .3rem; }
.svc h3 { font-size: 1.15rem; }
.svc p { font-size: .88rem; color: var(--text-muted); line-height: 1.4; }
.svc:hover { background: var(--surface-2); }
.svc--hot { background: var(--accent); color: var(--on-accent); }
.svc--hot svg, .svc--hot p { color: var(--on-accent); }
.svc--hot:hover { background: var(--accent-strong); color: #fff; }
.svc--hot:hover svg, .svc--hot:hover p { color: #fff; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .svc { padding: 1.6rem 1.5rem; min-height: 0; } .svc h3 { font-size: var(--step-1); } }

/* Steps: number beside text on phones */
.step { grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 1.1rem; align-items: baseline; }
.step::before { font-size: 2rem; }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: .2rem; font-size: .95rem; }
@media (min-width: 921px) { .step { grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem; } .step::before { font-size: var(--step-3); } }

/* Reviews: swipeable rail on phones, three across on desktop */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 2px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; margin-inline: calc(-1 * (100vw - min(1240px, 100vw - 2.5rem)) / 2); padding-inline: calc((100vw - min(1240px, 100vw - 2.5rem)) / 2);
  scroll-padding-inline: calc((100vw - min(1240px, 100vw - 2.5rem)) / 2);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: -2px; }
.quote { padding: 1.3rem; }
.quote p { font-size: .98rem; }
.stars { margin-bottom: .7rem; }
.quote figcaption { padding-top: 1rem; }
@media (min-width: 700px) { .rail { grid-auto-columns: calc((100% - 4px) / 2.3); } }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 4px) / 3); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } .quote { padding: 2rem; } }

/* Booking: tighter on phones */
.book__facts { margin-top: 1.4rem; }
.book__facts li { padding: .85rem 1rem; }
.book__facts b { font-size: 1.1rem; }
.book__form { padding: 1.2rem; }
.book__form .btn { width: 100%; }
.book__form.form { gap: .7rem; }
.book__form .field__error:empty { min-height: 0; }
@media (min-width: 861px) { .book__form { padding: 2.2rem; } .book__form .btn { width: auto; } }

/* Interior page heroes + footer: less air on phones */
.page-hero { padding-block: 2.5rem 2rem; }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 5.2rem); }
@media (min-width: 861px) { .page-hero { padding-block: 5rem 3.5rem; } }
.site-footer { padding-block: 2.5rem 1.5rem; }
.footer-bottom { margin-top: 2rem; }
.cta-strip { padding: clamp(1.5rem, 4vw, 3rem); }
.cta-strip .btn { width: 100%; }
@media (min-width: 681px) { .cta-strip .btn { width: auto; } }
@media (max-width: 860px) { .media--tall, .media--wide { aspect-ratio: 16/9; } }

/* ============================================================
   Shape language — from the Lamborghini sheet's own geometry:
   hexagons for icon buttons ("reserve hexagonal geometry for UI
   icons") and angle-cut corners for text buttons (the typeface's
   12° angled terminals). clip-path hides outer outlines, so focus
   rings are drawn inset.
   ============================================================ */
:root { --cut: 12px; --hex: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.btn {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  border: 0; position: relative; isolation: isolate;
}
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
/* Ghost buttons: the hairline is a 1px frame between two clipped layers */
.btn--ghost { background: var(--border-ghost); --btn-fill: var(--bg); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--btn-fill);
  clip-path: polygon(calc(var(--cut) - .5px) 0, 100% 0, 100% calc(100% - var(--cut) + .5px), calc(100% - var(--cut) + .5px) 100%, 0 100%, 0 calc(var(--cut) - .5px));
  transition: background .2s ease;
}
.btn--ghost:hover { background: var(--accent); color: var(--accent-text); }
.band .btn--ghost { --btn-fill: var(--band-bg); }

/* Hexagonal icon buttons: menu, theme, back-to-top */
.nav__toggle, .theme-toggle, .to-top {
  clip-path: var(--hex); border: 0; border-radius: 0;
  width: 50px; height: 46px; background: var(--surface); color: var(--text);
  transition: background .2s ease, color .2s ease;
}
.nav__toggle:hover, .theme-toggle:hover, .to-top:hover { background: var(--accent); color: var(--on-accent); }
.nav__toggle:focus-visible, .theme-toggle:focus-visible, .to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; }
.nav__toggle[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); }

/* Thermostat mode buttons + services' emergency tile get the angle cut too */
.gauge__mode button { clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.svc--hot { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }

/* Phone header: logo left · theme toggle in the middle · menu top-right */
@media (max-width: 1100px) {
  .brand { margin-right: auto; }
  .nav__cta { order: 1; gap: .6rem; }
  .nav__toggle { order: 2; margin-left: .6rem; }
}

/* Back to top */
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  width: 54px; height: 50px; background: var(--accent); color: var(--on-accent);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #fff; color: #000; }
.to-top svg { width: 20px; height: 20px; }

/* Privacy page prose */
.prose { max-width: 70ch; display: grid; gap: 1rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin-top: 1.4rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose a { color: var(--accent-text); }
.footer-bottom a { color: #A6A6A6; }
.form a, .book__note a { color: var(--accent-text); }
:root[data-theme="light"] .nav__toggle, :root[data-theme="light"] .theme-toggle { background: var(--surface-2); }

/* ---- Gallery (mobile-first: 2 across, 3 on wide screens) ---- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__item { position: relative; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in; background: var(--surface); overflow: hidden; display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.gallery__item--broken img { visibility: hidden; }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; background: rgba(0,0,0,.72); color: #fff; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; text-align: left; }
.gallery-empty { display: grid; justify-items: start; gap: 1rem; padding: clamp(1.6rem, 5vw, 3rem); background: var(--surface); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.gallery-empty svg { width: 44px; height: 44px; color: var(--accent-text); }
.gallery-empty h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.gallery-empty p { color: var(--text-muted); }
.gallery-empty .btn-row { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .6rem; width: 100%; }
@media (min-width: 600px) { .gallery-empty .btn-row { display: flex; width: auto; } }
.gallery-empty .btn--ghost { --btn-fill: var(--surface); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; gap: .8rem; justify-items: center; padding: 4rem 1rem; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100dvh - 10rem); object-fit: contain; }
.lightbox figcaption { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .16em; font-size: var(--step--1); color: #A6A6A6; }
.lightbox__close, .lightbox__nav {
  position: fixed; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  width: 50px; height: 46px; border: 0; clip-path: var(--hex); background: #202020; color: #fff; transition: background .2s, color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: #000; }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--gold); outline-offset: -5px; }
.lightbox__close svg, .lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { bottom: 1.2rem; }
.lightbox__nav--prev { left: calc(50% - 60px); }
.lightbox__nav--next { left: calc(50% + 10px); }
@media (min-width: 800px) { .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); } .lightbox__nav--prev { left: 1.5rem; } .lightbox__nav--next { left: auto; right: 1.5rem; } }
.gallery-empty p a { color: var(--accent-text); }
[hidden] { display: none !important; }

/* ---- Date quick-pick: 7 day chips + "Other date" (native calendar) ---- */
.row-2:has(.datepick) { grid-template-columns: 1fr; }
.datepick { position: relative; }
.datepick__days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 560px) { .datepick__days { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.datepick__chip {
  display: grid; gap: .1rem; place-items: center; align-content: center; min-height: 58px; padding: .4rem .2rem;
  border: 0; cursor: pointer; background: #000; color: #fff; font-family: var(--font-label); text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background .15s ease, color .15s ease;
}
.datepick__chip b { font-weight: 500; font-size: .82rem; letter-spacing: .08em; }
.datepick__chip span { font-size: .72rem; letter-spacing: .06em; color: #A6A6A6; }
.datepick__chip:hover { background: #2a2a2a; }
.datepick__chip[aria-pressed="true"] { background: var(--gold); color: #000; }
.datepick__chip[aria-pressed="true"] span { color: #000; }
.datepick__chip:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.datepick__chip--other svg { width: 18px; height: 18px; color: var(--gold-text); }
.datepick__chip--other[aria-pressed="true"] svg { color: #000; }
.datepick__chip--other span { font-size: .7rem; line-height: 1.2; text-align: center; }
.datepick__native { position: absolute; right: 0; bottom: 1.4rem; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; min-height: 0; }
.field--invalid .datepick__days { outline: 1px solid #E5484D; outline-offset: 2px; }

/* ---- Review carousel controls ---- */
.carousel-bar { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.carousel-btn {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  width: 50px; height: 46px; border: 0; clip-path: var(--hex); background: var(--surface); color: var(--text);
  transition: background .2s ease, color .2s ease;
}
.carousel-btn:hover { background: var(--accent); color: var(--on-accent); }
.carousel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn--play { margin-left: auto; width: 44px; height: 40px; }
.carousel-count { font-family: var(--font-label); letter-spacing: .14em; color: var(--text-muted); min-width: 3.6rem; text-align: center; }
.carousel-count b { color: var(--accent-text); font-weight: 500; }

/* ---- Services page cards: photo left on phones, photo on top on desktop ---- */
.svc-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.svc-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); background: var(--surface); text-decoration: none; scroll-margin-top: 90px; }
.svc-card > img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.svc-card__body { padding: 1rem 1.1rem; display: grid; gap: .45rem; align-content: start; }
.svc-card h2 { font-size: 1.35rem; line-height: 1.05; }
.svc-card p { font-size: .94rem; color: var(--text-muted); line-height: 1.5; }
.svc-card__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.svc-card__tags li { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; padding: .25rem .5rem; background: var(--surface-2); color: var(--accent-text); }
.svc-card--hot { grid-template-columns: 1fr; background: var(--accent); color: var(--on-accent); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.svc-card--hot svg { width: 30px; height: 30px; }
.svc-card--hot p { color: #000; opacity: .8; }
.svc-card__call { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; margin-top: .3rem; }
.svc-card--hot:hover { background: var(--accent-strong); color: #fff; }
.svc-card--hot:hover p { color: #fff; }
@media (min-width: 700px) {
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .svc-card > img { aspect-ratio: 16/10; height: auto; min-height: 0; }
  .svc-card__body { padding: 1.3rem 1.4rem 1.5rem; }
  .svc-card h2 { font-size: 1.6rem; }
}
@media (min-width: 1000px) { .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Header brand: larger "Heating & Air" line */
.brand small { font-size: .8rem; letter-spacing: .18em; margin-top: 5px; }
@media (max-width: 380px) { .brand small { font-size: .7rem; letter-spacing: .14em; } }

/* ---- Contact page: call bar first on phones, form beside it on desktop ---- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.contact-grid > * { min-width: 0; }
.contact-side { order: -1; display: grid; gap: 2px; align-content: start; }
.contact-call {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 1.7rem; line-height: 1; letter-spacing: .02em;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.contact-call svg { width: 28px; height: 28px; flex: none; }
.contact-call small { display: block; font-family: var(--font-label); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .3rem; }
.contact-call:hover { background: var(--accent-strong); color: #fff; }
.contact-facts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.contact-facts li { background: var(--surface); padding: .8rem 1rem; display: grid; gap: .15rem; }
.contact-facts b { font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--text-muted); }
.contact-facts span { color: var(--text); }
.contact-map { width: 100%; height: 170px; border: 0; display: block; filter: grayscale(.6) invert(.9) hue-rotate(180deg); }
:root[data-theme="light"] .contact-map { filter: none; }
.contact-grid .form { background: var(--surface); padding: 1.2rem; gap: .7rem; }
.contact-grid .form .btn { width: 100%; }
.contact-grid h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
@media (min-width: 861px) {
  .contact-grid { grid-template-columns: 1.3fr .9fr; gap: 2.5rem; align-items: start; }
  .contact-side { order: 0; position: sticky; top: 100px; }
  .contact-map { height: 260px; }
  .contact-grid .form { padding: 2rem; }
  .contact-grid .form .btn { width: auto; }
}
.contact-grid .field__error:empty, .book__form .field__error:empty { min-height: 0; }
.contact-grid .form .field, .book__form .field { gap: .35rem; }
@media (min-width: 360px) { .contact-grid .form .row-2:not(:has(select)), .book__form .row-2:not(:has(.datepick)):not(:has(select)) { grid-template-columns: 1fr 1fr; gap: .6rem; } }

/* ============================================================
   Photo hero (homepage) — matches the approved reference:
   sunset rooftop condensers, light haze behind the copy on the
   left, dark-ink headline with deep-gold second line, frosted
   thermostat over the condenser, light stat tiles.
   Tokens are re-scoped inside the hero so every child component
   (buttons, stats, dial) adapts without one-off colors.
   ============================================================ */
.hero--photo {
  --ink-photo: #0b0b0b;
  --text: var(--ink-photo); --text-muted: #2f2f2f; --accent-text: #8A6A00;
  --surface: rgba(255,255,255,.84); --bg: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--text);
  display: grid; align-items: center;
  min-height: calc(100svh - 72px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
/* Light haze for legibility: left side on desktop, top on phones */
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(250,247,240,.93) 0%, rgba(250,247,240,.82) 38%, rgba(250,247,240,.35) 58%, rgba(250,247,240,0) 72%);
}
@media (min-width: 861px) {
  .hero--photo::before { background: linear-gradient(90deg, rgba(250,247,240,.9) 0%, rgba(250,247,240,.72) 34%, rgba(250,247,240,.2) 52%, rgba(250,247,240,0) 62%); }
  .hero__bg img { object-position: center 55%; }
}
.hero--photo h1 { color: var(--ink-photo); }
.hero--photo .lead { color: #2f2f2f; }
.hero--photo .eyebrow { color: var(--accent-text); }

/* Buttons on the photo: gold primary stays; ghost becomes a white outline */
.hero--photo .btn--ghost { color: var(--ink-photo); background: rgba(0,0,0,.75); --btn-fill: rgba(255,255,255,.72); }
.hero--photo .btn--ghost:hover { background: var(--ink-photo); --btn-fill: var(--ink-photo); color: #fff; }

/* Stats: light tiles */
.hero--photo .hero__stats { background: transparent; }
.hero--photo .hero__stats .stat { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero--photo .stat b { color: var(--accent-text); }
.hero--photo .stat > span { color: #3a3a3a; }

/* Thermostat: frosted dark glass over the condenser, white ticks, white mode keys */
.hero--photo .gauge {
  --text: #fff; --text-muted: rgba(255,255,255,.82); --accent-text: var(--gold);
  --surface: rgba(255,255,255,.55); --graphite: rgba(255,255,255,.9); --bg: rgba(12,12,12,.42);
}
.hero--photo .gauge__face { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: #fff; }
.hero--photo .gauge__mode button { background: #fff; color: #111; }
.hero--photo .gauge__mode button:hover { background: #f1f1f1; color: #000; }
.hero--photo .gauge__mode button[aria-pressed="true"] { background: var(--gold); color: #000; }

/* Light header while it sits over the photo hero (homepage only; JS toggles .is-light) */
.site-header.is-light {
  --bg: #F6F4EF; --text: #0b0b0b; --text-muted: #3a3a3a; --surface: #E4E2DD; --border: rgba(0,0,0,.08);
  --accent-text: #8A6A00; --border-ghost: rgba(0,0,0,.4);
  color: var(--text);
}
.site-header.is-light .nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.site-header { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* Arc drawn as a true ring (::after + mask) so a see-through face never shows it */
.gauge { background: none; }
.gauge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 225deg, var(--accent) 0deg var(--arc), var(--surface) var(--arc) 270deg, transparent 270deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
@media (max-width: 860px) {
  .hero--photo { min-height: 0; align-items: start; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(250,247,240,.9) 0%, rgba(250,247,240,.78) 30%, rgba(250,247,240,.55) 44%, rgba(250,247,240,0) 58%); }
  .hero__bg img { object-position: 60% 30%; }
}

/* ---- FAQ accordion (AEO) ---- */
.faq { padding-top: 0; }
.faq__list { display: grid; gap: 2px; max-width: 860px; }
.faq__item { background: var(--surface); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; min-height: 56px; font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .03em; font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem); line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq__item summary:hover { color: var(--accent-text); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.faq__item p { padding: 0 1.2rem 1.1rem; color: var(--text-muted); max-width: 70ch; }

/* Thermostat on photo: crisp (no blur), darker glass so ticks + numbers read cleanly */
.hero--photo .gauge { --bg: rgba(8,8,8,.62); }
.hero--photo .gauge__face { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Phone hero: one column, shared edges. Dial spans the same width as buttons + stats. */
@media (max-width: 860px) {
  .hero--photo .hero__visual { width: 100%; }
  .hero--photo .gauge { max-width: none; width: 100%; margin-top: 1.25rem; }
  .hero--photo .gauge__temp { font-size: clamp(4.5rem, 24vw, 6.5rem); }
  .hero--photo .btn--ghost { color: #fff; background: #111; --btn-fill: #111; }
  .hero--photo .btn--ghost:hover { background: #000; --btn-fill: #000; }
  .hero--photo .hero__stats { margin-top: .9rem; }
}

/* ---- Clickable map: whole map opens Google Maps ---- */
.map-link { position: relative; overflow: hidden; background: var(--surface); }
.map-link iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(.6) invert(.9) hue-rotate(180deg); }
:root[data-theme="light"] .map-link iframe { filter: none; }
.map-link__hit { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: .8rem; text-decoration: none; }
.map-link__chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; background: var(--gold); color: #000;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background .2s ease, color .2s ease;
}
.map-link__chip svg { width: 15px; height: 15px; }
.map-link__hit:hover .map-link__chip { background: #fff; }
.map-link__hit:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.contact-map.map-link { height: 170px; filter: none; }
@media (min-width: 861px) { .contact-map.map-link { height: 260px; } }

/* ---- Homepage location section ---- */
.location { padding-top: 0; }
.location__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.location__grid > * { min-width: 0; }
.location__info h2 { margin: .7rem 0 1rem; }
.location__actions { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; }
.location__actions .btn { width: 100%; }
.location__map { height: 230px; }
@media (min-width: 600px) { .location__actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 861px) {
  .location__grid { grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: stretch; }
  .location__map { height: auto; min-height: 340px; }
  .location__actions { display: flex; }
  .location__actions .btn { width: auto; }
}

/* In-page targets clear the sticky header */
#book, #reviews, #location, #services, #faq { scroll-margin-top: 80px; }

/* Smooth cross-page transitions (Chrome/Brave/Edge); instant elsewhere */
@view-transition { navigation: auto; }

/* ============================================================
   Light zone — a warm-paper section inside the dark site
   (booking + contact forms), so phones don't end in solid black.
   Tokens re-scoped; the few hard-coded dark rules get light twins.
   ============================================================ */
.light-zone {
  --bg: #F6F4EF; --surface: #FFFFFF; --surface-2: #EFECE6; --text: #0b0b0b; --text-muted: #4a4a4a;
  --border: #DCD8D0; --border-ghost: rgba(0,0,0,.45); --accent-text: #8A6A00; --ash: #8a8a8a;
  background: var(--bg); color: var(--text);
}
.light-zone h2, .light-zone h3 { color: var(--text); }
.light-zone .lead, .light-zone p { color: var(--text-muted); }
.light-zone .book__facts li, .light-zone .contact-facts li { background: var(--surface); border: 1px solid var(--border); }
.light-zone .book__facts b, .light-zone .contact-facts span { color: var(--text); }
.light-zone .book__facts span, .light-zone .contact-facts b { color: var(--text-muted); }
.light-zone .book__facts a, .light-zone .form a, .light-zone .book__note a { color: var(--accent-text); }
.light-zone .book__form, .light-zone .contact-grid .form { background: var(--surface); border: 1px solid var(--border); }
.light-zone .field label, .light-zone.band .book__form .field label { color: var(--text-muted); }
.light-zone .field input, .light-zone .field select, .light-zone .field textarea {
  background: #FAF8F4; border-color: #D3CFC6; color: var(--text);
}
.light-zone .field input:focus, .light-zone .field select:focus, .light-zone .field textarea:focus { border-color: #B8930A; box-shadow: 0 0 0 3px rgba(255,192,0,.25); }
.light-zone .field__error { color: #B42318; }
.light-zone .field--invalid input, .light-zone .field--invalid select, .light-zone .field--invalid textarea { border-color: #B42318; }
.light-zone input[type="date"] { color-scheme: light; }
.light-zone .book__note { color: var(--text-muted); }
.light-zone .datepick__chip { background: #F1EEE8; color: var(--text); }
.light-zone .datepick__chip span { color: var(--text-muted); }
.light-zone .datepick__chip:hover { background: #E6E2DA; }
.light-zone .datepick__chip[aria-pressed="true"], .light-zone .datepick__chip[aria-pressed="true"] span { background: var(--gold); color: #000; }
.light-zone .datepick__chip--other svg { color: var(--accent-text); }
.light-zone .datepick__chip--other[aria-pressed="true"] svg { color: #000; }
.light-zone .btn--ghost { --btn-fill: var(--bg); color: var(--text); }
.light-zone .crumbs, .light-zone .crumbs a { color: var(--text-muted); }

/* Footer social link + contact email rows */
.footer-social { display: inline-flex; align-items: center; gap: .5rem; }
.footer-social svg { width: 18px; height: 18px; color: var(--gold-text); }
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-facts__wide { grid-column: 1 / -1; }
.contact-facts a { color: var(--accent-text); text-decoration: none; overflow-wrap: anywhere; }
.contact-facts a:hover { text-decoration: underline; }
