/* ============================================================
   Le Bourg Murat — Restaurant à La Plaine des Cafres
   Design system: warm orange & amber, Playfair Display + Manrope
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --primary: #fd9800;
  --primary-600: #e98c00;
  --primary-700: #c67600;
  --amber-50: #fff8ee;
  --amber-100: #fdeecf;

  /* Neutrals — warm ink */
  --ink-900: #201812;
  --ink-800: #2c221a;
  --ink-600: #5a4d40;
  --ink-400: #8a7c6d;
  --cream: #fffaf3;
  --cream-2: #fdf3e4;
  --surface: #ffffff;
  --line: #efe4d4;

  /* Semantic */
  --bg: var(--cream);
  --text: var(--ink-900);
  --muted: var(--ink-600);
  --on-primary: #ffffff;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (8pt) */
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  /* Radius & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(44, 34, 26, .06);
  --shadow-md: 0 14px 40px -12px rgba(44, 34, 26, .22);
  --shadow-lg: 0 30px 80px -24px rgba(93, 58, 0, .35);

  --container: 1200px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
p { color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 10vw, var(--sp-8)); position: relative; }
.section--tint { background: var(--cream-2); }
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head p { margin-top: var(--sp-3); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  min-height: 48px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  background: var(--btn-bg);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -8px rgba(253, 152, 0, .6);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s ease;
  will-change: transform;
}
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover { transform: translateY(-3px); background: var(--primary-600); box-shadow: 0 18px 34px -10px rgba(253, 152, 0, .7); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { background: var(--surface); color: var(--primary-700); box-shadow: inset 0 0 0 2px var(--primary); }
.btn--light {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--primary-700); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--primary-700); outline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-700); outline-offset: 3px; border-radius: 6px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--primary), var(--primary-700));
  z-index: 200;
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: 18px;
}
.header.is-scrolled {
  background: rgba(255, 250, 243, .88);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: 10px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  background: #fff;
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  width: auto; height: 44px;
  object-fit: contain;
}
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-800);
  transition: color .2s ease, background .2s ease;
}
.header:not(.is-scrolled) .nav__links a { color: rgba(255,255,255,.92); }
.header:not(.is-scrolled) .brand__name { color: #fff; }
.nav__links a:hover { color: var(--primary-700); background: var(--amber-100); }
.header:not(.is-scrolled) .nav__links a:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; color: currentColor; align-items: center; justify-content: center; }
.header:not(.is-scrolled) .nav__toggle { color: #fff; }
.header.is-scrolled .nav__toggle { color: var(--ink-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: -8% 0 0 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16) translateY(-2%); } }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(24,16,8,.55) 0%, rgba(24,16,8,.25) 40%, rgba(24,16,8,.78) 100%),
    radial-gradient(120% 80% at 15% 20%, rgba(198,118,0,.35), transparent 60%);
}
.hero__inner { max-width: 760px; padding-block: 140px 90px; }
.hero .eyebrow { color: #ffd699; }
.hero .eyebrow::before { background: #ffb84d; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  color: #fff;
  margin: 18px 0 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero h1 .accent { color: #ffbb52; font-style: italic; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.9); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--sp-5); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: var(--sp-6); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.hero__meta span { font-size: .85rem; color: rgba(255,255,255,.75); letter-spacing: .02em; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.8); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll span { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.hero__scroll span::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: #fff;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0%,100% { opacity: 0; top: 8px; } 40% { opacity: 1; top: 16px; } }

/* ---------- Split feature sections (values) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 9vw, 110px); }
.feature--reverse .feature__media { order: 2; }
.feature__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2;
}
.feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.feature__media:hover img { transform: scale(1.06); }
.feature__badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(6px);
  color: var(--primary-700);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
}
.feature__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.6rem);
  color: var(--amber-100);
  line-height: .8;
  display: block;
  margin-bottom: 6px;
}
.feature__body h3 { margin-bottom: 14px; }
.feature__body p { font-size: 1.08rem; margin-bottom: 26px; }

/* ---------- Engagements ---------- */
.pledge { position: relative; overflow: hidden; }
.pledge__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.pledge__cards { display: grid; gap: 18px; }
.pledge__card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.pledge__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pledge__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--primary-700);
  background: var(--amber-100);
}
.pledge__card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.pledge__card p { font-size: .98rem; margin: 0; }
.pledge__visual { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/4; }
.pledge__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: var(--sp-6); }
.stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary-700); display: block; line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); margin-top: 8px; display: block; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review__stars { display: flex; gap: 3px; color: var(--primary); }
.review p { color: var(--ink-800); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff; font-weight: 700; font-family: var(--font-display);
  flex: none;
}
.review__author b { font-size: .98rem; }
.review__author span { font-size: .84rem; color: var(--muted); display: block; }

/* ---------- Location ---------- */
.location__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.location__info { display: flex; flex-direction: column; gap: 8px; }
.location__list { display: grid; gap: 4px; margin: 22px 0 30px; }
.location__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.location__item:last-child { border-bottom: none; }
.location__item svg { flex: none; color: var(--primary-700); margin-top: 2px; }
.location__item b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); margin-bottom: 2px; }
.location__item a, .location__item span { color: var(--ink-800); font-weight: 600; }
.location__item a:hover { color: var(--primary-700); }
.location__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; border: 1px solid var(--line); }
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(1.05); }

/* ---------- CTA banner ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(198,118,0,.94), rgba(32,24,18,.82)); }
.cta-band__inner { padding: clamp(44px, 7vw, 80px); text-align: center; display: grid; place-items: center; gap: 22px; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 520px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.72); padding-block: var(--sp-7) var(--sp-4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { background: #fff; border-radius: 12px; padding: 8px 14px; height: 54px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(255,255,255,.6); max-width: 320px; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { display: grid; gap: 12px; }
.footer a { color: rgba(255,255,255,.72); transition: color .2s ease; }
.footer a:hover { color: var(--primary); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }

/* ============================================================
   Scroll motion — reveal system
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .header.nav-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 16px; right: 16px;
    background: var(--surface); border-radius: var(--r-md);
    padding: 12px; box-shadow: var(--shadow-lg); gap: 4px; margin-top: 10px;
  }
  .header.nav-open .nav__links a { color: var(--ink-800); }
  .feature, .pledge__grid, .location__grid, .footer__grid { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .pledge__visual { aspect-ratio: 16/10; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__inner { padding-block: 120px 80px; }
  .hero__meta { gap: 18px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta .btn { width: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}
