/* =========================================
   AThetalife • home.css (v1.2)
   Purpose: Homepage-specific styles
   Notes:
   - Uses core tokens: --bg, --surface, --ink, --muted, --border, --brand, --brand-ink
   - Scoped to .site-header / .home to avoid bleed
   ========================================= */

/* -----------------------------------------
   1. Navigation bar (scoped)
   ----------------------------------------- */
.site-header {
  background: var(--surface);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-1);
}

.site-header .site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.site-header .theta-mark {
  font-size: 1.5rem;
}

.site-header .site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4);
}

.site-header .site-nav a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-header .site-nav a:hover {
  color: var(--brand);
}

/* -----------------------------------------
   2. Hero section
   ----------------------------------------- */
.home .hero {
  background: var(--bg);
  padding: var(--space-8) var(--space-4);
}

.home .hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Two-column layout on larger screens */
@media (min-width: 768px) {
  .home .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .home .hero-copy {
    flex: 1 1 52%;
    text-align: left;
  }

  .home .hero-graphic {
    flex: 1 1 48%;
  }
}

/* Mobile: center-align text */
.home .hero-copy {
  text-align: center;
}

.home .hero h1 {
  margin-bottom: var(--space-3);
}

.home .hero-lead {
  font-size: var(--fs-400);
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .home .hero-actions {
    justify-content: flex-start;
  }
}

.home .hero-meta {
  font-size: var(--fs-300);
  color: var(--muted);
}

/* Hourglass graphic – aligned with current HTML
   .hero-graphic > .hourglass-figure > .hourglass-svg
*/
.home .hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .hourglass-figure {
  margin: 0;
  /* about 40% of the hero width but capped for very large screens */
  max-width: min(40%, 320px);
}

.home .hourglass-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* -----------------------------------------
   3. Hourglass theme hooks (for future inline SVG)
   Note: These apply when/if you inline the SVG with class "hero-hourglass"
   and IDs like #hg-frame, #hg-base, etc.
   ----------------------------------------- */
.hero-hourglass {
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) 0;

  /* Map brand tokens → hourglass palette (override in fixpack if needed) */
  --hg-brass: var(--accent-amber, #b9924a);
  --hg-brass-hi: color-mix(in srgb, var(--hg-brass) 80%, #fff 20%);
  --hg-wood: var(--wood, #5a3d2a);
  --hg-glass: color-mix(in srgb, #cfe8ff 25%, transparent);
  --hg-sand-top: var(--ivory-sand, #efe9da);
  --hg-sand-bot: var(--charcoal-sand, #2c2f33);
  --hg-ink: var(--ink, #e8e8ea);
}

/* If the inline SVG uses our IDs, these styles apply */
.hero-hourglass #hg-frame {
  fill: none;
  stroke: var(--hg-brass);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-hourglass #hg-base {
  fill: var(--hg-wood);
}

.hero-hourglass #hg-nameplate rect {
  fill: var(--hg-brass);
}

.hero-hourglass #hg-nameplate text {
  fill: var(--hg-ink);
}

.hero-hourglass #hg-glass path {
  fill: var(--hg-glass);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.hero-hourglass #hg-sand-top {
  fill: var(--hg-sand-top);
}

.hero-hourglass #hg-sand-bot {
  fill: var(--hg-sand-bot);
}

.hero-hourglass #hg-sand-stream {
  stroke: var(--hg-sand-bot);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  fill: none;
}

/* -----------------------------------------
   4. Generic homepage sections
   (You can expand these for .how-it-works, .cta-band, etc.)
   ----------------------------------------- */
.section {
  padding: var(--space-7) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin-bottom: var(--space-3);
}

.section p {
  max-width: 60ch;
  margin-inline: auto;
}

/* CTA band (matches <section class="cta-band"> in index.html) */
.cta-band {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  background: var(--brand);
  color: #fff;
}

.cta-band h2 {
  margin-bottom: var(--space-3);
}

.cta-band p {
  max-width: 60ch;
  margin: 0 auto var(--space-4);
}

.cta-band .btn {
  background: #fff;
  color: var(--brand-ink);
}

/* "How it works" section */
.how-it-works {
  padding: var(--space-7) var(--space-4);
  border-top: 1px solid var(--border);
}

.how-it-works .section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.how-it-works .how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .how-it-works .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.how-it-works .how-step h3 {
  margin-bottom: var(--space-2);
}

.how-it-works .how-step p {
  color: var(--muted);
  font-size: var(--fs-300);
}
/* Hourglass size on the homepage hero */
/* 20% larger version */
.home .hero .hourglass-svg {
  display: block;
  width: min(288px, 48vw); /* adjust if it feels too big/small */
  height: auto;
  margin: var(--space-4) auto 0;
}
