/* ============================================================
   YOUR GEORGIA — SHARED DESIGN SYSTEM
   Used on: homepage, category hubs, tour detail pages
   ============================================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Palette — deep ink, warm cream paper, amber clay */
  --ink: #0F1714;
  --ink-2: #1C2522;
  --ink-3: #2B3A35;
  --paper: #F4EFE6;
  --paper-2: #EAE2D2;
  --cream: #FBF7EF;
  --clay: #B8804A;
  --clay-dark: #95632F;
  --clay-light: #D4A878;
  --sage: #5C7A5E;
  --mist: #9CA8A0;
  --rust: #8B4513;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --container: 1360px;
  --container-narrow: 1100px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--clay); color: var(--cream); }

/* ============================================
   REVEAL (progressive enhancement)
   ============================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   SHARED: EYEBROW + ICONS
   ============================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--clay);
}
.eyebrow--light { color: var(--clay-light); }
.eyebrow--light::before { background: var(--clay-light); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav--scrolled {
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 20, 0.08);
}
/* On subpages the nav starts on paper background, so always has ink text */
.nav--solid {
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 20, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav--scrolled .nav__brand,
.nav--solid .nav__brand { color: var(--ink); }
/* Brand logo image (replaces "Y" circle mark in nav + footer) */
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 180px;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
  /* When nav is over a dark hero photo, invert the logo to appear white */
  filter: brightness(0) invert(1);
}
/* When nav becomes solid (scrolled or subpages), show the logo in its normal color */
.nav--scrolled .brand-logo,
.nav--solid .brand-logo {
  filter: none;
}
/* Footer always shows the logo light (inverted) against dark bg */
.footer .brand-logo {
  filter: brightness(0) invert(1);
  height: 36px;
  margin-bottom: 8px;
}

.nav__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: color 0.3s var(--ease);
}
.nav--scrolled .nav__links,
.nav--solid .nav__links { color: var(--ink); }
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta {
  padding: 10px 20px;
  background: var(--clay);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--clay-dark); transform: translateY(-1px); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  color: var(--cream);
}
.nav--scrolled .nav__burger,
.nav--solid .nav__burger { color: var(--ink); }
.nav__burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav.nav--open .nav__burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.nav--open .nav__burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--clay);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(184, 128, 74, 0.3);
}
.btn--ghost {
  background: rgba(251, 247, 239, 0.08);
  color: var(--cream);
  border: 1px solid rgba(251, 247, 239, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(251, 247, 239, 0.14);
  border-color: rgba(251, 247, 239, 0.7);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 23, 20, 0.3);
}
.btn--ghost-dark:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--dark {
  background: var(--ink);
  color: var(--cream);
}
.btn--dark:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
}
.btn--cream {
  background: var(--cream);
  color: var(--ink);
}
.btn--cream:hover {
  background: var(--paper);
  transform: translateY(-2px);
}
.btn__arrow {
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================
   SUBPAGE HERO (category hubs + tour pages)
   ============================================ */
.subhero {
  position: relative;
  padding: 180px 0 100px;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
}
.subhero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.subhero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.subhero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(15,23,20,0.55) 0%, rgba(15,23,20,0.25) 35%, rgba(15,23,20,0.85) 100%);
}
.subhero__breadcrumb {
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.subhero__breadcrumb a { transition: opacity 0.2s; }
.subhero__breadcrumb a:hover { opacity: 1; }
.subhero__breadcrumb .sep { opacity: 0.4; }
.subhero__content {
  max-width: 880px;
}
.subhero__tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 20px;
}
.subhero__title {
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.subhero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay-light);
}
.subhero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  max-width: 620px;
  margin-bottom: 36px;
  opacity: 0.9;
}
.subhero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.subhero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.subhero__meta-item strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 300;
  color: var(--clay-light);
}

/* ============================================
   SECTION HEADINGS (shared)
   ============================================ */
.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.section-heading__left { max-width: 760px; }
.section-heading__eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-heading__eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--clay);
}
.section-heading__title {
  font-size: clamp(36px, 5.2vw, 76px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-heading__title em { font-style: italic; color: var(--clay); }
.section-heading__right {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 440px;
  padding-bottom: 8px;
}

/* ============================================
   FINAL CTA (shared)
   ============================================ */
.final-cta {
  padding: 140px 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, rgba(184, 128, 74, 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(92, 122, 94, 0.3) 0%, transparent 50%);
}
.final-cta__content {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.final-cta__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--clay-light);
  margin-bottom: 24px;
  font-weight: 300;
}
.final-cta__title {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.final-cta__title em { font-style: italic; color: var(--clay-light); }
.final-cta__text {
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.82;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER (shared)
   ============================================ */
.footer {
  background: var(--ink-2);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(251, 247, 239, 0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.footer__social a:hover { background: var(--clay); border-color: var(--clay); }
.footer__heading {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.footer__list a:hover { opacity: 1; color: var(--clay-light); }
.footer__bottom {
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 24px; }

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}
.whatsapp__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsappPulse 2s ease-out infinite;
}
@keyframes whatsappPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ============================================
   GALLERY + MOMENTS (cross-page)
   ============================================ */
.gallery {
  padding: 140px 0 120px;
  background: var(--paper);
}
.gallery--on-dark {
  background: var(--ink);
  color: var(--cream);
}
.gallery__header {
  max-width: 800px;
  margin-bottom: 60px;
}
.gallery__title {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 20px;
}
.gallery__title em { font-style: italic; color: var(--clay); }
.gallery--on-dark .gallery__title em { color: var(--clay-light); }
.gallery__grid {
  column-count: 4;
  column-gap: 12px;
}
.gallery__item {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.4s var(--ease);
}
.gallery--on-dark .gallery__item {
  background: var(--ink-2);
}
.gallery__item:hover { transform: scale(1.015); }
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s var(--ease);
}
.gallery__item img:hover { opacity: 0.94; }
@media (max-width: 1024px) {
  .gallery__grid { column-count: 3; }
}
@media (max-width: 640px) {
  .gallery__grid { column-count: 2; column-gap: 8px; }
  .gallery__item { margin-bottom: 8px; }
  .gallery { padding: 80px 0; }
}

/* Moments — horizontal strip for tour pages */
.moments {
  padding: 100px 0;
  background: var(--paper-2);
}
.moments__header {
  max-width: 640px;
  margin-bottom: 44px;
}
.moments__title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 16px;
}
.moments__title em { font-style: italic; color: var(--clay); }
.moments__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.moments__item {
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.4s var(--ease);
}
.moments__item:hover { transform: scale(1.015); }
.moments__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .moments__strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .moments__item:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) {
  .moments__strip {
    /* Horizontal scroll on mobile to keep all visible */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    gap: 10px;
    /* Cancel the display:none from above */
  }
  .moments__item {
    flex: 0 0 62vw;
    scroll-snap-align: start;
  }
  .moments__item:nth-child(n+4) { display: block; }
  .moments { padding: 70px 0; }
}

/* ============================================
   RESPONSIVE BASE
   ============================================ */
@media (max-width: 1024px) {
  .section-heading { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 14px 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav--open .nav__links {
    display: flex;
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }
  .btn { padding: 16px 28px; font-size: 14px; }
  .subhero { padding: 140px 0 70px; min-height: auto; }
  .subhero__meta { gap: 20px; }
  .final-cta { padding: 80px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp { width: 54px; height: 54px; bottom: 20px; right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
