/*
Theme Name: Marrakech Desert Travel
Theme URI: https://marrakechdeserttravel.com
Author: ReWeb
Author URI: https://rewebagency.com
Description: Premium custom theme for Marrakech Desert Travel — private journeys, Sahara adventures and tailor-made travel in Morocco. Booking requests by email and WhatsApp.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: mdt
*/

:root {
	--sand: #f6f1e8;
	--sand-2: #efe6d6;
	--paper: #fffdf8;
	--ink: #13201b;
	--ink-2: #1d2f28;
	--muted: #5f6a62;
	--line: #e2d8c6;
	--clay: #b0532f;
	--clay-dark: #8f3f20;
	--gold: #c8a36a;
	--whatsapp: #1f8a4c;
	--radius: 4px;
	--shadow: 0 18px 50px rgba(19, 32, 27, .12);
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: min(1240px, 90vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.75rem; }
h1 em, h2 em { font-style: italic; color: var(--clay); }
p { margin: 0 0 1.1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { display: inline-block; font: 700 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--clay); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-head p { max-width: 420px; color: var(--muted); margin: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 12px 16px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border: 1px solid transparent; border-radius: var(--radius); font: 600 .86rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #18703d; }
.btn-block { width: 100%; justify-content: center; }
.textlink { font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* Top bar & header */
.staging-bar { background: #7a2e14; color: #fff; text-align: center; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px; }
.topbar { background: var(--ink); color: #d9d4c8; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.topbar a { text-decoration: none; }
.topbar-links { display: flex; gap: 24px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 232, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 0; }
.brand img { height: 58px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav .current a { color: var(--clay); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 10px 14px; font: 600 .8rem var(--sans); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 15, .25) 0%, rgba(10, 18, 15, .35) 45%, rgba(10, 18, 15, .85) 100%); }
.hero-content { padding: 140px 0 48px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 900px; }
.hero h1 em { color: var(--gold); }
.hero .lead { color: #ebe5d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 46px; }
.quick-book { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 1px; background: rgba(255, 255, 255, .25); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quick-book label { display: block; background: var(--paper); color: var(--ink); padding: 14px 18px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.quick-book select, .quick-book input { display: block; width: 100%; border: 0; background: transparent; font: 500 1rem var(--sans); color: var(--ink); padding: 6px 0 0; }
.quick-book .btn { border-radius: 0; height: 100%; padding: 0 34px; }

/* Trust strip */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font: 500 1.35rem/1.2 var(--serif); margin-bottom: 4px; }
.trust-item span, .trust-item a { font-size: .85rem; color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.badge { position: absolute; top: 16px; left: 16px; background: var(--paper); color: var(--ink); font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px; border-radius: 2px; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { font-size: .92rem; color: var(--muted); flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; color: var(--clay); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.card-sm .card-body { padding: 18px 20px 22px; }
.card-sm h3 { font-size: 1.4rem; }

/* Split / story */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media .float-card { position: absolute; right: -24px; bottom: 36px; background: var(--ink); color: var(--sand); padding: 22px 26px; border-radius: var(--radius); max-width: 260px; box-shadow: var(--shadow); }
.float-card strong { display: block; font: italic 500 1.5rem/1.2 var(--serif); color: var(--gold); }
.checklist { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 1px; background: var(--clay); }

/* Dark band */
.band-dark { background: var(--ink); color: var(--sand); }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .section-head p, .band-dark p { color: #b9bdb3; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 26px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: italic 500 2.4rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.step h3 { color: #fff; }

/* Business band */
.business { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.business-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.business-body { padding: clamp(36px, 5vw, 70px); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; padding: 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .85rem; }

/* CTA */
.cta-band { position: relative; color: #fff; text-align: center; isolation: isolate; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(13, 22, 18, .72); z-index: -1; }
.cta-band .lead { color: #e5e0d4; margin: 0 auto 34px; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* Footer */
.site-footer { background: #0e1814; color: #b9bdb3; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding: 80px 0 56px; }
.footer-grid h4 { font: 700 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; }
.footer-bottom a { text-decoration: none; }
.social { display: flex; gap: 16px; margin-top: 18px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: var(--whatsapp); color: #fff; padding: 14px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.wa-float svg, .btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Consent banner */
.consent-banner { position: fixed; left: 22px; bottom: 22px; z-index: 70; max-width: 420px; background: var(--ink); color: var(--sand); padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .88rem; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 14px; color: #d9d4c8; }
.consent-banner a { color: #fff; }
.consent-banner div { display: flex; gap: 10px; }
.consent-banner .btn { padding: 11px 18px; }
@media (max-width: 600px) { .consent-banner { left: 10px; right: 10px; bottom: 84px; max-width: none; } }

/* Page hero */
.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; padding: clamp(110px, 14vw, 190px) 0 clamp(50px, 6vw, 80px); background: var(--ink); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 15, .35), rgba(10, 18, 15, .82)); z-index: -1; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 900px; }
.breadcrumb { font-size: .8rem; color: #d6d1c4; margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.facts span { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 8px 16px; font-size: .85rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 18px; font: 600 .85rem var(--sans); cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.is-hidden { display: none !important; }

/* Tour single */
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 1.6em; }
.prose a { color: var(--clay); }
.prose ul { padding-left: 1.2em; }
.itinerary { margin: 28px 0; border-top: 1px solid var(--line); }
.itinerary details { border-bottom: 1px solid var(--line); }
.itinerary summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 86px 1fr 24px; gap: 16px; align-items: center; padding: 22px 0; font-weight: 600; }
.itinerary summary::-webkit-details-marker { display: none; }
.itinerary summary::after { content: "+"; font: 400 1.6rem/1 var(--serif); color: var(--clay); }
.itinerary details[open] summary::after { content: "–"; }
.day-num { font: italic 500 1.3rem/1 var(--serif); color: var(--clay); }
.itinerary .day-text { padding: 0 0 24px 102px; color: var(--muted); }
.book-card { position: sticky; top: 110px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.book-card h3 { margin-bottom: 6px; }
.book-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 22px 0; font-size: .9rem; }
.book-card dt { color: var(--muted); }
.book-card dd { margin: 0; font-weight: 600; text-align: right; }
.book-card .btn { margin-top: 10px; }
.book-card small { display: block; margin-top: 16px; color: var(--muted); font-size: .8rem; }

/* Booking form */
.booking-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.booking-form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 13px 14px; font: 400 1rem var(--sans); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(176, 83, 47, .15); }
.field .req { color: var(--clay); }
.form-legend { font: 500 1.5rem var(--serif); margin: 10px 0 18px; grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.form-legend:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 5px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 26px 28px; margin-bottom: 30px; }
.notice-success { background: #e6efe5; border: 1px solid #b9d3b6; }
.notice-error { background: #f8e5dc; border: 1px solid #e7b9a5; }
.notice h3 { margin-bottom: 8px; }
.contact-aside { display: grid; gap: 22px; }
.contact-box { background: var(--ink); color: var(--sand); border-radius: var(--radius); padding: 30px; }
.contact-box h3 { color: #fff; }
.contact-box p { color: #b9bdb3; font-size: .92rem; }
.contact-box a { color: #fff; }
.contact-line { display: block; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); text-decoration: none; }
.contact-line small { display: block; color: #8f978d; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

/* Editorial */
.editorial { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font: 500 1.4rem/1.3 var(--serif); padding: 18px 0; }

/* Responsive */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tour-layout, .booking-wrap { grid-template-columns: 1fr; }
	.book-card { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.nav ul { gap: 20px; }
}
@media (max-width: 900px) {
	.menu-toggle { display: inline-block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sand); border-bottom: 1px solid var(--line); padding: 10px 5vw 24px; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
	.header-cta .btn-primary { display: none; }
	.grid, .steps, .split, .business { grid-template-columns: 1fr; }
	.trust .wrap { grid-template-columns: 1fr 1fr; }
	.trust-item { border-left: 0; padding-left: 0; }
	.quick-book { grid-template-columns: 1fr 1fr; }
	.quick-book .btn { grid-column: 1 / -1; padding: 18px; justify-content: center; }
	.section-head { display: block; }
	.section-head p { margin-top: 14px; }
	.split-media .float-card { right: 12px; }
	.topbar-links span { display: none; }
}
@media (max-width: 600px) {
	.grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
	.quick-book { grid-template-columns: 1fr; }
	.brand img { height: 46px; }
	.itinerary summary { grid-template-columns: 64px 1fr 20px; }
	.itinerary .day-text { padding-left: 0; }
	.wa-float span { display: none; }
	.wa-float { padding: 15px; }
	.footer-bottom { flex-direction: column; }
	.topbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
