/* ================================================
   Elora — Homepage v2 Stylesheet
   Loaded on homepage only, after style.css
   ================================================ */

/* ── Additional custom properties ── */
:root {
  --nav-height: 68px;
  --ivory-warm: #F5EFE7;
  --blush-deep: #ECD9D1;
  --rose-deep: #A85F5F;
  --sage-light: #8B9A8D;
  --sage-wash: #DDE3DE;
  --ink: #2C2826;
  --ink-soft: rgba(44,40,38,.72);
  --ink-faint: rgba(44,40,38,.5);
  --ink-hair: rgba(44,40,38,.08);
}

/* ============================================
   NAV — transparent over the hero
   ============================================ */
.site-nav {
  background: transparent;
  border-bottom-color: transparent;
}
.site-nav.is-scrolled {
  background: var(--ivory);
}

/* ============================================
   HERO — full-bleed photo, text overlay
   ============================================ */
.hero-a {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: max(600px, calc(41vw + 160px));
  margin-top: calc(-1 * var(--nav-height));
  overflow: hidden;
}

.hero-a-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero-ghost.jpeg');
  background-size: cover;
  background-position: center 15%;
  z-index: 1;
}

.hero-a-wash-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(250,247,242,0.92) 0%,
    rgba(250,247,242,0.7) 40%,
    rgba(250,247,242,0.2) 80%,
    rgba(250,247,242,0) 100%
  );
}

.hero-a-wash-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(250,247,242,0.92) 0%,
    rgba(250,247,242,0.7) 40%,
    rgba(250,247,242,0.2) 80%,
    rgba(250,247,242,0) 100%
  );
}

.hero-a-copy-top {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 32px;
  text-align: center;
}

.hero-a-headline {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 4.6vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
}

.hero-a-headline .forgot {
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-a-copy-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 64px;
  text-align: center;
}

.hero-a-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto 16px;
  font-weight: 400;
}

.hero-a-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.cta-primary {
  background: var(--rose);
  color: var(--ivory);
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
  box-shadow: 0 4px 20px rgba(196,122,122,.25);
}

.cta-primary:hover { background: var(--rose-deep); }

.cta-secondary {
  background: rgba(250,247,242,0.9);
  color: var(--ink);
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: background .2s, color .2s;
  backdrop-filter: blur(4px);
}

.cta-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}

/* Hero-scoped compact buttons */
.hero-a-ctas .cta-primary {
  padding: 12px 28px;
  font-size: 14px;
}

.hero-a-ctas .cta-secondary {
  padding: 11px 28px;
  font-size: 14px;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  background: var(--ivory);
  padding: 80px 96px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

.stat {
  padding: 0 32px;
  border-right: 1px solid var(--ink-hair);
  text-align: center;
}

.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }

.stat-value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stat-value em {
  color: var(--rose);
  font-style: italic;
  font-weight: 300;
}

.stats-strip .stat-label {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
}

.stat-unit-short { display: none; }

/* ============================================
   SECTION — Paths
   ============================================ */
.section-paths {
  background: var(--ivory);
  padding: 60px 96px 140px;
}

.section-eyebrow {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--sage);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 72px;
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.path-card {
  background: var(--ivory);
  padding: 48px 36px 40px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
  transition: background .4s;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
}

.path-card:hover {
  background: var(--sage-wash);
}

.path-number {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 48px;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 32px;
}

.path-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  color: var(--ink);
}

.path-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px;
  flex-grow: 1;
}

.path-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .2s, gap .2s;
}

.path-link::after {
  content: '\2192';
  transition: transform .2s;
}

.path-card:hover .path-link {
  color: var(--sage);
  gap: 14px;
}

/* ============================================
   SECTION — 1940 History
   ============================================ */
.section-history {
  background: var(--blush);
  padding: 180px 96px;
  position: relative;
  overflow: hidden;
}

.history-watermark {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(280px, 42vw, 640px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(196,122,122,0.12);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}

.history-inner {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.history-eyebrow {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--sage);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.history-statement {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 40px;
  color: var(--ink);
}

.history-statement .highlight {
  color: var(--rose);
  font-style: italic;
  font-weight: 400;
}

.history-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
}

.history-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--sage);
  transition: color .2s, gap .2s;
}

.history-link::after {
  content: '\2192';
  transition: transform .2s;
}

.history-link:hover {
  color: var(--sage);
  gap: 14px;
}

/* ============================================
   SECTION — Research
   ============================================ */
.section-research {
  background: var(--ivory);
  padding: 100px 96px 60px;
}

.research-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}

.research-head .title-group {
  max-width: 620px;
}

.research-sans-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
}

.research-head .see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.research-head .see-all:hover {
  color: var(--sage);
  border-color: var(--sage);
}

.research-head .see-all::after { content: '\2192'; }

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.research-card {
  background: var(--ivory-warm);
  padding: 40px 32px 36px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: background .3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-height: 320px;
}

.research-card:hover {
  background: var(--blush-deep);
}

.research-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.research-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--ink);
}

.research-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
  flex-grow: 1;
}

.research-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}

.research-link::after {
  content: '\2192';
}

.research-card:hover .research-link {
  color: var(--rose);
  gap: 12px;
}

/* ============================================
   SECTION — Testimonial
   ============================================ */
.section-testimonial {
  background: var(--ivory);
  padding: 60px 96px 80px;
}

.testimonial-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid var(--rose);
}

.section-testimonial .quote-text {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
}

.quote-meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 48px;
}

.quote-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose);
  text-decoration: none;
  transition: color .2s;
}

.quote-link:hover { color: var(--rose-deep); }

.quote-link::after { content: ' \2192'; }

/* ============================================
   SECTION — Newsletter
   ============================================ */
.section-newsletter {
  background: var(--rose);
  padding: 140px 96px;
}

.newsletter-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 24px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-title .translate {
  font-style: italic;
  font-weight: 300;
}

.newsletter-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(250,247,242,0.85);
  max-width: 540px;
  margin: 0 auto 40px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(250,247,242,0.15);
  border: 1px solid rgba(250,247,242,0.3);
  border-radius: 999px;
  padding: 6px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: var(--ivory);
}

.newsletter-input::placeholder {
  color: rgba(250,247,242,0.65);
}

.newsletter-input:focus { outline: none; }

.newsletter-submit {
  background: var(--ivory);
  color: var(--ink);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.newsletter-submit:hover { background: #FFFFFF; }

.newsletter-fine {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(250,247,242,0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .section-research, .section-newsletter,
  .section-history, .section-testimonial { padding-left: 48px; padding-right: 48px; }
  .hero-a-copy-top { padding: 0 48px; }
  .hero-a-copy-bottom { padding: 0 48px; }
  .hero-a-headline { font-size: clamp(32px, 4vw, 64px); }
  .stats-strip { padding: 60px 48px; }
  .section-paths { padding: 50px 48px 100px; }
}

@media (max-width: 900px) {
  :root { --nav-height: 60px; }
  .section-paths { padding: 40px 32px 80px; }
  .section-research, .section-history,
  .section-testimonial, .section-newsletter {
    padding: 80px 32px;
  }
  .stats-strip { padding: 48px 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat { border-right: none; padding: 0; }
  .stat-unit-full { display: none; }
  .stat-unit-short { display: inline; }
  .paths-grid, .research-grid { grid-template-columns: 1fr; gap: 16px; }
  /* -- Hero: phone full-bleed overlay -- */
  .hero-a {
    height: 100svh;
    min-height: auto;
  }
  .hero-a-wash-top { height: 22%; }
  .hero-a-wash-bottom { height: 38%; }
  .hero-a-copy-top { padding: 0 24px; }
  .hero-a-copy-bottom { bottom: 20px; padding: 0 24px; }
  .hero-a-headline {
    font-size: clamp(24px, 6.5vw, 36px);
    max-width: 100%;
    white-space: normal;
  }
  .hero-a-sub {
    font-size: 15px;
    line-height: 1.45;
    max-width: 100%;
    margin: 0 0 8px;
  }
  .hero-a-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .hero-a-ctas .cta-primary {
    padding: 13px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  .hero-a-ctas .cta-secondary {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    border: none;
    gap: 12px;
  }
  .newsletter-input {
    background: rgba(250,247,242,0.15);
    border: 1px solid rgba(250,247,242,0.3);
    color: var(--ivory);
    border-radius: 999px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-a, .hero-a-bg,
  .path-card, .path-link,
  .research-card, .research-link,
  .history-link, .quote-link,
  .cta-primary, .cta-secondary,
  .newsletter-submit {
    transition: none !important;
  }
}
