/* ==========================================================================
   Shared Morocco Adventures — global stylesheet
   Budget/backpacker group-tour brand: bold, warm, sociable.
   No preprocessor, no build step — plain CSS driven off :root tokens.
   ========================================================================== */

:root {
  /* Palette */
  --color-terracotta: #d9622b;
  --color-terracotta-dark: #b84e1e;
  --color-terracotta-light: #f2b58f;
  --color-teal: #1b8f86;
  --color-teal-dark: #146f68;
  --color-teal-light: #cdeae6;
  --color-gold: #f2a93b;
  --color-sand: #fbf4e8;
  --color-sand-dark: #f2e4cc;
  --color-charcoal: #2a241d;
  --color-charcoal-soft: #55493a;
  --color-white: #ffffff;

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shadow / radius */
  --shadow-soft: 0 12px 30px rgba(42, 36, 29, 0.12);
  --shadow-lift: 0 18px 40px rgba(42, 36, 29, 0.18);
  --radius-md: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--color-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 0.6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-solid { background: var(--color-terracotta); color: var(--color-white); }
.btn-solid:hover { background: var(--color-terracotta-dark); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; border-color: var(--color-charcoal); color: var(--color-charcoal); }
.btn-outline:hover { background: var(--color-charcoal); color: var(--color-white); }
.btn-light { background: var(--color-white); color: var(--color-terracotta-dark); }
.btn-light:hover { background: var(--color-sand-dark); }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(42, 36, 29, 0.08);
  border-bottom-color: var(--color-sand-dark);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo span { color: var(--color-terracotta); }
.logo img { display: block; flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; }
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo img { display: block; flex-shrink: 0; width: 48px; height: 48px; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--color-charcoal);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--color-terracotta-dark); text-decoration: none; }
.main-nav .btn { margin-left: 2px; padding: 11px 20px; font-size: 0.86rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-sand);
    padding: 8px 24px 20px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 20px rgba(42, 36, 29, 0.08);
  }
  .main-nav a, .main-nav .btn { padding: 12px 4px; }
  .site-header.nav-open .main-nav { max-height: 480px; overflow: visible; }
  .main-nav .btn { margin-left: 0; align-self: flex-start; }
}

/* ==========================================================================
   Hero (gradient placeholder — swap for real trip photography when available)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 88px 0 76px;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 169, 59, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(27, 143, 134, 0.35), transparent 50%),
    linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 60%, var(--color-charcoal) 130%);
  color: var(--color-white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% 42%;
  height: 520px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: rotate(-14deg);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow { color: var(--color-gold); }
.hero h1 { color: var(--color-white); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.trust-strip {
  position: relative;
  z-index: 2;
  margin: -34px auto 0;
  max-width: 1080px;
  padding: 20px 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}
.trust-item { display: flex; align-items: center; gap: 11px; min-width: 0; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 0.9rem; }
.trust-item span { display: block; color: var(--color-charcoal-soft); font-size: 0.78rem; line-height: 1.3; }
.trust-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-weight: 800;
}

.route-finder {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 30px auto 0;
  padding: 18px;
  max-width: 1080px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.route-finder label { margin: 0 0 6px; }
.route-finder select { background: var(--color-sand); }
.route-finder .btn { height: 48px; padding-inline: 22px; }

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 190px 190px;
  gap: 14px;
}
.photo-grid figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-sand-dark);
}
.photo-grid figure:first-child { grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, filter 0.45s ease; }
.photo-grid figure:hover img { transform: scale(1.04); filter: saturate(1.08); }
.photo-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}

.hero-sub {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
  text-align: center;
}
.hero-sub h1, .hero-sub h2 { color: var(--color-white); }

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 80px 0; }
.section-sand { background: var(--color-sand); }
.section-sand-dark { background: var(--color-sand-dark); }
.section-teal {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
}
.section-teal h2, .section-teal h3 { color: var(--color-white); }
.section-charcoal {
  background: var(--color-charcoal);
  color: var(--color-sand);
}
.section-charcoal h2, .section-charcoal h3 { color: var(--color-white); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-inline: 18px; }
  .route-finder { grid-template-columns: 1fr 1fr; }
  .route-finder .btn { width: 100%; }
}
@media (max-width: 560px) {
  .header-inner { padding-inline: 16px; gap: 8px; }
  .logo { gap: 6px; font-size: 0.92rem; }
  .logo img { width: 40px; height: 40px; }
  .nav-toggle { flex-shrink: 0; }
  .hero { min-height: 0; padding: 72px 0 64px; }
  .hero-stats { gap: 22px; margin-top: 40px; }
  .trust-strip { grid-template-columns: 1fr; margin-top: -22px; }
  .route-finder { grid-template-columns: 1fr; margin-inline: 18px; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 140px; }
  .photo-grid figure:first-child { grid-column: span 2; grid-row: auto; }
}

.split-visual {
  border-radius: var(--radius-lg);
  min-height: 320px;
  background: linear-gradient(150deg, var(--color-gold) 0%, var(--color-terracotta) 55%, var(--color-teal-dark) 130%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
/* Grids / cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-media {
  height: 205px;
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-gold));
  position: relative;
  overflow: hidden;
  transition: filter 0.35s ease;
}
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 16, 10, 0) 55%, rgba(20, 16, 10, 0.32) 100%);
  pointer-events: none;
}
.card:hover .card-media { filter: brightness(1.04) saturate(1.08); }
.card-media.teal { background: linear-gradient(135deg, var(--color-teal-light), var(--color-teal)); }
.card-media.dune { background: linear-gradient(135deg, var(--color-gold), var(--color-terracotta)); }
.card-media.blue { background: linear-gradient(135deg, #a9d3e0, var(--color-teal-dark)); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(42, 36, 29, 0.82);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 6px; }
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.card-price {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--color-sand-dark);
}
.card-price strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-terracotta-dark); }
.card-price span { font-size: 0.8rem; color: var(--color-charcoal-soft); }

.mini-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.mini-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-sand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Steps ("how it works") */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Destination chips */
.dest-chips { display: flex; flex-wrap: wrap; gap: 14px; }
.dest-chip {
  background: var(--color-white);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  color: var(--color-charcoal);
  transition: background 0.15s ease, color 0.15s ease;
}
.dest-chip:hover { background: var(--color-terracotta); color: var(--color-white); text-decoration: none; }

/* Testimonials */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  color: var(--color-charcoal);
}
.testimonial p { font-style: italic; }
.testimonial-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--color-charcoal); }
.testimonial-trip { font-size: 0.82rem; color: var(--color-charcoal-soft); }
.stars { color: var(--color-gold); letter-spacing: 2px; margin-bottom: 10px; }

/* Itinerary day blocks (tour pages) */
.itinerary-day {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-sand-dark);
}
.itinerary-day:last-child { border-bottom: none; }
.itinerary-day-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-terracotta-dark);
}
.itinerary-day-num span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--color-charcoal-soft); margin-top: 2px; }
@media (max-width: 600px) { .itinerary-day { grid-template-columns: 1fr; gap: 6px; } }

/* Includes panel */
.includes-panel {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.includes-panel ul { list-style: none; padding: 0; margin: 0; }
.includes-panel li { padding: 8px 0 8px 30px; position: relative; }
.includes-panel.included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-teal-dark);
  font-weight: 700;
}
.includes-panel.excluded li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-terracotta-dark);
  font-weight: 700;
}

/* Price box */
.price-box {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  text-align: center;
}
.price-box .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--color-gold); }
.price-box .amount-sub { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 18px; }
.price-box .btn { width: 100%; margin-top: 6px; }

/* FAQ accordion */
.faq-category { margin-bottom: 36px; }
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 4px 22px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--color-terracotta);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; color: var(--color-charcoal-soft); }

/* Contact panel / forms */
.contact-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-sand-dark);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-sand);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-teal); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-charcoal);
  color: rgba(251, 244, 232, 0.85);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 244, 232, 0.12);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(251, 244, 232, 0.85); }
.footer-grid a:hover { color: var(--color-gold); }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--color-white); margin-bottom: 12px; }
.footer-logo span { color: var(--color-terracotta-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(251, 244, 232, 0.55);
}

/* ==========================================================================
   Scroll reveal + reduced motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
