/* ============================================================
   Dune & Beyond — main stylesheet
   Palette: night-oasis ink, warm sand, terracotta clay, dune gold
   Type: Fraunces (display) + Figtree (body)
   ============================================================ */
:root {
  --ink:        #241a12;   /* deep desert night-brown */
  --ink-soft:   #4d4034;
  --sand:       #f7f1e6;   /* warm sand background */
  --sand-deep:  #efe5d2;
  --clay:       #b05e2f;   /* terracotta */
  --clay-dark:  #8f4a24;
  --gold:       #c9973c;   /* dune gold */
  --gold-soft:  #e6c98a;
  --white:      #fffdf8;
  --shadow:     0 10px 30px rgba(36, 26, 18, .12);
  --radius:     14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Figtree", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center-actions { justify-content: center; }
.mt-3 { margin-top: 2rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--clay); margin: 0 0 .4rem;
}
.section { padding: 5rem 0; }
.section-alt { background: var(--sand-deep); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-title { margin-bottom: .4rem; }
.section-title-sm { font-size: 1.5rem; margin: 2.5rem 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,26,18,.18); }
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-outline { border-color: var(--clay); color: var(--clay); background: transparent; }
.btn-outline:hover { background: var(--clay); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: var(--white); }
.btn-whatsapp { background: #23a55b; color: #fff; }
.btn-whatsapp:hover { background: #1c8a4b; color: #fff; }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: .4rem 0;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(36, 26, 18, .96);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  padding: 0;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--white); }
.brand:hover { color: var(--gold-soft); }
.brand-logo { height: 44px; width: auto; }
.brand-mark { color: var(--gold); font-size: 1.4rem; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .7rem .9rem; color: rgba(255,253,248,.92);
  font-weight: 500; font-size: .97rem; border-radius: 8px;
}
.main-nav a:hover { color: var(--gold-soft); }
.caret { font-size: .7em; opacity: .8; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: .5rem !important; flex-direction: column; gap: 0 !important;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  display: flex !important;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--ink) !important; padding: .6rem .9rem; }
.dropdown a:hover { background: var(--sand); color: var(--clay) !important; }
.header-cta { white-space: nowrap; }

/* Mobile quick-action bar (Home / Call / WhatsApp) — hidden on desktop */
.mobile-actions { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px; margin-left: auto;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-slide { position: relative; height: min(92vh, 820px); min-height: 560px; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,12,8,.45) 0%, rgba(20,12,8,.15) 45%, rgba(20,12,8,.65) 100%);
}
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; color: var(--white); z-index: 2;
}
.hero-eyebrow {
  font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: 1rem;
}
.hero-heading { color: var(--white); font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 15ch; margin-bottom: .6rem; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 46ch; color: rgba(255,253,248,.9); margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .swiper-pagination-bullet { background: rgba(255,255,255,.7); opacity: 1; width: 10px; height: 10px; }
.hero .swiper-pagination-bullet-active { background: var(--gold); width: 26px; border-radius: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--white);
  padding: 9.5rem 0 3.5rem; overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,253,248,.85); }
.page-hero-img .page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .28; filter: saturate(.9);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs { font-size: .88rem; margin-bottom: 1rem; color: rgba(255,253,248,.7); }
.breadcrumbs a { color: var(--gold-soft); }
.breadcrumbs span { margin: 0 .35rem; }
.tour-meta { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--gold-soft); font-weight: 600; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow); text-align: center;
  border-bottom: 3px solid var(--gold);
}
.stat-num { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--clay); }
.stat-label { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Tour cards ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.8rem; }
.tour-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(36,26,18,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tour-card-media { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.06); }
.badge-duration {
  position: absolute; top: 12px; left: 12px;
  background: rgba(36,26,18,.82); color: var(--gold-soft);
  font-size: .78rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.tour-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tour-card-cat {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 .35rem;
}
.tour-card-title { font-size: 1.25rem; margin-bottom: .45rem; }
.tour-card-title a { color: var(--ink); }
.tour-card-title a:hover { color: var(--clay); }
.tour-card-excerpt { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.2rem; flex: 1; }
.tour-card-foot { display: flex; align-items: center; justify-content: space-between; }
.tour-price { font-weight: 700; color: var(--clay); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; display: block; box-shadow: var(--shadow);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,12,8,.75), transparent 55%);
}
.cat-card-label {
  position: absolute; left: 1.3rem; bottom: 1.1rem; z-index: 2;
  color: var(--white); font-family: var(--font-display); font-size: 1.45rem;
}

/* ---------- Testimonials ---------- */
.section-dark { background: var(--ink); color: var(--sand); }
.section-dark .section-title { color: var(--white); }
.testi-swiper { max-width: 760px; padding-bottom: 3rem; }
.testi-slide { text-align: center; padding: 0 1rem; }
.testi-stars { color: var(--gold); letter-spacing: .2em; font-size: 1.1rem; margin-bottom: 1rem; }
.testi-text {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5; margin: 0 0 1.4rem; color: var(--sand);
}
.testi-name { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--gold-soft); font-weight: 600; }
.testi-name img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-swiper .swiper-pagination-bullet { background: rgba(255,253,248,.5); opacity: 1; }
.testi-swiper .swiper-pagination-bullet-active { background: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden; display: block;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .8rem;
  background: linear-gradient(to top, rgba(20,12,8,.75), transparent);
  color: var(--white); font-size: .9rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white); border-radius: 12px; margin-bottom: .9rem;
  box-shadow: 0 3px 12px rgba(36,26,18,.07); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.05rem;
  list-style: none; position: relative; padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--clay); transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- Single tour ---------- */
.tour-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.8rem; align-items: start; }
.tour-gallery-main { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tour-gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tour-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .7rem; }
.tour-gallery-thumbs a { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.tour-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tour-gallery-thumbs a:hover img { transform: scale(1.08); }
.highlights-box {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 2rem;
  margin: 2rem 0; border-left: 4px solid var(--gold); box-shadow: 0 3px 14px rgba(36,26,18,.07);
}
.highlights-box h2 { font-size: 1.4rem; }
.highlights-list { list-style: none; margin: 0; padding: 0; columns: 2; gap: 2rem; }
.highlights-list li { padding: .35rem 0 .35rem 1.7rem; position: relative; break-inside: avoid; }
.highlights-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; }
.rich-text img { border-radius: 12px; height: auto; margin: 1.4rem auto; }
.rich-text iframe, .rich-text .ql-video {
  display: block; width: 100%; aspect-ratio: 16/9; height: auto;
  border: 0; border-radius: 12px; margin: 1.6rem 0;
}
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow); background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tour-sidebar { position: sticky; top: 96px; }
.inquiry-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--clay);
}
.inquiry-card h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.inquiry-sub { font-size: .9rem; color: var(--ink-soft); margin-top: 0; }
.inquiry-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .9rem; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%; margin-top: .3rem; padding: .7rem .9rem;
  border: 1.5px solid #ddd2bf; border-radius: 10px; font: inherit; font-size: .95rem;
  background: var(--sand); transition: border-color .2s;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--clay); outline: none; }
.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.inquiry-alt { text-align: center; margin-top: 1rem; }
.inquiry-alt span { display: block; color: var(--ink-soft); font-size: .85rem; margin-bottom: .6rem; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; font-size: .93rem; margin-bottom: 1rem; }
.alert-success { background: #e5f5e9; color: #1c6b34; }
.alert-error { background: #fdeaea; color: #a02525; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list-lg { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-list-lg li { padding: .55rem 0; border-bottom: 1px dashed #ddd2bf; }
.contact-list-lg strong { display: inline-block; width: 100px; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(120deg, var(--clay) 0%, var(--clay-dark) 100%); color: var(--white); padding: 3.5rem 0; }
.cta-strip h2 { color: var(--white); margin-bottom: .3rem; }
.cta-strip p { margin: 0; opacity: .92; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-strip-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.dune-divider { display: block; width: 100%; height: 70px; color: var(--ink); background: var(--sand); margin-bottom: -1px; }
.section-alt + .dune-divider, .cta-strip + .dune-divider { background: transparent; }
.site-footer { background: var(--ink); color: rgba(255,253,248,.82); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin: 0 0 .3rem; }
.footer-tagline { font-size: .92rem; margin-top: 0; }
.footer-heading { font-weight: 700; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .28rem 0; }
.site-footer a { color: rgba(255,253,248,.82); }
.site-footer a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.socials a { font-size: .9rem; border-bottom: 1px solid rgba(255,253,248,.3); }
.footer-bottom { border-top: 1px solid rgba(255,253,248,.12); padding: 1.1rem 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating action buttons ---------- */
.floating-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: .8rem;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.1); color: #fff; }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--clay); }

/* ---------- 404 ---------- */
.section-404 { padding: 10rem 0 6rem; }
.err-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 9rem); color: var(--gold-soft); margin: 0; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 112px; left: 0; right: 0; bottom: 0;
    background: rgba(36,26,18,.98); transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto; padding: 1.5rem 6%;
    margin-left: 0;
  }
  /* Quick-action bar under the logo row */
  .mobile-actions {
    display: flex; align-items: stretch;
    background: #1c140d; border-top: 1px solid rgba(255,255,255,.08);
  }
  .mobile-actions .ma-item {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .75rem .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #f4e9d8;
  }
  .mobile-actions .ma-item:hover { color: #fff; }
  .ma-home { color: var(--gold); border-bottom: 2px solid var(--gold); }
  .ma-call { border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); }
  .ma-whatsapp { background: #25d366; color: #fff; }
  .ma-whatsapp:hover { color: #fff; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 1rem .4rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255,253,248,.1); border-radius: 0; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 0 1.2rem !important;
    display: none !important;
  }
  .has-dropdown.open .dropdown { display: flex !important; }
  .dropdown a { color: rgba(255,253,248,.85) !important; }
  .dropdown a:hover { background: transparent; color: var(--gold-soft) !important; }
  .site-header { background: rgba(36,26,18,.96); }
  .contact-layout { grid-template-columns: 1fr; }
  .highlights-list { columns: 1; }
}
@media (max-width: 560px) {
  .section { padding: 3.2rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-slide { min-height: 500px; }
  .tour-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .intro-stats { grid-template-columns: 1fr 1fr; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
