/* ============================================================
   La Maison des Amis Fès — global stylesheet
   Hand-written vanilla CSS. Mobile-first.
   Palette: warm off-white / near-black + bronze accent.
   ============================================================ */

:root {
  --bg: #faf7f1;
  --bg-alt: #f2ece1;
  --ink: #211d18;
  --ink-soft: #5c554b;
  --accent: #a97b3f;
  --accent-deep: #8a5f2a;
  --hairline: rgba(33, 29, 24, 0.14);
  --dark-bg: #211d18;
  --dark-ink: #efe8db;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --maxw: 68rem;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }

p { max-width: 62ch; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.muted { color: var(--ink-soft); }
.hairline { border-top: 1px solid var(--hairline); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.85rem; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
}
.brand-mark { color: var(--accent); font-size: 0.7rem; transform: translateY(-2px); }
.site-nav { display: none; gap: 1.75rem; }
.site-nav a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding-block: .25rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.site-nav a:hover { color: var(--accent-deep); border-color: var(--accent); }

.nav-toggle {
  background: none; border: 1px solid var(--hairline); border-radius: var(--radius);
  width: 2.6rem; height: 2.4rem; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
  background: var(--bg); padding: 0.5rem 1.25rem 1rem;
}
.mobile-nav a {
  padding: 0.7rem 0; color: var(--ink); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (min-width: 820px) {
  .site-nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 46rem);
  display: grid; place-items: center;
  text-align: center; color: var(--dark-ink);
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(169, 123, 63, 0.35), transparent 60%),
    radial-gradient(90% 80% at 20% 90%, rgba(138, 95, 42, 0.28), transparent 55%),
    linear-gradient(160deg, #262119 0%, var(--dark-bg) 60%, #191512 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23efe8db' stroke-width='1'%3E%3Cpath d='M36 2 L52 18 L36 34 L20 18 Z'/%3E%3Cpath d='M36 38 L52 54 L36 70 L20 54 Z'/%3E%3Cpath d='M0 20 L16 36 L0 52'/%3E%3Cpath d='M72 20 L56 36 L72 52'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}
.hero-inner { position: relative; padding: 6rem 1.25rem; }
.hero-kicker {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #d8bd93; margin-bottom: 1.4rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub {
  margin: 1.5rem auto 0; color: rgba(239, 232, 219, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem); max-width: 48ch;
}
.hero-rule {
  width: 64px; height: 1px; background: var(--accent);
  margin: 2rem auto 0;
}
.scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(239, 232, 219, 0.55);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.kicker {
  display: block; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 0.9rem;
}
.lede { color: var(--ink-soft); font-size: clamp(1.02rem, 2vw, 1.15rem); margin-top: 1rem; }

.two-col {
  display: grid; gap: 2.5rem;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* Decorative panel (photo placeholder slot) */
.visual-panel {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(100% 100% at 80% 0%, rgba(169, 123, 63, 0.22), transparent 55%),
    linear-gradient(150deg, #e8dfcf, #d9cdb6 60%, #cbb995);
  position: relative; overflow: hidden;
}
.visual-panel::after {
  content: ''; position: absolute; inset: 12%; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%238a5f2a' stroke-width='1'%3E%3Cpath d='M30 3 L47 20 L30 37 L13 20 Z'/%3E%3Ccircle cx='30' cy='43' r='11'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px 44px;
}
.visual-panel figcaption {
  position: absolute; bottom: 0.9rem; left: 1rem; right: 1rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); z-index: 1;
}

/* ---------- Highlight cards ---------- */
.cards {
  display: grid; gap: 1.25rem;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(33, 29, 24, 0.35); }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 1.1rem; color: var(--accent);
}
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Gallery (CSS-only tiles) ---------- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.tile {
  aspect-ratio: 1; border-radius: var(--radius);
  border: 1px solid var(--hairline); overflow: hidden; position: relative;
  transition: transform .3s ease;
}
.tile:hover { transform: scale(1.02); }
.tile::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%238a5f2a' stroke-width='1'%3E%3Cpath d='M24 4 L40 20 L24 36 L8 20 Z'/%3E%3Cpath d='M24 36 L40 52 L24 44 L8 52 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 36px 36px; opacity: 0.3;
}
.tile--1 { background: linear-gradient(140deg, #e9dfcc, #cbb894); }
.tile--2 { background: linear-gradient(140deg, #ded2ba, #b39a6e); }
.tile--3 { background: linear-gradient(140deg, #f0e8d8, #d3bf98); }
.tile--4 { background: linear-gradient(140deg, #d8cab0, #a8895c); }
.tile-label {
  position: absolute; inset-inline: 0; bottom: 0.6rem;
  text-align: center; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  border-left: 2px solid var(--accent); padding-left: 1.25rem;
}
.review blockquote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; }
.review cite {
  display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark-bg); color: var(--dark-ink);
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.cta-band h2 { color: var(--dark-ink); }
.cta-band p { margin: 1rem auto 2rem; color: rgba(239, 232, 219, 0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  border-radius: 999px; text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn--primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(239, 232, 219, 0.4); color: var(--dark-ink); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-alt);
}
.breadcrumb { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.breadcrumb a { color: inherit; }
.breadcrumb [aria-current] { color: var(--accent-deep); }

/* ---------- Rooms ---------- */
.rooms-list { display: grid; gap: 2rem; }
.room {
  display: grid; gap: 1.5rem; padding: 1.5rem;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.room:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(33, 29, 24, 0.3); }
@media (min-width: 800px) { .room { grid-template-columns: 220px 1fr; } }
.room-visual { aspect-ratio: 1; border-radius: var(--radius); position: relative; overflow: hidden; border: 1px solid var(--hairline); }
.room-visual::before {
  content: ''; position: absolute; inset: 0; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect x='8' y='8' width='32' height='32' fill='none' stroke='%238a5f2a' transform='rotate(45 24 24)'/%3E%3Ccircle cx='24' cy='24' r='7' fill='none' stroke='%238a5f2a'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 34px 34px;
}
.room:nth-child(1) .room-visual { background: linear-gradient(145deg, #ecdfc6, #c9ad79); }
.room:nth-child(2) .room-visual { background: linear-gradient(145deg, #e3d5bb, #ab8f61); }
.room:nth-child(3) .room-visual { background: linear-gradient(145deg, #efe6d2, #d0b98c); }
.room ul { list-style: none; margin-top: 0.75rem; display: grid; gap: 0.35rem; }
.room li { font-size: 0.92rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.room li::before { content: '◆'; position: absolute; left: 0; top: 0.05em; color: var(--accent); font-size: 0.6rem; }
.placeholder-note { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; margin-top: 0.5rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.4em; }
.form-status.is-error { color: #a03b2a; }
.form-status.is-ok { color: var(--accent-deep); }

.info-card {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--bg-alt); padding: 1.75rem;
}
.info-card p + p { margin-top: 0.9rem; }
.map-frame {
  margin-top: 1.5rem; border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg); color: rgba(239, 232, 219, 0.78);
  padding-top: clamp(2.5rem, 6vw, 4rem); font-size: 0.92rem;
}
.footer-grid {
  display: grid; gap: 2rem; padding-bottom: 2.5rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--dark-ink); margin-bottom: 0.4rem; }
.footer-title {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #d8bd93; margin-bottom: 0.7rem;
}
.site-footer a { color: rgba(239, 232, 219, 0.9); }
.site-footer a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(239, 232, 219, 0.14);
  padding-block: 1.25rem; font-size: 0.78rem; color: rgba(239, 232, 219, 0.5);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
