/* ============================================
   MAISON VERTE — Design system
   Palette : terres, vert sauge, crème, terracotta
============================================ */
:root {
  --green: #4A5D3A;
  --green-dark: #36452A;
  --green-light: #6B8053;
  --cream: #F5EFE6;
  --cream-light: #FAF6EF;
  --warm-white: #FBF8F1;
  --text: #1F1A14;
  --text-muted: #6B5F52;
  --stone: #8C8275;
  --terracotta: #C77B4A;
  --terracotta-dark: #A86436;
  --gold: #B8954A;
  --line: #E2D8C7;
  --shadow-sm: 0 2px 6px rgba(31, 26, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 26, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 26, 20, 0.12);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream-light);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--warm { background: var(--warm-white); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: block;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--green); color: var(--cream-light); }
.btn--primary:hover { background: var(--green-dark); }
.btn--secondary { background: rgba(255,255,255,0.94); color: var(--text); }
.btn--ghost { color: var(--text); border: 1px solid var(--line); padding: 15px 26px; background: transparent; }
.btn--ghost:hover { background: var(--cream); }

/* ============================================
   NAV
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x); z-index: 50;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
.nav--scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav__brand .dot { color: var(--terracotta); }
.nav__links { display: none; gap: 36px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  display: inline-flex; padding: 10px 18px; font-size: 13px;
  background: var(--green); color: var(--cream-light);
  border-radius: 999px; font-weight: 500;
}
@media (min-width: 880px) { .nav__links { display: flex; } }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #2A2419;
}
.hero__video, .hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__fallback { z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,26,20,0.45) 0%, rgba(31,26,20,0.25) 40%, rgba(31,26,20,0.75) 100%);
  z-index: 1;
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--cream-light);
  padding: 100px var(--pad-x) 60px;
  max-width: 900px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 8px 18px; border-radius: 999px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero__title {
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--cream-light);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.5s forwards;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
}
.hero__sub {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 300;
  color: rgba(245, 239, 230, 0.9);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.8s forwards;
}
.hero__ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.1s forwards;
}
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  color: rgba(245, 239, 230, 0.7);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards;
}
.hero__scroll-line {
  width: 1px; height: 36px; background: rgba(245, 239, 230, 0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

/* ============================================
   ABOUT
============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.about__title {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 24px;
}
.about__text {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 540px;
}
.about__text strong { color: var(--text); font-weight: 500; }
.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about__image:hover img { transform: scale(1.04); }
.about__image-tag {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--cream-light);
  padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
}
.about__image-tag strong { color: var(--terracotta); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.02em; }

/* ============================================
   MENU
============================================ */
.menu__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.menu__title {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 16px;
}
.menu__intro {
  font-size: 17px; color: var(--text-muted);
}
.menu__tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 48px;
}
.menu__tab {
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}
.menu__tab:hover { background: var(--cream); color: var(--text); }
.menu__tab--active {
  background: var(--green); color: var(--cream-light);
  border-color: var(--green);
}
.menu__grid {
  display: none;
  grid-template-columns: 1fr;
  gap: 0 56px;
}
.menu__grid--active { display: grid; }
@media (min-width: 720px) {
  .menu__grid--active { grid-template-columns: 1fr 1fr; }
}
.menu__item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.menu__item:last-child { border-bottom: none; }
.menu__item-name {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 500;
  margin-bottom: 4px;
}
.menu__item-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.5;
}
.menu__item-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta);
  margin-right: 8px;
}
.menu__item-price {
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 500;
  color: var(--terracotta);
  white-space: nowrap;
}

/* ============================================
   GALLERY
============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
  }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(4) { grid-column: span 2; }
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream);
}
@media (min-width: 720px) {
  .gallery__item { aspect-ratio: auto; }
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials__title {
  text-align: center;
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 64px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 880px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.testimonial {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial__quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 24px;
}
.testimonial__quote::before { content: '\201C'; color: var(--terracotta); font-size: 36px; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial__photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: var(--cream);
}
.testimonial__name { font-size: 14px; font-weight: 500; }
.testimonial__role { font-size: 12px; color: var(--text-muted); }

/* ============================================
   RESERVATION
============================================ */
.reservation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 880px) {
  .reservation__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.reservation__title {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-bottom: 16px;
}
.reservation__text {
  font-size: 17px; color: var(--text-muted);
  margin-bottom: 24px;
}
.reservation__info {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 32px;
}
.reservation__info-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px;
}
.reservation__info-item svg {
  flex-shrink: 0; color: var(--terracotta); margin-top: 2px;
}
.reservation__info-item strong {
  display: block; font-weight: 500; color: var(--text);
  margin-bottom: 2px;
}
.reservation__info-item span { color: var(--text-muted); font-size: 14px; }

.form {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.form__row {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 18px;
}
@media (min-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: 2fr 1fr 1fr; }
}
.form__field { display: flex; flex-direction: column; }
.form__label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit; font-size: 15px;
  color: var(--text);
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--green);
  background: white;
}
.form__submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.form__success {
  display: none;
  padding: 20px;
  background: rgba(74, 93, 58, 0.1);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green-dark);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}
.form__success--show { display: block; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #1F1A14;
  color: rgba(245, 239, 230, 0.75);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; }
}
.footer__brand {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--cream-light);
  margin-bottom: 12px;
  font-weight: 400;
}
.footer__brand .dot { color: var(--terracotta); }
.footer__tag { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer__title {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__list a, .footer__list li {
  font-size: 14px; color: rgba(245, 239, 230, 0.75);
  transition: color 0.2s;
}
.footer__list a:hover { color: var(--cream-light); }
.footer__bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
.footer__social a:hover { background: rgba(245, 239, 230, 0.1); border-color: rgba(245, 239, 230, 0.4); }

/* ============================================
   REVEAL ON SCROLL
============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal--in { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ============================================
   EDITOR BANNER (visible only for editors)
============================================ */
.editor-banner {
  display: none;
  position: fixed; top: 80px; right: 24px;
  background: var(--terracotta); color: white;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 60;
  text-decoration: none;
}
.editor-banner--show { display: inline-flex; align-items: center; gap: 8px; }
.editor-banner:hover { background: var(--terracotta-dark); color: white; }
