/* home-editorial.css - New Editorial Narrative Scroll Layout */

:root {
  --ed-maya-bg: #f5f5f7;
  --ed-maya-text: #1a1a1a;
  --ed-tara-bg: #2c3e2e;
  --ed-tara-text: #e8eee9;
  --ed-tara-accent: #b5c7b7;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Navigation overrides for light background on home page */
body[data-page="home"] .site-header {
  position: absolute;
}
body[data-page="home"] .nav-link, 
body[data-page="home"] .nav-partner-link {
  color: var(--ed-maya-text) !important;
  font-weight: 500;
}
body[data-page="home"] .mobile-menu-toggle span {
  background-color: var(--ed-maya-text) !important;
}

.editorial-home {
  font-family: var(--font-sans);
  background-color: var(--ed-maya-bg);
  overflow-x: hidden;
  padding-top: calc(var(--header-height, 64px) + 60px);
}

.ed-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Hero */
.ed-hero {
  position: relative;
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0 60px 0;
  background-color: var(--ed-maya-bg);
  background-image: 
    linear-gradient(rgba(26, 26, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  text-align: center;
}

/* Ambient Typography & Kicker */
.hero-ambient {
  position: absolute;
  bottom: 60px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ed-maya-text);
  opacity: 0.5;
  text-transform: uppercase;
}

.hero-ambient-left {
  left: 5%;
}

.hero-ambient-right {
  right: 5%;
  bottom: 40px; /* Align with the seal center */
}

.spinning-seal text {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ed-maya-text);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.spinning-seal {
  animation: spinSeal 20s linear infinite;
  opacity: 0.6;
}
@keyframes spinSeal {
  to { transform: rotate(360deg); }
}

.ed-hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #666;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--ed-maya-text), transparent);
  animation: scrollGrow 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  opacity: 0.3;
  transform-origin: top;
}

@keyframes scrollGrow {
  0% { transform: translateX(-50%) scaleY(0); opacity: 0; }
  50% { opacity: 0.3; }
  100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

.ed-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ed-maya-text);
  margin-bottom: 24px;
}

.ed-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

.ed-hero-kicker, .ed-hero-title, .ed-hero-subtitle, .hero-ambient {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn 600ms var(--ease-out) forwards;
}

.ed-hero-kicker {
  animation-delay: 0ms;
}

.ed-hero-title {
  animation-delay: 100ms;
}

.ed-hero-subtitle {
  animation-delay: 200ms;
}

.hero-ambient-left {
  animation-delay: 400ms;
  animation-name: heroFadeInAmbient;
}

.hero-ambient-right {
  animation-delay: 500ms;
  animation-name: heroFadeInAmbient;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInAmbient {
  to {
    opacity: 0.5;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-hero-kicker, .ed-hero-title, .ed-hero-subtitle {
    transform: none;
    animation: heroFadeInReduced 400ms ease forwards;
  }
  .hero-ambient {
    transform: none;
    animation: heroFadeInAmbientReduced 400ms ease forwards;
  }
  @keyframes heroFadeInReduced {
    to {
      opacity: 1;
    }
  }
  @keyframes heroFadeInAmbientReduced {
    to {
      opacity: 0.5;
    }
  }
}

/* Maya */
.ed-maya-section {
  padding: 40px 0 300px 0; /* extra padding for overlap */
  background-color: var(--ed-maya-bg);
  position: relative;
  z-index: 1;
}

.ed-maya-content {
  max-width: 800px;
  margin-bottom: 60px;
}

.ed-maya-title {
  font-family: var(--font-sans);
  font-size: 4.5rem;
  font-weight: 300;
  letter-spacing: -2px;
  margin-bottom: 10px;
  color: var(--ed-maya-text);
}

.ed-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ed-maya-text);
  opacity: 0.6;
}

.ed-desc {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 40px;
  max-width: 650px;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.ed-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.ed-btn-maya {
  background-color: #111;
  color: #fff;
}

.ed-maya-visuals {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.ed-img-main {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.ed-img-sub {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Tara */
.ed-tara-section {
  will-change: transform;
  background-color: var(--ed-tara-bg);
  color: var(--ed-tara-text);
  position: relative;
  margin-top: -180px;
  margin-bottom: -100px; /* Pull CTA section up */
  z-index: 2;
  padding: 160px 0 220px 0; /* Extra 100px bottom padding to cover parallax gap */
  border-radius: 80px 80px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
}

.ed-tara-overlap-graphic {
  position: absolute;
  top: -100px;
  right: 12%;
  width: 280px;
  height: 280px;
  background-image: url('assets/tara_sapling_original.png');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 3;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.ed-tara-content {
  max-width: 800px;
  margin-bottom: 60px;
}

.ed-tara-title {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ed-tara-text);
}

.ed-tara-section .ed-tagline {
  color: var(--ed-tara-accent);
  opacity: 1;
}

.ed-tara-section .ed-desc {
  color: #d1dfd3;
}

.ed-btn-tara {
  background-color: var(--ed-tara-accent);
  color: #1a2a1c;
}

.ed-tara-visuals .ed-img-main {
  border-radius: 20px;
  height: 600px;
}

/* CTA */
.ed-cta-section {
  position: relative;
  z-index: 3;
  background-color: var(--ed-tara-bg);
  color: var(--ed-tara-text);
  padding: 60px 0 120px 0;
  text-align: center;
}

.ed-cta-section h2 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .ed-maya-visuals {
    grid-template-columns: 1fr;
  }
  .ed-img-sub {
    margin-top: 0;
  }
  .ed-tara-overlap-graphic {
    width: 180px;
    height: 180px;
    top: -60px;
    right: 5%;
  }
  .ed-hero-title {
    font-size: 2.8rem;
  }
  .ed-maya-title, .ed-tara-title {
    font-size: 3.5rem;
  }
  .ed-tara-section {
    border-radius: 40px 40px 0 0;
    margin-top: -120px;
    padding-top: 120px;
  }
}
