/* ============================================================
   Atlasia Tours v2.5 — Complete Theme
   Merged: Blue Palette + Moroccan Enhancements
   Palette: #325E87 / #508AC0 / #DFEAF6 / #EDF4FD / #F3F8FE / #FEFEFE / #B4C8DC
   Typography: Fraunces + Inter + Anton
   ============================================================ */
:root {
  /* === Core Palette === */
  --ink: #325E87;              /* Bleu foncé — headings, navbar, dark sections */
  --ink-2: #4A6B94;            /* Medium blue-gray — secondary text */
  --ink-3: #7A94B8;            /* Light blue-gray — tertiary text, hints */
  --bg: #EDF4FD;               /* Bleu très clair — page background */
  --surface: #FEFEFE;          /* Blanc — cards, modals, surfaces */
  --primary: #508AC0;          /* Bleu principal — brand blue, CTAs, links */
  --primary-d: #3D74A8;        /* Darker blue — hover states */
  --primary-50: #F3F8FE;       /* Bleu pastel — subtle backgrounds, badges */
  --primary-100: #DFEAF6;      /* Bleu clair — card backgrounds, section dividers */
  --primary-200: #B4C8DC;      /* Bleu-gris فاتح — borders, tags, decorative */
  --accent: #0d9488;           /* Teal — kept as secondary accent for CTAs */
  --accent-d: #0f766e;         /* Dark teal — hover */
  --accent-50: #ccfbf1;        /* Light teal background */
  --trust: #2a9d8f;            /* Trust green — success states */
  --trust-d: #238579;
  --warn: #e76f51;             /* Coral — warnings, errors */
  --line: #B4C8DC;             /* Bleu-gris — borders (was #d9deea) */
  --line-d: #94B0CC;           /* Darker blue-gray — emphasis borders */

  /* === Spacing & Shape === */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* === Shadows — updated for blue palette === */
  --shadow-sm: 0 2px 8px rgba(50, 94, 135, .04), 0 1px 2px rgba(50, 94, 135, .06);
  --shadow: 0 4px 16px rgba(50, 94, 135, .06), 0 2px 4px rgba(50, 94, 135, .04);
  --shadow-lg: 0 16px 40px rgba(50, 94, 135, .10), 0 4px 8px rgba(50, 94, 135, .06);
  --shadow-xl: 0 24px 60px rgba(50, 94, 135, .14), 0 8px 16px rgba(50, 94, 135, .06);

  --maxw: 1280px;

  /* === Typography === */
  --font-d: 'Fraunces', Georgia, serif;
  --font-alt: 'Anton', Impact, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  padding-bottom: 78px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, details:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.3em 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em }
h3 { font-size: 1.3rem; line-height: 1.2 }
.display { font-family: var(--font-alt); text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95 }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px }
.narrow { max-width: 880px }
.center { text-align: center }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 100px; padding: 12px 24px;
  max-width: 1400px; margin: 0 auto; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0 }
.custom-logo-link { display: flex; align-items: center; flex-shrink: 0; line-height: 0 }
.custom-logo { height: 72px !important; width: auto !important; max-width: 220px; border-radius: 10px; object-fit: contain }
.theme-logo { height: 72px; width: auto; max-width: 240px; object-fit: contain; flex-shrink: 0 }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; color: #fff;
  font-size: 1.1rem; box-shadow: var(--shadow); flex-shrink: 0;
}
.brand-name { font-family: var(--font-d); font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap }
.brand-name span { color: var(--primary); }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0 }
.nav-list a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; padding: 8px 0; position: relative; transition: color 0.2s }
.nav-list a:hover { color: var(--ink) }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform 0.2s; transform-origin: left;
}
.nav-list a:hover::after { transform: scaleX(1) }
.header-cta { margin-left: auto; display: flex; gap: 8px; align-items: center }
.lang-switch { display: flex; gap: 4px; font-size: 0.8rem }
.lang-switch a {
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink-2); font-weight: 500; transition: all 0.2s;
}
.lang-switch a:hover { border-color: var(--primary); color: var(--ink) }
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 1.2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  letter-spacing: -0.01em; border: 1px solid transparent; transition: all 0.2s;
  cursor: pointer; text-align: center; line-height: 1; font-family: var(--font-b); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 4px 14px rgba(50, 94, 135, 0.35) }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 6px 20px rgba(50, 94, 135, 0.5); transform: translateY(-1px) }
.btn-secondary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(80, 138, 192, 0.3) }
.btn-secondary:hover { background: var(--primary-d); box-shadow: 0 6px 20px rgba(80, 138, 192, 0.5); transform: translateY(-1px) }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink) }
.btn-outline:hover { background: var(--ink); color: #fff }
.btn-ghost { background: transparent; color: var(--ink-2) }
.btn-ghost:hover { color: var(--ink); background: var(--primary-50) }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) }
.btn-whatsapp:hover { background: #1da851; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); transform: translateY(-1px) }
.btn-trust { background: var(--trust); color: #fff; box-shadow: 0 4px 14px rgba(42, 157, 143, 0.3) }
.btn-trust:hover { background: var(--trust-d); transform: translateY(-1px) }
.btn-block { width: 100% }
.btn-lg { padding: 16px 28px; font-size: 1rem }
.btn-sm { padding: 8px 16px; font-size: 0.85rem }
.btn-icon { padding: 10px; border-radius: 50%; width: 42px; height: 42px }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.25; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; bottom: -200px; left: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-50) 0%, transparent 70%);
  opacity: 0.5; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px;
  align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); margin: 0.2em 0 0.4em; line-height: 1.02; letter-spacing: -0.03em }
.hero h1 em { font-style: italic; color: var(--primary); font-weight: 500 }
.hero-lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.6; max-width: 54ch; margin-bottom: 30px }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-3) }
.hero-trust div { display: flex; align-items: center; gap: 6px }
.hero-trust .ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-50); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.hero-media { position: relative; height: 540px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl) }
.hero-media img { width: 100%; height: 100%; object-fit: cover }
.hero-media .placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 600; font-family: var(--font-d);
}
.hero-floating-card {
  position: absolute; background: var(--surface); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 0.9rem;
}
.hero-floating-card.fc-1 { top: 30px; left: -30px; animation: float 6s ease-in-out infinite }
.hero-floating-card.fc-2 { bottom: 30px; right: -30px; animation: float 6s ease-in-out 3s infinite }
.fc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary-d);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.fc-icon.trust { background: #e6f4f2; color: var(--trust-d); }
.fc-text strong { display: block; font-weight: 700; color: var(--ink) }
.fc-text small { color: var(--ink-3); font-size: 0.78rem }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec { padding: 80px 0 }
.sec-tight { padding: 56px 0 }
.sec-alt { background: var(--surface) }
.sec-dark { background: var(--ink); color: #fff }
.sec-dark h1, .sec-dark h2, .sec-dark h3 { color: #fff }
.sec-primary { background: linear-gradient(180deg, var(--primary-50), var(--bg)) }
.sec-head { margin-bottom: 40px }
.sec-head .eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--primary-50); color: var(--ink);
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px;
}
.sec-head h2 { margin: 0 0 12px }
.sec-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; margin: 0 }
.sec-head.center { text-align: center }
.sec-head.center p { margin: 0 auto }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px }
.sec-head-row .sec-head { margin-bottom: 0 }

/* ============================================================
   TOUR CARDS
   ============================================================ */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.tour-grid.cols-2 { grid-template-columns: repeat(2, 1fr) }
.tour-grid.cols-4 { grid-template-columns: repeat(4, 1fr) }

/* --- Base grids (desktop-first): display + columns.
     NOTE: without these, grid-3/4/trust/book/featured are plain blocks
     and stack full-width at every viewport (columns alone do nothing). --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center }
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start }
.featured-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.featured-media { min-height: 320px; position: relative; overflow: hidden }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0 }
.featured-body { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px }
.featured-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }

/* --- Mobile navigation (≤900px): hamburger + dropdown panel.
     main.js toggles .open on .nav-list; without this the toggle is dead. --- */
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav .nav-list {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 24px 16px; z-index: 999;
  }
  .main-nav .nav-list.open { display: flex; }
  .main-nav .nav-list a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-list a::after { display: none; }
  .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .featured-card { grid-template-columns: 1fr; }
}
.tour-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all 0.25s;
  display: flex; flex-direction: column; position: relative;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-200) }
.tour-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--primary-50) }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s }
.tour-card:hover .tour-card-media img { transform: scale(1.06) }
.tour-card-media .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}
.tour-card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink);
  padding: 5px 10px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 4px;
}
.tour-card-badge.accent { background: var(--primary); color: #fff }
.tour-card-badge.trust { background: var(--trust); color: #fff }
.tour-card-fav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.95); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-3); transition: all 0.2s;
}
.tour-card-fav:hover { color: var(--primary) }
.tour-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.tour-card-loc { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-3); font-weight: 500 }
.tour-card h3 { font-size: 1.2rem; margin: 0; line-height: 1.25; font-family: var(--font-d); font-weight: 600; color: var(--ink) }
.tour-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-3); margin-top: 2px }
.tour-card-meta span { display: flex; align-items: center; gap: 4px }
.tour-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line) }
.tour-card-price { font-size: 1.3rem; font-weight: 700; color: var(--ink); font-family: var(--font-d) }
.tour-card-price small { font-size: 0.8rem; color: var(--ink-3); font-weight: 400; display: block; line-height: 1 }
.tour-card-cta { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; transition: gap 0.2s }
.tour-card:hover .tour-card-cta { gap: 8px }

/* ============================================================
   DESTINATIONS
   ============================================================ */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.dest-card {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: block; color: #fff; box-shadow: var(--shadow);
}
.dest-card img, .dest-card .placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.dest-card .placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
  background: linear-gradient(135deg, var(--ink), #4A6B94);
}
.dest-card:hover img { transform: scale(1.08) }
.dest-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%); z-index: 1 }
.dest-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 2; color: #fff }
.dest-card-body h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem }
.dest-card-body p { margin: 0; font-size: 0.85rem; opacity: 0.9 }
.dest-card-icon {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px;
  border-radius: 12px; background: rgba(255,255,255,0.95); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; z-index: 2; backdrop-filter: blur(4px);
}

/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
  position: sticky; top: 112px;
}
.booking-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 0 0 3px 3px;
}
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 20px; padding: 0 4px }
.step { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ink-3); font-weight: 500 }
.step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--line); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700;
}
.step.done .step-num { background: var(--trust); color: #fff; border-color: var(--trust) }
.step.active .step-num { background: var(--primary); color: #fff; border-color: var(--primary) }
.step-line { flex: 1; height: 1px; background: var(--line); margin: 0 4px }
.field { margin-bottom: 12px }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(80, 138, 192, 0.15);
}
.field input.error, .field select.error { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.1) }
.field-hint { font-size: 0.78rem; color: var(--ink-3); margin-top: 4px }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.counter { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px }
.counter button {
  width: 32px; height: 32px; border: none; background: var(--surface); border-radius: 8px;
  cursor: pointer; font-size: 1.1rem; color: var(--ink); font-weight: 600; transition: all 0.2s;
}
.counter button:hover { background: var(--primary-50) }
.counter button:disabled { opacity: 0.4; cursor: not-allowed }
.counter input { width: 48px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 1rem; padding: 0 }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #7A94B8; padding: 60px 0 30px; margin-top: 0 }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px }
.site-footer h4 { color: #fff; font-family: var(--font-b); font-size: 0.9rem; font-weight: 600; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em }
.footer-brand p { color: #7A94B8; line-height: 1.6; font-size: 0.92rem; margin: 0 0 18px }
.footer-social { display: flex; gap: 8px }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06);
  color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.footer-social a:hover { background: var(--primary) }
.footer-list { list-style: none; padding: 0; margin: 0 }
.footer-list li { margin: 8px 0 }
.footer-list a { color: #7A94B8; font-size: 0.92rem; transition: color 0.2s }
.footer-list a:hover { color: #fff }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 24px;
  text-align: center; color: #4A6B94; font-size: 0.85rem;
  max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent { color: var(--primary) }
.text-trust { color: var(--trust) }
.text-ink { color: var(--ink) }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px } .mb-4 { margin-bottom: 32px }
.mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 32px }
.flex { display: flex } .gap-2 { gap: 8px } .gap-3 { gap: 12px } .items-center { align-items: center } .justify-between { justify-content: space-between } .flex-wrap { flex-wrap: wrap }
.hidden { display: none }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent }

/* ============================================================
     RESPONSIVE — ALL PLATFORMS
     ============================================================ */

/* --- Large Desktop (1440px+) --- */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
  h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
  .hero { padding: 120px 0 140px; }
  .hero-grid { gap: 80px; }
  .hero-media { height: 640px; }
  .tour-grid { gap: 32px; }
  .dest-grid { gap: 24px; }
}

/* --- Desktop (901px+) --- */
@media (min-width: 901px) {
  body { padding-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .sticky-cta { display: none; }
  .wa-float { bottom: 18px; right: calc(18px + env(safe-area-inset-right)); }
}

/* --- Tablet Landscape (768px–900px) --- */
@media (min-width: 768px) and (max-width: 900px) {
  .container { padding: 0 32px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tour-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-grid { gap: 40px; }
  .hero-media { height: 400px; }
  .sec { padding: 70px 0; }
  .booking-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* --- Tablet Portrait (601px–767px) --- */
@media (min-width: 601px) and (max-width: 767px) {
  .container { padding: 0 24px; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tour-grid { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { height: 360px; }
  .sec { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* --- Mobile Large (481px–600px) --- */
@media (max-width: 600px) {
  body { padding-bottom: 80px; overflow-x: clip; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 64px; padding: 8px 12px; gap: 8px; }
  .theme-logo { height: 40px; max-width: 150px; }
  .brand-name { font-size: 1.1rem; }
  .nav-toggle { padding: 6px 8px; font-size: 1.1rem; min-width: 44px; min-height: 44px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.5rem); }
  .hero-lede { font-size: 0.95rem; }
  .hero-ctas .btn { flex: 1; padding: 12px 16px; font-size: 0.85rem; min-height: 44px; }
  .hero-media { height: 260px; }
  .hero-floating-card { padding: 10px 12px; font-size: 0.8rem; min-height: 44px; }
  .fc-icon { width: 32px; height: 32px; font-size: 1rem; min-width: 44px; min-height: 44px; }
  .sec { padding: 56px 0; }
  .sec-head .eyebrow { font-size: 0.72rem; padding: 5px 12px; }
  .sec-head h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .sec-head p { font-size: 0.95rem; }
  .tour-grid, .tour-grid.cols-2, .tour-grid.cols-3, .tour-grid.cols-4 { grid-template-columns: 1fr; gap: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .tour-card-body { padding: 16px; }
  .tour-card h3 { font-size: 1.1rem; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dest-card { aspect-ratio: 1; }
  .dest-card-icon { width: 36px; height: 36px; font-size: 1.1rem; top: 12px; right: 12px; }
  .facts-grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 12px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { padding: 12px; min-height: 44px; font-size: 16px; }
  .counter { min-height: 44px; }
  .counter button { width: 36px; height: 36px; min-width: 44px; min-height: 44px; }
  .counter input { width: 48px; font-size: 1rem; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 16px; }
  .booking-card { padding: 16px; }
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { min-height: 240px; }
  .featured-body { padding: 20px 16px; }
  .featured-facts { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .book-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .btn { padding: 12px 20px; min-height: 44px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 24px; min-height: 48px; }
  .wa-float { width: 50px; height: 50px; font-size: 22px; bottom: 80px; right: calc(14px + env(safe-area-inset-right)); min-width: 44px; min-height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-list li { margin: 6px 0; }
  .site-footer { padding: 40px 0 20px; }
}

/* --- Ultra Mobile (320px–480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-lede { font-size: 0.88rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-media { height: 200px; }
  .sec { padding: 40px 0; }
  .sec-head h2 { font-size: 1.4rem; }
  .tour-card-body { padding: 12px; gap: 6px; }
  .tour-card h3 { font-size: 1rem; }
  .tour-card-meta { font-size: 0.75rem; gap: 8px; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card { aspect-ratio: 16/9; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .booking-card { padding: 12px; }
  .field input, .field select, .field textarea { padding: 10px; font-size: 16px; }
  .btn { padding: 10px 16px; min-height: 44px; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { font-size: 0.85rem; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .sticky-cta, .wa-float, .nav-toggle { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .hero { background: #fff !important; color: #000; }
  .sec-dark { background: #fff !important; color: #000; }
  .booking-card { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
     ACCESSIBILITY — PREFERENCES
     ============================================================ */

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-floating-card { animation: none !important; }
  .atlantic-wave { animation: none !important; background-position: 0% 50% !important; }
  .heat-haze::after { animation: none !important; }
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #B4C8DC;
    --ink-2: #94B0CC;
    --ink-3: #7A94B8;
    --bg: #1a2744;
    --surface: #243556;
    --primary: #508AC0;
    --primary-50: #1e3050;
    --primary-100: #2a4060;
    --primary-200: #3D74A8;
    --line: #3a5070;
    --line-d: #4a6080;
  }
  body { background: var(--bg); color: var(--ink); }
  .site-header { background: rgba(26, 39, 68, 0.92); border-bottom-color: var(--line); }
  .nav-list { background: var(--surface); }
  .nav-toggle { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .tour-card, .dest-card, .booking-card, .featured-card { background: var(--surface); border-color: var(--line); }
  .sec-alt { background: var(--surface); }
  .sec-primary { background: linear-gradient(180deg, var(--primary-50), var(--bg)); }
  .field input, .field select, .field textarea { background: var(--surface); color: var(--ink); border-color: var(--line); }
  .site-footer { background: #0f1a2e; }
  .hero { background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%); }
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
  :root {
    --ink: #000000;
    --ink-2: #1a1a1a;
    --ink-3: #333333;
    --line: #000000;
    --primary: #004488;
    --primary-d: #003366;
  }
  .btn-primary { border: 2px solid #000; }
  .btn-outline { border-width: 2px; }
  .tour-card, .dest-card { border-width: 2px; }
  a:focus-visible { outline-width: 4px; }
}

/* --- Touch Devices (hover:none) --- */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; min-width: 48px; }
  .tour-card-fav { width: 44px; height: 44px; }
  .counter button { width: 44px; height: 44px; }
  .nav-toggle { min-width: 48px; min-height: 48px; }
  .wa-float { width: 56px; height: 56px; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .dest-card { min-height: 200px; }
  .tour-card:hover { transform: none; }
  .tour-card:hover .tour-card-media img { transform: none; }
  .btn-primary:hover { transform: none; }
}

/* --- Safe Area Insets (Notched Phones) --- */
@supports (padding: max(0px)) {
  body { padding-bottom: max(78px, env(safe-area-inset-bottom)); }
  .sticky-cta { padding-bottom: env(safe-area-inset-bottom); }
  .wa-float { bottom: calc(96px + env(safe-area-inset-bottom)); right: calc(18px + env(safe-area-inset-right)); }
  .header-inner { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
}

/* ============================================================
     CONTAINER QUERIES (Component-level responsiveness)
     ============================================================ */
@supports (container-type: inline-size) {
  .tour-card { container-type: inline-size; container-name: tour-card; }
  .tour-card-body { padding: 20px; }
  @container tour-card (max-width: 280px) {
    .tour-card-body { padding: 12px; }
    .tour-card h3 { font-size: 1rem; }
    .tour-card-meta { flex-direction: column; gap: 2px; }
    .tour-card-cta { font-size: 0.8rem; }
  }
  .dest-card { container-type: inline-size; container-name: dest-card; }
  @container dest-card (max-width: 200px) {
    .dest-card-body h3 { font-size: 1rem; }
    .dest-card-icon { width: 32px; height: 32px; font-size: 0.9rem; }
  }
  .booking-card { container-type: inline-size; container-name: booking-card; }
  @container booking-card (max-width: 320px) {
    .booking-card { padding: 12px; }
    .stepper { flex-wrap: wrap; gap: 4px; }
    .field-row { grid-template-columns: 1fr; }
  }
}

/* ============================================================
     PERFORMANCE — Content Visibility
     ============================================================ */
.tour-card, .dest-card, .featured-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ============================================================
     MOROCCAN DESIGN ENHANCEMENTS
     ============================================================ */
/* ============================================================
   Atlasia Tours v2.5 — Moroccan Design Enhancements
   Zellige patterns, Arabic accents, and cultural design elements
   ============================================================ */

/* --- Zellige Tile Pattern (CSS-only geometric mosaic) --- */
.zellige {
  position: relative;
  background: var(--primary-100);
  overflow: hidden;
}
.zellige::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Geometric cross pattern inspired by Moroccan zellige */
    linear-gradient(45deg, transparent 30%, rgba(50,94,135,0.05) 30%, rgba(50,94,135,0.05) 34%, transparent 34%),
    linear-gradient(-45deg, transparent 30%, rgba(50,94,135,0.05) 30%, rgba(50,94,135,0.05) 34%, transparent 34%),
    linear-gradient(0deg, transparent 48%, rgba(80,138,192,0.04) 48%, rgba(80,138,192,0.04) 52%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(80,138,192,0.04) 48%, rgba(80,138,192,0.04) 52%, transparent 52%);
  background-size: 60px 60px, 60px 60px, 60px 60px, 60px 60px;
  opacity: 0.5;
  z-index: 0;
}
.zellige > * { position: relative; z-index: 1 }

/* --- Moroccan Star Pattern (8-pointed star) --- */
.moroccan-star {
  position: relative;
}
.moroccan-star::after {
  content: "✦";
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* --- Arabic Typography Accent --- */
.arabic-accent {
  font-family: 'Amiri', 'Scheherazade', 'Traditional Arabic', serif;
  font-style: italic;
  color: var(--primary);
}
.arabic-label {
  display: inline-block;
  background: var(--primary-100);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--primary-200);
}

/* --- Medinna Wall Gradient (warm stone effect) --- */
.medina-wall {
  background: linear-gradient(
    135deg,
    #8B7355 0%,
    #A0896C 20%,
    #B4C8DC 50%,
    #DFEAF6 80%,
    #EDF4FD 100%
  );
}

/* --- Sahara Dune Gradient --- */
.sahara-dune {
  background: linear-gradient(
    180deg,
    #F3F8FE 0%,
    #DFEAF6 30%,
    #B4C8DC 60%,
    #508AC0 100%
  );
}

/* --- Atlas Mountain Gradient --- */
.atlas-mountain {
  background: linear-gradient(
    135deg,
    #325E87 0%,
    #4A6B94 40%,
    #7A94B8 70%,
    #B4C8DC 100%
  );
}

/* --- Moroccan Ornamental Border --- */
.moroccan-border {
  border: 2px solid var(--primary-200);
  border-image: linear-gradient(
    45deg,
    var(--primary),
    var(--primary-200),
    var(--primary),
    var(--primary-200)
  ) 1;
  border-radius: var(--radius);
}

/* --- Geometric Divider --- */
.geometric-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 20px,
    var(--primary-200) 20px,
    var(--primary-200) 40px
  );
  border-radius: 2px;
  margin: 24px 0;
}

/* --- Lantern Icon Decoration --- */
.lantern-decor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border: 2px solid var(--primary-200);
  font-size: 1.4rem;
  color: var(--primary);
}

/* --- Calligraphy Line --- */
.calligraphy-line {
  height: 2px;
  width: 80px;
  background: linear-gradient(90deg, var(--primary), var(--primary-200), transparent);
  margin: 16px auto;
  border-radius: 1px;
}

/* --- Riad Card Pattern --- */
.riad-card {
  background: var(--surface);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.riad-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* --- Stamp/Seal Style --- */
.moroccan-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px double var(--primary);
  background: var(--primary-50);
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.1;
}

/* --- Wave Pattern (Atlantic ocean) --- */
.atlantic-wave {
  background: linear-gradient(
    270deg,
    var(--bleu-tres-clair, #EDF4FD) 0%,
    var(--bleu-clair, #DFEAF6) 25%,
    var(--bleu-principal, #508AC0) 50%,
    var(--bleu-clair, #DFEAF6) 75%,
    var(--bleu-tres-clair, #EDF4FD) 100%
  );
  background-size: 200% 100%;
  animation: wave 8s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Dust/Heat Haze Effect --- */
.heat-haze {
  position: relative;
}
.heat-haze::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  animation: haze 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haze {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-2px); }
}

/* --- Apply to existing sections --- */
.sec-primary.zellige { background: linear-gradient(180deg, var(--primary-50), var(--bg)); }
.sec-primary.zellige::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(50,94,135,0.03) 30%, rgba(50,94,135,0.03) 34%, transparent 34%),
    linear-gradient(-45deg, transparent 30%, rgba(50,94,135,0.03) 30%, rgba(50,94,135,0.03) 34%, transparent 34%);
  background-size: 80px 80px;
  opacity: 0.4;
  z-index: 0;
}

/* --- Footer Moroccan Pattern --- */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary), var(--accent), var(--primary));
}

/* --- Button Moroccan Style --- */
.btn-moroccan {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.btn-moroccan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--ink));
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: -1;
}
.btn-moroccan:hover {
  color: #fff;
  border-color: var(--ink);
}
.btn-moroccan:hover::before {
  transform: translateX(0);
}

/* --- Section Divider with Arabic Pattern --- */
.section-divider-arabic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.3;
}
.section-divider-arabic::before,
.section-divider-arabic::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-200), transparent);
}

/* --- Responsive adjustments --- */
@media (max-width: 900px) {
  .zellige::before { background-size: 40px 40px; }
  .geometric-divider { background-size: 20px 20px; }
}

/* --- Accessibility: skip link (visually hidden until keyboard focus) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus,
.skip-link:active {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--ink, #1f2a44);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  z-index: 100000;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

/* --- Accessibility: visible focus for keyboard users --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent, #0d9488);
  outline-offset: 2px;
}
