/* Snow & Cedar Services . site.css. Design tokens from Diego's brand kit.
   Premium/elegant pass (2026-10-02): refined type scale, generous rhythm, tasteful
   motion (all guarded by prefers-reduced-motion below). Brand hex values are fixed,
   never changed. Shape lock: 10px soft radius on buttons/cards/inputs/panels, full
   pill (999px) reserved for badges/chips only. */
:root {
  --bg: #F8FAFD;
  --green: #3A583E;
  --green-dark: #19261A;
  --cream: #FBF2E9;
  --amber: #BD8B3F;
  --white: #ffffff;
  --line: #E3E8E2;
  --text: #19261A;
  --text-mute: #4B5A4E;

  --radius-sm: 8px;
  --radius: 10px;
  --wrap: 1200px;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-head: "Cormorant", Georgia, serif;

  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow-sm: 0 2px 10px rgba(25, 38, 26, .07);
  --shadow-md: 0 14px 34px -14px rgba(25, 38, 26, .24);
  --shadow-lg: 0 28px 64px -18px rgba(25, 38, 26, .32);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: clip; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-color: var(--line); text-underline-offset: .15em; transition: color .25s var(--ease), text-decoration-color .25s var(--ease); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-dark); line-height: 1.14; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.35rem + 3.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.3rem); }
h3 { font-size: 1.28rem; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; max-width: 68ch; }
p.lede { font-size: clamp(1.05rem, .97rem + .35vw, 1.25rem); color: var(--text-mute); line-height: 1.6; }
ul, ol { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 10px; top: 10px; }

/* micro-label: small tick + refined tracked caps, used sparingly as a scannable marker */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--amber); margin: 0 0 .7em; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; display: inline-block; flex: none; }
.section-dark .eyebrow { color: var(--amber); }
.rule { border: 0; border-top: 1px solid var(--amber); width: 48px; margin: 0 0 1.2em; }

/* ---------- Motion: scroll reveal + hero entrance (see site.js for the IO wiring) ---------- */
.hero .eyebrow, .hero h1, .hero .lede, .hero .hero-badges, .hero .cta-row,
.science-hero .logo-mark, .science-hero .eyebrow, .science-hero h1 {
  animation: heroUp .7s var(--ease) both;
}
.hero h1, .science-hero .eyebrow { animation-delay: .06s; }
.hero .lede, .science-hero h1 { animation-delay: .14s; }
.hero .hero-badges { animation-delay: .2s; }
.hero .cta-row { animation-delay: .26s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.reveal-visible { opacity: 1; transform: none; }
.reveal .grid > *, .reveal .tile-grid > *, .reveal .promise-list > *, .reveal .timeline > *, .reveal .split > * {
  opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.reveal-visible .grid > *, .reveal.reveal-visible .tile-grid > *, .reveal.reveal-visible .promise-list > *,
.reveal.reveal-visible .timeline > *, .reveal.reveal-visible .split > * { opacity: 1; transform: none; }
.reveal.reveal-visible .grid > *:nth-child(1), .reveal.reveal-visible .tile-grid > *:nth-child(1),
.reveal.reveal-visible .promise-list > *:nth-child(1), .reveal.reveal-visible .timeline > *:nth-child(1) { transition-delay: .04s; }
.reveal.reveal-visible .grid > *:nth-child(2), .reveal.reveal-visible .tile-grid > *:nth-child(2),
.reveal.reveal-visible .promise-list > *:nth-child(2), .reveal.reveal-visible .timeline > *:nth-child(2) { transition-delay: .1s; }
.reveal.reveal-visible .grid > *:nth-child(3), .reveal.reveal-visible .tile-grid > *:nth-child(3),
.reveal.reveal-visible .promise-list > *:nth-child(3), .reveal.reveal-visible .timeline > *:nth-child(3) { transition-delay: .16s; }
.reveal.reveal-visible .grid > *:nth-child(4), .reveal.reveal-visible .tile-grid > *:nth-child(4) { transition-delay: .22s; }
/* .split has only 2 children; let the media lead a beat before the copy settles */
.reveal.reveal-visible .split > *:nth-child(2) { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-top: 2px solid var(--amber); border-bottom: 1px solid var(--line); transition: box-shadow .35s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); --header-h: 62px; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { height: 44px; width: auto; transition: height .3s var(--ease); animation: logoReveal .9s var(--ease) both; }
@keyframes logoReveal { from { opacity: 0; transform: translateY(5px) scale(.94); } to { opacity: 1; transform: none; } }
.site-header.is-scrolled .logo-mark { height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-style: italic; font-weight: 600; color: var(--green-dark); font-size: 1.2rem; }
.brand-sub { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--green-dark); cursor: pointer; transition: border-color .25s var(--ease); }
.nav-toggle:hover { border-color: var(--amber); }
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.site-nav ul li { position: relative; }
.site-nav ul a { color: var(--green-dark); text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; padding-bottom: 2px; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--amber); transition: right .3s var(--ease); }
.site-nav ul a:hover { color: var(--green); }
.site-nav ul a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-dark); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-link svg { width: 16px; height: 16px; fill: var(--amber); flex: none; }
.phone-link:hover { color: var(--green); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius); font-weight: 700; text-decoration: none; font-size: .95rem; border: 2px solid transparent; white-space: nowrap; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .32) 50%, transparent 68%); transform: translateX(-130%); transition: transform .65s var(--ease); pointer-events: none; }
.btn:hover::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-accent { background: var(--amber); color: var(--green-dark); }
.btn-accent:hover { background: #a97a34; }
.btn-dark { background: var(--green-dark); color: #fff; }
.btn-dark:hover { background: var(--green); }
.btn-outline { background: transparent; border-color: var(--green-dark); color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 1.2em 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 14px 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .82rem; color: var(--text-mute); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--text-mute); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 52px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #E6EAE3; }
.section-dark details.faq { border-bottom-color: #2d3f2e; }
.section-dark details.faq summary { color: #fff; }
.section-dark .faq-a { color: #E6EAE3; }
.section-dark .spec-row { border-bottom-color: #2d3f2e; }
.section-dark .spec-row dt { color: #fff; }
.section-dark .text-mute { color: #c9d4cb; }
.section-top { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 92px; background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); position: relative; }
.hero:not(.has-photo) {
  background-image:
    radial-gradient(rgba(189, 139, 63, .09) 1px, transparent 1.6px),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  background-size: 22px 22px, 100% 100%;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.1em 0; }
.hero-badge { font-size: .76rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--green-dark); transition: border-color .25s var(--ease); }
.hero.has-photo .hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--green-dark); }
.hero.has-photo .hero-photo img,
.hero.has-photo .hero-photo video { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 26s ease-in-out infinite alternate; }
.hero.has-video .hero-photo video { animation: none; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero.has-photo .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 22, 16, .58) 0%, rgba(15, 22, 16, .46) 45%, rgba(13, 19, 14, .86) 100%); }
.hero.has-photo .hero-grid { padding: 72px 20px; max-width: var(--wrap); margin: 0 auto; }
.hero.has-photo h1, .hero.has-photo .lede { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.hero.has-photo .lede a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .55); text-underline-offset: 3px; }
.hero.has-photo .lede a:hover { text-decoration-color: #fff; }
.hero.has-photo .eyebrow { color: var(--amber); }
.hero.has-photo .hero-badge, .section-dark .hero-badge { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
.hero.has-photo .btn-outline, .section-dark .btn-outline { border-color: rgba(255, 255, 255, .85); color: #fff; }
.hero.has-photo .btn-outline:hover, .section-dark .btn-outline:hover { background: #fff; color: var(--green-dark); }
.hero.has-video { min-height: clamp(540px, 86dvh, 880px); display: flex; align-items: center; padding: 0; border-bottom: 0; }
.hero.has-video .hero-grid { padding: 120px 20px 80px; width: 100%; }

.nearby { list-style: none; margin: .6em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.nearby a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, .4); }
.coming-soon-note { list-style: none; color: var(--text-mute); grid-column: 1 / -1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(189, 139, 63, .4); }
.card h3 { margin-bottom: .35em; }
.card-amber-top { border-top: 2px solid var(--amber); }
.service-card { display: flex; flex-direction: column; gap: 8px; }
.service-card a.card-link, .card-link { font-weight: 700; color: var(--green); text-decoration: none; margin-top: auto; position: relative; width: fit-content; }
.card-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.service-card:hover .card-link::after, .card-link:hover::after { right: 0; }

.town-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.town-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; text-decoration: none; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.town-card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.town-name { display: block; font-weight: 700; color: var(--green-dark); }
.town-sub { display: block; font-size: .78rem; color: var(--text-mute); }

/* spec list: dense McMaster-Carr style fact rows */
.spec-list { border-top: 1px solid var(--line); margin: 1.2em 0; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 13px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 4px; transition: background-color .25s var(--ease); }
.spec-row:hover { background: var(--cream); }
.spec-row dt { font-weight: 700; color: var(--green-dark); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.spec-row dd { margin: 0; color: var(--text); }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 54px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--amber); }

/* FAQ (details drive FAQPage schema in build.py; site.js animates the open/close) */
.faq-list { margin: 1em 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--green-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.4rem; color: var(--amber); flex: none; display: inline-block; transition: transform .3s var(--ease); line-height: 1; }
details.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-top: 12px; color: var(--text); max-width: 72ch; overflow: hidden; }

/* banner / notice */
.notice { background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.2em 0; }
.notice p:last-child { margin-bottom: 0; }

/* image figure */
figure.fig { margin: 1.4em 0; }
figure.fig img { border-radius: var(--radius); border: 1px solid var(--line); }
figure.fig figcaption { font-size: .82rem; color: var(--text-mute); margin-top: 8px; }

/* quote / contact form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--green-dark); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(189, 139, 63, .18); outline: none; }
.form-field input[type="file"] { padding: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #9c3b2a; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 18px; }
legend { font-weight: 700; color: var(--green-dark); padding: 0 6px; }

/* tables (town / spec comparisons) */
table.data { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.data th { font-family: var(--font-head); font-size: 1.02rem; color: var(--green-dark); background: var(--cream); }
table.data tbody tr { transition: background-color .25s var(--ease); }
table.data tbody tr:hover { background: var(--cream); }

/* ---------- Premium pass 2: editorial image components ---------- */

/* Interior photo hero: shorter than the homepage film hero, reuses .hero.has-photo. */
.hero-sm { border-bottom: 1px solid var(--line); }
.hero-sm.has-photo .hero-photo::after { background: linear-gradient(100deg, rgba(13, 19, 14, .82) 0%, rgba(13, 19, 14, .6) 42%, rgba(13, 19, 14, .3) 75%, rgba(13, 19, 14, .14) 100%); }
.hero-sm.has-photo .hero-grid { padding: 68px 20px; }
.hero-sm.hero-center .hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 640px; }
@media (max-width: 768px) {
  .hero-sm.has-photo .hero-grid { padding: 46px 20px; }
}

/* Image split: editorial two-up, image one side, copy the other. Reorder via DOM order. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-dark); }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }
.split-media.parallax img { will-change: transform; }
.editorial-statement { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem); color: var(--green-dark); line-height: 1.35; margin: 0 0 .7em; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-media { order: -1; aspect-ratio: 16 / 9; }
}

/* Promise list: refined items replacing boxed cards. Numerals are CSS counters (like .steps),
   never live DOM text, so they can never shift the visible copy. */
.promise-list { list-style: none; margin: 1.3em 0 0; padding: 0; counter-reset: promise; display: grid; gap: 4px; }
.promise-list li { position: relative; padding: 20px 0 20px 56px; border-top: 1px solid var(--line); }
.promise-list li:first-child { border-top: none; padding-top: 0; }
.promise-list li::before { counter-increment: promise; content: counter(promise, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--font-head); font-style: italic; font-weight: 700; color: var(--amber); font-size: 1.35rem; line-height: 1; }
.promise-list li:first-child::before { top: 0; }
.promise-list h3 { margin-bottom: .3em; }
.promise-list p { margin-bottom: 0; }

/* Tile grid: large image tiles with dark gradient + title overlay. */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .tile-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tile-grid.cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tile-grid.cols-3 { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; }
.tile.tile-wide { aspect-ratio: 16 / 10; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(190deg, rgba(13, 19, 14, 0) 32%, rgba(13, 19, 14, .82) 100%); }
.tile:hover img { transform: scale(1.08); }
.tile-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.tile-body h3 { color: #fff; margin-bottom: .3em; font-size: 1.15rem; }
.tile-body p { color: rgba(255, 255, 255, .84); font-size: .88rem; margin-bottom: .6em; }
.tile-link { font-weight: 700; color: #fff; position: relative; width: fit-content; }
.tile-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--amber); transition: right .4s var(--ease); }
.tile:hover .tile-link::after { right: 0; }
/* Text comes from the aria-label (announced to screen readers) + ::before (shown to sighted
   users), never a live text node, so it never shifts where a sentence boundary falls. */
.tile-badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255, 255, 255, .94); color: var(--green-dark); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 5px 11px; border-radius: 999px; }
.tile-badge::before { content: "Coming soon"; }
@media (max-width: 960px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 10; } }

/* Timeline: horizontal 3-step with Cormorant numerals + amber connector, stacks on mobile. */
.timeline { list-style: none; margin: 1.4em 0 0; padding: 0; counter-reset: tl; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 29px; height: 1px; background: var(--amber); opacity: .45; }
.timeline li { position: relative; padding-right: 8px; }
.timeline li::before { counter-increment: tl; content: counter(tl, decimal-leading-zero); display: inline-block; position: relative; z-index: 1; background: var(--bg); padding-right: 14px; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 2.3rem; color: var(--amber); line-height: 1; margin-bottom: .22em; }
.section-cream .timeline li::before { background: var(--cream); }
.timeline h3 { font-size: 1.1rem; margin-bottom: .3em; }
.timeline p { margin-bottom: 0; }
@media (max-width: 768px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding-left: 54px; padding-right: 0; }
  .timeline li::before { position: absolute; left: -4px; top: -4px; }
}

/* Service area line illustration: valley/lake route with towns as dots. */
.area-split { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; margin-top: 1.5em; }
.area-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.valley-map .m-water path { fill: #dbe5dc; stroke: var(--green); stroke-width: 1.2; stroke-linejoin: round; }
.valley-map .m-river { fill: none; stroke: #9fb5a3; stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.valley-map .m-lake { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 25px; fill: var(--green); opacity: .72; letter-spacing: .06em; }
.valley-map .m-town circle { fill: var(--amber); stroke: var(--amber); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.22,1,.36,1), fill .3s; }
.valley-map .m-town.m-com circle { fill: var(--cream); }
.valley-map .m-town text { font-family: var(--font-body); font-size: 21px; font-weight: 600; fill: var(--green-dark); transition: fill .3s; }
.valley-map .m-town .m-sub { font-size: 15px; font-weight: 500; fill: var(--text-mute); }
.valley-map .m-town:hover circle, .valley-map .m-town:focus-visible circle { transform: scale(1.35); }
.valley-map .m-town:hover text, .valley-map .m-town:focus-visible text { fill: var(--amber-text, #8a5a1c); }
.valley-map .m-north path { fill: var(--green-dark); }
.valley-map .m-north text { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--green-dark); }
.map-credit { font-size: .72rem; color: var(--text-mute); margin-top: .5em; text-align: center; }
.map-credit a { color: inherit; }
@media (max-width: 860px) {
  .area-split { grid-template-columns: 1fr; }
  .area-map { max-width: 400px; margin: 0 auto 24px; }
}

/* CTA band: full-bleed image with dark overlay. */
.cta-band { position: relative; padding: 104px 0; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 14, .64) 0%, rgba(13, 19, 14, .84) 100%); z-index: 1; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .85); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--green-dark); }
@media (max-width: 768px) { .cta-band { padding: 64px 0; } }

/* Full-bleed photo break between sections. */
.img-break { position: relative; overflow: hidden; }
.img-break img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; display: block; }

/* Pull quote, Cormorant italic. */
.pullquote { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(1.25rem, 1.03rem + 1vw, 1.6rem); color: var(--green-dark); line-height: 1.38; border-left: 3px solid var(--amber); padding: 2px 0 2px 24px; margin: 1.7em 0; max-width: 54ch; }
.section-dark .pullquote { color: #fff; }

/* Editorial two-column prose flow for long-form sections. */
.editorial-cols { column-count: 2; column-gap: 48px; }
.editorial-cols p { break-inside: avoid; }
@media (max-width: 860px) { .editorial-cols { column-count: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #dfe6e0; padding: 96px 0 24px; position: relative; margin-top: 40px; overflow: hidden; border-top: 2px solid var(--amber); }
.site-footer a { color: #dfe6e0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #2d3f2e; }
.footer-brand .brand-name, .footer-brand .brand-sub { color: #fff; }
.footer-brand .brand-sub { color: var(--amber); }
.disclosure { font-size: .82rem; color: #a9b6ab; margin: 10px 0; }
.footer-contact { font-size: .9rem; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.footer-contact a { font-weight: 700; color: #fff; text-decoration: none; }
.footer-h { font-family: var(--font-head); font-style: italic; font-size: 1.1rem; color: #fff; margin-bottom: .7em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer-links a { text-decoration: none; position: relative; width: fit-content; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .3s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { right: 0; }
.footer-towns { padding: 28px 0; border-bottom: 1px solid #2d3f2e; }
.footer-towns-note { font-size: .84rem; color: #a9b6ab; max-width: 80ch; }
.footer-towns .town-card { background: #202f21; border-color: #2d3f2e; }
.footer-towns .town-card:hover { border-color: var(--amber); }
.footer-towns .town-name { color: #fff; }
.footer-towns .town-sub { color: #a9b6ab; }
.footer-towns .coming-soon-note { color: #a9b6ab; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; font-size: .82rem; color: #a9b6ab; }
.footer-bottom .legal { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-wordmark { position: absolute; right: 24px; bottom: -18px; font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 5.4rem; color: #1f2d20; margin: 0; z-index: 0; pointer-events: none; line-height: 1; overflow: hidden; max-height: 64px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: none; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; border-top: 2px solid var(--amber); box-shadow: 0 -8px 20px rgba(25, 38, 26, .12); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; font-weight: 700; font-size: .84rem; text-decoration: none; border-right: 1px solid var(--line); overflow-wrap: anywhere; transition: background-color .2s var(--ease); }
.mobile-cta a:active { background: var(--cream); }
.mobile-cta a:last-child { border-right: 0; }
.mobile-cta-call { color: var(--green-dark); }
.mobile-cta-call svg { width: 15px; height: 15px; fill: var(--amber); }
.mobile-cta-text { color: var(--green-dark); }
.mobile-cta-quote { background: var(--amber); color: var(--green-dark); }

/* ---------- Page: roof science (QR) ---------- */
.science-hero { text-align: center; padding: 56px 0 16px; }
.science-hero .logo-mark { height: 72px; margin: 0 auto 16px; }

/* utility */
.mt-l { margin-top: 1.4em; }
.center { text-align: center; }
.text-mute { color: var(--text-mute); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .78rem; font-weight: 700; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--green-dark); transition: border-color .25s var(--ease); }
.chip:hover { border-color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 68px 0; }
}
@media (max-width: 768px) {
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 16px; gap: 10px; }
  .nav-actions .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-wordmark { display: none; }
  .town-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding: 52px 0; }
  .section-tight { padding: 38px 0; }
  .hero { padding: 56px 0 60px; }
  .hero.has-video { min-height: 78dvh; }
  .hero.has-photo .hero-grid { padding: 48px 20px; }
  .hero.has-video .hero-grid { padding: 72px 20px 56px; }
  .site-footer { padding: 64px 0 20px; }
}
@media (max-width: 420px) {
  .town-list { grid-template-columns: 1fr; }
}

/* instant roof estimate (RoofQuote iframe) */
.estimate-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.estimate-frame iframe { display: block; width: 100%; height: 780px; border: 0; }
.estimate-note { margin-top: 16px; font-size: .95rem; color: var(--text-mute); max-width: 760px; }
.estimate-note a[href^="tel:"] { white-space: nowrap; }

/* roof savings calculator, beside the RoofQuote widget on /instant-roof-estimate/ */
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1080px) { .estimate-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.estimate-main, .calc-card { min-width: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
#how-we-calculate { scroll-margin-top: var(--header-h); }
.calc-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.calc-card h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .4em; }
.calc-intro { color: var(--text-mute); font-size: .95rem; margin: 0 0 18px; }
.calc-hint { font-size: .82rem; color: var(--text-mute); margin: 6px 0 0; line-height: 1.5; }
.calc-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-headline { background: var(--cream); border-radius: var(--radius); padding: 16px 18px; text-align: center; }
.calc-big { font-family: var(--font-head); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--green); margin: 0; }
.calc-big-label { margin: 6px 0 0; font-weight: 600; font-size: .9rem; color: var(--green-dark); }
.calc-plain { background: var(--cream); border-radius: var(--radius); padding: 14px 16px; margin: 0; font-weight: 600; color: var(--green-dark); }
.calc-rows { margin: 16px 0 0; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.calc-rows dt { font-size: .9rem; color: var(--text-mute); }
.calc-rows dd { margin: 0; font-weight: 700; color: var(--green-dark); text-align: right; white-space: nowrap; }
.calc-fine { font-size: .8rem; color: var(--text-mute); margin: 12px 0 0; }
.calc-cta { margin-top: 20px; }
@media (max-width: 420px) { .calc-card { padding: 20px 16px; } }
