/* ==========================================================================
   Coast Modular - Granny Flats landing page
   Design tokens sourced from enrichment/brand/brand-tokens.json
   ========================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/mona-sans-var.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --orange: #E5773C;
  --orange-dark: #C95F28;
  --orange-tint: #FDF3ED;
  --timber: #705040;
  --timber-light: #806050;
  --charcoal: #33373D;
  --charcoal-soft: #4A4F57;
  --taupe: #C5C3B2;
  --off-white: #F1F1F1;
  --cream: #FAF8F5;
  --line: #E3E0DA;
  --white: #FFFFFF;

  --font-head: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Mona Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(51, 55, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(51, 55, 61, 0.10);
  --shadow-lg: 0 18px 48px rgba(51, 55, 61, 0.16);

  --nav-h: 74px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { max-width: 66ch; }

.label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

/* ---------- Layout ---------- */
.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 3rem); margin-inline: auto; }

section { padding: 7rem 0; }
.section--tight { padding: 4.5rem 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--charcoal); color: rgba(255,255,255,0.78); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .label { color: var(--orange); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .label,
.section-head h2,
.section-head p { max-width: none; margin-left: auto; margin-right: auto; }
.section-head p { max-width: 62ch; margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 1rem 1.9rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--orange); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.45); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--outline { border: 1px solid var(--line); color: var(--charcoal); background: var(--white); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }
.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Scroll animation ---------- */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.stagger.visible > * { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive base ---------- */
@media (max-width: 900px) {
  section { padding: 5rem 0; }
  .container, .container--narrow { width: min(100% - 2.5rem, 1180px); }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .container, .container--narrow { width: calc(100% - 2rem); }
  .section-head { margin-bottom: 2.25rem; }
  p { font-size: 0.95rem; }
}
