/* ============================================================
   Epic Mayan Tours — style.css
   Desktop-only (min-width: 1024px)
   Fonts: Cinzel (headings) · Lato (body)
   Palette:
     --green-dark  #1a3a2a   (primary bg / header)
     --green-mid   #2d5c3e   (hover / card accent)
     --gold        #c9a84c   (brand accent)
     --gold-light  #e8c96a   (hover gold)
     --cream       #f8f5f0   (light bg)
     --text-main   #1a1a1a
     --text-muted  #5a5a5a
============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark    : #1a3a2a;
  --green-mid     : #2d5c3e;
  --green-light   : #3d7a52;
  --gold          : #c9a84c;
  --gold-light    : #e8c96a;
  --gold-dark     : #a8882e;
  --cream         : #f8f5f0;
  --cream-dark    : #ede9e2;
  --text-main     : #1a1a1a;
  --text-muted    : #5a5a5a;
  --text-light    : rgba(248, 245, 240, 0.85);
  --header-h      : 72px;
  --section-pad   : 100px 0;
  --radius-card   : 10px;
  --radius-btn    : 4px;
  --transition    : 0.28s ease;
  --shadow-card   : 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover  : 0 8px 40px rgba(0,0,0,0.18);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--cream);
  min-width: 1024px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Typography helpers ─────────────────────────────────────── */
.font-cinzel {
  font-family: 'Cinzel', 'Georgia', serif;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248,245,240,0.6);
}

.btn--outline:hover {
  background: rgba(248,245,240,0.1);
  border-color: var(--cream);
}

.btn--sm {
  font-size: 11px;
  padding: 10px 22px;
  letter-spacing: 0.15em;
}

.btn--lg {
  font-size: 15px;
  padding: 18px 48px;
  letter-spacing: 0.2em;
}

/* ── Install Banner ─────────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--green-dark);
  border-top: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 32px;
}

.install-banner[hidden] { display: none; }

.install-banner__text {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.install-banner__btn {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 22px;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--transition);
}

.install-banner__btn:hover { background: var(--gold-light); }

.install-banner__dismiss {
  background: none;
  border: none;
  color: rgba(248,245,240,0.5);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
}

.install-banner__dismiss:hover { color: var(--cream); }

/* ── Update Toast ───────────────────────────────────────────── */
.update-toast {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 24px;
  z-index: 950;
  background: var(--green-dark);
  color: var(--text-light);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.update-toast[hidden] { display: none; }

.update-toast button {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-btn);
  padding: 6px 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.update-toast button:hover { background: var(--gold-light); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--header-h);
  background: rgba(26, 58, 42, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 58, 42, 1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-header__logo img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.site-header__logo-text {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
}

/* ── Site Nav ───────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.8);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.site-nav__link:hover {
  color: var(--gold);
}

.site-nav__link:hover::after {
  width: 100%;
}

/* ── Section shared ─────────────────────────────────────────── */
.section {
  padding: var(--section-pad);
}

.section--dark {
  background-color: var(--green-dark);
}

.section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section__inner--narrow {
  max-width: 760px;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section__eyebrow--light {
  color: var(--gold-light);
  opacity: 0.85;
}

.section__title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.2;
}

.section__title--light {
  color: var(--cream);
}

.section__divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px auto 0;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,58,42,0.55) 0%,
    rgba(10,28,18,0.70) 60%,
    rgba(10,28,18,0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--header-h) 48px 0;
  max-width: 860px;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 44px;
  letter-spacing: 0.02em;
}

.hero__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Scroll hint arrow */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--transition);
  animation: bounce 2.4s ease-in-out infinite;
}

.hero__scroll-hint:hover { opacity: 1; }

.hero__scroll-hint-icon {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Tour Cards ─────────────────────────────────────────────── */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tour-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.tour-card__img-wrap {
  overflow: hidden;
  height: 240px;
}

.tour-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-card__img {
  transform: scale(1.05);
}

.tour-card__body {
  padding: 28px 28px 32px;
}

.tour-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.tour-card__title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.tour-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(10,28,18,0.80), transparent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

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

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox2 overrides — light box style */
.lb-data .lb-caption {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.lb-outerContainer {
  border-radius: 4px;
}

/* ── Parallax Divider ───────────────────────────────────────── */
.parallax-divider {
  position: relative;
  height: 420px;
  background-image: url('/images/sunset.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-divider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 18, 0.60);
}

.parallax-divider__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 80px;
}

.parallax-divider__quote {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact__lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.contact__actions {
  display: flex;
  justify-content: center;
  margin-bottom: 52px;
}

.contact__qr {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.contact__qr-box {
  text-align: center;
}

.contact__qr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact__qr-img {
  width: 140px;
  height: 140px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0 auto;
  overflow: hidden;
}

.contact__qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact__qr-placeholder-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.contact__info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__info p {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── Site Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 48px 0;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer__brand {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.site-footer__copy {
  font-size: 13px;
  color: rgba(248,245,240,0.45);
  letter-spacing: 0.04em;
}

.site-footer__nav {
  display: flex;
  gap: 32px;
}

.site-footer__nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.55);
  transition: color var(--transition);
}

.site-footer__nav a:hover {
  color: var(--gold);
}

/* ── Fade-in animation (IntersectionObserver) ───────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger for tour cards and gallery items */
.tour-card.fade-in:nth-child(2)  { transition-delay: 0.12s; }
.tour-card.fade-in:nth-child(3)  { transition-delay: 0.24s; }

.gallery-item.fade-in:nth-child(2) { transition-delay: 0.08s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: 0.16s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: 0.08s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: 0.16s; }
.gallery-item.fade-in:nth-child(6) { transition-delay: 0.24s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__bg {
    background-attachment: scroll;
  }
  .parallax-divider {
    background-attachment: scroll;
  }
  .hero__scroll-hint {
    animation: none;
  }
}
