/* ─── Custom Properties ─────────────────────────────────────────────── */
:root {
  --burgundy:   #6B2737;
  --burgundy-dk:#4E1A27;
  --gold:       #B8963E;
  --cream:      #F8F4EC;
  --cream-dk:   #EDE7DA;
  --text:       #1C1C1C;
  --text-light: #5A5248;
  --divider:    #E5DDD0;
  --nav-h:      68px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ─── Language toggle ───────────────────────────────────────────────── */
.lang-fr .en, .lang-fr .nl { display: none; }
.lang-en .fr, .lang-en .nl { display: none; }
.lang-nl .fr, .lang-nl .en { display: none; }

/* ─── Container ─────────────────────────────────────────────────────── */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ─── Two-column layout ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ─── Section label ─────────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ─── Navigation ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--divider);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: #fff;
  transition: color 0.3s;
  white-space: nowrap;
}

#nav.scrolled .nav-logo { color: var(--burgundy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

#nav.scrolled .nav-links a { color: var(--text-light); }
#nav.scrolled .nav-links a:hover { color: var(--burgundy); }

.lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover { border-color: #fff; color: #fff; }

#nav.scrolled .lang-toggle {
  border-color: var(--divider);
  color: var(--text-light);
}

#nav.scrolled .lang-toggle:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.lang-toggle .sep { opacity: 0.4; }

.lang-fr .lang-toggle .fr-label,
.lang-en .lang-toggle .en-label,
.lang-nl .lang-toggle .nl-label {
  font-weight: 700;
  color: currentColor;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s, background 0.3s;
}

#nav.scrolled .hamburger span { background: var(--text); }

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 8, 12, 0.45) 0%,
    rgba(20, 8, 12, 0.05) 25%,
    rgba(20, 8, 12, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-inline: 1.5rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, transform 0.2s;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg { width: 32px; height: 32px; }
.hero-scroll:hover { color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Sections (shared) ─────────────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

.section p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

/* ─── Le Domaine ────────────────────────────────────────────────────── */
.section--domaine { background: var(--cream); }

.col-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.terroir-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--divider);
}

.terroir-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.875rem;
}

.terroir-list strong {
  font-weight: 500;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terroir-list span {
  color: var(--text-light);
}

/* ─── Nos Vins ──────────────────────────────────────────────────────── */
.section--vins {
  background: var(--cream);
  color: var(--text);
}

.section--vins .section-label { color: var(--gold); }

.section--vins h2 {
  color: var(--text);
}

.wine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.wine-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.wine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.wine-card__accent {
  height: 3px;
  background: var(--burgundy);
}

.wine-card__body {
  padding: 1.75rem;
}

.wine-card__appellation {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.wine-card__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.wine-card__vintage {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.wine-card__note {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: none;
}

.wine-card__grapes {
  font-size: 0.75rem;
  font-style: italic;
  color: #999;
  margin-bottom: 0;
}

.wines-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: none;
}

.wines-note a {
  color: var(--burgundy);
  border-bottom: 1px solid rgba(107,39,55,0.3);
  transition: border-color 0.2s;
}

.wines-note a:hover { border-color: var(--burgundy); }

/* ─── Contact ───────────────────────────────────────────────────────── */
.section--contact { background: var(--cream-dk); }

.two-col--contact { align-items: start; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--gold);
  margin-top: 3px;
}

.contact-item a {
  color: var(--burgundy);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-item a:hover { border-color: var(--burgundy); }

.col-map iframe {
  width: 100%;
  aspect-ratio: 4/3;
  border: none;
  border-radius: 2px;
  display: block;
  filter: sepia(15%) contrast(0.95);
}

/* ─── Footer ────────────────────────────────────────────────────────── */
#footer {
  background: var(--burgundy-dk);
  color: rgba(255,255,255,0.5);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 0.8rem;
  max-width: none;
  margin: 0;
  color: rgba(255,255,255,0.4);
}

.footer-copy a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-copy a:hover { color: #fff; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wine-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--divider);
  }

  .nav-links a:last-of-type { border-bottom: none; }

  .lang-toggle {
    margin: 0.75rem 1.5rem 0;
    border-color: var(--divider);
    color: var(--text-light);
  }

  .lang-toggle:hover,
  .lang-toggle:active,
  .lang-toggle:focus-visible {
    border-color: var(--burgundy);
    color: var(--burgundy);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .col-image { order: -1; }
  .col-image img { aspect-ratio: 16/9; object-position: center 40%; }

  .two-col--contact .col-map { order: 0; }

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

/* ─── Dark mode ─────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --cream:      #1C1710;
    --cream-dk:   #231D15;
    --text:       #EDE8DF;
    --text-light: #9E8C78;
    --divider:    #3A3028;
    --burgundy:   #C05070;
    --gold:       #C8A84E;
  }

  body { background: var(--cream); }

  /* Wine cards */
  .wine-card {
    background: #2A2218;
    border-color: var(--divider);
  }

  .wine-card__grapes { color: var(--text-light); }

  .wines-note a { border-bottom-color: rgba(192,80,112,0.35); }

  /* Scrolled nav */
  #nav.scrolled { background: var(--cream); box-shadow: 0 1px 0 var(--divider); }

  /* Mobile nav dropdown */
  .nav-links { background: var(--cream); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

  /* Estate image shadow */
  .col-image img { box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

  /* Map: darken to match */
  .col-map iframe { filter: sepia(20%) contrast(0.8) brightness(0.65); }
}
