/* ==========================================================================
   ComeMorocco — Homepage stylesheet
   HTML5 / CSS3 only. No framework, no build step.
   Sections follow the order of the master specification (§101).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (§12) */
  --brand-green: #0c3b2e;
  --brand-gold: #ffba00;
  --cream: #f5f0e8;
  --green-dark: #1a4a2e;
  --green-mid: #2d6e4e;
  --gold: #c9a84c;
  --charcoal: #1c1c1c;
  --white: #ffffff;
  --grey-light: #f0ede6;
  --dark-green: #0f2e1c;

  /* Derived tokens — tuned for contrast (§83: ≥4.5:1) */
  --ink: #1c1c1c;              /* 15.0:1 on cream */
  --ink-soft: #4a5750;         /*  6.7:1 on cream */
  --gold-ink: #7a5c12;         /*  5.5:1 on cream — gold-toned text */
  --cream-soft: #d8d2c4;       /*  9.8:1 on dark green */
  --line: rgba(12, 59, 46, 0.14);
  --line-strong: rgba(12, 59, 46, 0.3);
  --line-light: rgba(245, 240, 232, 0.18);

  /* Typography (§13) */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Sacramento", "Snell Roundhand", cursive;

  --fs-hero: clamp(2.85rem, 6vw, 5rem);
  --fs-h2: clamp(1.9rem, 3.1vw, 2.7rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Layout (§15) */
  --container: 1280px;
  --gutter: 2.5rem;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --nav-h: 76px;
  --radius: 3px;
  --radius-lg: 6px;

  /* Motion (§87) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.28s;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; background-color: var(--grey-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--brand-green);
  text-wrap: balance;
}

p { margin: 0 0 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 999;
  background: var(--brand-gold);
  color: var(--brand-green);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

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

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--green { background: var(--brand-green); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--white); }
.section--white { background: var(--white); }
.section--grey { background: var(--grey-light); }

/* Section heading block ------------------------------------------------- */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.head__kicker {
  font-family: var(--font-script);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 0.35rem;
}
.section--green .head__kicker,
.cta .head__kicker { color: var(--gold); }

.head__title { font-size: var(--fs-h2); }

.head__intro {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  max-width: 56ch;
}
.section--green .head__intro { color: var(--cream-soft); }

.head__link {
  grid-column: 2;
  justify-self: end;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-green);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.head__link:hover { color: var(--gold-ink); border-color: var(--brand-gold); }
.section--green .head__link { color: var(--brand-gold); border-color: rgba(255, 186, 0, 0.4); }

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--brand-gold); color: var(--brand-green); }
.btn--primary:hover { background: #ffc933; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn--outline { background: transparent; color: var(--brand-green); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--brand-green); color: var(--cream); border-color: var(--brand-green); }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-green);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
a:hover > .link-arrow::after,
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Top information bar (§16)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--brand-green);
  color: var(--white);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.topbar__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  opacity: 0.92;
}
.topbar__mail:hover { opacity: 1; text-decoration: underline; }

.social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: currentColor;
  opacity: 0.85;
  border-radius: 50%;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social a:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* --------------------------------------------------------------------------
   6. Navbar (§17–§24)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.navbar.is-stuck { box-shadow: 0 6px 24px rgba(12, 59, 46, 0.09); }

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

/* Logo (§10 REPLACE: LOGO) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brand-green);
  margin-right: auto;
}
.logo__mark { width: 30px; height: 34px; flex: none; }
.logo__mark path { fill: currentColor; }
.logo__mark .logo__star { fill: var(--brand-gold); }
.logo__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}
.logo__text b { font-weight: 600; color: var(--gold-ink); }

/* Desktop navigation */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link,
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.7rem;
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover,
.nav__toggle:hover,
.nav__item.is-open > .nav__toggle { color: var(--brand-green); background: rgba(12, 59, 46, 0.06); }

.nav__toggle svg { width: 10px; height: 10px; fill: currentColor; transition: transform var(--dur) var(--ease); }
.nav__item.is-open > .nav__toggle svg { transform: rotate(180deg); }

/* Mega menu (§18–§22) */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--brand-green);
  box-shadow: 0 20px 40px rgba(12, 59, 46, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item { position: static; }
.nav__item.is-open > .mega,
.nav__item:hover > .mega,
.nav__item:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  padding-block: 2rem 2.25rem;
}
.mega__col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.85rem;
}
.mega__list li + li { margin-top: 0.15rem; }
.mega__list a {
  display: block;
  padding: 0.4rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
}
.mega__list a:hover { background: var(--grey-light); color: var(--brand-green); }
.mega__feature {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  align-self: start;
}
.mega__feature h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}
.mega__feature p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0.9rem; }

/* Navbar actions */
.nav-actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--brand-green);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.icon-btn:hover { background: rgba(12, 59, 46, 0.08); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn--menu { display: inline-grid; }

/* Search overlay in navbar */
.navsearch {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-block: 1rem;
}
.navsearch.is-open { display: block; }
.navsearch form { display: flex; gap: 0.5rem; }
.navsearch input {
  flex: 1;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

/* Mobile drawer (§24) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { display: block; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  padding-inline: 1.25rem;
  position: sticky;
  top: 0;
  background: var(--cream);
}
.drawer__body { padding: 0.5rem 1.25rem 3rem; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__trigger,
.drawer__single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 0;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brand-green);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.drawer__trigger svg { width: 14px; height: 14px; fill: currentColor; transition: transform var(--dur) var(--ease); }
.drawer__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.drawer__panel { display: none; padding-bottom: 1rem; }
.drawer__panel.is-open { display: block; }
.drawer__panel a {
  display: block;
  padding: 0.7rem 0.25rem;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 59, 46, 0.07);
}
.drawer__panel a:hover { color: var(--brand-green); }
.drawer__foot { margin-top: 2rem; display: grid; gap: 0.75rem; }
.drawer__mail { font-size: var(--fs-sm); color: var(--ink-soft); text-align: center; }

/* --------------------------------------------------------------------------
   7. Hero (§25–§26)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 78svh, 800px);
  padding-block: clamp(3rem, 9vw, 6rem) clamp(3.5rem, 8vw, 6rem);
  color: var(--white);
  isolation: isolate;
  background: var(--brand-green);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(10, 32, 24, 0.82) 0%, rgba(10, 32, 24, 0.55) 45%, rgba(10, 32, 24, 0.2) 100%),
    linear-gradient(to top, rgba(10, 32, 24, 0.75) 0%, rgba(10, 32, 24, 0) 55%);
}
.hero__inner > * { max-width: 44rem; }
.hero__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: var(--fs-hero);
  color: var(--white);
  line-height: 1.02;
  margin-bottom: 1.25rem;
}
.hero__text {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__actions .btn--primary { padding-inline: 2rem; min-height: 54px; font-size: 1rem; }

/* --------------------------------------------------------------------------
   8. Trip planner / hero search (§27–§30)
   -------------------------------------------------------------------------- */
.planner { background: linear-gradient(to bottom, var(--brand-green) 90px, var(--cream) 90px); }
.planner__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(12, 59, 46, 0.13);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.planner__tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.planner__tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 48px;
  padding: 0.6rem 1rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.tab:hover { color: var(--brand-green); }
.tab[aria-selected="true"] { color: var(--brand-green); font-weight: 600; border-bottom-color: var(--brand-gold); }

/* Planner type selector: real radio inputs, so it works and is keyboard
   navigable with or without JavaScript. The inputs are visually hidden and
   their labels are styled as tabs. */
.tabinput {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.tabinput:checked + .tab {
  color: var(--brand-green);
  font-weight: 600;
  border-bottom-color: var(--brand-gold);
}
.tabinput:focus-visible + .tab {
  outline: 3px solid var(--brand-gold);
  outline-offset: -3px;
  border-radius: 2px;
}
.planner__tabs fieldset,
.planner__form-wrap fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.planner__form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.field input::placeholder { color: #8b938e; }
.planner__submit { min-height: 52px; padding-inline: 1.75rem; }
.planner__status {
  margin-top: 0.85rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  min-height: 1.4em;
}
.planner__status[data-state="error"] { color: #8a2b16; font-weight: 500; }

/* --------------------------------------------------------------------------
   9. Discovery categories (§31–§32)
   -------------------------------------------------------------------------- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.cat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.cat:hover { border-color: var(--brand-green); background: #fffdf8; }
.cat svg { width: 30px; height: 30px; stroke: var(--green-mid); fill: none; stroke-width: 1.5; }
.cat:hover svg { stroke: var(--brand-green); }
.cat__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-green); }
.cat__desc { font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. Destinations mosaic (§33–§35)
   -------------------------------------------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 232px;
  gap: 1rem;
}
.dest {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  background: var(--green-dark);
  isolation: isolate;
}
.dest--lead { grid-column: span 2; grid-row: span 2; }
.dest--wide { grid-column: span 2; }
.dest img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 32, 24, 0.88) 8%, rgba(10, 32, 24, 0.32) 52%, rgba(10, 32, 24, 0.06) 100%);
}
.dest:hover img { transform: scale(1.045); }
.dest__body { padding: 1.35rem; width: 100%; }
.dest__region {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 0.4rem;
}
.dest__name { font-size: 1.5rem; color: var(--white); margin-bottom: 0.2rem; }
.dest--lead .dest__name { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.dest__desc { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.86); margin: 0; }
.dest__cta {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-gold);
  border-bottom: 1px solid transparent;
}
.dest:hover .dest__cta { border-bottom-color: var(--brand-gold); }

/* --------------------------------------------------------------------------
   11. Regions (§37)
   -------------------------------------------------------------------------- */
.regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3.5rem;
}
.region {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.region__name { font-size: 1.35rem; color: var(--white); }
.region__links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.55rem; }
.region__links a {
  font-size: var(--fs-sm);
  color: var(--cream-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.16);
  padding-bottom: 2px;
}
.region__links a:hover { color: var(--brand-gold); border-color: var(--brand-gold); }
.region__go {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-gold);
  text-decoration: none;
  white-space: nowrap;
}
.region__go:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. Activities (§39–§43)
   -------------------------------------------------------------------------- */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}
.act {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.act:hover { border-color: var(--gold); transform: translateY(-2px); }
.act__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-light); }
.act__media img { width: 100%; height: 100%; object-fit: cover; }
.act__tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: rgba(12, 59, 46, 0.92);
  color: var(--cream);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.act__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.25rem; }
.act__title { font-size: var(--fs-h3); margin-bottom: 0.45rem; }
.act__title a { text-decoration: none; color: inherit; }
.act__title a:hover { color: var(--green-mid); }
.act__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.act__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.act__meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.act__foot { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   13. Trip ideas / itineraries (§44–§47)
   -------------------------------------------------------------------------- */
.trips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.trip {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trip__media { position: relative; aspect-ratio: 16 / 10; background: var(--grey-light); }
.trip__media img { width: 100%; height: 100%; object-fit: cover; }
.trip__days {
  position: absolute;
  right: 0.75rem;
  bottom: -1.4rem;
  width: 62px;
  height: 62px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--brand-gold);
  border-radius: 50%;
  color: var(--brand-green);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}
.trip__days small { display: block; font-family: var(--font-body); font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.trip__body { padding: 1.6rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.trip__title { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.trip__title a { text-decoration: none; color: inherit; }
.trip__title a:hover { color: var(--green-mid); }
.trip__route { font-size: var(--fs-xs); color: var(--gold-ink); margin-bottom: 0.6rem; }
.trip__desc { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 1rem; }
.trip__foot { margin-top: auto; }

.trip-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.trip-more a {
  padding: 0.6rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--brand-green);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.trip-more a:hover { background: var(--brand-green); color: var(--cream); }

/* --------------------------------------------------------------------------
   14. Where to stay (§48–§52)
   -------------------------------------------------------------------------- */
.stay__tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.stay__tabs .tab {
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  margin-bottom: 0;
  padding-inline: 1.15rem;
}
.stay__tabs .tab[aria-selected="true"] {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--cream);
}
.stay__intro { font-size: var(--fs-lead); color: var(--ink-soft); margin-bottom: 1.75rem; max-width: 62ch; }
.stays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.stay {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stay img { width: 100%; height: 100%; object-fit: cover; }
.stay__body { padding: 1.1rem 1.15rem; display: flex; flex-direction: column; }
.stay__city { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.35rem; }
.stay__name { font-size: 1.15rem; margin-bottom: 0.4rem; }
.stay__desc { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0.85rem; }
.stay__foot { margin-top: auto; }
.stay-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--grey-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   15. Why ComeMorocco (§53–§54)
   -------------------------------------------------------------------------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.why__item { padding-top: 1.5rem; border-top: 2px solid var(--brand-gold); }
.why__item h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.why__item p { font-size: var(--fs-sm); color: var(--cream-soft); }
.about {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}
.about h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.about p { color: var(--cream-soft); }

/* --------------------------------------------------------------------------
   16. Plan your trip (§55)
   -------------------------------------------------------------------------- */
.plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.plan__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.plan__card h3 { font-size: var(--fs-h3); margin-bottom: 0.9rem; }
.plan__list { margin-bottom: 1.25rem; }
.plan__list li + li { border-top: 1px solid var(--line); }
.plan__list a {
  display: block;
  padding: 0.55rem 0;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  text-decoration: none;
}
.plan__list a:hover { color: var(--brand-green); }
.plan__card .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   17. Travel guides (§56)
   -------------------------------------------------------------------------- */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.guide:hover .guide__title { color: var(--green-mid); }
.guide__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--brand-green); }
.guide__desc { grid-column: 1; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0.2rem; }
.guide__go { font-size: var(--fs-sm); font-weight: 600; color: var(--gold-ink); white-space: nowrap; }

/* --------------------------------------------------------------------------
   18. Blog (§57–§59)
   -------------------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.post { display: flex; flex-direction: column; }
.post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-light);
  margin-bottom: 1rem;
}
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}
.post__cat {
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
}
.post__cat:hover { text-decoration: underline; }
.post__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post__title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.post__title a { text-decoration: none; color: inherit; }
.post__title a:hover { color: var(--green-mid); }
.post__excerpt { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0.9rem; }
.post .link-arrow { margin-top: auto; align-self: start; }

/* --------------------------------------------------------------------------
   19. Social gallery (§63)
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.gallery a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity var(--dur) var(--ease); }
.gallery a:hover img { transform: scale(1.06); opacity: 0.9; }

/* --------------------------------------------------------------------------
   20. Newsletter (§64–§65)
   -------------------------------------------------------------------------- */
.news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.news h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 0.6rem; }
.news p { font-size: var(--fs-sm); color: var(--ink-soft); }
.news__form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.news__form .field { flex: 1 1 240px; }
.news__consent { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 0.9rem; }
.news__consent a { color: var(--brand-green); }
.news__status { margin-top: 0.75rem; font-size: var(--fs-sm); min-height: 1.4em; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   21. Final CTA (§66)
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--dark-green);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.cta__deco {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.cta__inner { position: relative; max-width: 46rem; margin-inline: auto; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--white); margin-bottom: 1rem; }
.cta p { color: var(--cream-soft); margin-inline: auto; margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* --------------------------------------------------------------------------
   22. Footer (§67–§68)
   -------------------------------------------------------------------------- */
.footer { background: var(--brand-green); color: var(--cream-soft); font-size: var(--fs-sm); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer .logo { color: var(--cream); margin-right: 0; }
.footer .logo__text b { color: var(--brand-gold); }
.footer__tag {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--brand-gold);
  margin: 0.75rem 0 0.5rem;
}
.footer__about { color: var(--cream-soft); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__links li + li { margin-top: 0.1rem; }
.footer__links a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--cream-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__links a:hover { color: var(--brand-gold); }
.footer__contact a { color: var(--cream); }
.footer .social { margin-top: 1rem; margin-left: -0.4rem; color: var(--cream); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-xs);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer__legal a { color: var(--cream-soft); text-decoration: none; }
.footer__legal a:hover { color: var(--brand-gold); text-decoration: underline; }
.footer__disclosure {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-light);
}
.footer__disclosure p {
  font-size: var(--fs-xs);
  color: rgba(216, 210, 196, 0.8);
  max-width: 86ch;
}
.footer__note { margin-top: 1rem; color: var(--cream-soft); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   23. Back to top (§69)
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand-green);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-mid); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --------------------------------------------------------------------------
   24. Reveal on scroll — subtle, one-shot (§87)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* --------------------------------------------------------------------------
   25. Development-only placeholder highlighter (remove in the WP build)
   -------------------------------------------------------------------------- */
.devbar {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  background: rgba(28, 28, 28, 0.88);
  color: #fff;
  border: 0;
  border-radius: 100px;
  font-size: 0.75rem;
  cursor: pointer;
}
.devbar:hover { background: #1c1c1c; }
body.show-placeholders [data-placeholder] {
  outline: 2px dashed #d13b3b;
  outline-offset: 2px;
}
body.show-placeholders [data-placeholder]::before {
  content: "placeholder";
  position: absolute;
  z-index: 5;
  background: #d13b3b;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   26. Responsive (§85–§86)
   -------------------------------------------------------------------------- */

/* Desktop: show inline nav, hide hamburger */
@media (min-width: 1080px) {
  .nav { display: block; }
  .icon-btn--menu { display: none; }
}

@media (max-width: 1279px) {
  :root { --gutter: 2rem; }
  .mega__inner { gap: 1.25rem 1.75rem; }
}

/* Tablet */
@media (max-width: 1079px) {
  :root { --gutter: 1.75rem; --nav-h: 68px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planner__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner__submit { grid-column: span 2; }
  .why { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
  .about { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 899px) {
  .mosaic { grid-auto-rows: 200px; }
  .regions { grid-template-columns: 1fr; gap: 0; }
  .guides { grid-template-columns: 1fr; gap: 0; }
  .news { grid-template-columns: 1fr; gap: 1.75rem; }
  .why { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 1.15rem; --section-y: 3rem; }

  .topbar__inner { min-height: 34px; justify-content: center; }
  .topbar .social { display: none; }
  .footer .social a { width: 46px; height: 46px; }
  .topbar__mail span { display: none; }
  .topbar__mail::after { content: "contactus@comemorocco.com"; }

  .head { grid-template-columns: 1fr; align-items: start; }
  .head__link { grid-column: 1; justify-self: start; }

  .hero { min-height: 78svh; align-items: flex-end; }
  .hero__actions .btn { flex: 1 1 100%; }

  .planner { background: linear-gradient(to bottom, var(--brand-green) 40px, var(--cream) 40px); }
  .planner__form { grid-template-columns: 1fr; }
  .planner__submit { grid-column: 1; }

  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .cat { padding: 1.1rem 1rem; }

  /* Horizontal, snapping rails instead of cramped columns (§86) */
  .mosaic,
  .rail,
  .trips,
  .stays,
  .posts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 78vw);
    grid-template-columns: none;
    grid-auto-rows: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .mosaic > *,
  .rail > *,
  .trips > *,
  .stays > *,
  .posts > * { scroll-snap-align: start; }
  .dest { min-height: 300px; }
  .dest--lead,
  .dest--wide { grid-column: auto; grid-row: auto; }
  .dest--lead .dest__name { font-size: 1.75rem; }

  .stay { grid-template-columns: 96px minmax(0, 1fr); }
  .plan { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
  .footer__col--brand { grid-column: span 2; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .to-top { right: 0.9rem; bottom: 0.9rem; }
  .devbar { left: 0.9rem; bottom: 0.9rem; }
}

@media (max-width: 479px) {
  .hero__title { font-size: clamp(2.25rem, 11vw, 3rem); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-more a { width: 100%; }
}

/* --------------------------------------------------------------------------
   27. Reduced motion (§84)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .dest:hover img,
  .post:hover .post__media img,
  .gallery a:hover img { transform: none; }
  .btn:hover, .act:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   28. No-JS fallbacks (§98)
   -------------------------------------------------------------------------- */
.no-js .drawer { display: block; position: static; }
.no-js .drawer__panel { display: block; }
.no-js .drawer__trigger { pointer-events: none; }
.no-js .icon-btn--menu,
.no-js .devbar,
.no-js .to-top { display: none; }
.no-js .navsearch { display: block; }
.no-js [role="tabpanel"] { display: block !important; }
.no-js .stay__tabs { display: none; }
@media (min-width: 1080px) { .no-js .drawer { display: none; } }
