/*
Theme Name: Morocco Safaris
Theme URI: https://moroccosafaris.com
Author: ReWeb
Author URI: https://rewebagency.com
Description: Custom theme for Morocco Safaris — private Morocco tours from Marrakech, Fes, Casablanca and Tangier. Free quotes by form, email and WhatsApp (no prices online).
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ms
*/

:root {
	--ink: #0f2a33;
	--ink-2: #163a46;
	--sand: #f5efe6;
	--sand-2: #eadfcd;
	--paper: #ffffff;
	--line: #e2d7c5;
	--muted: #4a5a5f;
	--saffron: #e39b2d;
	--terra: #b4561f;
	--terra-dark: #8f4317;
	--whatsapp: #25d366;
	--whatsapp-ink: #0b2a17;
	--radius: 18px;
	--pill: 999px;
	--shadow: 0 10px 30px rgba(15, 42, 51, .08);
	--head: "Archivo", system-ui, sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: min(1240px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { display: inline-block; margin: 0 0 10px; font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.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(--saffron); outline-offset: 3px; }
.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; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid transparent; border-radius: var(--pill); font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: #f0ab42; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--sand); }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-whatsapp { background: var(--whatsapp); color: var(--whatsapp-ink); font-weight: 700; }
.btn-whatsapp:hover { background: #3ee07a; color: var(--whatsapp-ink); }
.btn-block { width: 100%; }

/* 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: #e9e1d3; font-size: .82rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 9px 0; }
.topbar a { color: #e9e1d3; text-decoration: none; }
.topbar a:hover { color: var(--saffron); }
.topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 230, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 0; }
.brand img { height: 64px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav .current > a { color: var(--terra); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: var(--pill); padding: 10px 16px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; color: #fff; background: var(--ink); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 34, .85) 0%, rgba(10, 28, 34, .5) 55%, rgba(10, 28, 34, .08) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 80px 0; }
.hero .eyebrow { color: var(--saffron); }
.hero h1 { max-width: 760px; color: #fff; }
.hero .lead { color: #efe7da; max-width: 580px; margin: 20px 0 32px; }
.hero-label { font-weight: 600; margin: 0 0 12px; }
.city-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: #efe7da; font-size: .92rem; }

/* Page hero */
.page-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 28, 34, .88) 0%, rgba(10, 28, 34, .35) 70%, rgba(10, 28, 34, .2) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding: 64px 0 48px; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .lead { color: #efe7da; }
.page-hero .eyebrow { color: var(--saffron); }
.breadcrumb { font-size: .88rem; margin: 0 0 14px; color: #e9e1d3; }
.breadcrumb a { color: #e9e1d3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 14px; border-radius: var(--pill); font-size: .88rem; font-weight: 600; }
.chips.light .chip { background: var(--sand); border-color: transparent; color: var(--ink); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.city-card, .card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.city-card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.city-card img { width: 100%; height: 220px; object-fit: cover; }
.city-card .body, .card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.city-card h3 { font-size: 1.5rem; margin: 0; }
.city-card p, .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.city-card .more, .card .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .9rem; color: var(--terra); }
.card-media { position: relative; }
.card-media img { width: 100%; aspect-ratio: 700 / 466; object-fit: cover; }
.badge { position: absolute; left: 14px; top: 14px; background: var(--ink); color: var(--sand); padding: 6px 12px; border-radius: var(--pill); font-size: .8rem; font-weight: 600; }
.card h3 { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.card .meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid #eee6d8; font-size: .88rem; color: var(--muted); }
.card .meta strong { color: var(--terra); font-weight: 600; }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { font: 600 .9rem var(--sans); padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.is-hidden { display: none !important; }
.city-block + .city-block { margin-top: 56px; }

/* Steps / dark band */
.band-dark { background: var(--ink); color: var(--sand); }
.band-dark h2, .band-dark h3 { color: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.steps p { color: #c9c0b1; }
.step-num { font: 800 2.4rem/1 var(--head); color: var(--saffron); margin: 0 0 10px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.split img { width: 100%; height: 440px; object-fit: cover; border-radius: 22px; }
.reasons { display: flex; flex-direction: column; gap: 18px; }
.reasons h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 0 0 4px; }
.reasons p { margin: 0; color: var(--muted); }
.band-sand { background: var(--sand-2); }
.cta-band { background: var(--ink); color: var(--sand); border-radius: 26px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.cta-band h2 { color: var(--sand); max-width: 600px; }
.cta-band p { color: #c9c0b1; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tour page */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 28px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery .main img { height: 400px; }
.gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery .side img { height: 194px; }
.tour-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.tour-main { flex: 999 1 560px; min-width: 0; }
.tour-aside { flex: 1 1 340px; min-width: 0; position: sticky; top: 100px; background: var(--paper); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.tour-aside h2 { font-size: 1.6rem; margin-bottom: 6px; }
.tour-aside .note { font-size: .88rem; color: var(--muted); }
.highlights { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.highlights li { position: relative; padding-left: 28px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--saffron); box-shadow: inset 0 0 0 4px var(--sand); outline: 2px solid var(--saffron); }
.timeline { list-style: none; margin: 0 0 48px; padding: 0; }
.timeline li { display: flex; gap: 20px; padding-bottom: 26px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.day-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--saffron); font: 800 1rem var(--head); display: flex; align-items: center; justify-content: center; }
.timeline h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin: 9px 0 6px; }
.timeline p { color: var(--muted); margin: 0 0 .8em; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 48px; }
.incl > div { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.incl h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.incl ul { margin: 0; padding-left: 20px; line-height: 1.9; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 22px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 48px; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 700 / 466; object-fit: cover; border-radius: 14px; }
.photo-strip figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
details.faq { background: var(--paper); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.2em; }
.prose p, .prose li { color: #2c3e44; }
.prose a { color: var(--terra); }

/* Forms */
.quote-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfc4b2; border-radius: 10px; background: #fff; color: var(--ink); }
.quote-form textarea { resize: vertical; }
.quote-form .req { color: var(--terra); }
.quote-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; font-weight: 400; }
.quote-form .consent input { width: auto; margin-top: 4px; }
.quote-form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.quote-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.quote-wrap > div:first-child { flex: 999 1 560px; min-width: 0; background: var(--paper); border-radius: 22px; padding: clamp(22px, 4vw, 36px); }
.quote-wrap aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-box { background: var(--ink); color: var(--sand); border-radius: 22px; padding: 28px; }
.contact-box h3 { color: var(--sand); }
.contact-line { display: block; color: var(--sand); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-line small { display: block; color: #c9c0b1; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-line:hover { color: var(--saffron); }
.notice { border-radius: 14px; padding: 20px 22px; margin-bottom: 20px; }
.notice h3 { margin-bottom: 6px; }
.notice-success { background: #e4f3e7; }
.notice-error { background: #fbe4dc; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 0; font-size: .92rem; color: var(--muted); }
.footer-grid h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-grid a { text-decoration: none; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 12px; }
.social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 0 0 32px; font-size: .84rem; color: #6b7a7f; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--whatsapp); color: var(--whatsapp-ink); text-decoration: none; font-weight: 700; border-radius: var(--pill); padding: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float span { display: none; }
.wa-float:hover { color: var(--whatsapp-ink); }
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto; background: var(--paper); border-radius: 16px; padding: 18px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.consent-banner p { margin: 0; font-size: .9rem; flex: 1 1 320px; }
.consent-banner div { display: flex; gap: 10px; }

@media (min-width: 900px) {
	.wa-float { padding: 14px 20px; }
	.wa-float span { display: inline; }
}
@media (max-width: 960px) {
	.menu-toggle { display: inline-block; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--sand); border-bottom: 1px solid var(--line); display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; padding: 8px 4vw 16px; }
	.nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.header-cta .btn { display: none; }
	.tour-aside { position: static; }
	.gallery { grid-template-columns: 1fr; }
	.gallery .side { display: none; }
	.gallery .main img { height: 280px; }
}
@media (max-width: 600px) {
	.brand img { height: 52px; }
	.hero { min-height: 560px; }
	.quote-form .form-grid { grid-template-columns: 1fr; }
	.topbar .wrap > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
.textlink { font-weight: 600; font-size: .92rem; color: var(--terra); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
