/* ============================================
   NURAYA — home.css
   Homepage-specific sections.
   Loaded only on index.html.
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--forest);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 280px solid transparent;
  border-right: 280px solid transparent;
  border-bottom: 600px solid rgba(169, 103, 23, 0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-bottom: 400px solid rgba(169, 103, 23, 0.03);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__headline {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
}

.hero__lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(242, 228, 206, 0.65);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   GROWTH SYSTEM
   ============================================ */
.growth {
  background: var(--dew);
  padding: var(--space-xl) 0;
}

/* ============================================
   ABOUT BAND
   ============================================ */
.about-band {
  background: var(--offwhite);
  padding: var(--space-xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--dew);
  border-radius: 3px;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-content__text {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-content__text strong { color: var(--ink); font-weight: 500; }

/* ============================================
   INSIGHTS
   ============================================ */
.insights {
  background: var(--offwhite);
  padding: var(--space-xl) 0;
}

.insights__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ============================================
   JOURNEY BAND — mirrors pillar rhythm on a 4-col grid
   ============================================ */
.journey {
  background: var(--offwhite);
  padding: var(--space-xl) 0;
}

.journey__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

.journey-card {
  position: relative;
  display: block;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 3px;
  border: 1px solid rgba(4, 45, 34, 0.06);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: all 0.4s ease;
}

.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.journey-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(4, 45, 34, 0.08); }
.journey-card:hover::before { transform: scaleX(1); }

.journey-card__icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.journey-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.journey-card__number {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.journey-card__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.journey-card__desc {
  font-size: var(--fs-caption);
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   RESPONSIVE — HOME
   ============================================ */
@media (max-width: 1024px) {
  .journey__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 85dvh; padding: 7rem 0 var(--space-lg); }
  .hero__content { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .about-grid .about-img { order: -1; }

  .insights__grid { grid-template-columns: 1fr 1fr; }
  .insights__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 80dvh; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .insights__grid { grid-template-columns: 1fr; }

  .journey__grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOMEPAGE FULL-VIEWPORT SECTIONS
   Each section behaves like its own "screen" on desktop/tablet.
   Scoped to .home body class so shared components (.framework,
   .cta-band) keep their normal sizing elsewhere.
   Hero is excluded — already sets its own min-height above.
   CTA Band is excluded — short, punchy closer, not a screen.
   ============================================ */

/* Rich-content sections fill the full viewport. */
.home .framework,
.home .growth,
.home .featured-video,
.home .insights,
.home .journey {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Sparser sections cap at 80vh so centered content doesn't leave
   a near-viewport of empty space between back-to-back short sections. */
.home .about-band,
.home .testimonials {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.home .framework > .container,
.home .growth > .container,
.home .about-band > .container,
.home .testimonials > .container,
.home .featured-video > .container,
.home .insights > .container,
.home .journey > .container {
  width: 100%;
}

/* Zero margins between homepage sections — viewport height IS the spacing. */
.home .hero,
.home .framework,
.home .growth,
.home .about-band,
.home .testimonials,
.home .featured-video,
.home .insights,
.home .journey,
.home .cta-band {
  margin-top: 0;
  margin-bottom: 0;
}

/* Tablet — softer 80vh for the 100vh sections; short sections already at 80vh. */
@media (min-width: 769px) and (max-width: 1024px) {
  .home .framework,
  .home .growth,
  .home .featured-video,
  .home .insights,
  .home .journey {
    min-height: 80vh;
  }
}

/* Mobile — let content dictate height; full-viewport creates empty gaps. */
@media (max-width: 768px) {
  .home .framework,
  .home .growth,
  .home .about-band,
  .home .testimonials,
  .home .featured-video,
  .home .insights,
  .home .journey {
    min-height: auto;
  }
}

/* Gentle scroll-snap settle on desktop only — proximity, not mandatory,
   so users keep free-scroll control. */
@media (min-width: 1025px) {
  .home {
    scroll-snap-type: y proximity;
  }
  .home .hero,
  .home .framework,
  .home .growth,
  .home .about-band,
  .home .testimonials,
  .home .featured-video,
  .home .insights,
  .home .journey,
  .home .cta-band {
    scroll-snap-align: start;
  }
}

/* ============================================
   TESTIMONIALS — "What our clients say"
   ============================================ */
.testimonials {
  background: var(--offwhite);
  padding: var(--space-xl) 0;
  text-align: center;
}

.testimonials__carousel {
  position: relative;
  max-width: 800px;
  margin: 2.5rem auto 0;
  overflow: hidden;
}

.testimonial-card {
  padding: 2rem 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-card[hidden] {
  display: none;
}

.testimonial-card.is-active {
  opacity: 1;
}

.testimonial-card__quote {
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.testimonial-card__text {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--forest);
  margin-bottom: 2rem;
}

.testimonial-card__name {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--forest);
}

.testimonial-card__role {
  display: block;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 0.25rem;
}

.testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.testimonials__dot:hover {
  transform: scale(1.15);
}

.testimonials__dot.is-active {
  background: var(--amber);
}

/* ============================================
   FEATURED VIDEO — "Nuraya Conversations"
   ============================================ */
.featured-video {
  background: var(--forest);
  padding: var(--space-xl) 0;
  color: var(--cream);
}

.featured-video__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.featured-video__content .eyebrow {
  color: var(--amber);
}

.featured-video__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
  margin: 1rem 0;
}

.featured-video__description {
  font-size: var(--fs-body);
  font-weight: 300;
  color: rgba(242, 228, 206, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.featured-video__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.featured-video__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .featured-video__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
