:root {
  --ivory: #fffaf0;
  --paper: #f7eddc;
  --sand: #e8c994;
  --form-gold: #ad8b4f;
  --dark: #11100d;
  --clay: #c36b34;
  --terracotta: #9b4d2a;
  --brown: #2f1d18;
  --muted: #766355;
  --green: #063f37;
  --teal: #0f5c59;
  --gold: #c8963d;
  --line: rgba(91, 59, 35, 0.18);
  --shadow: 0 24px 70px rgba(61, 37, 25, 0.14);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 150, 61, 0.12), transparent 25rem),
    linear-gradient(135deg, rgba(6, 63, 55, 0.035) 25%, transparent 25%) 0 0 / 38px 38px,
    var(--ivory);
  color: var(--brown);
  font-family: var(--sans);
  line-height: 1.65;
  opacity: 0;
  animation: pageIn 520ms ease forwards;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

@keyframes pageIn {
  to {
    opacity: 1;
  }
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 250, 240, 0.18);
  background: linear-gradient(180deg, rgba(17, 16, 13, 0.62), rgba(17, 16, 13, 0.2));
  backdrop-filter: blur(18px);
  animation: navDrop 520ms ease both;
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-color: rgba(173, 139, 79, 0.22);
  background: rgba(17, 16, 13, 0.9);
  box-shadow: 0 18px 50px rgba(17, 16, 13, 0.24);
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 300px;
}

.brand-logo {
  height: 78px;
  width: min(310px, 34vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 10px 13px;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 250, 240, 0.1);
  color: #f0d08c;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
  color: var(--ivory);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: currentColor;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(47, 29, 24, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, #ad8b4f, #7d5728);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, #d5a44a, #b8742b);
  color: white;
}

.btn-ghost {
  background: rgba(255, 250, 240, 0.85);
  border-color: rgba(47, 29, 24, 0.18);
  color: var(--brown);
}

.btn-whatsapp {
  background: #0b6b55;
  color: white;
}

.hero {
  position: relative;
  --hero-image: url("../images/hero/legal-hero-zellige-detail.jpg");
  --hero-position: center;
  --hero-min-height: 75svh;
  background: #0f0d0a;
  color: var(--ivory);
  isolation: isolate;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 132px 0 82px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -4%;
  background:
    radial-gradient(circle at 72% 24%, rgba(217, 183, 122, 0.2), transparent 30rem),
    linear-gradient(90deg, rgba(15, 13, 10, 0.9), rgba(15, 13, 10, 0.48) 48%, rgba(15, 13, 10, 0.82)),
    linear-gradient(0deg, rgba(15, 13, 10, 0.64), transparent 42%),
    var(--hero-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--hero-position);
  filter: saturate(1.08) contrast(1.02);
  transform-origin: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
  z-index: -3;
}

.hero::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0) 76%, rgba(255, 250, 240, 0.85)),
    radial-gradient(rgba(217, 183, 122, 0.24) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 250, 240, 0.08) 46% 54%, transparent 54% 100%);
  background-size: auto, 28px 28px, 34px 34px;
  opacity: 0.46;
  z-index: -2;
}

.home-hero {
  --hero-image: url("../images/hero/home-hero-sahara-camel.jpg");
  --hero-min-height: 100svh;
  --hero-position: center;
}

.tour-hero {
  --hero-image: url("../images/hero/tour-packages-hero-morocco-route.jpg");
  --hero-position: center;
}

.activities-hero {
  --hero-image: url("../images/hero/activities-hero-morocco-adventure.jpg");
  --hero-position: center;
}

.about-hero {
  --hero-image: url("../images/hero/activities-hero-morocco-adventure.jpg");
  --hero-position: center;
}

.contact-hero {
  --hero-image: url("../images/hero/activities-hero-morocco-adventure.jpg");
  --hero-position: center;
}

.legal-hero {
  --hero-min-height: 56svh;
  padding-bottom: 64px;
}

.privacy-hero {
  --hero-image: url("../images/hero/legal-hero-zellige-detail.jpg");
}

.refund-hero {
  --hero-image: url("../images/backgrounds/cta-desert-sunset.jpg");
  --hero-position: center 65%;
}

.terms-hero {
  --hero-image: url("../images/home/pillar-stories-heritage-architecture.jpg");
}

.hero-arch {
  position: absolute;
  right: clamp(20px, 8vw, 132px);
  top: 50%;
  border: 1px solid rgba(217, 183, 122, 0.42);
  border-radius: 48% 48% 24px 24px;
  box-shadow:
    inset 0 0 0 12px rgba(255, 250, 240, 0.03),
    0 28px 90px rgba(0, 0, 0, 0.2);
  height: min(62vh, 560px);
  max-height: calc(100% - 150px);
  opacity: 0.7;
  pointer-events: none;
  transform: translateY(-46%);
  width: min(30vw, 330px);
  z-index: -1;
}

.hero-arch::before,
.hero-arch::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: inherit;
  inset: 15px;
}

.hero-arch::after {
  border-color: rgba(173, 139, 79, 0.26);
  inset: 31px;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  z-index: 1;
}

.home-hero .hero-content {
  width: min(820px, 100%);
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  margin: 0 0 22px;
}

.hero-title {
  color: var(--ivory);
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.95;
  margin: 14px 0 22px;
  max-width: 920px;
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.45);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 650px;
}

.hero-subtitle {
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.72;
  max-width: 720px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  align-items: center;
  background: rgba(255, 250, 240, 0.11);
  border: 1px solid rgba(217, 183, 122, 0.48);
  border-radius: 999px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
  color: #f1d69a;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 8px;
  letter-spacing: 0.08em;
  padding: 9px 13px;
  text-transform: uppercase;
}

.hero-badge::before {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(217, 183, 122, 0.12);
  content: "";
  height: 7px;
  width: 7px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.hero .hero-actions {
  margin-top: 34px;
}

.hero .btn {
  min-height: 52px;
  padding-inline: 24px;
}

.hero .btn-primary {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.16), transparent),
    linear-gradient(135deg, #d9b77a, #ad8b4f 50%, #735026);
  box-shadow: 0 20px 44px rgba(15, 13, 10, 0.26);
  color: #fffaf0;
}

.btn-hero-outline {
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(255, 250, 240, 0.4);
  color: var(--ivory);
}

.hero .btn-ghost {
  background: rgba(255, 250, 240, 0.88);
  border-color: rgba(255, 250, 240, 0.6);
  color: var(--deep-brown, #3b2a1a);
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero .hero-actions,
.hero-chips,
.hero-floating-tags,
.hero-labels,
.hero-signature,
.hero-contact-cards,
.hero-route-line {
  animation: heroFadeUp 760ms ease both;
}

.hero-badge {
  animation-name: heroFadeDown;
}

.hero-title {
  animation-delay: 120ms;
}

.hero-subtitle {
  animation-delay: 220ms;
}

.hero .hero-actions {
  animation-delay: 320ms;
}

.hero-chips,
.hero-floating-tags,
.hero-labels,
.hero-signature,
.hero-contact-cards,
.hero-route-line {
  animation-delay: 430ms;
}

.hero-chips,
.hero-floating-tags,
.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chip,
.hero-floating-tags span,
.hero-labels span,
.hero-signature {
  background: rgba(255, 250, 240, 0.11);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  padding: 8px 12px;
}

.hero-labels span,
.hero-floating-tags span {
  animation: heroFloat 5.5s ease-in-out infinite;
}

.hero-labels span:nth-child(2),
.hero-floating-tags span:nth-child(2) {
  animation-delay: 420ms;
}

.hero-labels span:nth-child(3),
.hero-floating-tags span:nth-child(3) {
  animation-delay: 820ms;
}

.hero-labels span:nth-child(4),
.hero-floating-tags span:nth-child(4) {
  animation-delay: 1220ms;
}

.hero-floating-tags span:nth-child(5) {
  animation-delay: 1620ms;
}

.hero-route-line {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 22px;
  max-width: 520px;
}

.hero-route-line::before {
  background: linear-gradient(90deg, rgba(217, 183, 122, 0.7), rgba(255, 250, 240, 0.18));
  content: "";
  flex: 1;
  height: 1px;
}

.hero-route-line span {
  background: #d9b77a;
  border: 3px solid rgba(15, 13, 10, 0.62);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.34), 0 0 30px rgba(217, 183, 122, 0.28);
  height: 14px;
  width: 14px;
}

.hero-signature {
  display: inline-flex;
  margin: 30px 0 0;
}

.hero-contact-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 900px;
}

.hero-contact-cards > * {
  background: rgba(255, 250, 240, 0.12);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 16px;
  color: var(--ivory);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
}

.hero-contact-cards span span,
.hero-contact-cards a span {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-contact-cards strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.scroll-indicator {
  align-items: center;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 999px;
  bottom: 32px;
  color: var(--ivory);
  display: flex;
  height: 48px;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 32px;
  z-index: 2;
}

.scroll-indicator span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 10px;
  opacity: 0.8;
  width: 4px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0% {
    opacity: 0.35;
    transform: translateY(-7px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
    transform: translateY(7px);
  }
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-tight {
  padding: 62px 0;
}

.section-band {
  background:
    linear-gradient(90deg, rgba(232, 201, 148, 0.23), rgba(6, 63, 55, 0.06)),
    rgba(247, 237, 220, 0.7);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2,
.legal-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 690px;
}

.grid {
  display: grid;
  align-items: stretch;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 16px 44px rgba(47, 29, 24, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 150, 61, 0.5);
  box-shadow: var(--shadow);
}

.pad {
  padding: 28px;
}

.pillar-card {
  text-align: center;
}

.pillar-card img,
.service-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.icon-badge {
  align-items: center;
  background: var(--ivory);
  border: 1px solid rgba(200, 150, 61, 0.6);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin: -26px auto 14px;
  position: relative;
  width: 52px;
  box-shadow: 0 10px 22px rgba(47, 29, 24, 0.12);
}

.card h3 {
  font-size: 1.45rem;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.media-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  width: 100%;
  object-fit: cover;
}

.media-card .pad {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.media-card .hero-actions {
  margin-top: auto;
  padding-top: 24px;
}

.stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-bottom: 9px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.tag {
  border: 1px solid rgba(200, 150, 61, 0.36);
  border-radius: 999px;
  background: rgba(200, 150, 61, 0.12);
  color: #6d431f;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 6px 10px;
}

.itinerary {
  display: grid;
  gap: 16px;
  counter-reset: days;
}

.day {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.day-number {
  align-items: center;
  background: var(--green);
  border-radius: 22px 22px 8px 8px;
  color: white;
  display: flex;
  flex-direction: column;
  font-weight: 850;
  min-height: 100px;
  justify-content: center;
}

.day-number span {
  color: var(--sand);
  font-family: var(--serif);
  font-size: 2.1rem;
}

.experience-card ul,
.feature-list,
.legal-content ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.experience-card li,
.feature-list li,
.legal-content li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}

.heritage-photo {
  border: 1px solid rgba(173, 139, 79, 0.3);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}

.heritage-photo img {
  aspect-ratio: 21 / 8;
  object-fit: cover;
  width: 100%;
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.84), rgba(247, 237, 220, 0.58)),
    radial-gradient(circle at 86% 18%, rgba(15, 92, 89, 0.1), transparent 24rem);
}

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  border: 1px solid rgba(173, 139, 79, 0.3);
  border-radius: 18px;
  box-shadow: 0 18px 52px rgba(59, 42, 26, 0.12);
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 500ms ease;
  width: 100%;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 13, 0.02), rgba(17, 16, 13, 0.66));
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  bottom: 0;
  color: white;
  display: grid;
  gap: 4px;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.gallery-item figcaption span {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.framed-image {
  border: 1px solid rgba(200, 150, 61, 0.38);
  border-radius: 42% 42% 18px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.framed-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.testimonial {
  min-height: 236px;
}

.quote-mark {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 0.8;
}

.testimonial cite {
  display: block;
  color: var(--brown);
  font-style: normal;
  font-weight: 800;
  margin-top: 20px;
}

.testimonial small {
  color: var(--muted);
}

.cta-panel {
  border: 1px solid rgba(200, 150, 61, 0.45);
  border-radius: 24px;
  background:
    linear-gradient(115deg, rgba(47, 29, 24, 0.92), rgba(6, 63, 55, 0.84)),
    url("../images/backgrounds/cta-desert-sunset.jpg") center / cover;
  color: white;
  overflow: hidden;
  padding: clamp(34px, 7vw, 68px);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  margin: 0 0 14px;
}

.cta-panel p {
  color: rgba(255, 250, 240, 0.84);
  max-width: 690px;
}

.package-hero-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: center;
}

.package-hero-card img {
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.tour-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(173, 139, 79, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.62), rgba(247, 234, 220, 0.68));
}

.departure-grid,
.luxury-card-grid,
.fancy-tour-grid {
  display: grid;
  align-items: stretch;
  gap: 24px;
}

.departure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.departure-card {
  border: 1px solid rgba(173, 139, 79, 0.28);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 24px 70px rgba(59, 42, 26, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.departure-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: 22px;
  pointer-events: none;
  z-index: 2;
}

.departure-card:hover,
.tour-card-premium:hover,
.fancy-tour-card:hover {
  border-color: rgba(173, 139, 79, 0.62);
  box-shadow: 0 34px 86px rgba(59, 42, 26, 0.18);
  transform: translateY(-7px);
}

.departure-marrakech {
  --departure-image: url("../images/backgrounds/departure-marrakech.jpg");
}

.departure-casablanca {
  --departure-image: url("../images/backgrounds/departure-casablanca.jpg");
}

.departure-media {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(17, 16, 13, 0.04), rgba(17, 16, 13, 0.48)),
    var(--departure-image) center / cover no-repeat;
}

.departure-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
  position: relative;
  z-index: 3;
}

.departure-content > .btn {
  align-self: flex-start;
  margin-top: auto;
}

.departure-content h3,
.custom-tour-story h2,
.subsection-title h3 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  margin: 12px 0 14px;
}

.luxury-badge,
.category-badge,
.duration-badge {
  align-items: center;
  border: 1px solid rgba(173, 139, 79, 0.38);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  text-transform: uppercase;
}

.luxury-badge {
  background: rgba(173, 139, 79, 0.14);
  color: #6f4a21;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.chip-row span {
  border: 1px solid rgba(173, 139, 79, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: #6b4a2b;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 7px 10px;
}

.tour-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  padding-left: 1.15rem;
}

.tour-list li {
  color: var(--muted);
  padding-left: 4px;
}

.luxury-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tour-card-premium {
  border: 1px solid rgba(173, 139, 79, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(247, 234, 220, 0.9)),
    var(--ivory);
  box-shadow: 0 22px 62px rgba(59, 42, 26, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.tour-card-premium img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.tour-card-premium.compact img {
  aspect-ratio: 4 / 3;
}

.tour-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.duration-badge {
  background: var(--green);
  color: var(--ivory);
  border-color: rgba(255, 250, 240, 0.2);
  margin-bottom: 14px;
}

.tour-card-body h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  margin: 0 0 10px;
}

.route-line {
  color: #8a5f2c !important;
  font-weight: 850;
}

.card-foot {
  align-items: center;
  border-top: 1px solid rgba(173, 139, 79, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 20px;
}

.tour-card-body > .btn {
  align-self: flex-start;
  margin-top: auto;
}

.custom-tour-panel {
  background:
    radial-gradient(circle at 6% 5%, rgba(255, 250, 240, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(173, 139, 79, 0.97), rgba(66, 43, 25, 0.98));
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 30px;
  box-shadow: 0 34px 92px rgba(59, 42, 26, 0.22);
  color: var(--ivory);
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
  padding: clamp(26px, 5vw, 52px);
}

.custom-tour-story p {
  color: rgba(255, 250, 240, 0.82);
}

.custom-tour-story .luxury-badge {
  background: rgba(255, 250, 240, 0.12);
  color: var(--ivory);
}

.custom-tour-story .framed-image {
  margin-top: 28px;
  max-height: 420px;
}

.custom-tour-story .framed-image img {
  aspect-ratio: 4 / 5;
}

.custom-tour-form {
  display: grid;
  gap: 18px;
}

.custom-tour-form .field label {
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.custom-tour-form .field input,
.custom-tour-form .field select,
.custom-tour-form .field textarea {
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(59, 42, 26, 0.08);
  color: var(--brown);
  min-height: 54px;
  padding: 15px 16px;
}

.custom-tour-form .field input::placeholder,
.custom-tour-form .field textarea::placeholder,
.custom-tour-form .field select:invalid {
  color: rgba(59, 42, 26, 0.5);
}

.custom-tour-form textarea {
  min-height: 160px;
}

.custom-tour-form .field input:focus,
.custom-tour-form .field select:focus,
.custom-tour-form .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(242, 216, 209, 0.34), inset 0 0 0 1px rgba(59, 42, 26, 0.12);
}

.subsection-title {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 44px 0 22px;
}

.subsection-title::after {
  content: "";
  background: linear-gradient(90deg, rgba(173, 139, 79, 0.48), transparent);
  flex: 1;
  height: 1px;
}

.fancy-tour-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fancy-tour-card {
  border: 1px solid rgba(173, 139, 79, 0.3);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(59, 42, 26, 0.12);
  color: white;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.fancy-tour-card img,
.fancy-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.fancy-tour-card img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.fancy-tour-card:hover img {
  transform: scale(1.06);
}

.fancy-overlay {
  background:
    linear-gradient(180deg, rgba(17, 16, 13, 0.08), rgba(17, 16, 13, 0.88)),
    linear-gradient(135deg, rgba(173, 139, 79, 0.18), rgba(6, 63, 55, 0.18));
}

.fancy-content {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 520px;
  padding: 26px;
  position: relative;
  z-index: 2;
}

.fancy-content .btn {
  align-self: flex-start;
}

.category-badge {
  align-self: flex-start;
  background: rgba(255, 250, 240, 0.15);
  color: var(--ivory);
}

.fancy-content h3 {
  color: white;
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 8px 0 10px;
}

.fancy-content p,
.fancy-content .tag,
.fancy-content .chip-row span {
  color: rgba(255, 250, 240, 0.88);
}

.fancy-content .tag,
.fancy-content .chip-row span {
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(255, 250, 240, 0.22);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.contact-info-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.contact-list {
  display: grid;
  gap: 15px;
}

.contact-item {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.contact-item strong {
  display: block;
}

.form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #5c4a3f;
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  border: 1px solid rgba(91, 59, 35, 0.24);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.88);
  color: var(--brown);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 135px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 150, 61, 0.16);
}

.contact-form-card {
  background:
    linear-gradient(135deg, rgba(173, 139, 79, 0.96), rgba(114, 78, 42, 0.98)),
    linear-gradient(45deg, rgba(255, 250, 240, 0.08) 25%, transparent 25%) 0 0 / 34px 34px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(59, 42, 26, 0.22);
  color: white;
  padding: clamp(28px, 5vw, 52px);
}

.contact-form-card h2 {
  color: white;
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.contact-form-card .field label {
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form-card .field input,
.contact-form-card .field select,
.contact-form-card .field textarea {
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(59, 42, 26, 0.08);
  color: var(--brown);
  min-height: 56px;
  padding: 16px 18px;
}

.contact-form-card .field input::placeholder,
.contact-form-card .field textarea::placeholder {
  color: rgba(59, 42, 26, 0.48);
  text-transform: uppercase;
}

.contact-form-card .field select:invalid {
  color: rgba(59, 42, 26, 0.5);
  text-transform: uppercase;
}

.contact-form-card .field textarea {
  min-height: 185px;
}

.contact-form-card .field input:focus,
.contact-form-card .field select:focus,
.contact-form-card .field textarea:focus {
  box-shadow: 0 0 0 4px rgba(242, 216, 209, 0.34), inset 0 0 0 1px rgba(59, 42, 26, 0.12);
}

.form-submit {
  background: #f2d8d1;
  color: #2d1f16;
  justify-self: start;
  min-width: 190px;
}

.map-frame {
  min-height: 310px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.64), rgba(6, 63, 55, 0.08)),
    url("../images/backgrounds/marrakech-map-frame.jpg") center / cover;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
}

.map-pin {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(200, 150, 61, 0.45);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 360px;
  padding: 22px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 44px;
}

.legal-content p {
  color: var(--muted);
}

.site-footer {
  background:
    radial-gradient(circle at 14% 12%, rgba(173, 139, 79, 0.22), transparent 25rem),
    linear-gradient(135deg, #11100d, #241914 56%, #11100d);
  color: rgba(255, 250, 240, 0.82);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(173, 139, 79, 0.14) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(45deg, transparent 46%, rgba(255, 250, 240, 0.05) 46% 54%, transparent 54%) 0 0 / 44px 44px;
  opacity: 0.65;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.82fr 1.05fr;
  gap: 38px;
  padding: 72px 0 56px;
}

.footer-grid h3,
.footer-grid h4 {
  color: white;
  margin: 0 0 16px;
}

.footer-grid h3 {
  font-family: var(--serif);
  line-height: 1.1;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover,
.social a:hover {
  color: #f2d8d1;
  transform: translateX(3px);
}

.footer-links a,
.social a {
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-brand p {
  margin: 20px 0 24px;
}

.footer-logo {
  height: 96px;
  width: min(360px, 100%);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
}

.btn-footer {
  background: rgba(242, 216, 209, 0.96);
  color: #211610;
}

.legal-links {
  margin-bottom: 22px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social a {
  border: 1px solid rgba(173, 139, 79, 0.42);
  border-radius: 999px;
  padding: 8px 12px;
}

.social a:hover {
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(242, 216, 209, 0.75);
}

.copyright {
  position: relative;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
  font-size: 0.86rem;
  padding: 18px 0;
}

.whatsapp-float {
  align-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #25d366, #0f8f56);
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(37, 211, 102, 0.08);
  color: white;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: max(28px, calc(env(safe-area-inset-right) + 18px));
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  width: 64px;
  z-index: 9999;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: inherit;
  animation: whatsappPulse 1.8s infinite;
}

.whatsapp-float:hover {
  filter: saturate(1.08);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 22px 50px rgba(37, 211, 102, 0.35), 0 0 0 10px rgba(37, 211, 102, 0.1);
}

.whatsapp-icon {
  display: inline-flex;
  position: relative;
  z-index: 1;
}

.whatsapp-float svg {
  fill: currentColor;
  height: 32px;
  width: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 16, 13, 0.94);
  border: 1px solid rgba(201, 164, 92, 0.25);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0;
  padding: 10px 14px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

@keyframes whatsappPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.9);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 980px) {
  .grid-4,
  .grid-3,
  .gallery-grid,
  .fancy-tour-grid,
  .footer-grid,
  .split,
  .contact-layout,
  .package-hero-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .departure-grid,
  .custom-tour-panel {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .brand {
    min-width: 250px;
  }

  .brand-logo {
    width: min(270px, 40vw);
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    min-height: 76px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 18px auto;
    border: 1px solid rgba(173, 139, 79, 0.3);
    border-radius: 20px;
    background: rgba(17, 16, 13, 0.96);
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    padding: 12px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    border-radius: 12px;
    padding: 13px 14px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    height: 60px;
    width: min(230px, 60vw);
  }

  .hero {
    --hero-min-height: 72svh;
    padding: 116px 0 64px;
    text-align: center;
  }

  .home-hero {
    --hero-min-height: 100svh;
  }

  .hero::before {
    background:
      radial-gradient(circle at 50% 18%, rgba(217, 183, 122, 0.18), transparent 22rem),
      linear-gradient(180deg, rgba(15, 13, 10, 0.84), rgba(15, 13, 10, 0.56) 48%, rgba(15, 13, 10, 0.88)),
      var(--hero-image);
    background-size: cover;
    background-position: var(--hero-position);
  }

  .hero-content,
  .home-hero .hero-content {
    width: 100%;
  }

  .hero-title,
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .hero-actions,
  .hero-chips,
  .hero-floating-tags,
  .hero-labels,
  .hero-route-line {
    justify-content: center;
  }

  .hero-arch {
    left: 50%;
    opacity: 0.4;
    right: auto;
    top: 58%;
    transform: translate(-50%, -50%);
    width: min(78vw, 330px);
  }

  .section {
    padding: 70px 0;
  }

  .section-head {
    display: block;
  }

  .grid-4,
  .grid-3,
  .gallery-grid,
  .grid-2,
  .luxury-card-grid,
  .fancy-tour-grid,
  .footer-grid,
  .split,
  .contact-layout,
  .form-grid,
  .hero-contact-cards,
  .package-hero-card {
    grid-template-columns: 1fr;
  }

  .departure-card,
  .tour-card-premium,
  .fancy-tour-card,
  .custom-tour-panel {
    border-radius: 20px;
  }

  .departure-media {
    min-height: 210px;
  }

  .fancy-tour-card,
  .fancy-content {
    min-height: 470px;
  }

  .day {
    grid-template-columns: 1fr;
  }

  .day-number {
    min-height: 82px;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  .whatsapp-float {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    height: 56px;
    right: max(18px, calc(env(safe-area-inset-right) + 12px));
    width: 56px;
  }

  .whatsapp-float svg {
    height: 28px;
    width: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .brand-logo {
    height: 54px;
    width: min(190px, 58vw);
  }

  .nav-actions .btn-whatsapp {
    display: none;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 3.7rem);
  }

  .hero {
    padding: 106px 0 58px;
  }

  .legal-hero {
    --hero-min-height: 58svh;
  }

  .hero-title {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 0.68rem;
    max-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .pad {
    padding: 22px;
  }

  .contact-form-card {
    padding: 24px 16px;
  }

  .custom-tour-panel {
    padding: 22px 14px;
  }

  .tour-card-body,
  .fancy-content,
  .departure-content {
    padding: 22px;
  }

  .hero-contact-cards > * {
    text-align: left;
  }

  .hero-labels span,
  .hero-floating-tags span,
  .hero-chip,
  .hero-signature {
    font-size: 0.76rem;
  }

  .card-foot .btn,
  .departure-content .btn,
  .fancy-content .btn {
    width: 100%;
  }

  .form-submit {
    width: 100%;
  }

}
