/* ================================================================
   ATLAS DREAM — GLOBAL STYLESHEET
   Design tokens, typography, layout, components.
   ================================================================ */

/* --- Brandon Text (self-hosted, drop .woff2 files in /assets/fonts/brandon/) --- */
@font-face {
  font-family: 'Brandon Text';
  src: url('/assets/fonts/brandon/brandon-text-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Text';
  src: url('/assets/fonts/brandon/brandon-text-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Text';
  src: url('/assets/fonts/brandon/brandon-text-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brandon Text';
  src: url('/assets/fonts/brandon/brandon-text-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   Tokens
   ========================================================== */
:root {
  /* Brand colors — from logo + off-white background */
  --green-dark:   #1d3a26;
  --green-deep:   #13281a;
  --green-sage:   #c6d4a4;
  --green-sage-soft: #dde5c3;
  --green-sage-pale: #ecf0dc;
  --cream:        #faf7f0;
  --cream-warm:   #f3ede0;
  --ink:          #1a1a1a;
  --ink-soft:     #4a4a4a;
  --ink-mute:     #7a7a7a;
  --line:         #e6e0d0;
  --white:        #ffffff;

  /* Typography */
  --font-title: 'Brandon Text', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:  'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --r-xs: 6px;  --r-sm: 10px;  --r-md: 16px;  --r-lg: 24px;  --r-xl: 40px;

  /* Layout */
  --container:   1280px;
  --gap:         32px;
  --section-py:  110px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================
   Reset
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
::selection { background: var(--green-dark); color: var(--cream); }

/* ==========================================================
   Typography — Brandon Text for titles, Montserrat for body
   Style matches the "EVERY JOURNEY STARTS WITH A FEELING" screen.
   ========================================================== */
h1, h2, h3, h4, h5, h6, .heading {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 .6em;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
}
h1, .h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: .08em; font-weight: 700; }
h2, .h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: .08em; }
h3, .h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: .10em; }
h4, .h4 { font-size: 16px; letter-spacing: .14em; }
h5       { font-size: 13px; letter-spacing: .18em; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}
.eyebrow i {
  font-size: 13px;
  color: var(--green-sage);
  flex-shrink: 0;
}
.section-dark .eyebrow i { color: var(--green-sage); }

.section-title { margin-top: 0; }
.section-lead { font-size: 17px; color: var(--ink-soft); max-width: 640px; }

/* ==========================================================
   Layout
   ========================================================== */
.container { width: 100%; max-width: var(--container); padding: 0 28px; margin: 0 auto; }
.section   { padding: var(--section-py) 0; position: relative; }
.section.tight { padding: 70px 0; }
.section-dark { background: var(--green-deep); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark .eyebrow { color: var(--green-sage); }
.section-sage { background: var(--green-sage-pale); }
.section-cream { background: var(--cream-warm); }

.section-header { margin-bottom: 56px; max-width: 740px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================
   Header / nav — full responsive, FA icons on every item,
   signature "Plan Your Dream" button.
   ========================================================== */
:root { --header-h: 92px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
/* Transparent only on pages that explicitly set $header_transparent = true
   (currently: homepage). Everything else uses the default cream bar. */
.site-header.is-transparent {
  position: fixed; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.is-transparent.is-scrolled {
  background: var(--cream);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(19, 40, 26, 0.06);
}
/* Cream text on transparent header (over dark hero) */
.site-header.is-transparent:not(.is-scrolled) .brand,
.site-header.is-transparent:not(.is-scrolled) .nav-link,
.site-header.is-transparent:not(.is-scrolled) .nav-toggle { color: var(--cream); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 30px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-title);
  color: var(--green-dark);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  z-index: 3;
}
.brand-mark { display: inline-flex; color: currentColor; }
.brand-name span { color: var(--green-sage); margin-left: 4px; }

/* PNG logo — keeps aspect ratio */
.brand-logo-img {
  display: block;
  height: auto;
  width: auto;
  max-height: 80px;
  transition: max-height .3s var(--ease);
}
.site-header .brand-logo-img { max-height: 64px; }
.site-header.is-scrolled .brand-logo-img { max-height: 52px; }
.site-footer .brand-logo-img { max-height: 96px; }
.admin-sidebar .brand-logo-img { max-height: 64px; }
.brand-login .brand-logo-img { max-height: 150px; margin: 0 auto; }

/* === Desktop nav === */
.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; align-items: center; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link i:first-child {
  font-size: 13px;
  color: var(--green-sage);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.nav-link:hover i:first-child { transform: translateY(-1px); }
.nav-link .nav-chev {
  font-size: 9px;
  margin-left: 2px;
  color: inherit;
  opacity: 0.6;
  transition: transform .2s var(--ease);
}
.has-dropdown:hover .nav-chev { transform: rotate(180deg); }

/* Underline on hover / active (desktop only) */
.nav-link::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--green-sage);
  transform: scaleX(0); transform-origin: right;
  transition: transform .28s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-transparent:not(.is-scrolled) .nav-link::after { background: var(--green-sage); }

/* === Dropdown === */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 22px;
  min-width: 320px;
  opacity: 0; pointer-events: none;
  transition: .22s var(--ease);
  box-shadow: 0 30px 60px rgba(19, 40, 26, 0.18);
  margin-top: 6px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title);
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 10px;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dropdown-eyebrow i { color: var(--green-sage); }
.dropdown-links { display: flex; flex-direction: column; gap: 2px; }
.dropdown-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--green-deep);
  font-weight: 500;
  letter-spacing: .02em;
  transition: all .15s var(--ease);
}
.dropdown-link:hover {
  background: var(--green-sage-pale);
  color: var(--green-deep);
  padding-left: 14px;
}
.dropdown-link i { font-size: 10px; color: var(--green-sage); width: 12px; }
.dropdown-link--custom {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}
.dropdown-link--custom i { font-size: 13px; }

/* =======================================================
   "PLAN YOUR DREAM" — signature button
   Rotating compass + shine sweep + arrow reveal on hover
   ======================================================= */
.btn-plan {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, #1d3a26 0%, #13281a 55%, #1d3a26 100%);
  background-size: 220% 220%;
  background-position: 0% 0%;
  border: 1px solid rgba(198, 212, 164, 0.3);
  overflow: hidden;
  transition:
    background-position 0.6s cubic-bezier(.25,.8,.25,1),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  isolation: isolate;
}
.btn-plan::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(198, 212, 164, 0.5), transparent);
  transition: left 0.7s cubic-bezier(.25,.8,.25,1);
  pointer-events: none;
}
.btn-plan:hover::before { left: 120%; }
.btn-plan:hover {
  background-position: 100% 100%;
  transform: translateY(-1px);
  border-color: rgba(198, 212, 164, 0.55);
  box-shadow:
    0 10px 24px rgba(19, 40, 26, 0.3),
    0 0 40px rgba(198, 212, 164, 0.2);
}

/* Compass icon — always rotating slowly as signature motif */
.btn-plan-ring {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border: 1px solid rgba(198, 212, 164, 0.4);
  border-radius: 50%;
  color: var(--green-sage);
  animation: btn-plan-spin 14s linear infinite;
  transition: all .35s var(--ease);
  flex-shrink: 0;
}
.btn-plan-ring i {
  font-size: 10px;
  color: inherit;
  animation: btn-plan-spin-inner 14s linear infinite reverse; /* keeps icon upright */
}
@keyframes btn-plan-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes btn-plan-spin-inner {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.btn-plan:hover .btn-plan-ring {
  animation-duration: 2.5s;
  border-color: var(--green-sage);
  background: rgba(198, 212, 164, 0.12);
}
.btn-plan:hover .btn-plan-ring i { animation-duration: 2.5s; }

.btn-plan-text {
  position: relative; z-index: 1;
  transition: letter-spacing .3s var(--ease);
}
.btn-plan:hover .btn-plan-text { letter-spacing: .22em; }

/* Arrow appears on hover */
.btn-plan-arrow {
  display: inline-flex;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width .35s var(--ease), opacity .25s var(--ease) .05s;
}
.btn-plan-arrow i {
  font-size: 12px;
  color: var(--green-sage);
  padding-left: 4px;
}
.btn-plan:hover .btn-plan-arrow { width: 20px; opacity: 1; }

/* === Hamburger (mobile only) === */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  color: var(--green-deep);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  transition: .25s var(--ease);
  border-radius: 1px;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav close button (hidden on desktop) */
.nav-close {
  display: none;
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  color: var(--green-deep);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
}

.nav-backdrop { display: none; }

/* ===== RESPONSIVE — full-screen overlay mobile menu ===== */
@media (max-width: 1020px) {
  :root { --header-h: 80px; }
  .site-header .brand-logo-img { max-height: 56px; }
  .site-header.is-scrolled .brand-logo-img { max-height: 48px; }
  .nav-link { font-size: 11px; padding: 10px 10px; gap: 6px; letter-spacing: .1em; }
  .nav-link span { display: none; } /* show only icons on tablet-wide */
  .nav-link i:first-child { font-size: 16px; }
  .nav-link::after { display: none; }
  .btn-plan { padding: 11px 16px 11px 12px; font-size: 10px; letter-spacing: .16em; }
  .btn-plan-text { white-space: nowrap; }
  .has-dropdown .dropdown { min-width: 260px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    padding: 90px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.65,0,.35,1);
    z-index: 80;
    overflow-y: auto;
  }
  body.nav-open .site-nav { transform: translateX(0); }

  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(10, 25, 16, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 70;
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .nav-close { display: inline-flex; }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-list > li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-link {
    width: 100%;
    padding: 20px 6px;
    font-size: 15px;
    letter-spacing: .14em;
    gap: 16px;
    color: var(--green-deep);
  }
  .nav-link span { display: inline !important; flex: 1; }
  .nav-link i:first-child {
    font-size: 17px;
    width: 24px;
    text-align: center;
    color: var(--green-sage);
  }
  .nav-link .nav-chev { margin-left: auto; opacity: 0.5; font-size: 11px; }
  .has-dropdown.is-open .nav-chev { transform: rotate(180deg); }

  /* Dropdown becomes inline on mobile */
  .has-dropdown .dropdown {
    position: static;
    transform: none !important;
    opacity: 1; pointer-events: auto;
    border: 0;
    box-shadow: none;
    padding: 6px 0 16px;
    background: transparent;
    margin: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .has-dropdown.is-open .dropdown { max-height: 600px; }
  .dropdown-eyebrow { padding-bottom: 8px; margin-bottom: 10px; }
  .dropdown-link { padding: 10px 14px; font-size: 14px; }
  .dropdown-link:hover { padding-left: 14px; }

  /* Plan Your Dream button — full-width, padded, distinctive on mobile */
  .nav-list .nav-cta {
    margin-top: 26px;
    padding-top: 0;
    border-bottom: 0 !important;
  }
  .btn-plan {
    width: 100%;
    justify-content: center;
    padding: 18px 22px;
    font-size: 13px;
    letter-spacing: .22em;
  }
  .btn-plan-ring { width: 30px; height: 30px; }
  .btn-plan-ring i { font-size: 12px; }
  .btn-plan-arrow { width: 20px; opacity: 1; }

  /* Transparent header doesn't stick on mobile drawer */
  .site-header.is-transparent:not(.is-scrolled) .nav-link,
  body.nav-open .site-header .nav-link { color: var(--green-deep); }
  body.nav-open .site-header { background: var(--cream); border-bottom-color: var(--line); }
  body.nav-open .site-header .brand { color: var(--green-dark); }
  body.nav-open .site-header .nav-toggle { color: var(--green-deep); }

  /* Body scroll lock when menu open */
  body.nav-open { overflow: hidden; }
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-title);
  font-weight: 700; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: 11px; letter-spacing: .16em; }
.btn-primary { background: var(--green-dark); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--green-dark); color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--cream); }
.btn-ghost-light { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sage { background: var(--green-sage); color: var(--green-deep); }
.btn-sage:hover { background: var(--green-sage-soft); }
.btn i { font-size: .9em; flex-shrink: 0; }

/* ==========================================================
   Hero — full-bleed 16:9 background video with dark overlay
   ========================================================== */
.hero {
  position: relative;
  /* Full-screen on every browser, every device:
     - 100vh  = fallback (older browsers)
     - 100svh = smallest viewport (never overflows under mobile UI bars)
     - 100dvh = dynamic viewport (modern browsers, perfect fit) */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 0 110px;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
  background: var(--green-deep); /* fallback before video loads */
}

/* Fallback gradient when no video uploaded */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(198,212,164,.18) 0%, transparent 60%),
    linear-gradient(160deg, #0f2318 0%, #13281a 40%, #1a3524 70%, #2a4c31 100%);
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark gradient overlay — keeps text legible on any greenery video */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,25,16,0.35) 0%, rgba(10,25,16,0.45) 55%, rgba(10,25,16,0.88) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(10,25,16,0) 0%, rgba(10,25,16,0.25) 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 11px;
  color: var(--green-sage);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow i {
  font-size: 13px;
  color: var(--green-sage);
}

.hero-title {
  font-size: clamp(40px, 6.2vw, 86px);
  letter-spacing: .06em;
  color: var(--cream);
  max-width: 18ch;
  line-height: 1.06;
  margin: 0 0 26px;
  font-weight: 700;
  text-shadow: 0 2px 40px rgba(10, 25, 16, 0.4);
}
.hero-sub {
  font-size: clamp(16px, 1.25vw, 20px);
  max-width: 60ch;
  color: rgba(250, 247, 240, 0.88);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 38px;
  text-shadow: 0 1px 20px rgba(10, 25, 16, 0.4);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll cue — cream on dark video */
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 120px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.68);
  font-weight: 700;
  transition: color 0.3s ease;
}
.hero-scroll-cue i {
  font-size: 18px;
  color: var(--green-sage);
  animation: hero-scroll-bob 2.2s ease-in-out infinite;
}
@keyframes hero-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(8px); opacity: 1; }
}
.hero-scroll-cue:hover { color: var(--cream); }

/* Bottom stats strip — dark translucent over video */
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(198, 212, 164, 0.22);
  background: rgba(10, 25, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; max-width: var(--container); margin: 0 auto;
  gap: 30px; flex-wrap: wrap;
}
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat {
  font-size: 13px;
  color: rgba(250, 247, 240, 0.75);
}
.hero-stat strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-title);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 2px;
}
.hero-since {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  color: var(--green-sage);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 130px 0 120px;
    justify-content: center;
  }
  .hero-scroll-cue { display: none; }
  .hero-meta-inner { padding: 16px 18px; }
  .hero-stats { gap: 18px; font-size: 12px; }
  .hero-stat strong { font-size: 13px; }
}
/* Very short viewports (landscape phones) — tighten padding so content fits */
@media (max-height: 650px) {
  .hero { padding: 110px 0 100px; }
  .hero-title { font-size: clamp(32px, 5vw, 56px); margin-bottom: 18px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-eyebrow { margin-bottom: 18px; }
}

/* Simpler hero for inner pages */
.page-hero {
  padding: 180px 0 90px; position: relative; overflow: hidden;
  background: var(--green-deep); color: var(--cream);
  text-align: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,40,26,.55), rgba(19,40,26,.75)); z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero .page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(198,212,164,.2), transparent 60%), linear-gradient(180deg, #13281a, #1d3a26);
}
.page-hero h1 { color: var(--cream); letter-spacing: .1em; }
.page-hero p { max-width: 640px; margin: 0 auto; color: rgba(250,247,240,.8); font-weight: 300; }
.page-hero .eyebrow { color: var(--green-sage); }

/* ==========================================================
   Tripadvisor section — PREMIUM (editorial, Moroccan-themed)
   Background: white (left, under the logo area) → sage (right).
   Decoration: Moroccan flag pentagram stars + Atlas silhouette.
   ========================================================== */
.ta-premium {
  position: relative;
  padding: 130px 0 120px;
  color: var(--green-deep);
  overflow: hidden;
  isolation: isolate;
}
.ta-premium-bg {
  position: absolute; inset: 0; z-index: 0;
  /* White (under the logo / left) → sage (right) — same family as the old hero */
  background:
    linear-gradient(108deg,
      #ffffff 0%,
      #fbf9f1 22%,
      #f1f1de 48%,
      #dde5c3 78%,
      #c6d4a4 100%);
}
.ta-premium-bg::before {
  /* Soft warm sheen top-left, sage glow bottom-right for depth */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 5% 0%, rgba(255, 255, 255, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(198, 212, 164, 0.55) 0%, transparent 60%);
}

/* Moroccan flag star (5-point outlined pentagram) — decorative */
.ta-morocco-star {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: rgba(29, 58, 38, 0.18);
  transform-origin: center;
  animation: ta-star-rotate 120s linear infinite;
}
.ta-morocco-star--tr {
  top: -70px; right: -50px;
  width: 360px; height: 360px;
}
.ta-morocco-star--bl {
  bottom: -90px; left: -70px;
  width: 280px; height: 280px;
  color: rgba(29, 58, 38, 0.12);
  animation-duration: 160s;
  animation-direction: reverse;
}
@keyframes ta-star-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Atlas Mountains silhouette — grounds the section in travel/Morocco */
.ta-mountains {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 240px;
  z-index: 1;
  pointer-events: none;
}

/* Watermark removed from markup — styles kept inert in case we re-add later. */
.ta-watermark { display: none !important; }
.ta-watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
}
.ta-watermark .brand-logo-img { max-height: none !important; width: 560px; height: 560px; }
.ta-premium-inner { position: relative; z-index: 2; }

/* Co-brand bar */
.ta-cobrand {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(29, 58, 38, 0.12);
}
.ta-cobrand-atlas {
  display: flex; align-items: center; gap: 14px;
}
.ta-cobrand-atlas .brand-logo-img { max-height: 52px !important; }
.ta-cobrand-label {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  line-height: 1.4;
  font-weight: 700;
}
.ta-cobrand-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.ta-cobrand-x {
  font-family: 'Brandon Text', 'Montserrat', sans-serif;
  font-size: 32px;
  color: rgba(29, 58, 38, 0.4);
  font-weight: 300;
}
.ta-cobrand-ta .ta-logo-official {
  height: 50px; width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 128, 89, 0.18));
}

/* Grid layout */
.ta-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 90px;
  align-items: center;
}

/* LEFT column — stat */
.ta-stars-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 28px;
}
.ta-stars-row .ta-star {
  color: #e3a10d;
  font-size: 22px;
  text-shadow: 0 0 18px rgba(227, 161, 13, 0.35);
  animation: ta-star-pulse 4s ease-in-out infinite;
}
.ta-stars-row .ta-star:nth-child(2) { animation-delay: 0.2s; }
.ta-stars-row .ta-star:nth-child(3) { animation-delay: 0.4s; }
.ta-stars-row .ta-star:nth-child(4) { animation-delay: 0.6s; }
.ta-stars-row .ta-star:nth-child(5) { animation-delay: 0.8s; }
.ta-rating-num {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(29, 58, 38, 0.25);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}
@keyframes ta-star-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.08); filter: brightness(1.15); }
}

.ta-premium-number {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(110px, 15vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-transform: none;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.04em;
}
.ta-n-plus {
  font-size: 0.42em;
  line-height: 1;
  padding-top: 0.12em;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(180deg, #3f6b42 0%, #1d3a26 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.ta-n-digits {
  background: linear-gradient(180deg, #1d3a26 0%, #2f5534 45%, #6a8f56 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 20px 40px rgba(29, 58, 38, 0.18));
}
.ta-n-caption {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 36px;
}
.ta-n-line {
  width: 40px; height: 1px;
  background: var(--green-dark);
  display: inline-block;
  opacity: 0.6;
}
.ta-premium-pitch {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 460px;
  margin-bottom: 36px;
}
.ta-premium-pitch strong {
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}

.ta-trust-row {
  display: flex; gap: 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(29, 58, 38, 0.14);
  border-bottom: 1px solid rgba(29, 58, 38, 0.14);
  margin-bottom: 32px;
}
.ta-trust-item {
  display: flex; flex-direction: column; gap: 4px;
}
.ta-trust-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  line-height: 1;
}
.ta-trust-label {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 700;
}

.ta-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  position: relative;
  padding-bottom: 6px;
}
.ta-cta-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--green-dark);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.ta-cta-link:hover { color: var(--green-deep); }
.ta-cta-link:hover::after { transform: scaleX(0); transform-origin: left; }
.ta-cta-link:hover i { transform: translateX(6px); }
.ta-cta-link i { transition: transform 0.25s var(--ease); }

/* RIGHT column — review cards stacked editorially */
.ta-premium-reviews {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.ta-rev-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 58, 38, 0.14);
  padding: 28px 32px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  box-shadow:
    0 20px 50px -18px rgba(19, 40, 26, 0.22),
    0 6px 16px -6px rgba(19, 40, 26, 0.12);
  transition: transform 0.5s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ta-rev-card::before {
  content: "";
  position: absolute;
  left: -1px; top: 0;
  width: 3px; height: 40%;
  background: linear-gradient(180deg, var(--green-dark) 0%, transparent 100%);
}
.ta-rev-card--1 { transform: translateX(-24px); }
.ta-rev-card--2 { transform: translateX(18px); }
.ta-rev-card--3 { transform: translateX(-8px); }
.ta-rev-card:hover {
  transform: translateX(0) translateY(-3px);
  border-color: rgba(29, 58, 38, 0.3);
  box-shadow:
    0 28px 60px -18px rgba(19, 40, 26, 0.3),
    0 8px 20px -6px rgba(19, 40, 26, 0.16);
}

.ta-rev-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.ta-rev-stars {
  color: #e3a10d;
  font-size: 13px;
  letter-spacing: 2px;
}
.ta-rev-badge {
  font-family: var(--font-title);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #006c47;
  padding: 4px 10px;
  border: 1px solid rgba(0, 108, 71, 0.4);
  font-weight: 700;
  background: rgba(52, 224, 161, 0.08);
}
.ta-rev-quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 400;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}
.ta-rev-quote::before {
  content: "\201C";
  position: absolute;
  left: -6px; top: -12px;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--green-dark);
  opacity: 0.28;
}
.ta-rev-quote em {
  font-style: italic;
  color: var(--green-dark);
  font-weight: 500;
}
.ta-rev-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(29, 58, 38, 0.1);
}
.ta-rev-avatar {
  width: 34px; height: 34px;
  background: var(--green-dark);
  color: var(--cream);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 50%;
  flex-shrink: 0;
}
.ta-rev-meta {
  display: flex; flex-direction: column; gap: 2px;
}
.ta-rev-meta strong {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.ta-rev-meta span {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.ta-rev-date {
  margin-left: auto;
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 1020px) {
  .ta-premium-grid { grid-template-columns: 1fr; gap: 60px; }
  .ta-rev-card--1, .ta-rev-card--2, .ta-rev-card--3 { transform: none; }
  .ta-watermark { display: none; }
}
@media (max-width: 680px) {
  .ta-premium { padding: 80px 0; }
  .ta-cobrand { flex-direction: column; gap: 18px; margin-bottom: 50px; }
  .ta-cobrand-x { font-size: 24px; }
  .ta-premium-number { font-size: clamp(80px, 22vw, 140px); }
  .ta-trust-row { gap: 22px; flex-wrap: wrap; }
  .ta-trust-num { font-size: 22px; }
  .ta-rev-card { padding: 22px 24px 20px; }
  .ta-rev-date { display: none; }
}

/* ==========================================================
   Cards — Dreams
   ========================================================== */
.dream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
}
.dream-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  color: var(--ink);
}
.dream-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(19,40,26,.14); }
.dream-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--green-sage-pale);
}
.dream-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dream-card:hover .dream-card-img img { transform: scale(1.05); }
.dream-card-duration {
  position: absolute; top: 18px; left: 18px;
  background: var(--cream); color: var(--green-deep);
  padding: 7px 14px;
  font-family: var(--font-title);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.dream-card-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--green-dark); color: var(--cream);
  padding: 6px 12px;
  font-family: var(--font-title); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.dream-card-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dream-card-region {
  font-family: var(--font-title);
  text-transform: uppercase; letter-spacing: .18em; font-size: 10px;
  color: var(--green-dark); font-weight: 700;
}
.dream-card-title { margin: 4px 0 8px; color: var(--green-deep); font-size: 20px; letter-spacing: .08em; }
.dream-card-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.dream-card-foot {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.dream-card-price {
  font-family: var(--font-title);
  font-size: 15px; font-weight: 700; color: var(--green-deep);
  letter-spacing: .04em;
}
.dream-card-price small { font-weight: 400; font-size: 10px; color: var(--ink-mute); letter-spacing: .18em; text-transform: uppercase; display: block; }
.dream-card-cta { color: var(--green-dark); font-family: var(--font-title); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.dream-card-cta i { transition: transform .2s var(--ease); margin-left: 4px; }
.dream-card:hover .dream-card-cta i { transform: translateX(4px); }

/* ==========================================================
   Category grid
   ========================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--white);
  padding: 36px 28px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: all .25s var(--ease);
  color: var(--ink); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--green-sage); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.cat-card:hover { border-color: var(--green-sage); transform: translateY(-3px); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card-icon {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-sage-pale); color: var(--green-dark);
  font-size: 22px;
}
.cat-card h3 { font-size: 18px; margin: 0; color: var(--green-deep); }
.cat-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.cat-card .cat-link {
  margin-top: auto; padding-top: 8px;
  font-family: var(--font-title); font-weight: 700;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-card:hover .cat-link i { transform: translateX(4px); }
.cat-card .cat-link i { transition: transform .2s var(--ease); }

/* ==========================================================
   Value props
   ========================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px;
}
.value {
  text-align: left;
}
.value-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-dark); color: var(--green-sage);
  font-size: 20px;
  margin-bottom: 18px;
}
.value h4 { font-size: 13px; margin-bottom: 10px; color: var(--green-deep); letter-spacing: .16em; }
.value p { font-size: 14px; color: var(--ink-soft); }

/* ==========================================================
   Story / split content
   ========================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.split.flip .split-text { order: 2; }
.split-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-text p { font-size: 16px; color: var(--ink-soft); }
.split-highlight {
  border-left: 3px solid var(--green-sage);
  padding: 6px 0 6px 20px;
  font-family: var(--font-title);
  font-size: 15px; letter-spacing: .1em;
  color: var(--green-deep); margin: 24px 0;
}

/* "Our Philosophy" image — luminous sage glow + raised relief */
.split-visual .intro-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow:
    /* Fine sage ring — defines the edge */
    0 0 0 1px rgba(198, 212, 164, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    /* Raised drop shadows (relief) */
    0 40px 80px -20px rgba(19, 40, 26, 0.3),
    0 20px 40px -12px rgba(19, 40, 26, 0.22),
    0 8px 20px -8px rgba(19, 40, 26, 0.18),
    /* Luminous sage halos (near + far) */
    0 0 40px -5px rgba(198, 212, 164, 0.55),
    0 0 90px -10px rgba(198, 212, 164, 0.65),
    0 0 160px -30px rgba(198, 212, 164, 0.5);
  transition:
    transform 0.5s cubic-bezier(.25,.8,.25,1),
    box-shadow 0.5s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}
.split-visual .intro-img:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(198, 212, 164, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 55px 100px -20px rgba(19, 40, 26, 0.38),
    0 28px 55px -12px rgba(19, 40, 26, 0.28),
    0 10px 25px -8px rgba(19, 40, 26, 0.22),
    0 0 55px -5px rgba(198, 212, 164, 0.75),
    0 0 120px -10px rgba(198, 212, 164, 0.8),
    0 0 200px -30px rgba(198, 212, 164, 0.6);
}

/* ==========================================================
   Morocco / Marrakech — light theme, white → sage gradient,
   same mindset as the Tripadvisor section.
   ========================================================== */
.morocco-scene {
  position: relative;
  min-height: 92vh;
  padding: 140px 0 120px;
  overflow: hidden;
  color: var(--green-deep);
  isolation: isolate;
  background:
    linear-gradient(108deg,
      #ffffff 0%,
      #fbf9f1 22%,
      #f1f1de 48%,
      #dde5c3 78%,
      #c6d4a4 100%);
}
.morocco-scene::before {
  /* Warm sheen top-left + sage glow bottom-right for depth */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 5% 0%, rgba(255, 255, 255, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 55% 55% at 100% 100%, rgba(198, 212, 164, 0.5) 0%, transparent 60%);
}

.morocco-scene-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  z-index: 2;
  display: block;
}

/* Static SVG fallback — shown until Three.js boots (or when JS disabled) */
.morocco-scene-fallback {
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 520px;
  aspect-ratio: 1;
  color: rgba(29, 58, 38, 0.16);
  z-index: 1;
  pointer-events: none;
  animation: morocco-fallback-spin 60s linear infinite;
}
@keyframes morocco-fallback-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
/* Hide fallback once the scene is interactive (scene script toggles a class on <body>) */
body.morocco-scene-live .morocco-scene-fallback { opacity: 0; transition: opacity 0.6s ease; }

.morocco-scene-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: center;
}

.morocco-scene-copy {
  max-width: 560px;
}

.morocco-scene h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  color: var(--green-deep);
  line-height: 1.08;
  letter-spacing: .04em;
  margin-bottom: 24px;
}
.morocco-scene h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: .02em;
  display: block;
  font-size: 0.78em;
  margin-top: 4px;
  opacity: 0.8;
}

.morocco-scene .eyebrow { color: var(--green-dark); }
.morocco-scene .eyebrow i { color: var(--green-sage); }
.morocco-scene .eyebrow::before { background: var(--green-dark); opacity: 0.5; }

.morocco-scene-lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 44px;
  max-width: 520px;
}
.morocco-scene-lead strong {
  font-weight: 600;
  color: var(--green-deep);
}

.morocco-scene-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(29, 58, 38, 0.15);
}
.mo-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(29, 58, 38, 0.13);
}
.mo-card:last-child { border-bottom: 0; }

.mo-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-dark);
  padding-top: 4px;
}
.mo-card-kicker i { font-size: 11px; color: var(--green-sage); }
.mo-card-title {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.mo-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Mobile / tablet ===== */
@media (max-width: 1020px) {
  .morocco-scene-grid { grid-template-columns: 1fr; gap: 50px; }
  .morocco-scene-canvas {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    right: auto;
    margin-bottom: 10px;
  }
  .morocco-scene-fallback {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto 20px;
    width: 80%;
    max-width: 360px;
  }
  @keyframes morocco-fallback-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
}
@media (max-width: 700px) {
  .morocco-scene { padding: 90px 0 90px; min-height: auto; }
  .mo-card { grid-template-columns: 1fr; gap: 4px; }
  .morocco-scene-canvas { height: 54vh; }
}

/* ==========================================================
   Testimonials
   ========================================================== */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial-stars { color: var(--green-sage); letter-spacing: 3px; font-size: 14px; }
.testimonial-quote { font-size: 15px; color: var(--ink); line-height: 1.8; font-style: italic; }
.testimonial-author { font-family: var(--font-title); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--green-deep); }
.testimonial-author small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 10px; letter-spacing: .2em; margin-top: 3px; }

/* ==========================================================
   Forms
   ========================================================== */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form label {
  font-family: var(--font-title);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-deep); font-weight: 700;
}
.form input, .form textarea, .form select {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s var(--ease);
  width: 100%;
  font-family: var(--font-body);
  border-radius: 0;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--green-dark); }
.form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-note { font-size: 12px; color: var(--ink-mute); }

.flash {
  padding: 14px 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  margin-bottom: 18px;
}
.flash-success { border-color: #7aa66d; background: #eef3e3; color: #2f5523; }
.flash-error   { border-color: #c16868; background: #f8e6e6; color: #7a2020; }
.flash-info    { border-color: #a2b4c4; background: #eaf0f5; color: #2a425c; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--green-deep); color: rgba(250,247,240,.78); padding: 80px 0 0; margin-top: 80px; }
.footer-top {
  display: grid; gap: 50px;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(198,212,164,.15);
}
.footer-brand .brand { color: var(--cream); font-size: 20px; }
.footer-brand .brand-name span { color: var(--green-sage); }
.footer-note { font-size: 14px; max-width: 340px; margin: 22px 0; line-height: 1.7; color: rgba(250,247,240,.65); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(198,212,164,.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green-sage);
  transition: all .2s var(--ease);
}
.socials a:hover { background: var(--green-sage); color: var(--green-deep); border-color: var(--green-sage); }
.footer-col h4 { color: var(--green-sage); font-size: 12px; letter-spacing: .22em; margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--green-sage); }
.footer-col ul.plain li { display: flex; align-items: flex-start; gap: 10px; }
.footer-col ul.plain li i { color: var(--green-sage); width: 14px; margin-top: 5px; }

.footer-bottom { padding: 22px 0; font-size: 12px; letter-spacing: .06em; color: rgba(250,247,240,.5); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-credit a { color: var(--green-sage); }

/* ==========================================================
   Reveal animations
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d-1 { transition-delay: .08s; }
.reveal.d-2 { transition-delay: .16s; }
.reveal.d-3 { transition-delay: .24s; }
.reveal.d-4 { transition-delay: .32s; }

/* ==========================================================
   Dream single
   ========================================================== */
.dream-hero {
  position: relative; min-height: 80vh; padding: 180px 0 90px;
  color: var(--cream); overflow: hidden;
  background: var(--green-deep);
  display: flex; align-items: flex-end;
}
.dream-hero::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,40,26,.3) 0%, rgba(19,40,26,.85) 100%);
  z-index: 1;
}
.dream-hero > img, .dream-hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.dream-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.dream-hero h1 { color: var(--cream); margin-bottom: 18px; }
.dream-hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap; margin: 18px 0 30px;
  font-family: var(--font-title); letter-spacing: .18em; text-transform: uppercase;
  font-size: 11px; color: var(--green-sage);
}
.dream-hero-meta span i { margin-right: 8px; }
.dream-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; }
.dream-long { font-size: 16px; line-height: 1.9; color: var(--ink-soft); }
.dream-long p { margin-bottom: 1.3em; }
.dream-aside {
  background: var(--green-sage-pale); padding: 36px;
  position: sticky; top: 110px; align-self: start;
}
.dream-aside h3 { color: var(--green-deep); font-size: 14px; margin-bottom: 18px; }
.dream-aside .price {
  font-family: var(--font-title);
  font-size: 30px; letter-spacing: .04em;
  color: var(--green-deep); margin-bottom: 6px;
}
.dream-aside .price small { font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-top: 4px; }
.dream-aside ul { margin-top: 18px; }
.dream-aside ul li {
  padding: 10px 0; border-bottom: 1px solid rgba(19,40,26,.08);
  font-size: 13px; color: var(--ink);
}
.dream-aside ul li:last-child { border-bottom: 0; }
.dream-aside ul li strong { font-family: var(--font-title); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-dark); display: block; margin-bottom: 3px; }

/* ==========================================================
   About page components
   ========================================================== */
.about-nav {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 110px; z-index: 20;
}
.about-nav-inner {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  padding: 14px 0;
}
.about-nav a {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  transition: color 0.2s var(--ease);
  padding: 4px 0;
  position: relative;
}
.about-nav a:hover { color: var(--green-deep); }
.about-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  height: 2px; width: 100%;
  background: var(--green-sage);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.about-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* How-steps */
.how-steps { list-style: none; padding: 0; margin: 18px 0 0; }
.how-steps li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.how-steps li:first-child { border-top: 0; padding-top: 10px; }
.how-steps .how-step-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 26px;
  color: var(--green-sage);
  letter-spacing: 0.02em;
  line-height: 1;
}
.how-steps strong {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: block;
  margin-bottom: 6px;
}
.how-steps p {
  color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin: 0;
}

/* Team cards */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(19,40,26,.1); }
.team-card-img {
  aspect-ratio: 4/5; overflow: hidden;
  background: var(--green-sage-pale);
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-body { padding: 28px; }
.team-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.team-card-role {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--green-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}
.team-card-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin: 0; }

/* For Good cards */
.forgood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.forgood-card {
  background: rgba(198, 212, 164, 0.06);
  border: 1px solid rgba(198, 212, 164, 0.2);
  padding: 30px 26px;
  transition: all 0.25s var(--ease);
}
.forgood-card:hover {
  background: rgba(198, 212, 164, 0.1);
  border-color: rgba(198, 212, 164, 0.4);
  transform: translateY(-2px);
}
.forgood-card i {
  font-size: 24px; color: var(--green-sage);
  margin-bottom: 14px;
}
.forgood-card h4 {
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.forgood-card p {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(250, 247, 240, 0.72); margin: 0;
}

@media (max-width: 820px) {
  .about-nav { top: 0; }
  .about-nav-inner { gap: 22px; font-size: 10px; }
  .about-nav a { font-size: 10px; letter-spacing: 0.16em; }
  .how-steps li { grid-template-columns: 50px 1fr; gap: 12px; }
  .how-steps .how-step-num { font-size: 22px; }
}

/* ==========================================================
   Dream itinerary (day-by-day)
   ========================================================== */
.itinerary { display: flex; flex-direction: column; gap: 0; }
.iti-day {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.iti-day:first-child { border-top: 0; }
.iti-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-dark);
  padding-top: 6px;
  position: relative;
}
.iti-num::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--green-sage);
  border-radius: 50%;
}
.iti-content h4 {
  color: var(--green-deep);
  font-size: 15px;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.iti-content p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 720px) {
  .iti-day { grid-template-columns: 1fr; gap: 10px; }
  .iti-num::before { display: none; }
}

/* ==========================================================
   Utilities
   ========================================================== */
.text-center { text-align: center; }
.mt-xl { margin-top: var(--r-xl); }
.mb-xl { margin-bottom: var(--r-xl); }
.divider { height: 1px; background: var(--line); margin: 60px 0; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .split.flip .split-text { order: 0; }
  .dream-body { grid-template-columns: 1fr; gap: 50px; }
  .dream-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  :root { --section-py: 70px; --gap: 24px; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); padding: 30px;
    transform: translateY(-100%); transition: transform .3s var(--ease);
    overflow-y: auto; align-items: stretch;
  }
  .site-header.is-nav-open .nav-list { transform: translateY(0); }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { padding: 18px 0; font-size: 14px; width: 100%; justify-content: space-between; }
  .nav-list > li > a::after { display: none; }
  .has-dropdown .dropdown {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; border: none; background: transparent; padding: 0 0 18px;
    min-width: 0;
  }
  .dropdown-inner { grid-template-columns: 1fr; gap: 14px; }
  .has-dropdown:not(.is-open) .dropdown { display: none; }
  .site-header.is-transparent:not(.is-scrolled).is-nav-open { background: var(--cream); }
  .site-header.is-transparent:not(.is-scrolled).is-nav-open .brand,
  .site-header.is-transparent:not(.is-scrolled).is-nav-open .nav-list > li > a { color: var(--green-deep); }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding: 140px 0 140px; }
  .hero-stats { gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
