/* ============================================================
   MAREVA SAFARIS — Design Tokens
   Palette: near-black ink, antique gold, mahogany, safari clay
   Display: Playfair Display | Body: Jost | Data: JetBrains Mono
   Signature motif: field-permit / travel-document stamps
   ============================================================ */

:root {
  --ink: #0c0d0a;
  --ink-soft: #14150f;
  --charcoal: #1d1d17;
  --charcoal-2: #26261e;
  --gold: #c9a227;
  --gold-bright: #f0d78c;
  --gold-dim: #8a7332;
  --mahogany: #6b2a1e;
  --mahogany-bright: #8f3a28;
  --clay: #a85a34;
  --cream: #f4ecd8;
  --cream-dim: #d8cdb2;
  --green-deep: #161f18;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
  --ease: cubic-bezier(.22,.68,.32,1);
}

/* ---------- Reset & Defensive CSS ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--cream); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
select, input, textarea { font-family: var(--sans); }

.ital { font-style: italic; color: var(--gold-bright); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 65%);
  color: #14150a;
  font-weight: 600;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(201,162,39,0.5); }
.btn-ghost {
  background: transparent;
  border-color: rgba(244,236,216,0.35);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-whatsapp {
  background: transparent;
  border-color: #3fae5c;
  color: #6bd98a;
}
.btn-whatsapp:hover { background: rgba(63,174,92,0.12); }
.btn-lg { padding: 16px 30px; font-size: 0.9rem; }
.full-width { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-nav.scrolled {
  padding: 12px 0;
  background: rgba(12,13,10,0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201,162,39,0.15);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,162,39,0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.08em; color: var(--cream); }
.brand-text em { font-family: var(--mono); font-style: normal; font-size: 0.58rem; letter-spacing: 0.32em; color: var(--gold); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--cream-dim); }
.nav-phone:hover { color: var(--gold-bright); }
.nav-phone svg { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--cream); transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 340px);
  background: var(--charcoal);
  z-index: 199;
  flex-direction: column;
  padding: 110px 34px 34px;
  gap: 22px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  border-left: 1px solid rgba(201,162,39,0.2);
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cream-dim); }
.mobile-panel a:hover { color: var(--gold-bright); }
.mobile-call { margin-top: 12px; color: var(--gold) !important; font-family: var(--mono); font-size: 0.85rem !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 32px 200px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,13,10,0.55) 0%, rgba(12,13,10,0.35) 35%, rgba(12,13,10,0.88) 88%, var(--ink) 100%),
    linear-gradient(90deg, rgba(12,13,10,0.75) 0%, rgba(12,13,10,0.15) 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--cream-dim);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Signature: floating field-permit search card */
.search-card {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%) translateY(24px);
  width: min(92%, 1080px);
  background: var(--cream);
  color: var(--ink);
  border-radius: 3px;
  display: flex;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  overflow: hidden;
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.search-card.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.search-card-stub {
  background: var(--mahogany);
  color: var(--cream);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 130px;
  position: relative;
}
.search-card-stub::after {
  content: "";
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 0;
  border-left: 2px dashed rgba(244,236,216,0.4);
}
.stub-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.stub-code { font-family: var(--mono); font-size: 0.95rem; color: var(--gold-bright); margin-top: 10px; }
.search-form {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0;
}
.search-form .field {
  padding: 16px 22px;
  border-right: 1px solid rgba(12,13,10,0.1);
}
.search-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mahogany);
  margin-bottom: 6px;
}
.search-form select, .search-form input {
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--ink);
  width: 100%;
  padding: 0;
}
.search-form select:focus, .search-form input:focus { outline: none; }
.search-submit {
  border-radius: 0;
  padding: 0 30px;
  font-size: 0.8rem;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--charcoal);
  padding: 120px 32px 60px;
  border-bottom: 1px solid rgba(201,162,39,0.15);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-bright);
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--cream-dim);
  margin-top: 8px;
  max-width: 200px;
  margin-inline: auto;
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
section { padding: 110px 32px; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.15; }
.section-lede { margin-top: 18px; color: var(--cream-dim); font-size: 1rem; }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--ink); }
.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(201,162,39,0.15);
}
.why-card {
  background: var(--ink);
  padding: 42px 30px;
  transition: background .3s var(--ease);
}
.why-card:hover { background: var(--ink-soft); }
.why-icon {
  width: 46px; height: 46px;
  color: var(--gold);
  margin-bottom: 22px;
}
.why-icon svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.why-card p { color: var(--cream-dim); font-size: 0.92rem; }

/* ============================================================
   DESTINATIONS — signature permit-stamp cards
   ============================================================ */
.destinations { background: var(--green-deep); }
.permit-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.permit-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  transition: transform .4s var(--ease);
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}
.permit-photo { position: relative; height: 240px; overflow: hidden; }
.permit-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.permit-card:hover .permit-photo img { transform: scale(1.06); }
.permit-photo.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(201,162,39,0.14), transparent 60%),
    linear-gradient(150deg, var(--charcoal) 0%, var(--green-deep) 100%);
}
.placeholder-icon { width: 44px; height: 44px; color: var(--gold-dim); opacity: 0.75; }
.placeholder-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.7;
}
.permit-photo.placeholder .permit-badge { position: absolute; top: 16px; left: 16px; }
.permit-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(12,13,10,0.75);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 2px;
}
.permit-body { padding: 26px 28px 30px; position: relative; }
.permit-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px dashed rgba(12,13,10,0.25);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.permit-top h3 { font-size: 1.35rem; line-height: 1.2; }
.permit-coords {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--mahogany);
  white-space: nowrap;
  margin-top: 6px;
}
.permit-body p { font-size: 0.92rem; color: #423a2c; margin-bottom: 16px; }
.permit-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mahogany-bright);
}
.permit-meta .dot { color: var(--gold-dim); }
.permit-stamp {
  position: absolute;
  bottom: 24px;
  right: 26px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--clay);
  border: 1.5px solid var(--clay);
  border-radius: 50%;
  width: 62px; height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-14deg);
  opacity: 0.55;
  pointer-events: none;
}

/* ============================================================
   PACKAGES
   ============================================================ */
.packages { background: var(--ink); }
.package-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.package-card {
  background: var(--charcoal);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: 3px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease);
}
.package-card:hover { border-color: rgba(201,162,39,0.55); transform: translateY(-6px); }
.package-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}
.package-head h3 { font-size: 1.3rem; margin-bottom: 8px; line-height: 1.2; }
.package-duration { font-size: 0.8rem; color: var(--cream-dim); margin-bottom: 22px; }
.package-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}
.package-includes li {
  font-size: 0.85rem;
  color: var(--cream-dim);
  padding: 8px 0 8px 20px;
  position: relative;
  border-top: 1px solid rgba(244,236,216,0.08);
}
.package-includes li:first-child { border-top: none; }
.package-includes li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 8px; height: 1px;
  background: var(--gold);
}
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.package-price { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-bright); }
.package-price span { font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; color: var(--cream-dim); display: block; margin-bottom: 2px; }
.package-price small { font-family: var(--sans); font-size: 0.72rem; color: var(--cream-dim); }
.package-note {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.package-note a { color: var(--gold-bright); border-bottom: 1px solid rgba(240,215,140,0.4); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--ink-soft); }
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.gallery-item::after {
  content: "＋";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  font-size: 1.8rem;
  background: rgba(12,13,10,0);
  opacity: 0;
  transition: opacity .3s, background .3s;
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(0.7); }
.gallery-item:hover::after { opacity: 1; background: rgba(12,13,10,0.25); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--ink); }
.testi-wrap { max-width: 1000px; margin: 0 auto; }
.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: center;
  flex: 0 0 100%;
  background: var(--charcoal);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: 3px;
  padding: 44px;
  text-align: center;
}
.testi-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: 24px;
}
.testi-who strong { display: block; font-family: var(--sans); font-weight: 500; color: var(--gold-bright); }
.testi-who span { font-size: 0.8rem; color: var(--cream-dim); }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.testi-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(244,236,216,0.25);
  padding: 0;
  transition: background .3s, transform .3s;
}
.testi-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--charcoal); }
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 20px; line-height: 1.2; }
.contact-lede { color: var(--cream-dim); margin-bottom: 34px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--cream-dim); }
.contact-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6bd98a;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(107,217,138,0.35);
  padding-bottom: 4px;
}

.enquiry-form {
  background: var(--ink);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 3px;
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(244,236,216,0.15);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 0.9rem;
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; }
.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 0.85rem; color: var(--gold-bright); min-height: 1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); border-top: 1px solid rgba(201,162,39,0.15); padding: 80px 32px 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand .brand-mark { width: 50px; height: 50px; border-radius: 50%; margin-bottom: 18px; }
.footer-brand p { color: var(--cream-dim); font-size: 0.88rem; max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s, transform .25s;
}
.footer-social svg { width: 16px; height: 16px; color: var(--gold); }
.footer-social a:hover { border-color: var(--gold); transform: translateY(-3px); }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.88rem; color: var(--cream-dim); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(244,236,216,0.08);
  padding: 22px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--cream-dim);
}

/* ============================================================
   FLOATING ACTIONS
   ============================================================ */
.floating-actions {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5);
  transition: transform .3s var(--ease);
}
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-whatsapp { background: #25d366; color: #0c0d0a; }
.float-top {
  background: var(--charcoal);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.float-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============================================================
   MODAL / DIALOG
   ============================================================ */
dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(12,13,10,0.72); backdrop-filter: blur(4px); }

.modal {
  margin: auto;
  width: min(92vw, 460px);
  position: relative;
}
.modal-body {
  background: var(--charcoal);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 3px;
  padding: 40px 34px;
  position: relative;
  z-index: 1;
}
.modal-close-form { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-close {
  background: none; border: none;
  color: var(--cream-dim);
  font-size: 1.1rem;
  padding: 6px;
  transition: color .2s;
}
.modal-close:hover { color: var(--gold-bright); }
.modal-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.modal-lede { color: var(--cream-dim); font-size: 0.88rem; margin-bottom: 26px; }

.lightbox {
  margin: auto;
  width: min(92vw, 1000px);
  background: transparent;
  position: relative;
  overflow: visible;
}
.lightbox img { width: 100%; border-radius: 3px; position: relative; z-index: 1; }
.lightbox p { color: var(--cream-dim); font-size: 0.85rem; margin-top: 14px; text-align: center; position: relative; z-index: 1; }
.lightbox-close {
  position: fixed; top: 22px; right: 26px;
  color: var(--cream);
  font-size: 1.4rem;
  z-index: 2;
  background: rgba(12,13,10,0.55);
  width: 40px; height: 40px;
  border-radius: 50%;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (Arranged by Cascade rules)
   ============================================================ */

@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .permit-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none !important; }
  .hamburger { display: flex !important; }
  .mobile-panel { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  
  /* --- RESPONSIVE FIXES FOR THE SEARCH CARD --- */
  .hero { 
    padding-bottom: 40px !important;
    min-height: auto !important;
    height: auto !important;
    display: flex;
    flex-direction: column; 
  }

  body .search-card,
  body .search-card.is-visible { 
    position: relative !important;   
    transform: none !important;      
    left: auto !important;            
    bottom: auto !important;          
    margin: 40px auto 0 !important;  
    width: 100% !important; 
    max-width: 100% !important;
    flex-direction: column !important;
    opacity: 1 !important;           
    display: flex !important;
  }

  .search-form { 
    grid-template-columns: 1fr !important; 
    width: 100% !important;
  }

  .search-form .field { 
    border-right: none !important; 
    border-bottom: 1px solid rgba(12,13,10,0.1) !important; 
    padding: 16px 20px !important;   
    width: 100% !important;
  }

  .search-form select, 
  .search-form input {
    padding: 8px 0 !important;
    background-color: transparent !important;
  }
  
  .search-submit {
    width: 100% !important;
    padding: 18px !important;        
    border-radius: 0 0 3px 3px !important;
  }

  .search-card-stub { 
    flex-direction: row !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    padding: 16px 20px !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .search-card-stub::after { display: none !important; }
  /* ------------------------------------------- */
}

@media (max-width: 640px) {
  section { padding: 80px 20px; }
  .nav-inner { padding: 0 20px; }
  .why-grid, .package-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.span-2 { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn-gold.nav-only-desktop { display: none; }
}