/* ==========================================================================
   Christina's Wanderlust — Shared Stylesheet
   Palette: Champagne Linen #FDFBF7 / Charcoal #111111 / Antique Gold #C5A880
   ========================================================================== */

:root {
  --champagne: #FDFBF7;
  --charcoal: #111111;
  --gold: #C5A880;
  --gold-soft: rgba(197, 168, 128, 0.35);
  --hairline: rgba(17, 17, 17, 0.08);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--champagne);
  color: var(--charcoal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

/* Subtle organic paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(17,17,17,0.015) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------------------------------------------------------------------- */
/* Typography helpers                                                       */
/* ---------------------------------------------------------------------- */

.font-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.font-body {
  font-family: 'Montserrat', sans-serif;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                               */
/* ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(253, 251, 247, 0.0);
  transition: background-color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header.solid {
  background-color: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-link {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--charcoal);
}

/* Gold pill / primary buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  background-color: transparent;
  border: 1px solid var(--gold);
  padding: 1rem 2.4rem;
  transition: background-color 0.4s ease, color 0.4s ease, letter-spacing 0.4s ease;
}

.btn-gold:hover {
  background-color: var(--gold);
  color: var(--champagne);
}

.btn-gold-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  background-color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1rem 2.4rem;
  transition: opacity 0.4s ease;
}

.btn-gold-solid:hover {
  opacity: 0.82;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 0.4rem;
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.3s ease;
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  letter-spacing: 0.4em;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.18) 0%, rgba(17,17,17,0.08) 45%, rgba(17,17,17,0.45) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--champagne);
  padding: 0 1.5rem;
}

/* Home hero image (sits below the hero banner) */
.hero-image {
  position: relative;
  height: 85vh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 60%, rgba(17,17,17,0.35) 100%);
}

/* Page header (non-home pages) */
.page-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  width: 100%;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 30s infinite;
}

.hero-slide:nth-child(1) { animation-delay: -0.9s; }
.hero-slide:nth-child(2) { animation-delay: 5.1s; }
.hero-slide:nth-child(3) { animation-delay: 11.1s; }
.hero-slide:nth-child(4) { animation-delay: 17.1s; }
.hero-slide:nth-child(5) { animation-delay: 23.1s; }

@keyframes heroFade {
  0%, 100% { opacity: 0; }
  3% { opacity: 1; }
  17% { opacity: 1; }
  20% { opacity: 0; }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.30) 0%, rgba(17,17,17,0.15) 50%, rgba(17,17,17,0.40) 100%);
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--champagne);
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* Horizontal scrolling gallery                                             */
/* ---------------------------------------------------------------------- */

.gallery-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
}

.gallery-row::-webkit-scrollbar {
  height: 4px;
}

.gallery-row::-webkit-scrollbar-track {
  background: var(--hairline);
}

.gallery-row::-webkit-scrollbar-thumb {
  background: var(--gold);
}

.gallery-item {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 78vw;
  max-width: 480px;
  height: 60vh;
  max-height: 560px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: var(--champagne);
}

/* ---------------------------------------------------------------------- */
/* Destination cards                                                        */
/* ---------------------------------------------------------------------- */

.dest-card {
  position: relative;
  overflow: hidden;
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dest-card:hover img {
  transform: scale(1.05);
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 40%, rgba(17,17,17,0.55) 100%);
}

/* ---------------------------------------------------------------------- */
/* Fade-in on scroll                                                        */
/* ---------------------------------------------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Forms — Bespoke Intake                                                   */
/* ---------------------------------------------------------------------- */

.luxury-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.9rem 0.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.luxury-field::placeholder {
  color: rgba(17,17,17,0.35);
  letter-spacing: 0.05em;
}

.luxury-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 10px 24px -18px var(--gold);
}

.luxury-field:focus-visible {
  outline: none;
}

textarea.luxury-field {
  resize: none;
}

.field-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.5);
  margin-bottom: 0.6rem;
}

/* Radio / choice cards for multi-step form */
.choice-card {
  cursor: pointer;
  border: 1px solid var(--hairline);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.choice-card:hover {
  border-color: var(--gold);
}

.choice-input:checked + .choice-card {
  border-color: var(--gold);
  background-color: rgba(197,168,128,0.08);
  box-shadow: 0 12px 28px -22px var(--gold);
}

/* Step indicator */
.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--hairline);
  transition: background-color 0.4s ease, transform 0.4s ease;
}

.step-dot.active {
  background-color: var(--gold);
  transform: scale(1.3);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

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

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.affiliate-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: rgba(17,17,17,0.55);
  white-space: nowrap;
}

.affiliate {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.affiliate-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.3s ease;
}

.affiliate:hover .affiliate-logo {
  opacity: 0.9;
}

/* ---------------------------------------------------------------------- */
/* Instagram Feed                                                           */
/* ---------------------------------------------------------------------- */

.insta-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.insta-row::-webkit-scrollbar {
  display: none;
}

.insta-item {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  display: block;
}

@media (min-width: 768px) {
  .insta-item {
    width: 210px;
    height: 210px;
  }
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insta-item:hover img {
  transform: scale(1.06);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: var(--champagne);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Utility */
.hairline {
  border-color: var(--hairline);
}

.tracking-luxe {
  letter-spacing: 0.28em;
}
