/* Imlil Moroccan Food — night terrace: warm black, cream type, tajine-brass gold.
   One deliberate dark look (the owner's reference), so no light theme.
   Signature: each section opens on a gold hairline with a small Amazigh lozenge. */

@font-face {
  font-family: 'Playfair Display';
  src: url('assets/playfair.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/playfair-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/outfit.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tifinagh';
  src: url('assets/tifinagh.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #0f0c09;          /* night terrace */
  --bg-raise: #17130e;    /* fields, cards */
  --ink: #f2e9d8;         /* cream */
  --muted: #bdb3a2;
  --faint: #8c8273;
  --gold: #c9a85b;        /* brass of a tajine lid */
  --gold-hi: #dcbd72;
  --on-gold: #17110a;
  --rule: rgba(201, 168, 91, 0.3);
  --rule-soft: rgba(201, 168, 91, 0.15);
  --green: #25a85b;       /* WhatsApp button only */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 4px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(44px, 10vw, 84px); letter-spacing: -0.012em; }
h2 { font-size: clamp(34px, 5.6vw, 52px); letter-spacing: -0.006em; }
h3 { font-size: 23px; }
p { margin: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: 800px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Shared type devices ---------- */
.eyebrow { font: 500 12.5px/1.4 var(--sans); letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 18.5px; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.tfng { font-family: 'Tifinagh', var(--sans); letter-spacing: 0.12em; }

.section { position: relative; padding-block: 96px; }
.section-head { display: grid; gap: 16px; max-width: 700px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

/* The signature rule: a gold hairline with a lozenge from the Amazigh weave at its centre. */
.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.ornament svg { width: 46px; height: 14px; flex: none; }
.section > .ornament { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-50%); padding-inline: var(--gutter) var(--gutter-r); max-width: 1140px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 30px;
  border-radius: var(--radius); border: 1px solid var(--gold);
  font: 600 13.5px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(201, 168, 91, 0.1); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 12px; letter-spacing: 0.24em; }
.btn-block { width: 100%; }
.link { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font-weight: 500; letter-spacing: 0.04em; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.link:hover { border-color: var(--gold); }
.link span { transition: transform .2s ease; }
.link:hover span { transform: translateX(3px); }

/* ---------- Header and menu ---------- */
/* The blur sits on a pseudo-element: on the header itself it would make the header the
   containing block of the fixed phone menu and trap the menu inside the bar. */
.site-header { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(15, 12, 9, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 86px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-mark { width: 54px; height: 40px; flex: none; color: var(--gold); }
.brand span { font: 600 clamp(18px, 4.8vw, 24px)/1.1 var(--serif); letter-spacing: 0.06em; white-space: nowrap; }
.menu-btn { display: inline-grid; place-items: center; width: 56px; height: 48px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 50px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, background-color .2s ease; }
.menu-btn .bars { position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; }
.menu-btn .bars::before { top: -13px; }
.menu-btn .bars::after { top: 13px; }
.menu-open .menu-btn .bars { background: transparent; }
.menu-open .menu-btn .bars::before { transform: translateY(13px) rotate(45deg) scaleX(.6); }
.menu-open .menu-btn .bars::after { transform: translateY(-13px) rotate(-45deg) scaleX(.6); }

.site-menu {
  position: fixed; inset: calc(87px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 39;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(150, 110, 52, 0.22), transparent 70%),
    var(--bg);
  padding: 24px var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.menu-open .site-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.site-menu a:not(.btn) { display: flex; justify-content: space-between; align-items: baseline; font: 500 32px/1.2 var(--serif); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.site-menu a:not(.btn) small { font: 500 11.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.site-menu a:not(.btn):hover { color: var(--gold); }
.site-menu .btn { margin-top: 30px; }
.menu-meta { margin-top: 26px; display: grid; gap: 4px; color: var(--muted); font-size: 15.5px; }
.site-menu .menu-meta a { display: inline; font: 400 17px/1.5 var(--sans); padding: 0; border: 0; color: var(--ink); }

@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .site-menu { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; align-items: center; gap: 30px; padding: 0; background: none; overflow: visible; transition: none; }
  .site-menu a:not(.btn) { font: 500 12.5px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; padding: 8px 0; border: 0; }
  .site-menu a:not(.btn) small { display: none; }
  .site-menu .btn { margin-top: 0; }
  .menu-meta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse 72% 58% at 50% 20%, rgba(160, 118, 56, 0.55), rgba(92, 66, 30, 0.2) 48%, transparent 76%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; padding-block: 88px 170px; }
.pill { display: inline-block; padding: 16px 36px; border: 1px solid var(--gold); border-radius: 999px; font: 400 13px/1 var(--sans); letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); }
.hero h1 { max-width: 12ch; }
.tagline { font: italic 400 clamp(24px, 5.2vw, 34px)/1.2 var(--serif); letter-spacing: 0.24em; color: var(--gold); margin-top: -6px; }
.hero .lead { max-width: 34ch; margin-inline: auto; font-size: 19.5px; color: var(--ink); opacity: .88; }
.hero-actions { display: grid; gap: 16px; width: 100%; max-width: 680px; margin-top: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: 15px; letter-spacing: 0.05em; }
.hero-facts span { display: inline-flex; gap: 8px; align-items: baseline; }
.hero-facts b { font-weight: 500; color: var(--gold); letter-spacing: .26em; font-size: 11.5px; text-transform: uppercase; }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48%; z-index: 0; pointer-events: none; }

/* Photos that change by themselves, under a night shade that keeps the gold glow and the type readable. */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.8s ease; }
.slide.is-on { opacity: 1; animation: slow-zoom 9s linear both; }
@keyframes slow-zoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.hero-shade {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 24%, rgba(160, 118, 56, 0.42), transparent 72%),
    linear-gradient(180deg, rgba(15, 12, 9, 0.78) 0%, rgba(15, 12, 9, 0.6) 38%, rgba(15, 12, 9, 0.72) 70%, rgba(15, 12, 9, 0.94) 100%);
}
.slide-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding-inline: var(--gutter) var(--gutter-r); }
.slide-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: rgba(15, 12, 9, .6); color: var(--gold); cursor: pointer; }
.slide-toggle:hover { border-color: var(--gold); }
.slide-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.slide-toggle .i-play { display: none; }
.is-paused .slide-toggle .i-play { display: block; }
.is-paused .slide-toggle .i-pause { display: none; }
.slide-dots { display: flex; gap: 2px; }
.slide-dots button { position: relative; width: 34px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.slide-dots button::before, .slide-dots button::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; border-radius: 2px; background: rgba(242, 233, 216, .28); }
.slide-dots button::after { right: auto; width: 0; background: var(--gold); }
.slide-dots button[aria-current='true']::after { width: calc(100% - 8px); }
.is-playing .slide-dots button[aria-current='true']::after { width: 0; animation: slide-progress var(--slide-ms, 6000ms) linear forwards; }
@keyframes slide-progress { to { width: calc(100% - 8px); } }
.slide-caption { flex-basis: 100%; font-size: 13.5px; letter-spacing: .08em; color: var(--muted); min-height: 1.5em; }
/* Phones: keep the controls on the left, clear of the round WhatsApp button. */
@media (max-width: 719px) {
  .slide-controls { justify-content: flex-start; padding-right: 104px; bottom: 30px; gap: 4px 10px; }
  .slide-dots button { width: 28px; }
  .slide-caption { text-align: left; padding-left: 4px; }
}
@media (min-width: 720px) { .slide-caption { flex-basis: auto; } }
@media (min-width: 720px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-block: 120px 210px; }
}

/* A strip of the real place right under the hero. */
.hero .btn-line { background: rgba(15, 12, 9, 0.55); }
.strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; padding-block: 0 56px; }
.strip .ph { aspect-ratio: 3 / 4; }
.strip .ph:first-child { aspect-ratio: auto; }
@media (max-width: 719px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

/* ---------- Photos ---------- */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--rule-soft); background: var(--bg-raise); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(10, 8, 6, .82)); font-size: 13.5px; letter-spacing: .04em; color: var(--ink); }
@media (hover: hover) { .ph:hover img { transform: scale(1.03); } }

/* ---------- Menu (food), set like a printed menu ---------- */
.menu-board { display: grid; gap: 56px; }
.menu-list { display: grid; gap: 0; border-top: 1px solid var(--rule-soft); }
.menu-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule-soft); }
.menu-item .ph { width: 96px; height: 96px; border-radius: 50%; }
.menu-item h3 { font-size: 23px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.menu-item .tag { font: 500 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 10px; }
.menu-item p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.menu-feature { display: grid; gap: 20px; align-content: start; }
.menu-feature .ph { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .menu-feature .ph { aspect-ratio: 4 / 5; } }
.price-card { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-raise); }
.price-card .big { font: 600 clamp(30px, 5vw, 40px)/1.1 var(--serif); color: var(--ink); }
.price-card .big small { font: 300 16px var(--sans); color: var(--muted); letter-spacing: 0; }
.price-card p { color: var(--muted); font-size: 15.5px; }
.also { margin-top: 28px; display: grid; gap: 14px; }
.also p { color: var(--muted); }
@media (min-width: 900px) {
  .menu-board { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .menu-item { grid-template-columns: 112px minmax(0, 1fr); gap: 26px; }
  .menu-item .ph { width: 112px; height: 112px; }
}

/* ---------- Label / value rows (trek, visit) ---------- */
.rows { display: grid; border-top: 1px solid var(--rule-soft); }
.rows > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.rows dt { font: 500 12px/1.5 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.rows dd { margin: 0; font-size: 18.5px; color: var(--ink); overflow-wrap: anywhere; }
.rows dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.rows dd a:hover { border-color: var(--gold); }
.rows small { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 380px) { .rows > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Experiences (day treks) ---------- */
.split { display: grid; gap: 44px; }
.split-text { display: grid; gap: 24px; align-content: start; }
.split-text .btn { justify-self: start; }
.trek-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trek-photos .ph { aspect-ratio: 3 / 4; }
.trek-photos .ph-wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }

/* ---------- Terrace ---------- */
.terrace-photos { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.terrace-photos .ph:first-child { grid-row: 1 / span 2; }
.terrace-photos .ph:not(:first-child) { aspect-ratio: 4 / 5; }
.quote { font: italic 400 clamp(22px, 3.4vw, 28px)/1.45 var(--serif); color: var(--ink); padding-left: 22px; border-left: 1px solid var(--gold); }

/* ---------- Article cards ---------- */
.cards { display: grid; gap: 40px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 14px; align-content: start; }
.card .ph { aspect-ratio: 4 / 3; }
.card .kicker { font: 500 11.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 21px; line-height: 1.28; transition: color .2s ease; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover h3 { color: var(--gold); }
.card p { color: var(--muted); font-size: 16px; }
.card a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 2px; }
.read-all { margin-top: 44px; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: 40px; }
.visit .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.visit-photo { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; } .visit-photo { aspect-ratio: 4 / 5; } }

/* ---------- Booking form ---------- */
.book-section { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(150, 110, 52, 0.2), transparent 70%), var(--bg); }
.book-form { display: grid; gap: 24px; max-width: 760px; }
.field { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font: 500 12.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 64px; padding: 0 22px;
  background: var(--bg-raise); border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink); font: 400 18px/1.3 var(--sans);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; padding: 18px 22px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23f2e9d8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center; padding-right: 54px;
}
.field input[type='date'] { padding-right: 18px; }
.field input[type='date']::-webkit-calendar-picker-indicator { filter: invert(.85) sepia(.5) saturate(2) hue-rotate(5deg); opacity: .85; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 91, .18); }
.field input:user-invalid { border-color: #d0794f; }
.two { display: grid; gap: 24px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }

.choice { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.choice label { display: grid; place-items: center; min-height: 58px; padding: 10px; font: 500 13px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); cursor: pointer; background: var(--bg-raise); transition: background-color .2s ease, color .2s ease; text-align: center; }
.choice label + input + label { border-left: 1px solid var(--rule); }
.choice input:checked + label { background: var(--gold); color: var(--on-gold); }
.choice input:focus-visible + label { outline: 2px solid var(--gold-hi); outline-offset: -4px; }

.stepper { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); }
.stepper button { border: 0; background: none; color: var(--gold); font: 300 28px/1 var(--sans); cursor: pointer; min-height: 62px; }
.stepper button:hover { background: rgba(201, 168, 91, .1); }
.stepper input { border: 0; border-left: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); border-radius: 0; text-align: center; min-height: 62px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }

.estimate { color: var(--muted); font-size: 15.5px; min-height: 1.7em; }
.estimate b { color: var(--ink); font-weight: 500; }
.form-note { color: var(--faint); font-size: 14.5px; }
.form-error { color: #e39a72; font-size: 15.5px; }

/* ---------- Articles ---------- */
.article-page { padding-bottom: 48px; }
.article-head { display: grid; gap: 18px; padding-block: 60px 40px; max-width: 840px; }
.crumbs { font: 500 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.crumbs a { text-decoration: none; color: var(--gold); }
.crumbs a:hover { text-decoration: underline; }
.article-head h1 { font-size: clamp(36px, 6.6vw, 62px); }
.article-head .lead { font-size: 19.5px; }
.byline { color: var(--faint); font-size: 14.5px; letter-spacing: .04em; }
.article-hero { margin: 0 auto 52px; }
.article-hero .ph { aspect-ratio: 16 / 9; }
.prose { max-width: 700px; font-size: 18.5px; line-height: 1.75; color: #e6dcc9; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child::first-letter { float: left; font: 600 4.2em/.82 var(--serif); color: var(--gold); padding: .06em .12em 0 0; }
.prose h2 { margin-top: 1.9em; font-size: clamp(27px, 4vw, 34px); }
.prose h3 { margin-top: 1.6em; font-size: 22px; }
.prose h3 + p { margin-top: .5em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose-figure { margin: 2.2em 0; }
.prose-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule-soft); }
.prose-figure figcaption { margin-top: 10px; color: var(--faint); font-size: 14.5px; }
.tfng-inline { font-family: 'Tifinagh', var(--sans); }
.book.article-book {
  max-width: 700px; margin-top: 60px; padding: 34px 30px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: radial-gradient(ellipse 80% 90% at 50% 0%, rgba(150, 110, 52, 0.28), transparent 70%), var(--bg-raise);
  display: grid; gap: 16px;
}
.book-title { font-size: clamp(27px, 4vw, 34px); }
.book p { color: var(--muted); }
.book .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.sources { max-width: 700px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--rule); }
.sources h2 { font: 500 12.5px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.sources ul { margin-top: 16px; display: grid; gap: 10px; font-size: 15.5px; }
.sources a { color: var(--muted); text-underline-offset: 3px; }
.sources a:hover { color: var(--ink); }
.more h2 { margin-bottom: 40px; }
.articles-list .cards { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px calc(120px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); font-size: 15.5px; }
.footer-inner { display: grid; justify-items: center; gap: 16px; }
.footer-inner .ornament { width: 100%; margin-bottom: 26px; }
.footer-logo img { width: 88px; height: 88px; border-radius: 50%; }
.footer-name { font: 600 22px/1.2 var(--serif); letter-spacing: .06em; color: var(--ink); }
.footer-amazigh { color: var(--gold); font-size: 20px; display: flex; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.site-footer a { color: var(--muted); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 34px; height: 34px; fill: currentColor; }
.menu-open .wa-float { display: none; }

/* ---------- Motion: one orchestrated hero, quiet reveals; nothing is hidden without JS ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .menu-item[data-reveal]:nth-child(2), .js .card[data-reveal]:nth-child(2) { transition-delay: .07s; }
.js .menu-item[data-reveal]:nth-child(3), .js .card[data-reveal]:nth-child(3) { transition-delay: .14s; }
.js .menu-item[data-reveal]:nth-child(4), .js .card[data-reveal]:nth-child(4) { transition-delay: .21s; }
.hero-inner > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; }
.hero-inner > :nth-child(5) { animation-delay: .4s; }
.hero-inner > :nth-child(6) { animation-delay: .5s; }
.hero-mountains .far { animation: drift 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-mountains .near { animation: drift 1.6s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *, .hero-mountains .far, .hero-mountains .near, .slide.is-on { animation: none; }
  .slide { transition: none; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .site-menu, .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after, .ph img { transition: none; }
}
