/* ==========================================================================
   Gamoora — gamoora.com
   Palette: Daylight #F7F4EC · Sapwood #ECE3CE · Suar #9C7248
            Heartwood #362A1E · Foliage #687E61 · Deep foliage #4C5F46
   Type: Young Serif (display) · Mulish (body) — self-hosted
   ========================================================================== */

@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/young-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/mulish-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mulish-italic-400.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --daylight: #F7F4EC;
  --sapwood: #ECE3CE;
  --panel: #FFFDF7;
  --ink: #362A1E;
  --ink-2: #6B5D4B;
  --suar: #9C7248;
  --foliage: #687E61;
  --foliage-deep: #4C5F46;
  --foliage-dark: #3E4F39;
  --line: #DDD2BC;
  --on-dark: #ECE3CE;
  --on-dark-muted: #B9A98F;

  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --body: 'Mulish', 'Gill Sans', 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.375rem, 5.2vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.125rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .78rem;

  --container: 1160px;
  --pad-x: clamp(20px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 104px);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(54, 42, 30, .06), 0 10px 28px -14px rgba(54, 42, 30, .22);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--daylight);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--foliage-deep); text-underline-offset: 3px; }
a:hover { color: var(--foliage-dark); }
:focus-visible { outline: 2px solid var(--foliage); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--daylight); padding: 10px 18px;
}
.skip-link:focus-visible { left: 12px; top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }
.eyebrow {
  font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--foliage-deep); margin: 0 0 14px;
}
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn { background: var(--foliage-deep); color: var(--daylight); }
.btn:hover { background: var(--foliage-dark); color: var(--daylight); }
.btn-ghost { border-color: var(--foliage-deep); color: var(--foliage-deep); background: transparent; }
.btn-ghost:hover { border-color: var(--foliage-dark); color: var(--foliage-dark); }
.btn .smile { flex: 0 0 auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* on heartwood ground */
.on-dark .btn { background: var(--sapwood); color: var(--ink); }
.on-dark .btn:hover { background: var(--daylight); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { width: 138px; height: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--foliage-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--foliage); }
.header-buy { flex: 0 0 auto; padding: 10px 18px; font-size: .88rem; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--daylight); border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px var(--pad-x); border-bottom: none; }
  .site-nav a[aria-current="page"] { color: var(--foliage-deep); }
  .nav-toggle { display: block; }
  .header-buy { margin-left: 0; }
  .brand img { width: 120px; }
}
@media (max-width: 480px) {
  .site-header .container { gap: 12px; }
  .brand img { width: 104px; }
  .header-buy { padding: 9px 14px; font-size: .82rem; }
  .header-buy .smile { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section--sap { background: var(--sapwood); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }

/* live-edge divider: sits on the previous section, filled with the next section's color */
.divider { line-height: 0; margin-bottom: -1px; }
.divider svg { width: 100%; height: clamp(42px, 7vw, 90px); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy .lede { font-size: 1.125rem; max-width: 32rem; }
.hero-copy .btn-row { margin-top: 26px; }
.hero-media img {
  width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover;
  clip-path: url(#live-edge-clip);
}
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: 1; }
  .hero-copy { order: 0; }
}

/* hero reveal — the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .6, .2, 1) forwards; }
  .hero-copy > *:nth-child(1) { animation-delay: .08s; }
  .hero-copy > *:nth-child(2) { animation-delay: .18s; }
  .hero-copy > *:nth-child(3) { animation-delay: .28s; }
  .hero-copy > *:nth-child(4) { animation-delay: .38s; }
  .hero-media { opacity: 0; animation: settle 1.1s cubic-bezier(.2, .6, .2, 1) .15s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.04) translateY(8px); } to { opacity: 1; transform: none; } }

  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .6, .2, 1); }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* ---------- product duo ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.product-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-card figure { margin: 0; background: #fff; border-bottom: 1px solid var(--line); }
.product-card figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.product-card .card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .card-body p { font-size: .97rem; color: var(--ink-2); }
.product-card .btn-row { margin-top: auto; padding-top: 14px; }
.spec-line { font-size: var(--fs-small); color: var(--ink-2); margin: 0 0 10px; }
.spec-line b { color: var(--ink); font-weight: 700; }

/* ---------- craft story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }
.story-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-photos picture { display: block; }
.story-photos img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.story-photos picture:nth-child(2) { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .story-photos picture:nth-child(2) { transform: none; } }

/* ---------- styling strip ---------- */
.strip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(74vw, 296px);
  gap: 18px; overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-color: var(--line) transparent;
}
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.strip figcaption { font-size: var(--fs-small); color: var(--ink-2); padding-top: 10px; max-width: 34ch; }

/* ---------- social proof ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 30px; }
.quote {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 0; position: relative;
}
.quote .stars { display: block; color: var(--suar); letter-spacing: 3px; font-size: .92rem; margin-bottom: 8px; }
.quote p { font-style: italic; margin-bottom: 10px; }
.quote cite { font-style: normal; font-size: var(--fs-small); color: var(--ink-2); }
.quote.placeholder { border-style: dashed; }
.quote.placeholder::after {
  content: 'Placeholder — awaiting real Amazon review';
  display: block; margin-top: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--suar);
}
.pillars { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; list-style: none; }
.pillars li { display: flex; align-items: center; gap: 9px; font-size: var(--fs-small); font-weight: 700; }
.pillars li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--foliage); flex: 0 0 auto;
}

/* ---------- final CTA ---------- */
.cta-final { text-align: left; }
.cta-final .btn-row { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: var(--fs-small); }
.site-footer .container { padding-block: clamp(44px, 6vw, 64px) 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { width: 132px; margin-bottom: 14px; }
.social-links { display: flex; gap: 14px; margin-top: 16px; }
.social-links a { color: inherit; opacity: .75; transition: opacity .15s ease; display: inline-flex; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { display: block; }

.site-footer h4 {
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark); margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(236, 227, 206, .18); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(36px, 5vw, 64px) 0; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero .lede { font-size: 1.125rem; max-width: 40rem; }
.page-hero .btn-row { margin-top: 22px; }

/* product gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:first-child img { aspect-ratio: 1; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}

/* spec table */
.spec-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 700; white-space: nowrap; width: 42%; color: var(--ink); }
.spec-table td { color: var(--ink-2); }

/* two-column feature rows (image + text) */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(40px, 6vw, 72px); }
.feature-row img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row > .feature-media { order: -1; }
}

/* numbered steps (real sequence: installation) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; max-width: 34rem; }
.steps li { counter-increment: step; display: flex; gap: 16px; }
.steps li::before {
  content: counter(step);
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--foliage); color: var(--daylight);
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.steps li p { margin: 4px 0 0; }
.steps li b { display: block; }

/* what's in the box */
.box-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 30rem; }
.box-list li { display: flex; gap: 10px; align-items: baseline; }
.box-list li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--suar); flex: 0 0 auto; transform: translateY(-1px); }

/* FAQ accordion */
.faq-group { max-width: 760px; }
.faq-group h3 { margin-top: clamp(32px, 5vw, 48px); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.02rem;
  padding: 18px 36px 18px 0; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-weight: 400; font-size: 1.5rem; color: var(--foliage-deep);
}
details.faq[open] summary::after { content: '–'; }
details.faq .faq-a { padding: 0 0 20px; color: var(--ink-2); }
details.faq .faq-a p { margin-bottom: .7em; }

/* placeholder marker (finish wording etc.) */
.pending {
  display: inline-block; border: 1.5px dashed var(--suar); border-radius: 4px;
  padding: 1px 8px; color: var(--suar);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* video block */
.video-block { position: relative; max-width: 860px; }
.video-block video { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink); }

/* contact form */
.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.contact-form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--foliage); outline-offset: 1px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; font-size: 1rem; }
.form-note {
  background: var(--sapwood); border-radius: var(--radius);
  padding: 14px 18px; font-size: var(--fs-small); max-width: 560px;
}

/* about page */
.about-hero-media img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; clip-path: url(#live-edge-clip); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-facts { display: flex; flex-direction: column; gap: 18px; }
.about-fact { border-left: 3px solid var(--foliage); padding-left: 16px; }
.about-fact b { display: block; font-size: 1.02rem; }
.about-fact p { font-size: .93rem; color: var(--ink-2); margin: 3px 0 0; }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
