/* Le Pavillon Kniza — lepavillonkniza.com
   A private three-bedroom riad in the Marrakech Medina.
   Identity: tadelakt walls, candlelight and cedar — warm limestone grounds,
   deep olive-black ink, saffron accent. Deliberately more intimate and
   domestic than a hotel site: generous air, few borders, photographs
   allowed to bleed to the edge of their columns. */

@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/marcellus.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/karla-var.woff2') format('woff2');
}

:root {
  --bg: #fbf8f2;
  --bg-warm: #f3ece0;
  --bg-dark: #221f18;
  --ink: #23201a;
  --ink-dim: #6b6354;
  --ink-inverse: #f6f1e7;
  --ink-inverse-dim: #b8ae9b;
  --accent: #a9733a;
  --accent-deep: #8a5a29;
  --accent-light: #d8a35f;
  --line: rgba(35, 32, 26, 0.15);
  --line-soft: rgba(35, 32, 26, 0.08);
  --shadow: 0 18px 50px rgba(35, 32, 26, 0.15);
  --radius: 3px;
  color-scheme: light; /* deliberate single-theme: sunlit riad */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--ink-dim); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #74491f; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.on-dark .btn-ghost { border-color: rgba(246, 241, 231, 0.32); color: var(--ink-inverse); }
.on-dark .btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px rgba(35, 32, 26, 0.05);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.logo-text {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-text small {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
}
.site-nav a:not(.btn):hover { color: var(--accent-deep); }
.lang-switch {
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- hero ---------- */
.hero { padding: 120px 0 0; }
.hero-copy { max-width: 820px; padding-top: 24px; padding-bottom: 44px; }
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-sub {
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--ink-dim);
  max-width: 62ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.93rem;
  color: var(--ink-dim);
}
.facts-row strong { color: var(--ink); font-weight: 600; }
.facts-row .dot { color: var(--line); }

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

/* ---------- bands ---------- */
.band { padding: 92px 0; }
.band-warm { background: var(--bg-warm); }
.band-dark {
  background: var(--bg-dark);
  color: var(--ink-inverse);
}
.band-dark h2, .band-dark h3 { color: var(--ink-inverse); }
.band-dark .muted, .band-dark p { color: var(--ink-inverse-dim); }
.band-dark .eyebrow { color: var(--accent-light); }
.band-head { max-width: 68ch; margin-bottom: 48px; }
.band-head h2 { margin: 14px 0 18px; }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-copy h2 { margin: 14px 0 20px; }
.split-copy p + p { margin-top: 16px; }
.split-copy .btn { margin-top: 28px; }
.split-media img { width: 100%; }

/* ---------- the house: feature list ---------- */
.house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.house-item {
  background: var(--bg);
  padding: 30px 28px 34px;
}
.band-warm .house-item { background: var(--bg-warm); }
.house-item h3 { margin-bottom: 8px; }
.house-item p { color: var(--ink-dim); font-size: 0.96rem; }
.house-item .num {
  display: block;
  font-family: 'Marcellus', Georgia, serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

/* ---------- rooms ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.room figcaption { padding-top: 18px; }
.room figcaption h3 { margin-bottom: 6px; }
.room figcaption p { color: var(--ink-dim); font-size: 0.95rem; }
.room img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* a pair of supporting shots under the three room cards */
.room-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 34px;
}
.room-pair figure { margin: 0; }
.room-pair img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.room-pair figcaption {
  padding-top: 14px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}
.mosaic-col { display: grid; gap: 20px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .tall { aspect-ratio: 3 / 4; }
.mosaic .wide { aspect-ratio: 4 / 3; }

/* ---------- practical / stay details ---------- */
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 48px;
  margin: 0;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.detail-list dt { color: var(--ink-dim); }
.detail-list dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.walk-list { list-style: none; padding: 0; margin: 26px 0 0; }
.walk-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
}
.walk-list span:last-child { color: var(--ink-dim); white-space: nowrap; }

/* ---------- booking ---------- */
.booking-card {
  background: var(--bg-warm);
  padding: 52px 44px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.band-dark .booking-card {
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.14);
}
.booking-card h2 { margin: 14px 0 18px; }
.booking-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-inverse-dim);
  padding: 64px 0 40px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
}
.site-footer h3 {
  font-size: 0.72rem;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-inverse);
  margin-bottom: 16px;
}
.site-footer a { color: var(--ink-inverse); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-brand p { margin-top: 14px; max-width: 42ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.85rem;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .location-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-media { order: 0; }
  .room-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .room-pair { gap: 26px; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .tall { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { aspect-ratio: 3 / 2; }
  .hero-media img { object-position: center 58%; }
}
@media (max-width: 720px) {
  .site-nav a:not(.btn):not(.lang-switch) { display: none; }
  .site-nav { gap: 12px; }
  .band { padding: 68px 0; }
  .hero { padding-top: 104px; }
  .room-grid, .room-pair { grid-template-columns: 1fr; }
  .booking-card { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .logo-text { font-size: 0.95rem; }
}

/* a split whose media column stacks two shots — crop both so the
   column stays in step with the copy beside it */
.split-media:has(img + img) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-media img + img { margin-top: 20px; }

/* ---------- map ---------- */
.map-wrap { margin-top: 60px; }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-warm);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.82) contrast(1.02);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin-top: 26px;
}
.map-legend div { display: flex; align-items: baseline; gap: 10px; }
.map-legend .pin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  transform: translateY(-1px);
}
.map-legend .pin-a { background: var(--accent-deep); }
.map-legend .pin-b { background: var(--ink-dim); }
.map-legend strong { font-weight: 600; }
.map-legend span:last-child { color: var(--ink-dim); font-size: 0.95rem; }
.map-note { margin-top: 18px; max-width: 70ch; font-size: 0.96rem; }
.map-wrap .btn { margin-top: 24px; }

@media (max-width: 720px) {
  .map-frame { aspect-ratio: 4 / 3; }
  .map-legend { gap: 12px 0; flex-direction: column; }
  .map-wrap { margin-top: 44px; }
}
