/* ==========================================================================
   MAROCSIRA — DESIGN SYSTEM & CORE STYLESHEET
   Your Moroccan Experience, Tailor-Made
   Website • Tours • Private • Medical • Personal Shopper • Concierge
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT VARIABLES
   Moroccan Palette: Majorelle Ultramarine, Terracotta, Saffron Gold,
   Atlas Cedar, Desert Sand, Mint Tea, and Atlantic Foam.
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primary Colors */
  --color-majorelle: #0c2b74;          /* Deep Majorelle Ultramarine */
  --color-majorelle-light: #18429f;
  --color-majorelle-dark: #071946;
  --color-majorelle-glaze: rgba(12, 43, 116, 0.08);

  /* Terracotta & Ochre Accents */
  --color-terracotta: #c1532f;        /* Marrakech Red Clay / Terracotta */
  --color-terracotta-hover: #a84221;
  --color-terracotta-subtle: #fcf1ed;

  /* Saffron Gold & Desert Warmth */
  --color-saffron: #d4973b;           /* Taliouine Saffron Gold */
  --color-saffron-light: #f3be6d;
  --color-saffron-subtle: #fbf5eb;

  /* Natural Tones & Supporting Hues */
  --color-cedar: #1f3b34;             /* Atlas Forest & Cedar Green */
  --color-mint-fresh: #2d6a4f;        /* Moroccan Nana Mint */
  --color-sand: #f8f5f0;              /* Agafay Desert Sand Canvas */
  --color-sand-warm: #eee7dc;         /* Dune Shadow Neutral */
  --color-sand-card: #ffffff;
  
  /* Text & Contrast */
  --color-text-main: #1e242b;         /* Obsidian Ink */
  --color-text-muted: #5e6875;        /* Basalt Slate */
  --color-text-light: #8e9aa8;
  --color-text-inverted: #ffffff;

  /* Borders, Dividers & Accents */
  --border-light: rgba(30, 36, 43, 0.08);
  --border-gold: rgba(212, 151, 59, 0.35);
  --border-terracotta: rgba(193, 83, 47, 0.25);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(12, 43, 116, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(12, 43, 116, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(12, 43, 116, 0.12), 0 12px 15px -8px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(212, 151, 59, 0.28);
  --shadow-whatsapp: 0 8px 24px rgba(37, 211, 102, 0.35);

  /* Typography */
  --font-heading: 'Cinzel Decorative', 'Playfair Display', 'Georgia', serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic-accent: 'Amiri', serif;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout Containers */
  --max-width: 1240px;
  --header-height: 80px;
  --topbar-height: 42px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-sand);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* Accessible focus states — keyboard users get a visible outline on
   interactive elements without adding an outline on mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.mobile-toggle:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: var(--color-majorelle);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip:focus {
  left: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  outline: none;
  border: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & MOROCCAN ARABESQUE HEADERS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-majorelle);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: 0.75rem;
  position: relative;
}

.eyebrow::before {
  content: "✦ ";
  color: var(--color-saffron);
}

/* --------------------------------------------------------------------------
   4. LAYOUT SYSTEM & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.bg-light {
  background-color: #ffffff;
}

.bg-sand-warm {
  background-color: var(--color-sand-warm);
}

.bg-majorelle {
  background-color: var(--color-majorelle);
  color: var(--color-text-inverted);
}

.bg-majorelle p {
  color: rgba(255, 255, 255, 0.82);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.align-center {
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

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

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

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-title h2 {
  margin-bottom: 0.9rem;
  position: relative;
}

.section-title p {
  font-size: 1.1rem;
}

/* Moroccan Zellige Floral Divider */
.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-saffron));
  margin: 1.25rem auto 0 auto;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   5. TOP BAR & NAVIGATION
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-majorelle-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(212, 151, 59, 0.25);
  font-weight: 500;
}

.top-contact {
  display: flex;
  gap: 1.5rem;
}

.top-contact span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-actions select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

/* Language switcher (top bar) */
.lang-switch {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 140px;
  z-index: 1050;
}

.lang-switch.open .lang-menu {
  display: block;
}

.lang-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  white-space: nowrap;
}

.lang-menu li a:hover {
  background: var(--color-sand);
}

.lang-menu li a.active {
  color: var(--color-majorelle);
  background: var(--color-majorelle-glaze);
}

/* Language switcher inside the mobile drawer */
.mobile-lang {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.mobile-lang a {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.mobile-lang a.active {
  background: var(--color-majorelle);
  color: #fff;
  border-color: var(--color-majorelle);
}

.badge-link {
  background: linear-gradient(135deg, var(--color-terracotta), #da6d4b);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.badge-link:hover {
  transform: translateY(-1px);
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-smooth);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.65rem;
  font-family: var(--font-serif);
  color: var(--color-majorelle);
  letter-spacing: 0.06em;
}

.brand-logo strong {
  color: var(--color-terracotta);
  font-weight: 900;
}

.brand-logo--custom img {
  display: block;
  max-height: 48px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-majorelle);
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile hamburger toggle — hidden on desktop, shown only under the 768px
   breakpoint where .main-nav is hidden (see section 15). Previously this
   button and the drawer below had no rules at all, so both the toggle and
   the open drawer could render at any viewport width and break the header. */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  line-height: 1;
  background: transparent;
  color: var(--color-majorelle);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--color-majorelle-glaze);
}

/* Mobile navigation drawer. Anchored to .site-header (already a positioned
   element via position:sticky) so it drops down below the header instead of
   pushing page content or floating over the wrong element. */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.15rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1.5rem 1.25rem;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.85rem 0.1rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-majorelle);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   6. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn-primary, .btn-secondary, .btn-cta, .btn-primary-large, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(193, 83, 47, 0.28);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(193, 83, 47, 0.38);
  color: #fff;
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--color-majorelle), var(--color-majorelle-light));
  color: #ffffff;
  padding: 1.15rem 2.2rem;
  font-size: 1.05rem;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-majorelle-dark), var(--color-majorelle));
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-majorelle);
  border: 1.5px solid var(--color-majorelle);
  padding: 0.7rem 1.5rem;
  font-size: 0.92rem;
}

.btn-secondary:hover {
  background-color: var(--color-majorelle);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-saffron), #c2852d);
  color: #ffffff;
  padding: 1rem 1.8rem;
  font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(212, 151, 59, 0.32);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp-full {
  display: block;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-whatsapp);
  margin-top: 1rem;
}

.btn-whatsapp-full:hover {
  background-color: #20ba59;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION & INTEGRATED TRIP SEARCH
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: url('img/marrakech.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 25, 70, 0.75) 0%,
    rgba(12, 43, 116, 0.65) 55%,
    rgba(7, 25, 70, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 920px;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.3rem;
  margin-bottom: 2.8rem;
  max-width: 680px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-saffron-light);
  margin-bottom: 1.4rem;
}

.hero-kicker span {
  width: 34px;
  height: 1px;
  background: var(--color-saffron-light);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--color-saffron-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Quick Search Widget Bar */
.booking-quick-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1fr auto;
  gap: 1.2rem;
  align-items: flex-end;
  border: 1px solid var(--border-gold);
}

.booking-quick-bar .input-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.booking-quick-bar label {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-majorelle);
}

.booking-quick-bar select,
.booking-quick-bar input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background-color: var(--color-sand);
  border: 1px solid rgba(12, 43, 116, 0.14);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast);
}

.booking-quick-bar select:focus,
.booking-quick-bar input:focus {
  border-color: var(--color-terracotta);
  background-color: #fff;
}

/* --------------------------------------------------------------------------
   7B. QUICK SERVICE SELECTOR (Verticals)
   -------------------------------------------------------------------------- */
.verticals {
  padding: 4.5rem 0 1.5rem;
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.vertical-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.vertical-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.vertical-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-terracotta);
}

.vertical-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.vertical-card p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-majorelle);
}

.text-link:hover {
  color: var(--color-terracotta);
}

/* --------------------------------------------------------------------------
   8. PACKAGE CARDS & TOURS SHOWCASE (South & North 14D Packages)
   -------------------------------------------------------------------------- */
.tours-grid .package-card {
  background: var(--color-sand-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tours-grid .package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 5;
  background: rgba(12, 43, 116, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-img {
  height: 280px;
  background-color: var(--color-majorelle-dark);
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin-bottom: 0.6rem;
}

.card-body .route {
  font-size: 0.88rem;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.highlights {
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.highlights li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
  color: var(--color-text-muted);
}

.highlights li::before {
  content: "◈";
  position: absolute;
  left: 0;
  color: var(--color-saffron);
  font-size: 0.85rem;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-light);
}

.price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.card-meta {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-light);
}

.deposit-rule {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-cedar);
  background-color: #ebf5ee;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   9. CUSTOM TRIP CONFIGURATOR
   -------------------------------------------------------------------------- */
.configurator-section {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.configurator-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.full-span {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-majorelle);
}

.form-group select,
.form-group input {
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(12, 43, 116, 0.12);
  border-radius: var(--radius-sm);
  background-color: #faf9f7;
  font-size: 0.96rem;
  transition: all var(--transition-fast);
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--color-majorelle);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--color-majorelle-glaze);
}

.config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.config-head p {
  max-width: 360px;
  font-size: 0.95rem;
}

.stepper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.step-dot {
  width: 32px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-light);
}

.step-dot.active {
  background: var(--color-terracotta);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.75rem;
}

.form-group.full {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.config-result {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-majorelle-glaze);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}

.config-result.show {
  display: flex;
}

.result-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-majorelle);
  font-weight: 700;
}

.mandatory-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.mandatory-rule strong {
  color: var(--color-terracotta);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.mandatory-rule span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   10. MEDICAL ASSISTANCE & HEALTHCARE LOGISTICS
   -------------------------------------------------------------------------- */
.badge-medical {
  display: inline-block;
  background-color: #e3f2fd;
  color: #0d47a1;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  color: var(--color-text-main);
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-mint-fresh);
  font-weight: bold;
}

.medical-cta {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.journey-step {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.journey-step span {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--border-gold);
  margin-bottom: 0.75rem;
}

.journey-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.journey-step p {
  font-size: 0.9rem;
}

.specialty-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: stretch;
  background: var(--color-sand-warm);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.specialty-panel h3 {
  margin-bottom: 1.25rem;
}

.specialty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.specialty-list span {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-majorelle);
}

.privacy-note {
  background: #ffffff;
  border-left: 4px solid var(--color-mint-fresh);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}

.privacy-note strong {
  display: block;
  color: var(--color-cedar);
  margin-bottom: 0.4rem;
}

.privacy-note p {
  font-size: 0.9rem;
}

.reassurance-card {
  background: #ffffff;
  border-left: 5px solid var(--color-majorelle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.reassurance-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   11. PERSONAL SHOPPER & B2B SOURCING
   -------------------------------------------------------------------------- */
.service-box {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.service-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.shop-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.shop-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.9rem;
}

.shop-card h3 {
  margin-bottom: 1.25rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list span {
  background: var(--color-sand);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.shop-steps li {
  display: flex;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.shop-steps li:last-child {
  border-bottom: none;
}

.shop-steps b {
  color: var(--color-saffron);
  font-family: var(--font-serif);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11B. MALI ↔ MOROCCO CORRIDOR
   -------------------------------------------------------------------------- */
.corridor {
  padding: 5.5rem 0;
}

.corridor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.corridor-map {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem;
}

.country {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  z-index: 2;
}

.route-line {
  position: absolute;
  left: 25%;
  right: 25%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-saffron-light) 0 10px, transparent 10px 18px);
}

.route-label {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-saffron-light);
}

.corridor-points {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.corridor-point {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.point-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-saffron-light);
  flex-shrink: 0;
}

.corridor-point h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   11C. TRUST, REASSURANCE & TESTIMONIALS
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.trust-card h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0 0.5rem;
}

.trust-card p {
  font-size: 0.92rem;
}

.testimonial {
  background: var(--color-sand-warm);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stars {
  color: var(--color-saffron);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.testimonial p {
  color: var(--color-text-main);
  font-style: italic;
}

.testimonial footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-majorelle);
}

/* --------------------------------------------------------------------------
   11D. FINAL CALL TO ACTION BAND
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  background: linear-gradient(135deg, var(--color-majorelle), var(--color-majorelle-dark));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
}

/* --------------------------------------------------------------------------
   12. FOOTER & COMPLIANCE
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-majorelle-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 5rem 0 3rem 0;
  border-top: 4px solid var(--color-saffron);
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.site-footer ul li {
  margin-bottom: 0.65rem;
}

.site-footer ul a:hover {
  color: var(--color-saffron-light);
  padding-left: 4px;
}

/* Footer layout — brand column + three link columns, then a bottom bar.
   These classes are used in footer.php but had no rules at all, so the
   footer previously rendered as an unstyled stacked block. */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-brand span {
  color: var(--color-saffron-light);
}

.footer-brand--custom img {
  display: block;
  max-height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-whatsapp {
  display: inline-flex;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
}

.footer-social a:hover {
  color: #ffffff;
  border-color: var(--color-saffron-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.payment-badges {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   13. FLOATING WHATSAPP BUTTON (CONVERSION COMPONENT)
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: pulse-glow 3s infinite;
}

.floating-whatsapp a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background-color: #25d366;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-whatsapp);
  transition: transform var(--transition-bounce);
}

.floating-whatsapp a:hover {
  transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   14. ANIMATIONS & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes floatElement {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS (Mobile-First Optimization)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-quick-bar {
    grid-template-columns: 1fr 1fr;
  }
  .booking-quick-bar button {
    grid-column: 1 / -1;
  }
  .vertical-grid,
  .journey-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .corridor-grid,
  .shop-grid,
  .specialty-panel {
    grid-template-columns: 1fr;
  }
  .corridor-map {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .top-bar {
    display: none; /* Collapsed on small screens for faster mobile funnel */
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .booking-quick-bar {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.1rem;
  }

  .main-nav {
    display: none; /* Handled via standard hamburger drawer in JS */
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

  .configurator-box {
    padding: 1.75rem;
  }

  .medical-cta {
    flex-direction: column;
  }

  .floating-whatsapp {
    bottom: 1.2rem;
    right: 1.2rem;
  }

  .floating-whatsapp a {
    width: 54px;
    height: 54px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .vertical-grid,
  .journey-grid,
  .trust-grid,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-head {
    flex-direction: column;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.75rem;
  }

  .cta-band p {
    max-width: none;
  }

  .mandatory-rule {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   16. ELEMENTOR PAGE WRAPPERS
   -------------------------------------------------------------------------- */
.marocsira-elementor-page {
  width: 100%;
}

.marocsira-page-container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   17. SMALL PHONES (≤480px) — tighter spacing, single-column everywhere
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .configurator-box {
    padding: 1.35rem;
  }

  .shop-card,
  .specialty-panel,
  .journey-step {
    padding: 1.35rem;
  }

  .brand-logo {
    font-size: 1.35rem;
  }
}