/* ============================================================
   NearAway — Homepage styles
   Built on colors_and_type.css tokens. Warm, still, premium.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--linen);
  color: var(--ink-1);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.hp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.hp-eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: var(--t-label);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3);
}
.hp-eyebrow.terra { color: #B07F52; }

/* ── Buttons ─────────────────────────────────────────────── */
.hp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 400; letter-spacing: 0.01em;
  padding: 13px 22px; border-radius: var(--r-pill);
  transition: transform .2s ease, background .25s ease, color .25s ease, opacity .25s ease;
}
.hp-btn svg { width: 16px; height: 16px; }
.hp-btn-primary { background: var(--accent, var(--terracotta)); color: #2A1B10; }
.hp-btn-primary:hover { filter: brightness(1.04); }
.hp-btn-ghost { color: var(--ink-1); padding-left: 6px; padding-right: 6px; }
.hp-btn-ghost:hover { color: var(--ink-2); }
.hp-btn-onember { background: var(--accent, var(--terracotta)); color: #2A1B10; }
.hp-btn-line {
  border: 1px solid var(--ink-line); color: var(--ink-1); background: rgba(255,255,255,.4);
}
.hp-btn-line:hover { background: #fff; }

/* ── Nav ─────────────────────────────────────────────────── */
.hp-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--ink-line);
}
.hp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.hp-nav-logo img { height: 26px; width: auto; }
.hp-nav-links { display: flex; gap: 30px; }
.hp-nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.hp-nav-links a:hover { color: var(--ink-1); }
.hp-nav-right { display: flex; align-items: center; gap: 18px; }
.hp-nav-signin { font-size: 14.5px; color: var(--ink-2); }
.hp-nav-signin:hover { color: var(--ink-1); }
@media (max-width: 860px) { .hp-nav-links { display: none; } }

/* ── Hero ────────────────────────────────────────────────── */
.hp-hero { padding: clamp(36px, 6vw, 76px) 0 clamp(48px, 7vw, 96px); }
.hp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hp-hero-copy { max-width: 520px; }
.hp-hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 6.2vw, 88px); line-height: 0.99; letter-spacing: -0.02em;
  color: var(--ink-1); margin: 20px 0 0; text-wrap: balance;
}
.hp-hero h1 .soft { color: #B07F52; }
.hp-hero-sub {
  font-weight: 400; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.62;
  color: var(--ink-2); margin-top: 24px; max-width: 460px; text-wrap: pretty;
}
.hp-hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hp-hero-note { margin-top: 22px; font-size: 13px; font-weight: 300; color: var(--ink-3); display: flex; align-items: center; gap: 9px; }
.hp-hero-note .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(214,163,120,.2); }

/* hero image + scene switcher */
.hp-stage { position: relative; }
.hp-stage-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--linen-2);
  aspect-ratio: 16 / 10;
}
.hp-stage-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
}
.hp-stage-frame img.active { opacity: 1; }
.hp-switch {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 4px; padding: 7px 8px;
  background: rgba(26,20,18,.46); backdrop-filter: blur(10px);
  border: 1px solid rgba(245,237,228,.18); border-radius: var(--r-pill);
}
.hp-switch button {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: var(--r-pill); color: var(--paper-2); font-size: 12.5px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.hp-switch button .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3);
  transition: background .2s, box-shadow .2s; flex-shrink: 0;
}
.hp-switch button.on { color: var(--linen); background: rgba(245,237,228,.10); }
.hp-switch button.on .dot { background: var(--terracotta); box-shadow: 0 0 0 3px rgba(214,163,120,.25); }
.hp-switch button .lbl { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s ease, opacity .25s ease; }
.hp-switch button.on .lbl { max-width: 120px; opacity: 1; }

@media (max-width: 820px) {
  .hp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hp-hero-copy { max-width: 560px; }
  .hp-stage-frame { aspect-ratio: 4 / 3; }
}

/* ── Section scaffolding ─────────────────────────────────── */
.hp-section { padding: clamp(64px, 9vw, 128px) 0; }
.hp-section.paper { background: var(--linen-2); }
.hp-section.ember { background: var(--ember); }
.hp-sec-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 60px); }
.hp-sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.hp-sec-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: var(--t-h2);
  line-height: 1.1; color: var(--ink-1); margin-top: 16px; letter-spacing: -0.01em;
}
.hp-sec-head p { font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 16px; text-wrap: pretty; }
.ember .hp-sec-head h2 { color: var(--paper-1); }
.ember .hp-sec-head p { color: var(--paper-2); }
.ember .hp-eyebrow { color: var(--terracotta-soft); }

/* ── How it works ────────────────────────────────────────── */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.hp-step { }
.hp-step-ico {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-line); background: var(--linen); color: var(--ink-1); margin-bottom: 22px;
}
.hp-step-ico svg { width: 21px; height: 21px; stroke-width: 1.5; }
.hp-step-n { font-size: 12px; letter-spacing: var(--track-label); color: var(--ink-3); }
.hp-step h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink-1); margin: 6px 0 10px; }
.hp-step p { font-weight: 400; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.hp-step-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--terracotta); background: none; border: none; cursor: pointer;
  transition: color 0.2s;
}
.hp-step-more:hover { color: #B07F52; }
.hp-step-more svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.hp-step-more svg.flip { transform: rotate(180deg); }
.hp-step-detail {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}
.hp-step-detail.show {
  max-height: 300px; opacity: 1; margin-top: 14px;
}
.hp-step-detail p {
  font-weight: 400; font-size: 14px; line-height: 1.7; color: var(--ink-2);
  padding: 16px 20px; background: var(--linen); border-radius: var(--r-md);
  border-left: 3px solid var(--terracotta);
}
@media (max-width: 760px) { .hp-steps { grid-template-columns: 1fr; gap: 36px; } }

/* ── Privacy ──────────────────────────────────────────────── */
.hp-privacy { background: var(--ember); }
.hp-privacy .hp-sec-head h2 { color: var(--paper-1); }
.hp-privacy .hp-sec-head p { color: var(--paper-2); }
.hp-privacy .hp-eyebrow.terra { color: var(--terracotta-soft); }
.hp-privacy-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hp-privacy-list {
  display: flex; flex-direction: column; gap: 12px;
}
.hp-privacy-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 400; line-height: 1.4;
}
.hp-privacy-item.denied {
  background: rgba(245,237,228,0.06); color: var(--paper-2);
}
.hp-privacy-item.denied .hp-privacy-icon { color: #B07F52; }
.hp-privacy-item.allowed {
  background: rgba(214,163,120,0.10); color: var(--paper-1); font-weight: 400;
}
.hp-privacy-item.allowed .hp-privacy-icon { color: var(--terracotta); }
.hp-privacy-icon {
  flex-shrink: 0; width: 22px; height: 22px;
}
.hp-privacy-icon svg { width: 22px; height: 22px; }
.hp-privacy-footer {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--paper-line);
}
.hp-privacy-footer p {
  font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55; color: var(--paper-2); max-width: 680px; text-wrap: pretty;
}
@media (max-width: 820px) { .hp-privacy-grid { grid-template-columns: 1fr; } }

/* ── The object (product) ────────────────────────────────── */
.hp-object { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hp-object-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/11; }
.hp-object-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-feats { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; }
.hp-feat { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.hp-feat-mark { margin-top: 4px; }
.hp-feat-mark svg { width: 22px; height: 22px; color: var(--terracotta); }
.hp-feat h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink-1); margin-bottom: 5px; }
.hp-feat p { font-weight: 400; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 820px) { .hp-object { grid-template-columns: 1fr; } }

/* ── Two states mini frames ──────────────────────────────── */
.hp-states { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.hp-state {
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ink-line);
  background: #fff; box-shadow: var(--shadow-sm);
}
.hp-state-screen { aspect-ratio: 4/3; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.hp-state-screen.loc { background: linear-gradient(180deg, #C9A37B 0%, #9E6B45 48%, #4A2E1E 100%); }
.hp-state-screen.air { background: linear-gradient(165deg, #A8C2CF 0%, #7B9EB0 55%, #4A5E69 100%); }
.hp-state-screen .city { font-family: var(--serif); font-size: 20px; color: #FBF4EA; }
.hp-state-screen .time { position: absolute; top: 14px; right: 16px; font-size: 12px; color: rgba(251,244,234,.92); letter-spacing: .04em; }
.hp-state-screen .badge {
  position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,244,234,.92);
}
.hp-state-screen .badge .live { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); animation: hp-pulse 2.4s ease-in-out infinite; }
.hp-state-arc { position: absolute; inset: 0; pointer-events: none; }
.hp-state-meta { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.hp-state-meta .k { font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); }
.hp-state-meta .v { font-size: 13.5px; color: var(--ink-1); }
@keyframes hp-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@media (max-width: 560px) { .hp-states { grid-template-columns: 1fr; } }

/* ── For whom ────────────────────────────────────────────── */
.hp-whom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hp-whom-card {
  background: var(--linen); border: 1px solid var(--ink-line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.paper .hp-whom-card { background: #fff; }
.hp-whom-card .role { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink-1); margin-bottom: 12px; }
.hp-whom-card p { font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) { .hp-whom { grid-template-columns: 1fr; } }

/* ── Story (ember + parents photo) ───────────────────────── */
.hp-story-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hp-story-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-photo); aspect-ratio: 4/5; }
.hp-story-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-story-q { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.28; color: var(--paper-1); letter-spacing: -0.01em; text-wrap: balance; }
.hp-story-by { margin-top: 26px; font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--paper-2); max-width: 440px; }
.hp-story-tag { margin-top: 30px; font-size: 13px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--paper-3); }
@media (max-width: 820px) { .hp-story-grid { grid-template-columns: 1fr; } .hp-story-img { aspect-ratio: 3/2; max-height: 520px; } }

/* ── Closing CTA band (father & child) ───────────────────── */
.hp-cta { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hp-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hp-cta-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(26,20,18,.10) 0%, rgba(26,20,18,0) 30%, rgba(26,20,18,.30) 62%, rgba(26,20,18,.78) 100%); }
.hp-cta-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vw, 88px); padding-top: 80px; text-align: center; }
.hp-cta h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 5vw, 66px); line-height: 1.02; color: #FBF4EA; letter-spacing: -0.02em; text-shadow: 0 1px 30px rgba(26,20,18,.4); }
.hp-cta p { margin-top: 16px; font-size: 14px; letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(251,244,234,.82); }
.hp-cta-actions { margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hp-btn-glass { background: rgba(245,237,228,.14); color: var(--linen); border: 1px solid rgba(245,237,228,.3); backdrop-filter: blur(8px); }
.hp-btn-glass:hover { background: rgba(245,237,228,.24); }

/* ── Footer ──────────────────────────────────────────────── */
.hp-footer { background: var(--ember); color: var(--paper-2); padding: clamp(56px, 7vw, 88px) 0 34px; }
.hp-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid var(--paper-line); }
.hp-footer-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.hp-footer-brand .tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--paper-1); }
.hp-footer-col h5 { font-size: 12px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--paper-3); margin-bottom: 16px; }
.hp-footer-col a { display: block; font-size: 14.5px; font-weight: 400; color: var(--paper-2); margin-bottom: 11px; transition: color .2s; }
.hp-footer-col a:hover { color: var(--paper-1); }
.hp-footer-base { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; font-weight: 400; color: var(--paper-3); }
@media (max-width: 760px) { .hp-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } .hp-footer-brand { grid-column: 1 / -1; } }
