/* ==========================================================================
   ATLAS YACOUB ADVENTURES - style.css
   Phase 1: Visual identity & design foundation
   Mobile-first. Later phases append their sections below the marked areas.
   ========================================================================== */

/* 1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette */
  --color-charcoal: #202522;
  --color-sand: #D6B98C;
  --color-beige: #F3EBDD;
  --color-terracotta: #A85D3B;
  --color-forest: #354C3B;
  --color-white: #FFFFFF;
  --color-whatsapp: #0B7A5C;        /* white text on it = contrast 5.3:1 (official #25D366 fails) */
  --color-whatsapp-dark: #075E54;

  /* Derived tones */
  --color-terracotta-dark: #8C4A2D;
  --color-sand-dark: #BFA070;
  --color-charcoal-soft: #2E3531;
  --color-text: #2B302D;
  --color-text-muted: #555A56;
  --color-border: rgba(32, 37, 34, 0.12);
  --overlay-dark: linear-gradient(180deg, rgba(32,37,34,.35) 0%, rgba(32,37,34,.75) 100%);

  /* Typography */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h4: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 6vw, 4rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(32, 37, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(32, 37, 34, 0.12);
  --shadow-lg: 0 18px 48px rgba(32, 37, 34, 0.2);

  /* Layout */
  --container-width: 1200px;
  --header-height: 76px;
  --transition: 0.3s ease;
}

/* 2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-terracotta-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-sand);
  outline-offset: 2px;
}

/* 3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--space-3); }

.lead {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark); /* passes contrast on white AND beige */
  margin-bottom: var(--space-2);
}

/* 4. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-6); }
.section--beige { background: var(--color-beige); }
.section--dark { background: var(--color-charcoal); color: var(--color-beige); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--forest { background: var(--color-forest); color: var(--color-beige); }
.section--forest h2, .section--forest h3 { color: var(--color-white); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5);
}
.section-header::after {
  /* Amazigh-inspired divider: a short sand line */
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-3) auto 0;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-sand));
  border-radius: 2px;
}

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

.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px; /* touch-friendly */
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--color-terracotta); color: var(--color-white); }
.btn--primary:hover { background: var(--color-terracotta-dark); color: var(--color-white); }

.btn--secondary { background: var(--color-sand); color: var(--color-charcoal); }
.btn--secondary:hover { background: var(--color-sand-dark); color: var(--color-charcoal); }

.btn--outline { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn--outline:hover { background: var(--color-white); color: var(--color-charcoal); }

.btn--outline-dark { background: transparent; color: var(--color-charcoal); border-color: var(--color-charcoal); }
.btn--outline-dark:hover { background: var(--color-charcoal); color: var(--color-white); }

.btn--whatsapp { background: var(--color-whatsapp); color: var(--color-white); }
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); color: var(--color-white); }

/* 6. CARD BASE (extended in Phase 5)
   ========================================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* 7. RESPONSIVE BREAKPOINTS (mobile-first)
   ========================================================================== */
@media (min-width: 576px) {
  .container { padding-inline: var(--space-4); }
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-7); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PHASE 2+ SECTIONS (appended later): header & nav, footer, hero slider,
   page banners, tour cards, forms, gallery, etc.
   ========================================================================== */

/* ==========================================================================
   PHASE 2: HEADER, NAVIGATION, PAGE BANNER, FOOTER
   ========================================================================== */

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--color-terracotta); color: var(--color-white);
  padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0; color: var(--color-white); }
body.no-scroll { overflow: hidden; }

/* ----- Header ----- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-height);
}
/* The solid background + blur live on a pseudo-element on purpose: a backdrop-filter
   (or filter/transform) on the header itself would make it the containing block of
   the fixed mobile menu and shrink the menu to the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled::before,
.site-header.nav-open::before {
  background: rgba(32, 37, 34, 0.96);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

/* Brand / logo */
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--color-white); font-family: var(--font-heading);
}
.brand:hover { color: var(--color-sand); }
.brand i { font-size: 1.75rem; color: var(--color-sand); }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em;
}
.brand-text small {
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-sand);
}

/* Burger button (mobile) */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 0 11px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--color-white); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile navigation panel */
.main-nav {
  position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  padding: var(--space-4) var(--space-3);
  background: var(--color-charcoal);
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
}
.main-nav.is-open { transform: none; visibility: visible; }
.main-nav a:not(.btn) {
  display: block; padding: 0.95rem 0;
  color: var(--color-beige); font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active { color: var(--color-sand); }
.nav-cta { width: 100%; margin-top: var(--space-4); }

/* Desktop navigation */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; inset: auto; padding: 0; background: transparent;
    overflow: visible; transform: none; visibility: visible;
    display: flex; align-items: center; gap: var(--space-4);
  }
  .main-nav ul { display: flex; align-items: center; gap: 1.35rem; }
  .main-nav a:not(.btn) {
    position: relative; padding: 0.5rem 0; border-bottom: 0;
    font-size: 0.8125rem; color: var(--color-white);
  }
  .main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: 0.1rem;
    width: 0; height: 2px; background: var(--color-sand);
    transition: width var(--transition);
  }
  .main-nav a:not(.btn):hover::after,
  .main-nav a.is-active::after { width: 100%; }
  .nav-cta { width: auto; margin-top: 0; min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.8125rem; }
}

/* ----- Internal page banner ----- */
.page-banner {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 340px;
  padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-5);
  color: var(--color-white);
  background: var(--color-charcoal) center / cover no-repeat;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--overlay-dark);
}
.page-banner h1 { color: var(--color-white); margin-bottom: var(--space-2); }
.page-banner p { max-width: 60ch; margin: 0; font-size: var(--fs-lg); color: var(--color-beige); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--color-sand); }
.breadcrumb a { color: var(--color-beige); }
.breadcrumb a:hover { color: var(--color-sand); }
.breadcrumb li[aria-current="page"] { color: var(--color-sand); }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-charcoal); color: var(--color-beige);
  padding-top: var(--space-6); font-size: var(--fs-sm);
}
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.footer-about p { margin: var(--space-3) 0; color: rgba(243, 235, 221, 0.8); max-width: 38ch; }

.footer-title {
  position: relative; margin-bottom: var(--space-4); padding-bottom: 0.75rem;
  font-size: var(--fs-h4); color: var(--color-white);
}
.footer-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-sand));
}
.footer-links li + li { margin-top: 0.6rem; }
.footer-links a,
.footer-contact a { color: rgba(243, 235, 221, 0.8); }
.footer-links a:hover,
.footer-contact a:hover { color: var(--color-sand); }

.footer-contact li { display: flex; gap: 0.75rem; align-items: flex-start; color: rgba(243, 235, 221, 0.8); }
.footer-contact li + li { margin-top: 0.8rem; }
.footer-contact i { margin-top: 0.3rem; color: var(--color-sand); width: 1rem; text-align: center; }
.footer-wa { margin-top: var(--space-4); }

.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--color-beige); border: 1px solid rgba(243, 235, 221, 0.3);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-links a:hover {
  background: var(--color-terracotta); border-color: var(--color-terracotta); color: var(--color-white);
}

.footer-bottom {
  margin-top: var(--space-6); padding: var(--space-3) 0;
  border-top: 1px solid rgba(243, 235, 221, 0.12);
  text-align: center; font-size: var(--fs-xs); color: rgba(243, 235, 221, 0.6);
}
.footer-bottom p { margin: 0; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-whatsapp); color: var(--color-white); font-size: 1.9rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-float:hover { background: var(--color-whatsapp-dark); color: var(--color-white); transform: scale(1.08); }

/* ==========================================================================
   PHASE 3: HOMEPAGE - HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px; max-height: 920px;
  background: var(--color-charcoal); color: var(--color-white);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 8s ease-out;
}
.hero-slide.is-active .hero-slide__img { transform: scale(1); }

.hero-slide__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(32,37,34,.55) 0%, rgba(32,37,34,0) 30%),
    linear-gradient(90deg, rgba(32,37,34,.82) 0%, rgba(32,37,34,.5) 55%, rgba(32,37,34,.2) 100%);
}

.hero-slide__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: var(--header-height); padding-bottom: 4rem;
}
.hero-slide__content h1,
.hero-slide__title {
  max-width: 14ch; margin: 0 0 var(--space-3);
  font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: 700;
  line-height: 1.08; color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero-slide__content p:not(.hero-slide__title) {
  max-width: 48ch; margin-bottom: var(--space-4);
  font-size: var(--fs-lg); color: var(--color-beige);
}
.hero-slide__content > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease .3s, transform .8s ease .3s;
}
.hero-slide.is-active .hero-slide__content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__content > :nth-child(2) { transition-delay: .5s; }
.hero-slide.is-active .hero-slide__content > :nth-child(3) { transition-delay: .7s; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: var(--color-white); background: rgba(32,37,34,.45);
  border: 1px solid rgba(255,255,255,.4); cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.hero-arrow:hover { background: var(--color-terracotta); border-color: var(--color-terracotta); }
.hero-arrow--prev { left: 1.25rem; }
.hero-arrow--next { right: 1.25rem; }

.hero-dots {
  position: absolute; z-index: 5; bottom: 1.75rem; left: 50%;
  display: flex; gap: 0.6rem; transform: translateX(-50%);
}
.hero-dot {
  position: relative; width: 12px; height: 12px; padding: 0;
  border: 0; border-radius: 6px; background: rgba(255,255,255,.55); cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.hero-dot::after { /* larger touch target */
  content: ""; position: absolute; inset: -14px -6px;
}
.hero-dot.is-active { width: 36px; background: var(--color-sand); }

@media (min-width: 768px) {
  .hero-arrow { display: inline-flex; }
}

/* ==========================================================================
   PHASE 3: HOMEPAGE SECTIONS
   ========================================================================== */
.section-action { margin-top: var(--space-5); }

/* Tagline strip */
.tagline-strip { background: var(--color-terracotta); color: var(--color-white); padding: 1.1rem 0; text-align: center; }
.tagline-strip p {
  margin: 0; font-family: var(--font-heading); font-size: clamp(1rem, 2.6vw, 1.5rem); font-weight: 600;
}
.tagline-strip span { color: var(--color-white); font-style: italic; }

/* Light/dark variants used by new sections */
.eyebrow--light { color: var(--color-sand); }
.lead--light { color: rgba(243,235,221,.85); }
.section--forest .section-header .lead { color: rgba(243,235,221,.85); }

/* Introduction */
.intro-grid { align-items: center; gap: var(--space-5); }
.intro-media img, .bivouac-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}

/* Tour cards (extended in Phase 5) */
.tour-card { display: flex; flex-direction: column; }
.tour-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__badge {
  position: absolute; top: 1rem; left: 1rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--color-charcoal); color: var(--color-sand);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.tour-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4); }
.tour-card__body h3 { margin-bottom: var(--space-2); }
.tour-meta { display: grid; gap: .35rem; margin-bottom: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }
.tour-meta i { width: 1.1rem; margin-right: .35rem; color: var(--color-terracotta); text-align: center; }
.tour-card__body > p { flex: 1; }
.tour-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tour-card__actions .btn { flex: 1 1 auto; padding-inline: 1rem; }

/* Circuit cards */
.circuit-card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  min-height: 340px; border-radius: var(--radius-md); color: var(--color-white);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.circuit-card:hover { color: var(--color-white); box-shadow: var(--shadow-lg); }
.circuit-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease;
}
.circuit-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(32,37,34,0) 25%, rgba(32,37,34,.88) 100%);
}
.circuit-card:hover img { transform: scale(1.08); }
.circuit-card__content { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4); }
.circuit-card h3 { margin-bottom: .4rem; color: var(--color-white); }
.circuit-card p { margin-bottom: .6rem; font-size: var(--fs-sm); color: var(--color-beige); }
.circuit-card__link { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-sand); }
.circuit-card__link i { margin-left: .3rem; transition: margin var(--transition); }
.circuit-card:hover .circuit-card__link i { margin-left: .7rem; }

/* Bivouac feature */
.bivouac-grid { align-items: center; gap: var(--space-5); }
.check-list { margin: 0 0 var(--space-4); }
.check-list li { display: flex; gap: .75rem; padding: .35rem 0; color: var(--color-beige); }
.check-list i { margin-top: .35rem; color: var(--color-sand); }

/* Why choose us */
.why-item { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); transition: box-shadow var(--transition), transform var(--transition); }
.why-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-item__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin-bottom: var(--space-3); border-radius: 50%;
  background: var(--color-forest); color: var(--color-sand); font-size: 1.5rem;
}
.why-item h3 { font-size: var(--fs-h4); }
.why-item p { margin: 0; color: var(--color-text-muted); }

/* Gallery preview */
.gallery-preview { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery-preview__item { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--radius-md); }
.gallery-preview__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-preview__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(168,93,59,0); transition: background var(--transition);
}
.gallery-preview__item:hover img { transform: scale(1.08); }
.gallery-preview__item:hover::after { background: rgba(168,93,59,.25); }

/* Testimonials */
.testimonial { margin: 0; padding: var(--space-4); border-radius: var(--radius-md); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.testimonial__stars { margin-bottom: var(--space-2); color: var(--color-sand); }
.testimonial blockquote { margin: 0; font-style: italic; color: var(--color-beige); }
.testimonial figcaption { margin-top: var(--space-3); color: var(--color-white); }
.testimonial figcaption span { display: block; font-size: var(--fs-sm); color: var(--color-sand); }

/* Call to action band */
.cta-band {
  padding: var(--space-6) 0; color: var(--color-white);
  background: linear-gradient(rgba(32,37,34,.82), rgba(32,37,34,.82)), url('../images/hero/sahara-motorcycle.jpg') center / cover no-repeat;
  background-color: var(--color-charcoal);
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { max-width: 56ch; margin: 0 auto var(--space-4); font-size: var(--fs-lg); color: var(--color-beige); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* Contact boxes */
.contact-box { padding: var(--space-4); text-align: center; border-radius: var(--radius-md); background: var(--color-beige); }
.contact-box i { margin-bottom: var(--space-2); font-size: 1.75rem; color: var(--color-terracotta); }
.contact-box h3 { font-size: var(--fs-h4); }
.contact-box p { margin: 0; }

@media (min-width: 768px) {
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .gallery-preview { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .intro-grid, .bivouac-grid { gap: var(--space-6); }
}

/* ==========================================================================
   PHASE 4: INTERNAL PAGES
   ========================================================================== */

/* Anchored cards stay clear of the fixed header */
.tour-card, .split-row, .booking-box { scroll-margin-top: calc(var(--header-height) + 1rem); }
.icon-accent { margin-right: .35rem; font-size: .9em; color: var(--color-terracotta); }

/* Alternating image/text rows */
.split-row { display: grid; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }
.split-row:last-child { margin-bottom: 0; }
.split-row__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.split-row__text h2, .split-row__text h3 { margin-bottom: var(--space-2); }
.check-list--dark li { color: var(--color-text); }
.check-list--dark i { color: var(--color-terracotta); }

@media (min-width: 992px) {
  .split-row { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split-row:nth-of-type(even) .split-row__media { order: 2; }
}

/* Gallery */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: var(--space-5); }
.filter-btn {
  min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  color: var(--color-charcoal); background: transparent; border: 2px solid var(--color-border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover { border-color: var(--color-terracotta); color: var(--color-terracotta); }
.filter-btn.is-active { background: var(--color-terracotta); border-color: var(--color-terracotta); color: var(--color-white); }

.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--color-beige); }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .8rem .6rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-white); background: linear-gradient(180deg, transparent, rgba(32,37,34,.8));
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__label, .gallery-item:focus-visible .gallery-item__label { opacity: 1; }
@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lightbox {
  max-width: min(94vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-md);
  background: var(--color-charcoal); color: var(--color-white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.lightbox__caption { margin: 0; padding: .8rem 1rem; text-align: center; font-size: var(--fs-sm); color: var(--color-beige); }
.lightbox__close {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  font-size: 1.25rem; color: var(--color-white); background: rgba(32,37,34,.7); cursor: pointer;
}
.lightbox__close:hover { background: var(--color-terracotta); }

/* Contact */
.contact-layout { display: grid; gap: var(--space-5); align-items: start; }
.contact-list { margin: var(--space-4) 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--color-border); }
.contact-list i { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--color-white); background: var(--color-forest); }
.contact-list strong { display: block; font-family: var(--font-heading); color: var(--color-charcoal); }
.contact-follow { margin-top: var(--space-4); font-size: var(--fs-h4); }
.social-links--dark a { color: var(--color-charcoal); border-color: var(--color-border); }

.booking-box { padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); background: var(--color-beige); box-shadow: var(--shadow-md); }
.booking-box__tour { padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--color-white); }
.booking-box__tour i { margin-right: .4rem; color: var(--color-terracotta); }

.map-section iframe { display: block; filter: saturate(.9); }

@media (min-width: 992px) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .booking-box { padding: var(--space-5); }
}

/* ==========================================================================
   PHASE 5: TOUR CARDS & TOUR DETAIL PAGE
   ========================================================================== */
.tour-card__body h3 a { color: inherit; }
.tour-card__body h3 a:hover { color: var(--color-terracotta); }
.btn--block { display: flex; width: 100%; margin-top: .75rem; }

.tour-layout { display: grid; gap: var(--space-5); align-items: start; }
.tour-main h2 { margin-top: 0; }
.tour-main h3 { margin-top: var(--space-5); }
.highlights-list { columns: 1; }
.itinerary-note { margin-bottom: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Itinerary accordion (native <details>, no JS) */
.itinerary { display: grid; gap: .6rem; }
.day { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); overflow: hidden; }
.day summary {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; min-height: 56px;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--color-charcoal);
}
.day summary::-webkit-details-marker { display: none; }
.day summary::after {
  content: "\f078"; margin-left: auto; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem;
  color: var(--color-terracotta); transition: transform var(--transition);
}
.day[open] summary::after { transform: rotate(180deg); }
.day[open] summary { background: var(--color-beige); }
.day__num {
  flex: none; padding: .25rem .7rem; border-radius: 999px;
  font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase;
  background: var(--color-forest); color: var(--color-sand);
}
.day p { margin: 0; padding: 1rem 1.25rem 1.25rem; color: var(--color-text-muted); }

/* Included / not included */
.inclusions { margin-top: var(--space-5); }
.incl-box { padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-beige); }
.incl-box h3 { margin-top: 0; font-size: var(--fs-h4); }
.incl-box li { position: relative; padding: .3rem 0 .3rem 1.4rem; }
.incl-box li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .5rem; height: .5rem; border-radius: 50%; }
.incl-box--yes h3 i { color: var(--color-forest); }
.incl-box--yes li::before { background: var(--color-forest); }
.incl-box--no h3 i { color: var(--color-terracotta); }
.incl-box--no li::before { background: var(--color-terracotta); }

/* Sticky summary / booking card */
.facts-card { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-white); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.facts-card h3 { margin-top: 0; }
.facts-list { margin-bottom: var(--space-3); }
.facts-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.facts-list span { color: var(--color-text-muted); white-space: nowrap; }
.facts-list span i { width: 1.2rem; margin-right: .3rem; color: var(--color-terracotta); text-align: center; }
.facts-list strong { text-align: right; color: var(--color-charcoal); }
.facts-card__note { margin: var(--space-3) 0 0; font-size: var(--fs-xs); color: var(--color-text-muted); text-align: center; }

@media (min-width: 576px) {
  .highlights-list { columns: 2; column-gap: var(--space-4); }
  .highlights-list li { break-inside: avoid; }
}
@media (min-width: 992px) {
  .tour-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); }
  .tour-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }
}

/* ==========================================================================
   PHASE 6: FORMS (booking inquiry & contact message)
   ========================================================================== */
.container--narrow { max-width: 780px; }

.form { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.form--card { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-md); }
.form-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-charcoal); }

.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--color-text);
  background: var(--color-white); border: 1.5px solid rgba(32,37,34,.25); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--color-terracotta); box-shadow: 0 0 0 3px rgba(168,93,59,.2);
}
.form [aria-invalid="true"] { border-color: #B3261E; }

.field-error { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: #B3261E; }

.form-check { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: .7rem; }
.form-check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--color-terracotta); }
.form-check label { font-weight: 400; }
.form-check .field-error { grid-column: 1 / -1; }

.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-actions .btn { flex: 1 1 200px; }

/* Honeypot: invisible to people, tempting to bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin: var(--space-3) 0; }
.alert h3 { margin-bottom: .4rem; font-size: var(--fs-h4); }
.alert p { margin-bottom: var(--space-3); }
.alert p:last-child { margin-bottom: 0; }
.alert--success { background: #E7F1E9; border: 1px solid var(--color-forest); color: #1F3326; }
.alert--success h3 { color: var(--color-forest); }
.alert--error { background: #FBEAE8; border: 1px solid #B3261E; color: #6B1712; font-weight: 600; }

@media (min-width: 576px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form--card { padding: var(--space-5); }
}

/* Anchor links (e.g. contact.php#message) must not hide under the fixed header */
html { scroll-padding-top: calc(var(--header-height) + 1rem); }

/* Tour detail page: photo gallery (reuses .gallery-grid / .gallery-item) */
.tour-gallery { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-3); }
@media (min-width: 576px) { .tour-gallery { grid-template-columns: repeat(3, 1fr); } }
