/* =========================================================
   MOROCCAN MOUNTAIN GUIDES — Global Stylesheet
   Aesthetic: Refined earthy luxury · Atlas warmth
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --gold: #C0944A;
  --gold-light: #D4B278;
  --gold-pale: #EDE0CC;
  --terracotta: #B85C38;
  --deep: #1B1710;
  --earth: #2A2218;
  --bark: #3D3226;
  --sand: #F4EDE4;
  --cream: #FAF7F3;
  --white: #FFFFFF;
  --text: #3A3028;
  --text-mid: #6B5E4F;
  --text-light: #9A8D7E;
  --border: rgba(0,0,0,.08);

  --shadow-sm: 0 2px 8px rgba(27,23,16,.06);
  --shadow-md: 0 8px 30px rgba(27,23,16,.1);
  --shadow-lg: 0 20px 60px rgba(27,23,16,.14);
  --shadow-xl: 0 30px 80px rgba(27,23,16,.18);

  --radius: 6px;
  --radius-lg: 10px;
  --max-w: 1220px;
  --max-w-narrow: 800px;
}

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

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Typography ── */
.section-tag {
  display: inline-block;
  font-size: .65rem; font-weight: 600; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15; color: var(--deep); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-sub {
  font-size: 1rem; color: var(--text-mid); line-height: 1.85; font-weight: 300;
  max-width: 620px;
}
.section-sub.centered { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  font-family: var(--font-body); text-decoration: none;
}
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--terracotta); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--deep); color: var(--white); }
.btn--dark:hover { background: var(--bark); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: .6rem 1.4rem; font-size: .72rem; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.3rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .45s cubic-bezier(.4,0,.2,1);
}
.nav--scrolled {
  background: rgba(27,23,16,.94);
  backdrop-filter: blur(14px);
  padding: .85rem 2.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,.12);
}
.nav__logo {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: var(--white); letter-spacing: .01em;
}
.nav__logo span { color: var(--gold-light); }
.nav__links { display: flex; gap: 2.2rem; align-items: center; }
.nav__links a {
  color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; transition: color .3s;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-light); }
.nav__cta {
  background: var(--gold) !important; color: var(--deep) !important;
  padding: .55rem 1.3rem !important; border-radius: var(--radius) !important;
  font-weight: 700 !important; font-size: .72rem !important;
}
.nav__cta:hover { background: var(--gold-light) !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; border-radius: 2px; }
.nav__mobile { display: none; }

/* ── Hero ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero--short { min-height: 55vh; }
.hero__bg {
  position: absolute; inset: 0;
  background: var(--earth) url('') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,23,16,.35) 0%, rgba(27,23,16,.55) 45%, rgba(27,23,16,.82) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 880px; padding: 0 2rem; }
.hero__tag {
  display: inline-block; font-size: .65rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(192,148,74,.3); padding: .45rem 1.6rem;
  margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.8rem);
  color: var(--white); line-height: 1.08; margin-bottom: 1.2rem; font-weight: 600;
}
.hero__title em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero__sub {
  font-size: 1.05rem; color: rgba(255,255,255,.65); max-width: 580px; margin: 0 auto 2.5rem;
  line-height: 1.75; font-weight: 300;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero slideshow */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1.8s ease;
}
.hero__slide--active { opacity: 1; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,23,16,.3) 0%, rgba(27,23,16,.55) 45%, rgba(27,23,16,.85) 100%);
}

/* Scroll hint */
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.4); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(192,148,74,.5), transparent);
  animation: heroScroll 2.2s ease infinite;
}
@keyframes heroScroll { 0%,100% { opacity:.25; transform:scaleY(.7); } 50% { opacity:1; transform:scaleY(1); } }

/* ── Stats Strip ── */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--deep); max-width: 1100px;
  margin: -3.5rem auto 0; position: relative; z-index: 5;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.stats__item { padding: 2.2rem 1.5rem; text-align: center; border-right: 1px solid rgba(255,255,255,.06); }
.stats__item:last-child { border: none; }
.stats__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.stats__label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: .2rem; }

/* ── Tour Cards ── */
.tour-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  transition: all .4s cubic-bezier(.4,0,.2,1); border: 1px solid var(--border);
}
.tour-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tour-card__img {
  height: 210px; position: relative; overflow: hidden;
  background: var(--sand);
}
.tour-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tour-card:hover .tour-card__img img { transform: scale(1.04); }
.tour-card__badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: var(--gold); color: var(--white); padding: .25rem .7rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 3px;
}
.tour-card__body { padding: 1.4rem 1.5rem 1.5rem; }
.tour-card__meta { display: flex; gap: 1rem; margin-bottom: .7rem; }
.tour-card__meta span {
  font-size: .68rem; color: var(--text-light); letter-spacing: .04em;
  display: flex; align-items: center; gap: .3rem;
}
.tour-card__title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--deep); line-height: 1.3; margin-bottom: .5rem;
}
.tour-card__excerpt { font-size: .82rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 1.2rem; }
.tour-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.tour-card__price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.tour-card__price small { font-size: .62rem; color: var(--text-light); font-family: var(--font-body); font-weight: 400; }
.tour-card__link {
  font-size: .72rem; font-weight: 600; color: var(--terracotta);
  text-transform: uppercase; letter-spacing: .1em; transition: color .3s;
}
.tour-card__link:hover { color: var(--gold); }

/* Tour Grid */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px,1fr)); gap: 1.8rem; }

/* Tour Filters */
.tour-filters { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.tour-filter {
  padding: .55rem 1.4rem; border: 1.5px solid var(--border); background: transparent;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius); transition: all .3s;
  font-family: var(--font-body); color: var(--text-light);
}
.tour-filter--active, .tour-filter:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

/* ── Testimonials ── */
.testimonial {
  padding: 2.2rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-lg);
  position: relative;
}
.testimonial::before {
  content: '"'; position: absolute; top: .8rem; right: 1.4rem;
  font-family: var(--font-display); font-size: 4.5rem; color: rgba(192,148,74,.12); line-height: 1;
}
.testimonial__stars { color: var(--gold); margin-bottom: .8rem; letter-spacing: 3px; font-size: .85rem; }
.testimonial__text { font-size: .9rem; line-height: 1.85; color: rgba(255,255,255,.68); font-weight: 300; font-style: italic; margin-bottom: 1.3rem; }
.testimonial__author { font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }

/* Testimonial on light bg */
.testimonial--light { background: var(--white); border-color: var(--border); }
.testimonial--light .testimonial__text { color: var(--text-mid); }
.testimonial--light .testimonial__author { color: var(--gold); }
.testimonial--light::before { color: rgba(192,148,74,.1); }

/* ── Contact / Forms ── */
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .9rem 1.1rem;
  border: 1.5px solid var(--border); background: var(--white);
  border-radius: var(--radius); font-size: .9rem; color: var(--text);
  transition: border-color .3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }

/* ── Info Cards ── */
.info-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.3rem; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.info-card__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--deep); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 1.15rem;
}
.info-card__label { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); margin-bottom: .2rem; }
.info-card__value { font-weight: 500; color: var(--text); font-size: .92rem; }
.info-card__value a { color: var(--text); transition: color .3s; }
.info-card__value a:hover { color: var(--gold); }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: .72rem; color: rgba(255,255,255,.5); margin-bottom: 1rem;
  letter-spacing: .04em;
}
.breadcrumbs a { color: rgba(255,255,255,.6); transition: color .3s; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs span { margin: 0 .4rem; }

/* ── Placeholder Image ── */
.placeholder-img {
  background: linear-gradient(135deg, var(--sand) 0%, #DDD5C8 50%, var(--gold-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  width: 100%; height: 100%; position: relative;
}
.placeholder-img::after {
  content: '📷 Your Image'; font-size: .7rem; color: var(--text-light);
  background: rgba(255,255,255,.7); padding: .4rem .8rem; border-radius: 3px;
}

/* ── Page Sections ── */
.page-section { padding: 5.5rem 2rem; }
.page-section--sm { padding: 3.5rem 2rem; }
.page-section--dark { background: var(--deep); color: #fff; }
.page-section--sand { background: var(--sand); }
.page-section--white { background: var(--white); }
.page-section--cream { background: var(--cream); }

/* ── Itinerary ── */
.itinerary { max-width: 800px; }
.itinerary__day {
  padding: 1.8rem 0; border-bottom: 1px solid var(--border);
  position: relative; padding-left: 3.5rem;
}
.itinerary__day:last-child { border: none; }
.itinerary__marker {
  position: absolute; left: 0; top: 1.8rem;
  width: 32px; height: 32px; background: var(--gold);
  color: var(--white); font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.itinerary__day-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--deep); margin-bottom: .6rem; }
.itinerary__day-text { font-size: .9rem; color: var(--text-mid); line-height: 1.85; }

/* ── Tour Detail ── */
.tour-detail__header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.tour-detail__info-bar {
  display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.5rem 0;
  padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tour-detail__info-item { }
.tour-detail__info-item .label { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); }
.tour-detail__info-item .value { font-weight: 600; color: var(--text); font-size: .95rem; }
.tour-detail__content { max-width: 800px; }
.tour-detail__content p { margin-bottom: 1rem; font-size: .95rem; color: var(--text-mid); line-height: 1.85; }
.tour-detail__content strong { color: var(--text); font-weight: 600; }
.tour-detail__sidebar {
  background: var(--sand); padding: 2rem; border-radius: var(--radius-lg);
  position: sticky; top: 6rem;
}

/* ── Footer ── */
.footer { background: var(--deep); color: rgba(255,255,255,.5); padding: 4.5rem 2rem 2rem; }
.footer__grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem; max-width: var(--max-w); margin: 0 auto 3rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer__brand span { color: var(--gold-light); }
.footer__desc { font-size: .85rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer__phone { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); font-weight: 600; }
.footer h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer li { margin-bottom: .55rem; }
.footer a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color .3s; }
.footer a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 2rem;
  text-align: center; font-size: .72rem; max-width: var(--max-w); margin: 0 auto;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(35px);
  transition: all .75s cubic-bezier(.16,1,.3,1);
}
.reveal--visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tour-detail__header { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(27,23,16,.97); flex-direction: column;
    justify-content: center; align-items: center; gap: 1.8rem;
  }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { color: rgba(255,255,255,.8); font-size: 1.1rem; font-weight: 500; letter-spacing: .06em; }
  .nav__mobile a:hover { color: var(--gold-light); }
  .nav__mobile-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

  .page-section { padding: 3.5rem 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; margin: -2rem 1rem 0; }
  .tour-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: clamp(2rem, 8vw, 3.2rem); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
}
