/* Greathouse Retail — website styles
   Built on the brand handoff tokens (see ../styles.css + ../tokens/*).
   Layout and composition only — colour, type, spacing and effects come from
   tokens. Never hardcode hex values or font names here.

   Rules this file enforces, from the brand package:
   - Forest + Paper dominate; Pine + Trail support; Berry is the ONE accent;
     Gold is the rarest note (it is the sun, and little else).
   - Buttons, links and highlights are Berry on light, Gold on dark.
   - Space Mono is uppercase with 0.18em tracking, for eyebrows and wayfinding
     only — never body copy.
   - The dusk gradient appears only as a thin spine at the top of the page.
     Never a background wash, never behind the wordmark.
   - Eyebrows are Pine on light and Gold on dark. Both clear AA at 11px; the
     supporting greens keep Berry reserved for actions.

   This kit ships no base.css, so the reset lives here. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--gh-ink);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--gh-forest); margin: 0 0 var(--space-4); font-family: var(--font-display); }
h1 { font-weight: var(--fw-bold); font-size: var(--type-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); }
h2 { font-weight: var(--fw-semibold); font-size: var(--type-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); }
h3 { font-weight: var(--fw-semibold); font-size: var(--type-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }
p { margin: 0 0 var(--space-4); max-width: 64ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gh-dusk-3); }

hr { border: 0; border-top: var(--hairline); margin: var(--space-6) 0; }
::selection { background: var(--gh-gold); color: var(--gh-forest); }
:focus-visible { outline: 2px solid var(--gh-trail); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section--tight { padding: var(--space-8) 0; }
/* more air between sections on large screens — restraint reads as seniority */
@media (min-width: 1000px) {
  .section { padding: calc(var(--space-9) + var(--space-6)) 0; }
  .section--tight { padding: calc(var(--space-8) + var(--space-4)) 0; }
}

/* Section headlines: h2s that sit directly on the page (not inside cards or
   lists) carry the section — promote them to the h1 role size so the page
   reads at marketing scale. Card/list h3s keep the document scale. */
.wrap > h2 {
  font-size: clamp(30px, 3.6vw, var(--type-h1));
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.surface-page  { background: var(--surface-page); }
.surface-paper { background: var(--surface-page); }
.surface-white { background: var(--surface-card); }
.surface-forest { background: var(--surface-dark); color: var(--text-on-dark); }
.surface-forest h1, .surface-forest h2, .surface-forest h3, .surface-forest .display { color: var(--gh-bone); }
/* Links on dark are Gold — but buttons carry their own colour, so exclude them
   (a bare `.surface-forest a` outranks `.btn--primary` and tints the label). */
.surface-forest a:not(.btn) { color: var(--gh-gold); }

/* ---------- Brand devices ---------- */
/* The one gradient moment in CSS: a thin spine across the top of the page. */
.brand-spine { height: 4px; width: 100%; background: var(--gh-dusk); }

/* The peak-line ridge runs the full width of the page — a horizon, not an icon.
   Natural aspect only (stretching would squash the round sun; cropping could cut
   it — both are brand violations). The breakout escapes the .wrap column. */
.peak-plain, .peak-sun {
  display: block; width: 100vw; max-width: 100vw; height: auto;
  margin-left: calc(50% - 50vw);
}
/* Interior section dividers use the sun-free ridge. */
.peak-plain { margin-bottom: var(--space-6); }
/* The ridge WITH the sun appears once per page, at the closing moment. */
.peak-sun { margin-top: var(--space-7); }
/* the 100vw breakout can add a scrollbar-width sliver — clip it */
body { overflow-x: clip; }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: var(--fw-bold);
  font-size: var(--type-label); line-height: var(--lh-label);
  letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--gh-pine); display: block; margin: 0 0 var(--space-4);
}
.surface-forest .eyebrow { color: var(--gh-gold); }

.display {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(38px, 7vw, var(--type-display));
  line-height: var(--lh-display); letter-spacing: var(--tr-display);
  text-transform: uppercase; color: var(--gh-forest); margin: 0; text-wrap: balance;
}

.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.surface-forest .lead { color: rgba(244,247,243,0.82); }
.muted { color: var(--text-muted); }
.surface-forest .muted { color: rgba(244,247,243,0.72); }

.statement {
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, var(--type-h1)); line-height: 1.04;
  letter-spacing: var(--tr-h1); margin: 0; max-width: 22ch;
}

/* Pull line — one sentence per page that deserves headline weight without
   being a headline. Mirrors the brand guide's quote spec. */
.pull {
  font-size: clamp(20px, 2.3vw, 26px); line-height: 1.35;
  font-weight: var(--fw-semibold); letter-spacing: -0.01em;
  color: var(--gh-forest); max-width: 34ch;
}
.surface-forest .pull { color: var(--gh-bone); }

/* Wayfinding mark — coordinates, serials */
.mark {
  font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--type-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.surface-forest .mark { color: rgba(244,247,243,0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body);
  font-weight: var(--fw-semibold); font-size: 15px; line-height: 1; text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; transition: background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--gh-white); }
.btn--primary:hover { background: var(--gh-dusk-3); color: var(--gh-white); }
.btn--forest { background: var(--gh-forest); color: var(--gh-bone); }
.btn--forest:hover { background: var(--gh-pine); color: var(--gh-bone); }
.btn--ghost { background: transparent; color: var(--gh-forest); border-color: var(--gh-mist); }
.btn--ghost:hover { border-color: var(--gh-forest); color: var(--gh-pine); }
.surface-forest .btn--ghost { color: var(--gh-bone); border-color: rgba(244,247,243,0.32); }
.surface-forest .btn--ghost:hover { border-color: var(--gh-bone); color: var(--gh-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(245,248,245,0.93);
  backdrop-filter: saturate(1.08) blur(8px); border-bottom: var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  max-width: 1120px; margin: 0 auto; padding: var(--space-3) var(--space-5);
}
/* The logo is always the full Greathouse Retail signature — never the word alone. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__lockup { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.nav__links a { text-decoration: none; }
.nav__links a:not(.btn) { color: var(--gh-forest); font-weight: var(--fw-medium); font-size: 15px; }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav__links .btn { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-9) 0 var(--space-8); }
.hero .wrap { position: relative; }
.hero .display { max-width: 16ch; }
.hero .lead { margin-top: var(--space-5); max-width: 56ch; }
/* The sunrise roundel as hero art — the icon at a size where the sunrise reads. */
.hero-art {
  position: absolute; right: var(--space-5); top: 50%;
  transform: translateY(-50%); width: min(280px, 24vw);
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.35));
}
@media (max-width: 960px) { .hero-art { display: none; } }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface-card); border: var(--hairline); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sheet); }
.card h3 { color: var(--gh-forest); }
.card p:last-child { margin-bottom: 0; }
.card .kicker {
  font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gh-pine);
  display: block; margin-bottom: var(--space-3);
}
.card--forest { background: var(--gh-forest); border-color: var(--gh-forest); color: var(--gh-bone); box-shadow: none; }
.card--forest h3 { color: var(--gh-bone); }
.card--forest .kicker { color: var(--gh-gold); }
.card--forest p { color: rgba(244,247,243,0.78); }

/* ---------- Gold-dot lists (the sun as a bullet) ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative; padding: 11px 0 11px 22px; border-bottom: var(--hairline);
  font-weight: var(--fw-medium);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gh-gold);
}
.surface-forest .checks li { border-color: rgba(244,247,243,0.18); }

/* ---------- Numbered method list ---------- */
.way { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.way li {
  display: flex; gap: var(--space-5); padding: var(--space-5) 0;
  border-top: var(--hairline); align-items: baseline;
}
.way li:last-child { border-bottom: var(--hairline); }
.way .n {
  font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gh-pine); flex: 0 0 132px;
}
.way .b h3 { margin: 0 0 4px; }
.way .b p { margin: 0; color: var(--text-muted); }
.surface-forest .way li { border-color: rgba(244,247,243,0.18); }
.surface-forest .way .n { color: var(--gh-gold); }
.surface-forest .way .b p { color: rgba(244,247,243,0.78); }

/* ---------- GREAT band (compact, home) ---------- */
.great-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.great-grid .g {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--gh-bone);
}
.great-grid .w {
  font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--type-label);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--gh-gold);
  margin: var(--space-2) 0 var(--space-2);
}
.great-grid p { font-size: var(--type-small); color: rgba(244,247,243,0.72); margin: 0; }
@media (max-width: 880px) { .great-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .great-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: var(--space-7); border-top: var(--hairline); padding-top: var(--space-6); }
.stat { flex: 1 1 200px; }
.stat .v {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1; color: var(--gh-forest);
}
.stat .l {
  font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--type-label);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-muted);
  margin-top: var(--space-3);
}
.surface-forest .stats { border-color: rgba(244,247,243,0.18); }
.surface-forest .stat .v { color: var(--gh-bone); }
.surface-forest .stat .l { color: rgba(244,247,243,0.72); }

/* ---------- Guarantee ---------- */
.guarantee {
  display: flex; gap: var(--space-5); align-items: flex-start;
  background: var(--gh-forest); color: var(--gh-bone);
  border-radius: var(--radius-lg); padding: var(--space-7);
}
.guarantee .sun { width: 14px; height: 14px; border-radius: 50%; background: var(--gh-gold); flex: none; margin-top: 10px; }
.guarantee h3 { color: var(--gh-bone); margin: 0 0 var(--space-3);
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.guarantee p { color: rgba(244,247,243,0.78); margin: 0; }

/* ---------- FAQ (plain questions, honest answers) ---------- */
.faq { margin-top: var(--space-6); }
.faq details { border-top: var(--hairline); }
.faq details:last-child { border-bottom: var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 14px;
  padding: var(--space-5) 0; font-family: var(--font-display);
  font-weight: var(--fw-semibold); font-size: var(--type-h3); color: var(--gh-forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gh-gold); flex: none; transform: translateY(-2px);
  transition: background var(--dur-base) var(--ease-standard);
}
.faq details[open] summary::before { background: var(--gh-berry); }
.faq details p { margin: 0 0 var(--space-5); padding-left: 22px; color: var(--text-muted); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: start; }
.form { display: grid; gap: var(--space-4); max-width: 560px; }
.form label { display: block; font-weight: var(--fw-semibold); font-size: var(--type-small); margin-bottom: 6px; color: var(--gh-forest); }
.form input, .form textarea, .form select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--gh-ink);
  padding: 12px 14px; background: var(--gh-white); border: 1px solid var(--gh-mist);
  border-radius: var(--radius-sm); transition: border-color var(--dur-base) var(--ease-standard);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gh-trail); }
.form textarea { min-height: 130px; resize: vertical; }
/* appearance:none resets the UA border, so restate it here to match the inputs */
.form select {
  appearance: none; border: 1px solid var(--gh-mist); cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234A5650' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* honeypot — hidden anti-spam field */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* radio group — the referral attribution choice */
.choice { display: grid; gap: var(--space-2); }
.choice .opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
  border: 1px solid var(--gh-mist); border-radius: var(--radius-sm);
  background: var(--gh-white); cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.choice .opt:hover { border-color: var(--gh-trail); }
.choice .opt input { width: auto; margin: 3px 0 0; accent-color: var(--gh-trail); flex: none; }
.choice .opt span { font-size: var(--type-small); line-height: 1.45; }
.choice .opt strong { display: block; font-size: var(--type-body); margin-bottom: 2px; color: var(--gh-forest); }

.callout { background: var(--gh-white); border: var(--hairline); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gh-forest); color: var(--gh-bone); }
.site-footer a:not(.btn) { color: var(--gh-bone); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--gh-gold); }
.foot-inner { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; padding: var(--space-8) 0 var(--space-6); }
.foot-brand .brand__lockup { height: 52px; }
.tagline {
  font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase;
  font-size: 17px; line-height: 1.2; margin: var(--space-4) 0 var(--space-2); color: var(--gh-bone);
}
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { font-weight: var(--fw-medium); }
.foot-bottom {
  border-top: 1px solid rgba(244,247,243,0.18); padding: var(--space-5) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .nav { gap: var(--space-3); }
  .brand__lockup { height: 38px; }
  .nav__links { gap: var(--space-4); font-size: 14px; }
  .way li { flex-direction: column; gap: var(--space-2); }
  .way .n { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
