/* Glenwright Digital: shared styles. Palette locked 2026-09-29 (B "Emerald & Marigold"), fonts 2026-09-24 (see CLAUDE.md → Brand). Role names kept: green = emerald, cream = warm white, gold = marigold. */
:root {
  --green: #0A4F3F;
  --cream: #FFFCF2;
  --gold: #F2A900;          /* accent only: rules, dots. Never text on cream. */
  --gold-text: #8F5B00;     /* gold text on cream */
  --gold-light: #FFC845;    /* gold text on green */
  --muted: #46594F;
  --error: #B0301C;
  --paper: #FFFFFF;
  --green-hover: #0F6B55;
  --footer: #063A2E;
  --line: #F0E4C2;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.4vw, 44px); }
p { margin: 0 0 1em; }
a { color: var(--green); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--cream); padding: 8px 14px; border-radius: 4px; z-index: 20; }
.skip:focus { left: 8px; }

:where(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.dark :where(a, button):focus-visible, footer :where(a):focus-visible { outline-color: var(--gold-light); }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--cream); overflow: hidden; /* logo intro starts off-screen */ }
.logo-anim .brand svg { visibility: hidden; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: block; }
.logo-full { height: 46px; width: 160px; display: block; }
.logo-mark { height: 40px; width: 40px; display: none; }
nav { display: flex; gap: 28px; align-items: center; font-size: 16px; font-weight: 500; }
nav a { text-decoration: none; }
nav a:not(.btn):hover { color: var(--green-hover); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* Buttons + links */
.btn {
  display: inline-block; background: var(--green); color: var(--cream);
  padding: 13px 22px; border-radius: 6px; text-decoration: none;
  font: 600 16px/1.3 var(--sans); border: 0; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--green-hover); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link:hover { color: var(--green-hover); }

.eyebrow { color: var(--gold-text); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.rule { width: 56px; height: 2px; background: var(--gold); margin: 32px 0; border: 0; }

/* Hero */
.hero { position: relative; padding: 96px 0 88px; } /* positioned: the intro overlay covers exactly this box */
.hero h1 { font-size: clamp(40px, 5.2vw, 60px); max-width: 15ch; }
.lede { color: var(--muted); font-size: 21px; max-width: 54ch; margin: 0 0 36px; }
.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.reassure { font-size: 16px; color: var(--muted); margin: 20px 0 0; }

/* Hero animation: "zoom chain" (architecture/07-hero-animation.md).
   Resting frame: the still booked-calendar card (.flow). Everyone ends here; no-JS and reduced-motion visitors start here.
   Intro: .zc-intro covers the whole hero while html.hero-intro is set (the <head> script decides, hero.js plays it),
   then hero.js lands it on the card. Every box is sized by CSS before any script runs, so nothing shifts. */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.flow, .zc-backdrop {
  background: var(--green);
  background-image: radial-gradient(circle at 80% 10%, rgba(255,200,69,.16), transparent 55%),
                    radial-gradient(rgba(255,252,242,.07) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.flow { position: relative; overflow: hidden; border-radius: 14px; }
.flow-inner { position: relative; aspect-ratio: 4 / 5; }
.zc-scene { position: absolute; inset: 0; visibility: hidden; }
.zc-cal { visibility: visible; }
.zc-scene svg { display: block; width: 100%; height: 100%; }
.zc-scene text { font-family: var(--sans); }
.zc-scene .zc-serif { font-family: var(--serif); font-weight: 500; }

.zc-intro { display: none; position: absolute; inset: 0; z-index: 2; overflow: clip; }
.hero-intro .zc-intro { display: block; }
.zc-backdrop { position: absolute; inset: 0; }
/* The part of the hero on screen at load (header = 85 px); the 4:5 core fills its height on desktop, the width on phones. */
.zc-stage { position: absolute; top: 0; left: 0; right: 0; height: min(100%, 100svh - 85px); display: grid; place-items: center; }
.zc-core { position: relative; height: min(100% - 64px, 125vw); aspect-ratio: 4 / 5; isolation: isolate; } /* isolation: push z-indexes stay inside */
.zc-intro .zc-town { visibility: visible; } /* the intro's first frame, before hero.js takes over */
.zc-intro .zc-cal { visibility: hidden; }
.zc-intro .zc-win-new { opacity: 0; }
.zc-intro :is(.zc-town, .zc-room, .zc-form) svg { overflow: visible; } /* drawn past the 4:5 box for wide screens; .zc-intro clips */

.flow-toggle, .zc-skip {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(6,58,46,.7); color: var(--cream); border: 1px solid rgba(255,252,242,.35);
  font: 600 13px/1 var(--sans);
}
.zc-skip { right: 16px; bottom: 16px; }
.flow-toggle[hidden] { display: none; } /* shown by hero.js only when the intro can play (no JS / reduced motion: no button) */
:is(.flow-toggle, .zc-skip):hover { background: var(--footer); }
:is(.flow-toggle, .zc-skip):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.zc-icon { width: 12px; height: 12px; flex: none; }

/* FAQ */
.faq-section { border-top: 1px solid var(--line); }
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--gold-text); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin: -4px 0 22px; max-width: 60ch; }

/* Sections */
section { padding: 88px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 16px 0 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 36px; }
.card h3 { font-size: 28px; margin-bottom: 12px; }
.card > p { color: var(--muted); margin: 0 0 20px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; color: var(--muted); }
.card li strong { color: var(--green); font-weight: 600; }
.card li::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-top: 12px; flex: none; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }

/* Try-it band */
.try { padding: 0 0 88px; }
.try .card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; border-left: 3px solid var(--gold); }
.try h2 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 12px; }
.try p { color: var(--muted); margin: 0; }
.try .actions { justify-content: flex-end; }

/* Dark section */
.dark { background: var(--green); color: var(--cream); }
.dark .eyebrow { color: var(--gold-light); }
.dark .section-head p:not(.eyebrow) { color: rgba(255,252,242,.82); }
/* How it works: one gold line across the steps with a dot where each step starts. how.js arms it (.is-armed) and plays it
   (.is-in): the line draws, and each dot and step comes in as the line reaches it (--d, set from the dot's position).
   Each step moves as one block (3 layers, not 9: scrolling stayed choppy with every heading and paragraph animating).
   The default is the finished state, which is what no-JS and reduced-motion visitors see. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps-track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(242,169,0,.5); transform-origin: 0 50%; }
.step { position: relative; padding-top: 24px; }
.step::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.steps.is-armed .steps-track { transform: scaleX(0); }
.steps.is-armed .step::before { transform: scale(0); }
.steps.is-armed .step { opacity: 0; transform: translateY(10px); }
.steps.is-armed.is-in .steps-track { transform: none; transition: transform var(--dur, 1.8s) linear; }
.steps.is-armed.is-in .step::before { transform: none; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }
.steps.is-armed.is-in .step { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.step-num { font-family: var(--serif); font-size: 46px; color: var(--gold-light); line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { margin: 0; color: rgba(255,252,242,.82); }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; font-weight: 600; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

/* Contact */
.contact-section { border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-intro p { color: var(--muted); }
.contact-intro h2 { margin-bottom: 16px; }
form.card { padding: 32px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 15px; color: var(--muted); margin: -2px 0 8px; }
::placeholder { color: #657268; opacity: 1; } /* 5.1:1 on white */
.req-note { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.next { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: next; }
.next li { counter-increment: next; position: relative; padding: 0 0 12px 40px; color: var(--muted); }
.next li::before { content: counter(next); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--gold-light); font: 600 14px/26px var(--sans); text-align: center; }
input, textarea, select {
  width: 100%; font: 17px/1.4 var(--sans); color: var(--green);
  background: #fff; border: 1px solid #958A6B; /* 3.4:1 on white, WCAG 1.4.11 */ border-radius: 6px; padding: 11px 13px;
}
textarea { min-height: 130px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid :is(input, textarea, select) { border-color: var(--error); border-width: 2px; padding: 10px 12px; }
.err { color: var(--error); font-size: 15px; font-weight: 600; margin-top: 6px; display: flex; gap: 8px; align-items: flex-start; }
.err::before { content: "!"; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; flex: none; margin-top: 3px; }
.err[hidden] { display: none; }
.form-err { margin-bottom: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 4px 0 20px; min-height: 65px; }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.thanks { padding: 8px 4px; }
.thanks h3 { font-size: 30px; margin-bottom: 10px; }
.thanks p { color: var(--muted); }
.thanks:focus { outline: none; }

/* Footer */
footer { position: relative; margin-top: 110px; background: var(--footer); color: rgba(255,252,242,.8); padding: 150px 0 56px; font-size: 16px; }
/* Mountain sits on the footer's top edge: peak above on cream, gold reflection in the "water" below. */
.footer-mountain { position: absolute; left: 50%; top: 0; width: min(380px, 72vw); height: auto; transform: translate(-50%, -50%); display: block; }
.footer-mountain use:last-of-type { opacity: .55; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer img { height: 40px; width: auto; display: block; }
footer a { color: var(--gold-light); }
footer p { margin: 0; }

/* Legal page */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--green); }

@media (max-width: 820px) {
  .logo-full { display: none; }
  .logo-mark { display: block; }
  nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0; }
  section { padding: 64px 0; }
  .try { padding-bottom: 64px; }
  .grid-2, .steps, .contact, .row, .try .card, .hero-grid, .faq { grid-template-columns: 1fr; }
  /* How it works, stacked: the line runs down the left side, a dot beside each number */
  .steps-track { left: 4px; right: auto; top: 22px; bottom: 0; width: 1px; height: auto; transform-origin: 50% 0; }
  .steps.is-armed .steps-track { transform: scaleY(0); }
  .step { padding: 0 0 0 32px; }
  .step::before { top: 18px; }
  .hero-grid { gap: 40px; }
  .faq { gap: 8px; }
  .flow { width: 100%; max-width: 460px; } /* one column: keep the 4:5 panel from getting taller than a phone screen */
  .try .actions { justify-content: flex-start; }
  .wrap { padding: 0 16px; }
  .card { padding: 26px; }
  form.card { padding: 22px; }
  .lede { font-size: 19px; }
}
