:root {
  --page-bg: #050505;
  --page-bg-mid: #0a0a0a;
  --page-bg-deep: #000000;
  --surface: #111111;
  --surface-2: #171717;
  /* Crème & marron (remplace blanc froid / gris) */
  --cream: #f5f0e8;
  --cream-mid: #ebe4d8;
  --cream-dim: #d8cfc0;
  --marron: #6b4f3d;
  --marron-deep: #3d2a22;
  --marron-light: #9a7b66;
  --surface-border: rgba(245, 240, 232, 0.07);
  --surface-border-strong: rgba(245, 240, 232, 0.14);
  --text: #f5f0e8;
  --muted: #b5a99a;
  --muted-dim: #8a7c6e;
  --primary: #f5f0e8;
  --primary-dim: #c9b8a8;
  --primary-soft: rgba(245, 240, 232, 0.14);
  --accent: #c9a882;
  --border: var(--surface-border);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 0 0 1px rgba(245, 240, 232, 0.05), 0 20px 50px rgba(0, 0, 0, 0.58);
  --shadow-glow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

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

html {
  min-height: 100%;
  background-color: var(--page-bg-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -18%, rgba(80, 65, 55, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(107, 79, 61, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, var(--page-bg-mid) 0%, var(--page-bg-deep) 100%);
}

/* Pages intérieures : ton « moyen » moins noir, légère chaleur — accueil (.page-home) inchangé */
html:has(body:not(.page-home)) {
  --page-bg-mid: #171513;
  --page-bg-deep: #100e0c;
  --surface: #1a1816;
  --surface-2: #211f1b;
  background-color: var(--page-bg-deep);
  background-image:
    radial-gradient(ellipse 100% 68% at 50% -16%, rgba(105, 86, 68, 0.24) 0%, transparent 54%),
    radial-gradient(ellipse 58% 44% at 96% 4%, rgba(125, 96, 74, 0.12) 0%, transparent 44%),
    linear-gradient(180deg, var(--page-bg-mid) 0%, var(--page-bg-deep) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text);
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
}

/* Titres : alignés au début (évite d’étirer les lignes courtes) */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: start;
}

/* Barre du haut, onglets carte, boutons : pas de justification */
.site-header,
.site-header .main-nav a {
  text-align: start;
}

.menu-tabs {
  text-align: start;
}

.menu-tab,
.btn {
  text-align: center;
}

input,
textarea,
select {
  text-align: start;
}

.gallery-item.placeholder {
  text-align: center;
}

::selection {
  background: rgba(107, 79, 61, 0.45);
  color: var(--cream);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.container {
  width: min(1180px, 100% - clamp(1.5rem, 5vw, 3rem));
  margin-inline: auto;
}

/* Barre supérieure par défaut : fond sombre (toutes les pages) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(1.15);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Barre : nav alignée à droite, identique sur toutes les pages */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-block: 14px;
  position: relative;
  z-index: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.main-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.main-nav a {
  position: relative;
  padding-bottom: 6px;
  color: var(--muted);
  transition: color var(--duration) var(--ease-out);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--marron));
  border-radius: 1px;
  transition: width var(--duration) var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--text);
}

.hero {
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem);
  border-bottom: 1px solid var(--surface-border);
}

.hero-content {
  max-width: 38rem;
}

/* Titre accueil : hiérarchie contemporaine (sans-serif, surtitre + bloc) */
.hero-title {
  margin: 0 0 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-title-kicker {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 130, 0.35);
  width: 100%;
  max-width: min(100%, 20rem);
}

.hero-title-main {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw + 0.85rem, 3.65rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--text);
}

.hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Accueil : moitié supérieure crème + logo en filigrane */
.page-home .hero {
  position: relative;
  isolation: isolate;
  min-height: min(50vh, 50dvh);
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem);
  border-bottom: 1px solid rgba(61, 42, 34, 0.12);
  background: linear-gradient(168deg, var(--cream) 0%, var(--cream-mid) 48%, var(--cream-dim) 100%);
  color: var(--marron-deep);
  overflow: hidden;
}

/* Logo en filigrane (fond) : à droite pour ne pas concurrencer le titre */
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/Logo de La Paix La Grange.png");
  background-repeat: no-repeat;
  background-position: 86% 48%;
  background-size: min(62vw, 560px);
  opacity: 0.26;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Adoucit les bords du filigrane pour un vrai rendu « en fond » */
.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 75% 85% at 82% 50%,
    transparent 0%,
    rgba(245, 240, 232, 0.22) 56%,
    rgba(245, 240, 232, 0.58) 100%
  );
}

.page-home .hero > .container {
  position: relative;
  z-index: 1;
}

.page-home .hero-title-kicker {
  color: var(--marron);
  border-bottom-color: rgba(107, 79, 61, 0.35);
}

.page-home .hero-title-main {
  color: var(--marron-deep);
}

.page-home .hero .btn.ghost {
  border-color: rgba(61, 42, 34, 0.28);
  color: var(--marron-deep);
}

.page-home .hero .btn.ghost:hover {
  background: rgba(107, 79, 61, 0.1);
  border-color: rgba(107, 79, 61, 0.45);
}

.page-home .hero .hero-actions {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    filter var(--duration) var(--ease-out);
}

.btn.primary {
  background: linear-gradient(145deg, #faf6ef 0%, var(--cream-mid) 45%, var(--cream-dim) 100%);
  color: var(--marron-deep);
  box-shadow: var(--shadow-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: var(--shadow-glow), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  border-color: var(--surface-border-strong);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(245, 240, 232, 0.08);
  border-color: rgba(201, 168, 130, 0.35);
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 5rem;
}

.home-info {
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-info-card {
  background: linear-gradient(165deg, rgba(245, 240, 232, 0.04) 0%, transparent 55%), var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.home-info-card:hover {
  transform: translateY(-2px);
  border-color: var(--surface-border-strong);
}

.home-info-card h2 {
  margin: 0 0 0.65rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.home-info-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.home-info-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-info-card a:hover {
  color: var(--cream);
}

.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.amenity-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.amenity-icon svg {
  width: 100%;
  height: 100%;
}

.home-info-card .social-links a {
  text-decoration: none;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  padding: 6px;
  margin: -6px;
  border-radius: 10px;
  transition: color 0.15s ease-out, transform 0.15s ease-out, opacity 0.15s ease-out;
}

.social-links a:hover {
  opacity: 0.88;
  transform: scale(1.06);
}

.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.home-info-copy {
  margin: 14px 0 0;
  text-align: justify;
  text-align-last: center;
  color: var(--muted-dim);
  font-size: 0.86rem;
}

.card {
  color: var(--text);
  background: linear-gradient(165deg, rgba(245, 240, 232, 0.045) 0%, transparent 50%), var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.65rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
  transition:
    transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(245, 240, 232, 0.05), 0 24px 48px rgba(0, 0, 0, 0.35);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.link {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--duration) var(--ease-out);
}

.link:hover {
  color: var(--cream);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(107, 79, 61, 0.65));
  opacity: 0.95;
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.link:hover::after {
  transform: scaleX(1.02);
}

.page {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--surface-border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.65rem);
  margin-bottom: 0.65rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  max-width: 36em;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-content {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(245, 240, 232, 0.05) 0%, transparent 38%),
    var(--surface-2);
  margin-top: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-border);
}

body:not(.page-home) .page-content {
  background:
    linear-gradient(180deg, rgba(245, 240, 232, 0.07) 0%, transparent 42%),
    var(--surface-2);
}

.page-content h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-content p {
  line-height: 1.75;
  color: var(--muted);
}

.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--cream);
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.menu-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.menu-section .menu-subheading {
  margin: 1.5rem 0 0.55rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201, 168, 130, 0.22);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: var(--text);
}

.menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-section li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(201, 168, 130, 0.22);
}

.menu-item-name {
  display: block;
  font-weight: 600;
}

.menu-item-name--sub {
  margin-top: 0.35rem;
  font-weight: 600;
}

.menu-item-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}

.menu-note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.menu-enfant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-enfant-item {
  padding: 6px 0 0;
  border-bottom: none;
}

.menu-enfant-price {
  margin-bottom: 0.85rem;
}

.menu-enfant-body {
  padding: 1rem 1.15rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.22);
}

.menu-enfant-body .menu-enfant-part + .menu-enfant-part {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201, 168, 130, 0.22);
}

.menu-enfant-part-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.menu-enfant-part-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.menu-enfant-options {
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.menu-enfant-body .menu-enfant-options li {
  padding: 0.12rem 0;
  border-bottom: none;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.menu-tab {
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
}

.menu-tab:hover {
  border-color: var(--surface-border-strong);
  color: var(--text);
  transform: translateY(-2px);
}

.menu-tab.is-active {
  background: linear-gradient(145deg, #faf6ef 0%, var(--cream-mid) 100%);
  color: var(--marron-deep);
  font-weight: 600;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.menu-panel {
  display: none;
}

.menu-panel.is-active {
  display: block;
}

.menu-panel .menu-section + .menu-section {
  margin-top: 1.2rem;
}

.list {
  padding-left: 1.2rem;
}

.list li {
  margin-bottom: 6px;
  color: var(--muted);
}

.wine-intro {
  margin-bottom: 1rem;
}

.wine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wine-card {
  color: var(--text);
  background: linear-gradient(165deg, rgba(245, 240, 232, 0.04) 0%, transparent 55%), var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.4rem;
  transition:
    transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.wine-card:hover {
  transform: translateY(-3px);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(201, 168, 130, 0.1);
}

.wine-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wine-card h3 {
  margin: 12px 0 6px;
  font-size: 1.08rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 600;
}

.wine-card h3:first-of-type {
  margin-top: 0;
}

.wine-subheading {
  margin: 10px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.wine-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wine-list li {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(201, 168, 130, 0.22);
}

.wine-name {
  display: block;
  font-weight: 600;
}

.wine-card .wine-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.wine-meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.wine-note {
  margin-top: 12px;
  font-size: 0.9rem;
}

.wine-panel {
  display: none;
}

.wine-panel.is-active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.gallery-item:hover {
  border-color: var(--surface-border-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px dashed var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-dim);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.gallery-thumb {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(4vw, 1.5rem);
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.88);
  cursor: zoom-out;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1280px);
  max-height: min(92vh, 960px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: min(92vh, 960px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.92);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out, ease), border-color 0.2s var(--ease-out, ease);
}

.lightbox-close:hover {
  background: rgba(40, 36, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-close {
    transition: none;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}

.contact-block h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.contact-form {
  position: relative;
  margin-top: 6px;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: start;
}

.form-row input,
.form-row textarea {
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  padding: 0.72rem 1rem;
  font: inherit;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  outline: none;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.form-row textarea {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted-dim);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(201, 168, 130, 0.55);
  box-shadow: 0 0 0 3px rgba(107, 79, 61, 0.35);
  background: rgba(0, 0, 0, 0.55);
}

.form-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 2rem 0 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal {
  width: 100%;
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  text-align: justify;
  text-align-last: center;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.footer-legal a {
  color: var(--muted-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 130, 0.25);
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--accent);
  border-bottom-color: rgba(201, 168, 130, 0.45);
}

.contact-block .social-links--contact {
  margin: 0.35rem 0 1rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.65rem;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  max-width: 42rem;
}

.legal-back {
  margin-top: 2.25rem;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .home-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .wine-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .menu-tab {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero {
    padding-top: 56px;
  }

  .page-home .hero {
    min-height: min(46vh, 46dvh);
  }

  .page-home .hero::before {
    background-position: 100% 36%;
    background-size: min(78vw, 320px);
    opacity: 0.22;
  }

  .page-home .hero::after {
    background: radial-gradient(
      ellipse 95% 80% at 88% 40%,
      transparent 0%,
      rgba(245, 240, 232, 0.28) 46%,
      rgba(245, 240, 232, 0.68) 100%
    );
  }

  .home-sections {
    grid-template-columns: 1fr;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .menu {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding-inline: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .wine-card:hover,
  .home-info-card:hover,
  .btn.primary:hover,
  .btn.ghost:hover,
  .menu-tab:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .main-nav a::after {
    transition-duration: 0.01ms;
  }
}
