/* ═══════════════════════════════════════════════════════════════
   Fast Morocco Tours — Complete Mobile-First Redesign
   Version: 2025.07.15
   Breakpoints: 360, 390, 414, 430, 768, 1024, 1280, 1440, 1920
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Brand Colors */
  --brand: #b87a4a;
  --brand-dark: #8c5a32;
  --brand-light: #e8a87a;
  --brand-bg: #fdf6ee;
  /* Neutrals */
  --charcoal: #1a1a2e;
  --charcoal-light: #3d3d5c;
  --text: #2d2d3a;
  --text-light: #5a5a6e;
  --muted: #8a8a9a;
  --border: #e0d5c8;
  --border-light: #f0e8dd;
  --surface: #faf7f2;
  --white: #ffffff;
  /* Functional */
  --success: #2e7d32;
  --error: #c62828;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --shadow: 0 4px 16px rgba(26,26,46,0.08);
  --shadow-lg: 0 12px 40px rgba(26,26,46,0.12);
  /* Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  /* Transitions */
  --transition: 0.2s ease;
  /* Header height */
  --header-h: 56px;
  --header-h-desk: 68px;
  /* Mobile CTA height */
  --cta-h: 60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--cta-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--charcoal); color: var(--white);
  padding: 8px 16px; z-index: 10000; font-size: 14px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--charcoal); }
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.375rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1rem; }
p { margin-bottom: var(--space); }
.text-lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--brand); font-weight: 600; padding: 0.5rem; }
.btn-ghost:hover { color: var(--brand-dark); }
.btn-wa {
  background: #25d366;
  color: var(--white);
}
.btn-wa:hover { background: #128c7e; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; fill: var(--white); }
.logo-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.logo-text span {
  display: none;
  font-size: 0.625rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav { display: none; }
.hamburger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Header CTA (mobile default) ── */
.hdr-cta { display: flex; align-items: center; gap: var(--space-sm); }

/* ── Mobile Nav ── */
.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: var(--space-lg) var(--space);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding-bottom: calc(var(--cta-h) + var(--space-xl));
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  padding: var(--space) var(--space-md);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus { background: var(--brand-bg); }
.mobile-nav .btn-wa {
  margin-top: var(--space);
  padding: var(--space) var(--space-lg);
  border-radius: var(--radius-pill);
  justify-content: center;
  font-size: 1rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-2xl);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.3) 50%, rgba(26,26,46,0.1) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
  width: 100%;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.875rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand-light); }
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero-actions .btn, .hero-actions .btn-primary, .hero-actions .btn-secondary { min-height: 52px; padding: 0.875rem 1.75rem; font-size: 1rem; }
.hero-actions svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Section System ── */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--surface); }
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: var(--space-sm);
}
.section-title { margin-bottom: var(--space); text-wrap: balance; }
.section-subtitle {
  color: var(--text-light);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

/* ── Tour Cards ── */
.tour-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.tour-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.tour-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tour-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.tour-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tour-card:hover .tour-card-img img { transform: scale(1.05); }
.tour-card-badge {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tour-card-body { padding: var(--space-md); }
.tour-card h3 { font-size: 1.125rem; margin-bottom: var(--space-xs); }
.tour-card-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}
.tour-card-meta span { display: flex; align-items: center; gap: 4px; }
.tour-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--space);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tour-card-price {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: var(--space);
}
.tour-card-actions {
  display: flex;
  gap: var(--space-sm);
}
.tour-card-actions .btn { flex: 1; font-size: 0.8125rem; min-height: 44px; }

/* ── Trust Pills ── */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.trust-pill svg { width: 18px; height: 18px; stroke: var(--brand); stroke-width: 2; fill: none; flex-shrink: 0; }

/* ── How It Works ── */
.steps {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.step {
  text-align: center;
  padding: var(--space-lg);
}
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto var(--space);
}
.step h3 { margin-bottom: var(--space-xs); }
.step p { color: var(--text-light); font-size: 0.9375rem; margin-bottom: 0; }

/* ── Why Cards ── */
.why-grid {
  display: grid;
  gap: var(--space);
  grid-template-columns: 1fr;
}
.why-card {
  display: flex;
  gap: var(--space);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.why-card-icon {
  width: 44px; height: 44px;
  background: var(--brand-bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-card-icon svg { width: 22px; height: 22px; stroke: var(--brand); stroke-width: 2; fill: none; }
.why-card h4 { margin-bottom: 4px; font-size: 0.9375rem; }
.why-card p { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-3xl) var(--space);
}
.cta-section h2 { color: var(--white); margin-bottom: var(--space); }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto var(--space-lg); }
.cta-section .btn-primary { background: var(--brand); font-size: 1.0625rem; padding: 1rem 2rem; min-height: 56px; }

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
}
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand p { margin-top: var(--space); line-height: 1.7; }
.footer-col h5 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space);
}
.footer-col a {
  display: block;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  max-width: 1200px;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
  font-size: 0.75rem;
}

/* ── Mobile Sticky CTA ── */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--cta-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space);
  padding: 0 var(--space);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-cta .btn { flex: 1; max-width: 200px; min-height: 44px; font-size: 0.875rem; }

/* ── Desktop WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ── Forms ── */
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  min-height: 48px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: var(--space); grid-template-columns: 1fr; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 0.8125rem; color: var(--error); margin-top: 4px; }

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switcher a {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: all var(--transition);
}
.lang-switcher a:hover, .lang-switcher a.active { color: var(--brand); background: var(--brand-bg); }

/* ── Tour Page Styles ── */
.tour-hero { min-height: 50vh; align-items: center; }
.tour-hero h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.breadcrumb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-sm);
}
.breadcrumb a:hover { color: var(--white); }
.hero-label {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Itinerary ── */
.itinerary-day {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
}
.itinerary-day-num {
  width: 40px; height: 40px;
  background: var(--brand-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--brand);
  flex-shrink: 0;
}
.itinerary-day h4 { margin-bottom: var(--space-xs); }
.itinerary-day p { font-size: 0.9375rem; color: var(--text-light); margin-bottom: 0; }

/* ── Info Box ── */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.info-box h4 { font-size: 0.9375rem; margin-bottom: var(--space-sm); }
.info-box ul { padding-left: var(--space-md); list-style: disc; }
.info-box li { font-size: 0.875rem; color: var(--text-light); margin-bottom: 4px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: left;
}
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-left: var(--space);
}
.faq-q[aria-expanded="true"]::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a.open { max-height: 500px; }
.faq-a p { padding-bottom: var(--space); color: var(--text-light); font-size: 0.9375rem; margin-bottom: 0; }

/* ── 404 ── */
.page-404 { text-align: center; padding: var(--space-3xl) var(--space); }
.page-404 h1 { font-size: 6rem; color: var(--brand); opacity: 0.3; }
.page-404 h2 { margin-bottom: var(--space); }

/* ── Focus States ── */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   TABLET: 768px+
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --header-h: var(--header-h-desk); }
  body { padding-bottom: 0; }
  .container { padding: 0 var(--space-lg); }
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: none; }
  .wa-float { display: flex; }
  .logo-text span { display: block; }
  .hero { min-height: 75vh; padding-bottom: var(--space-3xl); }
}

/* ═══════════════════════════════════════════
   LAPTOP: 1024px+
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  .main-nav a {
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
  }
  .main-nav a:hover { color: var(--brand); background: var(--brand-bg); }
  .hamburger { display: none; }
  .mobile-nav { display: none; }
  .hdr-cta { display: flex; align-items: center; gap: var(--space-sm); }
  .hdr-cta .btn-wa {
    padding: 8px 16px;
    font-size: 0.8125rem;
    border-radius: var(--radius-pill);
    min-height: 36px;
  }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: var(--space-3xl) 0; }
}

/* ═══════════════════════════════════════════
   DESKTOP: 1280px+
   ═══════════════════════════════════════════ */
@media (min-width: 1280px) {
  .container { max-width: 1200px; }
  .hero h1 { font-size: 3.25rem; }
}

/* ═══════════════════════════════════════════
   LARGE DESKTOP: 1440px+
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {
  .container { max-width: 1280px; }
}

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

/* ── Print ── */
@media print {
  .site-header, .mobile-cta, .wa-float, .mobile-nav { display: none !important; }
  body { padding-bottom: 0; }
}
