/* Morocco Odyssey - main stylesheet
   Colors and fonts are defined as variables below; change them here to restyle the site. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --terracotta: #b4502c;
  --terracotta-dark: #8f3c1f;
  --saffron: #e3a23b;
  --night: #1d2a3f;
  --night-2: #26364f;
  --sand: #f7f0e5;
  --sand-2: #efe3d0;
  --ink: #231c17;
  --muted: #5e544c;
  --line: #e2d6c4;
  --white: #fff;
  --wa: #0b7a3e;
  --wa-dark: #08602f;
  --focus: #1a5fd0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(35, 28, 23, .06), 0 8px 24px rgba(35, 28, 23, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); text-underline-offset: .18em; }
a:hover { color: var(--terracotta); }
h1, h2, h3, .h4 { font-family: var(--serif); line-height: 1.15; color: var(--night); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
.h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-night :focus-visible, .cta-band :focus-visible, .hero :focus-visible, .site-footer :focus-visible,
.custom-card :focus-visible, .tour-hero :focus-visible, .page-hero.has-photo :focus-visible { outline-color: #ffd36b; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-dark { background: #fff; color: var(--night); }
.btn-dark:hover { background: var(--sand); color: var(--night); }
.btn-outline { border-color: var(--night); color: var(--night); background: transparent; }
.btn-outline:hover { background: var(--night); color: #fff; }
.btn-outline-wa { border-color: var(--wa); color: var(--wa); background: transparent; }
.btn-outline-wa:hover { background: var(--wa); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-call { background: var(--night); color: #fff; }
.btn-call:hover { background: var(--night-2); color: #fff; }
.btn-link { padding-left: 0; padding-right: 0; color: var(--terracotta-dark); background: none; min-height: 44px; }
.btn-link:hover { color: var(--terracotta); text-decoration: underline; transform: none; }
.btn-link-light { color: #ffd9b8; }
.btn-link-light:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn-row-center { justify-content: center; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.logo b { font-weight: 700; color: var(--terracotta); }
.logo-mark { width: 34px; height: 34px; color: var(--terracotta); }
.logo-light { color: #fff; }
.logo-light b, .logo-light .logo-mark { color: var(--saffron); }

.nav-toggle { display: none; }
.site-nav { width: 100%; padding-bottom: 12px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav li a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav li a:hover { color: var(--terracotta); }
.site-nav a[aria-current="page"] { color: var(--terracotta-dark); box-shadow: inset 0 -2px 0 var(--terracotta); }
.nav-cta { margin-top: 8px; }

@media (max-width: 1099px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: none; border: 2px solid var(--line); border-radius: 999px; font: 600 .95rem var(--sans); color: var(--night); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding: 8px 0 20px; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--terracotta); padding-left: 14px; }
  .js .nav-cta { display: flex; margin-top: 16px; }
}
@media (min-width: 1100px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; padding: 0; display: flex; align-items: center; gap: 24px; }
  .site-nav ul { gap: 24px; flex-wrap: nowrap; }
  .nav-cta { margin: 0; }
}

/* ---------- Generic sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-sand { background: var(--sand); }
.section-night { background: var(--night); color: #e9e4dc; }
.section-night h2, .section-night h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.section-night .section-head p:last-child { color: #c9cfd8; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.section-head-row > div { max-width: 720px; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .6em; }
.section-night .eyebrow, .eyebrow-light { color: var(--saffron); }
.label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 1.2em 0 .5em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; min-height: min(88svh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); }
.hero-media, .page-hero-media, .tour-hero-media { position: absolute; inset: 0; }
.hero-media img, .page-hero-media img, .tour-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 60% 50%; }
.hero::after, .page-hero.has-photo::after, .tour-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,30,.15) 0%, rgba(20,22,30,.35) 40%, rgba(20,22,30,.82) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .lead { max-width: 40rem; color: #f3ede4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: #f3ede4; margin: 0; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; }
.credit { font-size: .72rem; color: rgba(255,255,255,.8); text-decoration: none; }
.credit:hover { color: #fff; text-decoration: underline; }
@media (max-width: 599px) {
  .hero-actions .btn { width: 100%; }
  .hero-inner { padding-bottom: 48px; }
}

/* ---------- Two ways ---------- */
.ways { display: grid; gap: 20px; }
@media (min-width: 800px) { .ways { grid-template-columns: 1fr 1fr; gap: 28px; } }
.way { position: relative; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.way p { color: var(--muted); flex: 1; }
.way-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--saffron); margin-bottom: 12px; }

/* ---------- Tour cards ---------- */
.tour-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .tour-grid { grid-template-columns: 1fr 1fr; } .tour-grid-single { grid-template-columns: 1fr; max-width: 580px; } }
.tour-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tour-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tour-card:hover .tour-card-media img { transform: scale(1.03); }
.badge { display: inline-block; background: var(--saffron); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tour-card-media .badge { position: absolute; top: 14px; left: 14px; }
.badge-lg { font-size: .85rem; margin-bottom: 1rem; }
.tour-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 600px) { .tour-card-body { padding: 28px 32px 32px; } }
.tour-card-body > p:not(.label):not(.tour-meta) { color: var(--muted); }
.tour-meta { display: flex; align-items: center; gap: 8px; color: var(--terracotta-dark); font-size: .95rem; margin-bottom: .5em; }
.tour-card-title { font-size: 1.55rem; }
.tour-card-title a { color: inherit; text-decoration: none; }
.tour-card-title a:hover { color: var(--terracotta); }
.tour-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 20px; }

.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.chips-route li { position: relative; }
.chips-lg li { font-size: 1rem; padding: 8px 16px; background: #fff; }

.custom-card { margin-top: 28px; background: var(--night); color: #e6e1d9; border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 20px; align-items: center;
  background-image: radial-gradient(circle at 100% 0, rgba(227,162,59,.22), transparent 45%); }
.custom-card h3 { color: #fff; font-size: 1.7rem; }
.custom-card p:last-child { margin: 0; max-width: 46rem; }
.custom-card .eyebrow { color: var(--saffron); }
.custom-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (min-width: 900px) { .custom-card { grid-template-columns: 1fr auto; padding: 40px 44px; } .custom-card-actions { flex-direction: column; align-items: flex-start; } }

/* ---------- Split / Khalid ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } .split-form { grid-template-columns: 1fr 1fr; align-items: start; } }
.split-text > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center; background: var(--sand-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--night); font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.portrait-placeholder { display: grid; place-items: center;
  background-color: var(--terracotta);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.10) 0 18%, transparent 19%),
    repeating-conic-gradient(from 22.5deg, rgba(255,255,255,.07) 0 45deg, transparent 45deg 90deg);
  background-size: auto, 80px 80px; }
.portrait-art .logo-mark { width: 120px; height: 120px; color: #fff3df; }
.page-hero-split { padding: 48px 0 64px; background: var(--sand); }
.page-hero-split h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Review themes ---------- */
.themes { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 20px; }
@media (min-width: 700px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .themes { grid-template-columns: repeat(4, 1fr); } }
.theme { background: var(--night-2); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--saffron); }
.theme .icon { color: var(--saffron); width: 26px; height: 26px; margin-bottom: 12px; }
.theme h3 { font-size: 1.2rem; }
.theme p { margin: 0; color: #cfd5de; font-size: .98rem; }

/* ---------- Destination tiles ---------- */
.dest-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .dest-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.dest-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--sand-2); }
.dest-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dest-tile:hover img { transform: scale(1.04); }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,18,26,.78)); }
.dest-tile span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 600; line-height: 1.2; }
.dest-tile:hover { color: #fff; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terracotta); color: #fff; padding: 56px 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fbe9dd; margin: 0; max-width: 40rem; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .cta-inner { grid-template-columns: 1fr auto; } .cta-actions { max-width: 460px; justify-content: flex-end; } }
@media (max-width: 599px) { .cta-actions .btn { width: 100%; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--sand); padding: 56px 0 48px; overflow: hidden; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 44rem; color: var(--muted); margin: 0; }
.page-hero.has-photo { color: #fff; padding: 140px 0 56px; background: var(--night); }
.page-hero.has-photo h1 { color: #fff; }
.page-hero.has-photo .lead { color: #f3ede4; }
.page-hero.has-photo .eyebrow { color: var(--saffron); }
.page-hero-inner { position: relative; z-index: 1; }
@media (min-width: 900px) { .page-hero.has-photo { padding: 200px 0 72px; } }

/* ---------- Tour detail ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; margin: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.tour-hero { position: relative; color: #fff; background: var(--night); padding: 160px 0 56px; overflow: hidden; }
@media (min-width: 900px) { .tour-hero { padding: 260px 0 72px; } }
.tour-hero-inner { position: relative; z-index: 1; }
.tour-hero h1 { color: #fff; max-width: 18ch; }
.tour-hero .lead { color: #f3ede4; max-width: 44rem; margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -28px; position: relative; z-index: 2; box-shadow: var(--shadow); padding: 0; }
.facts > div { background: #fff; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.facts .icon { grid-row: span 2; color: var(--terracotta); width: 24px; height: 24px; }
.facts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts strong { font-size: 1rem; line-height: 1.3; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 599px) { .facts { margin-left: 16px; margin-right: 16px; width: auto; } .facts > div { padding: 14px; } }

.tour-layout { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 1000px) { .tour-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; } .tour-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.tour-main > section { margin-bottom: 48px; }
.tour-main > section:last-child { margin-bottom: 0; }
.tour-main h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.callout { background: var(--sand); border-left: 4px solid var(--terracotta); border-radius: var(--radius-sm); padding: 24px 24px 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--terracotta); border-bottom: 2.5px solid var(--terracotta); transform: rotate(-45deg); }

.route { list-style: none; padding: 0; margin: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 2px dashed var(--saffron); }
.route li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 20px; }
.route-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; position: relative; z-index: 1; }
.route h3 { font-size: 1.15rem; margin: 5px 0 .25em; }
.route p { margin: 0; color: var(--muted); }

.gallery { display: grid; gap: 16px; }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
.photo { margin: 0; }
.photo img { border-radius: var(--radius-sm); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--sand-2); }
.photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-top: 8px; font-size: .9rem; color: var(--muted); }
.photo .credit { color: var(--muted); font-size: .75rem; }

.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link-list a { font-weight: 600; }
.link-list.compact { margin-bottom: 1rem; flex-direction: column; gap: 4px; }

.ask-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.ask-card h2 { font-size: 1.5rem; }
.ask-card > p { color: var(--muted); font-size: .98rem; }
.ask-alt { display: flex; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.ask-alt a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }

/* ---------- Planner form ---------- */
.planner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
@media (min-width: 400px) { .field { grid-column: span 1; } .field-full { grid-column: span 2; } }
.field-full { grid-column: span 2; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 12px 14px; border: 1.5px solid #c9baa4; border-radius: var(--radius-sm); background: #fff; color: var(--ink); min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--focus); outline: 3px solid rgba(26,95,208,.35); outline-offset: 0; }
.planner .btn { grid-column: span 2; margin-top: 4px; }
.form-note { grid-column: span 2; margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--sand); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 36px; }
.notice .icon { color: var(--terracotta); width: 26px; height: 26px; margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- Destinations ---------- */
.choose-box { background: var(--sand); border-radius: var(--radius); padding: 28px; margin-bottom: 64px; }
.choose-box ul { padding-left: 1.1em; margin: 0 0 1.4em; }
.choose-box li { margin-bottom: .6em; }
@media (min-width: 900px) { .choose-box { padding: 36px 44px; } }
.dest-group { margin-bottom: 64px; }
.dest-group:last-child { margin-bottom: 0; }
.dest-list { display: grid; gap: 40px; }
.dest-card { display: grid; gap: 20px; align-items: center; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) {
  .dest-card { grid-template-columns: 1fr 1fr; gap: 48px; }
  .dest-card:nth-child(even) > .photo { order: 2; }
}
.dest-card .photo img { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.dest-card h3 { font-size: 1.6rem; }
.dest-card-body > p { color: var(--muted); }
.dest-card .choose { color: var(--ink); background: var(--sand); padding: 10px 14px; border-radius: var(--radius-sm); }
.dest-card:target .dest-card-body h3 { color: var(--terracotta); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.contact-card { display: grid; gap: 4px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.contact-card:hover { border-color: var(--terracotta); color: var(--ink); transform: translateY(-2px); }
.contact-card .icon { width: 30px; height: 30px; color: var(--terracotta); margin-bottom: 6px; }
.contact-card-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.contact-card strong { font-family: var(--serif); font-size: 1.35rem; color: var(--night); font-weight: 600; }
.contact-card-sub { color: var(--muted); word-break: break-word; }
.contact-card-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.contact-card-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.contact-card-wa .icon, .contact-card-wa strong, .contact-card-wa .contact-card-label, .contact-card-wa .contact-card-sub { color: #fff; }
.split-form h3 { font-size: 1.15rem; margin-top: 1.4em; }

/* ---------- Credits ---------- */
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .credits { grid-template-columns: 1fr 1fr; } }
.credit-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.credit-row img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 120px; }
.credit-row p { font-size: .95rem; color: var(--muted); margin: 0; word-break: break-word; }
.credit-row:target { outline: 3px solid var(--saffron); outline-offset: 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #151e2e; color: #c3cad5; padding: 56px 0 24px; font-size: .97rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-brand p { margin: 14px 0 18px; max-width: 30rem; }
.footer-title { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--saffron); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:not(.btn):not(.logo) { color: #e6eaf0; text-decoration: none; }
.site-footer a:not(.btn):not(.logo):hover { color: #fff; text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; word-break: break-all; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #9aa4b2; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile contact bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.mobile-bar .btn { min-height: 52px; }
.mobile-bar-wa { flex: 1; }
.mobile-bar-wa span:not(.sr-only) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .mobile-bar-wa { font-size: .92rem; padding-left: .8em; padding-right: .8em; } }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0; box-shadow: none; }
  .mobile-bar .btn-call { display: none; }
  .mobile-bar-wa { box-shadow: 0 8px 24px rgba(11,122,62,.35); }
}

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

@media print {
  .site-header, .mobile-bar, .cta-band, .tour-aside { display: none !important; }
  body { padding: 0; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 899px) {
  .hero::after, .page-hero.has-photo::after, .tour-hero::after {
    background: linear-gradient(180deg, rgba(20,22,30,.30) 0%, rgba(20,22,30,.62) 32%, rgba(20,22,30,.88) 100%);
  }
}
.hero .eyebrow, .page-hero.has-photo .eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.tour-quick { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-top: 24px; }
.tour-quick .btn-wa { flex: 1 1 auto; }
@media (min-width: 1000px) { .tour-quick { display: none; } }
.tour-hero .hero-credit { top: 10px; bottom: auto; }

/* ---------- Language switch ---------- */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px;
  border: 2px solid var(--line); border-radius: 999px; color: var(--night); text-decoration: none;
  font: 600 .95rem/1 var(--sans); white-space: nowrap; background: #fff;
}
.lang-switch:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.lang-switch .icon { width: 1.05em; height: 1.05em; color: var(--terracotta); }
.site-nav .lang-switch-desktop { display: none; }
@media (min-width: 1100px) {
  .header-tools { display: none; }
  .site-nav .lang-switch-desktop { display: inline-flex; }
  .site-nav { gap: 18px; }
  .site-nav ul { gap: 22px; }
}
@media (max-width: 1099px) {
  .header-inner { gap: 8px; }
  .js .site-nav { width: 100%; }
}
@media (max-width: 419px) {
  .logo { font-size: 1.02rem; gap: 7px; }
  .logo-mark { width: 28px; height: 28px; }
  .lang-switch { padding: 6px 11px; font-size: .9rem; }
  .lang-switch .icon { display: none; }
  .js .nav-toggle { padding: 8px 12px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Portrait ---------- */
.portrait img { object-position: 50% 30%; }
.notice-plain { background: var(--sand); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; }

/* ---------- About Us ---------- */
.about-hero { background: var(--sand); padding: 56px 0 44px; text-align: center;
  background-image: radial-gradient(circle at 50% 0, rgba(227,162,59,.18), transparent 60%); }
.about-hero h1 { margin-bottom: .35em; }
.tagline { font-family: var(--serif); font-weight: 500; color: var(--terracotta-dark); font-size: clamp(1.25rem, 4.4vw, 1.85rem);
  line-height: 1.35; max-width: 34ch; margin: 0 auto; text-wrap: balance; }
@media (min-width: 900px) { .about-hero { padding: 88px 0 64px; } }
.about-text { padding-bottom: 40px; }
.about-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.about-text p { font-size: 1.1rem; line-height: 1.75; }
.about-text p:first-of-type { font-size: clamp(1.15rem, 2.2vw, 1.3rem); color: var(--night); }
.about-photos { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
@media (min-width: 900px) { .about-photos { grid-template-columns: repeat(4, 1fr); } }
.about-photos .photo img { aspect-ratio: 4 / 5; }

/* ---------- Tours page groups and cultural experiences (Tamghra) ---------- */
.tour-group { margin-bottom: 48px; }
.tour-group .section-head { margin-bottom: 24px; }
.tour-group .section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.tour-title { margin: 0; }
.tour-title h1 { margin-bottom: .2em; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.tour-subtitle { font-weight: 600; color: #ffe2a8; font-size: clamp(1rem, 2vw, 1.15rem); margin: 0 0 1.1em; letter-spacing: .01em; }
.invitation { max-width: 44rem; margin: 0; padding: 14px 18px; border-left: 4px solid var(--saffron);
  background: rgba(20,22,30,.55); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #fff; font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.55; font-style: italic; }
.route-days li { padding-bottom: 28px; }
.route-days p { color: var(--ink); line-height: 1.7; }
.route-days + .photo { margin: 8px 0 12px; }

/* ---------- AI-generated illustrations (Tamghra) ---------- */
.media-label { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); background: rgba(20,22,30,.72); color: #fff;
  font-size: .72rem; line-height: 1.35; padding: 4px 9px; border-radius: 6px; }
.hero-credit .credit[href*="ai-illustrations"] { background: rgba(20,22,30,.6); color: #fff; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.photo-ai img { aspect-ratio: auto; height: auto; object-fit: contain; }
.day-part { display: grid; gap: 14px; margin-bottom: 22px; }
.day-part:last-child { margin-bottom: 0; }
.day-part > p { margin: 0; }
@media (min-width: 640px) { .day-part { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; } }
.credits-ai { margin-top: 48px; }
.credits-ai > h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.img-focus-top { object-position: 50% 28%; }

/* ---------- "Khalid with travelers" carousel (Meet Khalid) ---------- */
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.carousel { max-width: 720px; margin: 0 auto; }
.carousel-viewport { position: relative; aspect-ratio: 1 / 1; background: var(--night); border-radius: var(--radius); overflow: hidden; touch-action: pan-y; }
@media (min-width: 600px) { .carousel-viewport { aspect-ratio: 4 / 3; } }
.carousel-viewport:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.carousel-track { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
/* the whole photo stays visible (portrait or landscape) inside the same frame */
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.carousel-controls { display: none; }
/* With JavaScript: one photo at a time, sliding from right to left */
.js .carousel-track { display: block; overflow: hidden; position: relative; }
.js .carousel-slide { position: absolute; inset: 0; transform: translateX(100%); visibility: hidden;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .7s; }
.js .carousel-slide.is-active { transform: none; visibility: visible; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.js .carousel-slide.leave-left { transform: translateX(-100%); }
.js .carousel-slide.leave-right { transform: translateX(100%); }
.js .carousel-slide.enter-right { transform: translateX(100%); visibility: visible; transition: none; }
.js .carousel-slide.enter-left { transform: translateX(-100%); visibility: visible; transition: none; }
.js .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.carousel-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--night); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.carousel-btn:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.carousel-btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.carousel-btn .icon { width: 18px; height: 18px; }
.carousel-toggle .icon-play, .carousel-toggle.is-paused .icon-pause { display: none; }
.carousel-toggle.is-paused .icon-play { display: inline-block; }
.carousel-count { margin: 0 4px; min-width: 3.2em; text-align: center; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 419px) { .carousel-btn { padding: 8px 11px; font-size: .9rem; } .carousel-count { order: -1; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .js .carousel-slide, .js .carousel-slide.is-active { transition: none; } }
