/* ─────────────────────────────────────────
   ELYSIAN TRAVEL GROUP — home.css
   Styles specific to the homepage only.
   Requires: base.css
───────────────────────────────────────── */

/* ── HERO (full-width crossfade slideshow) ─ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroSlide 15s ease-in-out infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s;  }
.hero-slide:nth-child(2) { animation-delay: 3s;  }
.hero-slide:nth-child(3) { animation-delay: 6s; }
.hero-slide:nth-child(4) { animation-delay: 9s; }
.hero-slide:nth-child(5) { animation-delay: 12s; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 30s ease-in-out infinite;
}
.hero-slide:nth-child(even) img { animation-name: heroZoomOut; }

@keyframes heroSlide {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes heroZoom    { 0% { transform: scale(1);    } 100% { transform: scale(1.08); } }
@keyframes heroZoomOut { 0% { transform: scale(1.08); } 100% { transform: scale(1);    } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img { animation: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(20,18,14,0.42) 0%,
    rgba(20,18,14,0.08) 48%,
    rgba(20,18,14,0.65) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 13vh;
  left: 64px;
  z-index: 2;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.4s ease 0.7s forwards;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 1.04;
  color: #fff;
  max-width: 680px;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; font-weight: 300; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease 2s forwards;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.38), transparent);
  animation: scrollPulse 2.2s ease-in-out 2.8s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.35; transform: scaleY(1); }
  50%     { opacity: 0.9;  transform: scaleY(1.08); }
}

/* ── INTRO ─────────────────────────────── */
.intro {
  padding: 140px 64px;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: end;
}
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 300;
  line-height: 1.22;
  color: var(--ink);
  margin-top: 28px;
}
.intro-statement em { font-style: italic; }
.intro-right { padding-top: 8px; }
.intro-rule  { width: 32px; height: 1px; background: var(--gold); margin-bottom: 28px; }
.intro-text {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.88;
  color: var(--muted);
  margin-bottom: 20px;
}
.intro-text:last-child { margin-bottom: 0; }

/* ── EXPERIENCES CAROUSEL ──────────────── */
.experiences {
  background: var(--ink);
  padding: 120px 0 100px;
}

/* ── Carousel wrapper: positions the side arrow buttons ── */
.carousel-wrap {
  position: relative;
}

/* Side nav buttons that float over the track edges */
.carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 10, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background    0.3s ease,
    border-color  0.3s ease,
    opacity       0.25s ease,
    transform     0.25s ease;
}
.carousel-side-btn:hover {
  background: rgba(184, 157, 114, 0.18);
  border-color: rgba(184, 157, 114, 0.6);
  color: #fff;
}
/* Sit just inside the track padding (64px) so they overlap the first card */
.carousel-side-btn.side-prev { left: 18px; }
.carousel-side-btn.side-next { right: 18px; }

/* Fade out + disable at scroll limits */
.carousel-side-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  gap: 2px;
  padding: 0 64px;
  overflow-x: auto;
  scrollbar-width: none;
  /* grab cursor set by JS via initDragScroll */
  /* Disable native text selection on the track */
  user-select: none;
  -webkit-user-select: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* All children non-selectable */
.carousel-track * {
  user-select: none;
  -webkit-user-select: none;
}

.exp-card {
  flex: 0 0 390px;
  height: 540px;
  position: relative;
  overflow: hidden;
}
.exp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
  pointer-events: none;
  /* prevent ghost image on drag */
  -webkit-user-drag: none;
  user-drag: none;
}
.exp-card:hover img { transform: scale(1.05); }
.exp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,0.9) 0%, rgba(12,10,8,0.1) 55%);
}
.exp-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 34px;
}
.exp-tag {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
}
.exp-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.18;
}
.exp-desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.78;
}

/* Bottom hint bar — buttons removed, just the drag hint */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 64px 0;
}
.carousel-count {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.12em;
}

/* ── SERVICES (homepage grid) ──────────── */
.services {
  padding: 140px 64px;
  max-width: 1440px;
  margin: 0 auto;
}
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.services-intro {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.92;
  color: var(--muted);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(26,24,20,0.08);
}
.service-item {
  padding: 52px 38px;
  border-right: 1px solid rgba(26,24,20,0.08);
  transition: background 0.4s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.service-item:last-child { border-right: none; }
.service-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-item:hover { background: var(--stone); }
.service-item:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 36px;
  display: block;
  letter-spacing: 0.06em;
}
.service-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.18;
}
.service-desc {
  font-size: 13px;
  font-weight: 400;
  color: #5a5550;
  line-height: 1.82;
  margin-bottom: 40px;
}
.service-arrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.service-item:hover .service-arrow { gap: 14px; }

/* ── DESTINATIONS SECTION (homepage) ───── */
.destinations {
  background: var(--stone);
  padding: 120px 0;
}

/* ── Destination nav buttons (injected by JS) ─
   JS wraps .dest-strip in .dest-strip-wrap and
   floats side buttons over the left/right edges,
   matching the experiences carousel pattern.     */
.dest-strip-wrap {
  position: relative;
}

.dest-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(26, 24, 20, 0.18);
  background: rgba(237, 234, 229, 0.72);  /* matches --stone with opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background    0.3s ease,
    border-color  0.3s ease,
    opacity       0.25s ease;
}
.dest-side-btn:hover {
  background: rgba(184, 157, 114, 0.15);
  border-color: rgba(184, 157, 114, 0.55);
}
.dest-side-btn.dest-side-prev { left: 18px; }
.dest-side-btn.dest-side-next { right: 18px; }
.dest-side-btn.is-disabled {
  opacity: 0;
  pointer-events: none;
}

/* Destination strip: no text selection, grab cursor */
.dest-strip {
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.dest-strip.dragging { cursor: grabbing; }
.dest-strip * {
  user-select: none;
  -webkit-user-select: none;
}
.dest-strip img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* ════════════════════════════════════════
   CONSIDERED ENGAGEMENT
════════════════════════════════════════ */
.considered {
  background: var(--ink);
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.considered-left .label {
  color: var(--gold);
  margin-bottom: 28px;
}
.considered-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 32px;
}
.considered-title em {
  font-style: italic;
  color: var(--gold);
}
.considered-text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  max-width: 440px;
}
.considered-text:last-of-type { margin-bottom: 40px; }

.considered .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 157, 114, 0.35);
  padding-bottom: 4px;
  transition: border-color 0.3s ease;
}
.considered .cta-link:hover { border-color: var(--gold); }

/* Pricing cards */
.considered-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing-item {
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  padding: 44px 48px;
  transition: background 0.3s ease;
}
.pricing-item + .pricing-item { border-top: none; }
.pricing-item.featured {
  border-color: rgba(184, 157, 114, 0.3);
  background: rgba(184, 157, 114, 0.05);
}
.pricing-type {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
}
.pricing-amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 52px;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}
.pricing-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
}
.pricing-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}
.pricing-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.32);
}

/* ════════════════════════════════════════
   PARTNERS STRIP (homepage)
════════════════════════════════════════ */
.partners-strip {
  background: var(--stone);
  padding: 72px 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-strip-label {
  text-align: center;
  margin-bottom: 48px;
}
.partners-consortia {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  max-width: 640px;
  margin: 0 auto 48px;
  border: 1px solid rgba(184,157,114,0.25);
}
.partners-consortia-item {
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  transition: background 0.3s;
}
.partners-consortia-item:hover { background: rgba(184,157,114,0.06); }
.partners-consortia-divider { background: rgba(184,157,114,0.25); }
.partners-consortia-type {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.partners-consortia-item img {
  height: 50px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: opacity 0.35s, filter 0.35s;
}
.partners-consortia-item:hover img { filter: grayscale(0%); opacity: 1; }
.partners-mid-rule {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 40px;
}
.partners-hotels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: rgba(26,24,20,0.07);
  max-width: 900px;
  margin: 0 auto;
}
.partners-hotel {
  background: var(--stone);
  padding: 30px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  text-decoration: none;
  transition: background 0.3s;
}
.partners-hotel:hover { background: #edeae5; }
.partners-hotel img {
  height: 51px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(40%);
  opacity: 0.75;
  transition: opacity 0.35s, filter 0.35s;
}
.partners-hotel:hover img { filter: grayscale(0%); opacity: 1; }
.partners-view-all { text-align: center; margin-top: 36px; }
.partners-view-all a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,157,114,0.35);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}
.partners-view-all a:hover { border-color: var(--gold); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .intro { padding: 100px 40px; gap: 60px; }
  .experiences { padding: 90px 0 72px; }
  .carousel-track { padding: 0 40px; }
  .carousel-controls { padding: 32px 40px 0; }
  .services { padding: 100px 40px; }
  .considered { padding: 100px 56px; gap: 56px; }
  .partners-strip { padding: 60px 40px; }

  /* Side buttons come in slightly from the edge */
  .carousel-side-btn.side-prev { left: 10px; }
  .carousel-side-btn.side-next { right: 10px; }
}

@media (max-width: 900px) {
  .considered { grid-template-columns: 1fr; gap: 60px; padding: 80px 40px; }
  .considered-title { font-size: clamp(32px, 6vw, 44px); }
  .considered-text { max-width: none; }
}

@media (max-width: 768px) {
  .hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 56px;
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 9;
  }
  .hero-content { left: 24px; right: 24px; bottom: 8%; }
  .hero-title { font-size: clamp(24px, 6vw, 40px); }
  .hero-eyebrow { font-size: 8px; margin-bottom: 12px; }
  .hero-scroll { display: none; }

  .intro { padding: 72px 24px; grid-template-columns: 1fr; gap: 36px; }
  .experiences { padding: 72px 0 64px; }
  .carousel-track { padding: 0 24px; }
  .carousel-controls { padding: 28px 24px 0; }
  .exp-card { flex: 0 0 78vw; height: 460px; }

  /* Shrink side buttons on mobile */
  .carousel-side-btn {
    width: 40px;
    height: 40px;
  }
  .carousel-side-btn.side-prev { left: 4px; }
  .carousel-side-btn.side-next { right: 4px; }

  .services { padding: 64px 24px; }
  .services-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-item { padding: 40px 24px; }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-child(1),
  .service-item:nth-child(2) { border-bottom: 1px solid rgba(26,24,20,0.08); }

  .destinations { padding: 72px 0; }

  /* Destination side buttons shrink with the layout */
  .dest-side-btn {
    width: 40px;
    height: 40px;
  }

  /* partners — stack consortia, drop hotels to 3 cols */
  .partners-strip { padding: 48px 24px; }
  .partners-strip-label { margin-bottom: 36px; }
  .partners-consortia {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .partners-consortia-divider {
    width: 100%;
    height: 1px;
  }
  .partners-consortia-item { padding: 22px 24px; }
  .partners-hotels { grid-template-columns: repeat(3, 1fr); }
  .partners-hotel { min-height: 88px; padding: 24px 12px; }
  .partners-hotel img { height: 28px; max-width: 84px; }
}

@media (max-width: 480px) {
  .hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 52px;
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 9;
  }
  .hero-content { left: 20px; right: 20px; bottom: 6%; }
  .hero-title { font-size: clamp(22px, 7vw, 36px); }

  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; }
  .service-item:not(:last-child) { border-bottom: 1px solid rgba(26,24,20,0.08); }

  .considered { padding: 64px 24px; }
  .pricing-item { padding: 36px 28px; }
  .pricing-amount { font-size: 42px; }

  /* Hide side carousel buttons on very small screens — pinch/swipe is enough */
  .carousel-side-btn { display: none; }

  /* Hide destination side buttons on very small screens */
  .dest-side-btn { display: none; }

  /* partners — 2 cols, comfortable tap targets */
  .partners-hotels { grid-template-columns: repeat(2, 1fr); }
  .partners-hotel { min-height: 84px; }
  .partners-hotel img { height: 26px; max-width: 90px; }
}