/* =============================================================================
   index.css — Ridiviaanh Homepage
   Page-specific styles for index.html only.
   global.css handles nav, footer, CSS variables, reveal animation.

   Contents:
   1. Hero
   2. Featured Treks (carousel)
   3. Event Teaser
   4. CTA Band
   5. Travel Stories (carousel)
   6. Shared Carousel System
   7. Responsive
============================================================================= */


/* -----------------------------------------------------------------------------
   1. HERO
----------------------------------------------------------------------------- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
}

.hero-slide:nth-child(1) {
  background-image: url('/img/index/hero1.webp');
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  background-image: url('/img/index/hero2.webp');
  animation-delay: 5s;
}
.hero-slide:nth-child(3) {
  background-image: url('/img/index/hero3.webp');
  animation-delay: 10s;
}
.hero-slide:nth-child(4) {
  background-image: url('/img/index/hero4.webp');
  animation-delay: 15s;
}
.hero-slide:nth-child(5) {
  background-image: url('/img/index/hero5.webp');
  animation-delay: 20s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,23,47,0.28) 0%, rgba(11,23,47,0.65) 100%);
  z-index: 1;
}

@keyframes heroFade {
  0%   { opacity: 1; }
  16%  { opacity: 1; }
  20%  { opacity: 0; }
  96%  { opacity: 0; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 1100px;
  width: 100%;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 7vw, 102px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 1.8s 0.3s cubic-bezier(0.23,1,0.32,1) forwards;
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold-pale);
  display: block;
  margin-top: 8px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(247,243,236,0.7);
  font-weight: 300;
  line-height: 1.9;
  max-width: 520px;
  margin: 22px auto 0;
  opacity: 0;
  animation: fadeUp 1.8s 0.55s cubic-bezier(0.23,1,0.32,1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* -----------------------------------------------------------------------------
   2. FEATURED TREKS
----------------------------------------------------------------------------- */
.featured-treks {
  padding: 100px 0 80px;
  background: var(--warm-white);
  overflow: hidden;
}

.ft-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  padding: 0 64px;
}

.ft-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 400;
  margin-bottom: 12px;
}

.ft-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 18px;
}

.ft-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 400;
  color: var(--royal-deep);
  line-height: 1.2;
}

.ft-title em {
  font-style: italic;
  color: var(--royal);
}

.ft-see-all {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--royal);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
  margin-bottom: 4px;
}
.ft-see-all:hover { gap: 14px; }
.ft-see-all::after { content: '→'; font-size: 14px; }

/* Trek cards */
.ft-card {
  flex: 1 0 calc(33.333% - 12px);
  background: #fff;
  border: 1px solid rgba(27,58,107,0.07);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
  scroll-snap-align: start;
}

.ft-card:hover {
  border-color: rgba(201,168,76,0.28);
  box-shadow: 0 8px 40px rgba(27,58,107,0.09);
}

.ft-card-img {
  height: 220px;
  overflow: hidden;
}

.ft-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s;
}

.ft-card:hover .ft-card-img img {
  transform: scale(1.04);
  filter: brightness(1);
}

.ft-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ft-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--royal-deep);
  line-height: 1.25;
  margin-bottom: 8px;
}

.ft-card-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #5A6E84;
  font-weight: 300;
  margin-bottom: 18px;
  flex: 1;
}

.ft-card-meta {
  display: flex;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(11,23,47,0.08);
  margin-top: auto;
  gap: 24px;
}

.ft-card-meta .ft-card-btn {
  margin-left: auto;
}

.ft-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--royal);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ft-card-btn:hover { background: var(--royal-deep); }


.ft-meta-label {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A6E84;
  font-weight: 500;
  margin-bottom: 3px;
}

.ft-meta-val {
  font-size: 13px;
  color: var(--royal-deep);
  font-weight: 400;
}


/* -----------------------------------------------------------------------------
   3. EVENT TEASER
----------------------------------------------------------------------------- */
.event-teaser {
  padding: 100px 64px;
  background: #F5F1EA;
}

.et-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.et-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #9A7520;
  font-weight: 400;
  margin-bottom: 12px;
}

.et-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 18px;
}

.et-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 400;
  color: #0B172F;
  line-height: 1.2;
}

.et-title em {
  font-style: italic;
  opacity: 0.45;
}

.et-see-all {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9A7520;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
  margin-bottom: 4px;
}
.et-see-all:hover { gap: 14px; }
.et-see-all::after { content: '→'; font-size: 14px; }

/* Single event card */
.et-card {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  align-items: stretch;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(11,23,47,0.1);
}

.et-date {
  padding: 32px 0 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid rgba(11,23,47,0.08);
}

.et-month {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9A7520;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.et-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: #0B172F;
  line-height: 1;
  letter-spacing: -2px;
}

.et-body {
  padding: 32px 28px;
}

.et-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.et-cat {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5A6E84;
  font-weight: 500;
}

.et-badge {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(11,23,47,0.07);
  color: #0B172F;
}

.et-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: #0B172F;
  line-height: 1.2;
  margin-bottom: 12px;
}

.et-desc {
  font-size: 14px;
  color: #2E3F56;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 20px;
}

.et-loc {
  font-size: 11px;
  color: #5A6E84;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

.et-loc i {
  font-size: 9px;
  color: #9A7520;
}

.et-img {
  overflow: hidden;
}

.et-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}

.et-card:hover .et-img img { transform: scale(1.03); }


/* -----------------------------------------------------------------------------
   4. CTA BAND
----------------------------------------------------------------------------- */
.cta-band {
  margin: 0 64px 100px;
  background: linear-gradient(135deg, #0F2347 0%, #1B3A6B 55%, #1a4560 100%);
  border-radius: 16px;
  padding: 36px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 8px;
}

.cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

.cta-headline em {
  font-style: italic;
  color: var(--gold-pale);
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
  color: #fff;
  padding: 13px 26px;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-whatsapp:hover { background: #1da851; }
.btn-whatsapp i { font-size: 15px; }

.btn-treks {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(247,243,236,0.3);
  color: rgba(247,243,236,0.85);
  padding: 13px 26px;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-treks:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* -----------------------------------------------------------------------------
   5. TRAVEL STORIES
   NOTE: .ts-grid removed — now uses shared carousel system below.
   All card styles (.ts-card, .ts-card-img etc.) kept as-is.
----------------------------------------------------------------------------- */
.travel-stories {
  padding: 0 0 100px;
  background: #fff;
  overflow: hidden;
}

.ts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  padding: 0 64px;
}

.ts-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 400;
  margin-bottom: 12px;
}

.ts-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 18px;
}

.ts-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 400;
  color: var(--royal-deep);
  line-height: 1.2;
}

.ts-title em {
  font-style: italic;
  color: var(--royal);
}

.ts-see-all {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--royal);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
  margin-bottom: 4px;
}
.ts-see-all:hover { gap: 14px; }
.ts-see-all::after { content: '→'; font-size: 14px; }

/* Card styles — unchanged */
.ts-card {
  background: var(--warm-white);
  border: 1px solid rgba(27,58,107,0.07);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s, box-shadow 0.3s;
  scroll-snap-align: start;
}

.ts-card:hover {
  border-color: rgba(201,168,76,0.28);
  box-shadow: 0 8px 40px rgba(27,58,107,0.08);
}

.ts-card-img {
  height: 200px;
  overflow: hidden;
}

.ts-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s;
}

.ts-card:hover .ts-card-img img {
  transform: scale(1.04);
  filter: brightness(1);
}

.ts-card-body {
  padding: 22px 22px 26px;
}

.ts-card-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 10px;
}

.ts-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--royal-deep);
  line-height: 1.3;
  margin-bottom: 10px;
}

.ts-card-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #3A4F63;
  font-weight: 400;
  margin-bottom: 16px;
}

.ts-card-read {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.3s;
}

.ts-card:hover .ts-card-read { gap: 12px; }
.ts-card-read::after { content: '→'; font-size: 13px; }


/* -----------------------------------------------------------------------------
   6. SHARED CAROUSEL SYSTEM
   Used by: .featured-treks and .travel-stories
   .carousel-track  — the scrollable row
   .carousel-dots   — functional dot indicators
----------------------------------------------------------------------------- */

/* Outer wrapper — full bleed scroll, padding creates side margins */
.carousel-track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  padding: 0 64px 2px;          /* matches section side padding */
  /* On desktop the 3 cards fill the track exactly — no scroll */
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Dot wrapper */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 0 64px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(27,58,107,0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.carousel-dot.active {
  background: var(--royal);
  transform: scale(1.5);
}

/* On dark background sections adjust dot colour */
.carousel-dots--gold .carousel-dot        { background: rgba(201,168,76,0.3); }
.carousel-dots--gold .carousel-dot.active { background: var(--gold); }


/* -----------------------------------------------------------------------------
   7. RESPONSIVE
----------------------------------------------------------------------------- */

/* ── Tablet (≤1100px): show ~2.3 cards, peek hint on right ── */
@media (max-width: 1100px) {

  /* Headers */
  .ft-header  { padding: 0 32px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .ts-header  { padding: 0 32px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .et-header  { flex-direction: column; align-items: flex-start; gap: 14px; }
  .event-teaser { padding: 80px 32px; }

  /* Carousel track padding matches new header padding */
  .carousel-track { padding: 0 32px 2px; }
  .carousel-dots  { padding: 0 32px; }

  /* Trek cards: ~2.3 visible */
  .ft-card { flex: 0 0 calc(50% - 40px); }

  /* Story cards: ~2.3 visible */
  .ts-card { flex: 0 0 calc(50% - 40px); }

  /* Event card collapses image */
  .et-card { grid-template-columns: 72px 1fr 220px; }

  /* CTA band */
  .cta-band {
    margin: 0 32px 80px;
    padding: 32px 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    border-radius: 14px;
  }
}

/* ── Mobile (≤640px): show ~1.2 cards ── */
@media (max-width: 640px) {
    
    /* Hero slides — mobile portrait crops */
    .hero-slide:nth-child(1) { background-image: url('/img/index/hero1M.webp'); background-position: center top; }
    .hero-slide:nth-child(2) { background-image: url('/img/index/hero2M.webp'); background-position: center top; }
    .hero-slide:nth-child(3) { background-image: url('/img/index/hero3M.webp'); background-position: center top; }
    .hero-slide:nth-child(4) { background-image: url('/img/index/hero4M.webp'); background-position: center 30%; }
    .hero-slide:nth-child(5) { background-image: url('/img/index/hero5M.webp'); background-position: center top; }

  .hero-sub { font-size: 15px; }

  .featured-treks { padding: 64px 0 60px; }
  .ft-header  { padding: 0 20px; }
  .ft-card    { flex: 0 0 calc(85vw); }

  .travel-stories { padding: 0 0 64px; }
  .ts-header  { padding: 0 20px; }
  .ts-card    { flex: 0 0 calc(85vw); }

  .carousel-track { padding: 0 20px 2px; gap: 12px; }
  .carousel-dots  { padding: 0 20px; margin-top: 24px; }

  /* Event card: stack vertically */
  .event-teaser { padding: 64px 20px; }
  .et-card {
    grid-template-columns: 1fr;
  }
  .et-date {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 20px 20px 0;
    border-right: none;
    border-bottom: 1px solid rgba(11,23,47,0.08);
    padding-bottom: 16px;
  }
  .et-day   { font-size: 36px; }
  .et-body  { padding: 20px; }
  .et-img   { height: 200px; }

  .cta-band {
    margin: 0 20px 60px;
    padding: 26px 22px;
    border-radius: 12px;
  }
  .cta-buttons          { flex-direction: column; width: 100%; }
  .btn-whatsapp,
  .btn-treks            { width: 100%; justify-content: center; }
}