/* ===================================================================
   Cerro San Luis Micromill — styles.css
   Pure CSS3, system fonts, premium specialty-coffee aesthetic
=================================================================== */

:root {
  --green-deep: #2D5A27;
  --green-leaf: #4F7942;
  --red-bourbon: #8B1E1E;
  --brown-coffee: #5C4033;
  --gold-geisha: #D4A017;
  --beige: #F3E7D3;
  --cream: #FFF8EF;
  --ink: #2A2118;

  --ink-soft: #5b5043;
  --line: rgba(92, 64, 51, 0.16);
  --shadow-sm: 0 4px 14px rgba(42, 33, 24, 0.08);
  --shadow-md: 0 14px 40px rgba(42, 33, 24, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 88px;

  --serif: Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Japanese: native system fonts (Hiragino / Yu / Meiryo), Noto as last-resort fallback */
html[lang="ja"] {
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", Georgia, serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, "Noto Sans JP", sans-serif;
}
html[lang="ja"] body { line-break: strict; word-break: auto-phrase; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0.02em; line-height: 1.35; }

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--gold-geisha); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #c2920f; }
.btn-ghost { border-color: rgba(255, 248, 239, 0.7); color: var(--cream); }
.btn-ghost:hover { background: rgba(255, 248, 239, 0.14); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 248, 239, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav-inner { width: min(1180px, 94%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 72px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.35rem; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft);
  position: relative; padding: 0.25rem 0; transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-geisha); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.75rem; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: 0.78rem; color: var(--ink-soft);
}
  .lang-opt {
    background: none; border: 0; padding: 0.1rem 0.15rem; margin: 0; cursor: pointer;
    font: inherit; color: inherit; border-radius: 4px; transition: color 0.2s ease;
  }
  .lang-opt:hover { color: var(--ink); }
  .lang-opt:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.lang-opt.is-active { color: var(--green-deep); }
.lang-sep { opacity: 0.4; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--cream); padding: calc(var(--nav-h) + 2rem) 0 7rem; }
.hero-media {
  position: absolute; inset: 0;
  /* Photo: assets/images/hero-finca.webp (optimized from hero-finca.png) — gradient below acts as a fallback while it loads */
  background-color: #1f3d1b;
  background-image:
    linear-gradient(150deg, rgba(31, 61, 27, 0.25) 0%, rgba(92, 64, 51, 0.25) 100%),
    url("assets/images/hero-finca.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 28, 16, 0.78) 0%, rgba(20, 28, 16, 0.45) 55%, rgba(20, 28, 16, 0.25) 100%); }
.hero-content { position: relative; width: min(1180px, 92%); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; font-weight: 700; color: var(--gold-geisha); margin-bottom: 1rem; }
.hero-title-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.hero h1 { flex: 1 1 auto; max-width: 760px; font-size: clamp(2.1rem, 5vw, 3.7rem); text-wrap: balance; }
.hero-logo {
  flex: 0 0 auto; width: clamp(170px, 20vw, 260px); aspect-ratio: 1;
  padding: 0.75rem; border-radius: var(--radius-lg);
  background: #ffffff; box-shadow: var(--shadow-md);
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-subtitle, .hero-desc { max-width: 760px; }
.hero-subtitle { font-size: clamp(1.02rem, 2vw, 1.25rem); color: #f1e7d6; margin-bottom: 1rem; }
.hero-desc { color: rgba(243, 231, 211, 0.86); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  width: min(1180px, 92%); margin: 0 auto 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 248, 239, 0.18);
  border: 1px solid rgba(255, 248, 239, 0.18); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(6px);
}
.stat { background: rgba(20, 28, 16, 0.45); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.15rem; }
.stat strong { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-geisha); }
.stat span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(243, 231, 211, 0.8); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--beige); }
.section-green { background: var(--green-deep); color: var(--cream); }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; font-weight: 700; color: var(--red-bourbon); margin-bottom: 0.7rem; }
.kicker.light { color: var(--gold-geisha); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-wrap: balance; }
.section-intro { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; }
.section-intro.light { color: rgba(243, 231, 211, 0.85); }

/* ---------- Decorative leaf ---------- */
.leaf-deco, .leaf-deco.alt {
  position: absolute; width: 90px; height: 90px; top: -22px; right: -10px; opacity: 0.5;
  background: radial-gradient(circle at 30% 30%, var(--green-leaf), transparent 70%);
  border-radius: 0 60% 0 60%; transform: rotate(20deg);
}

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: start; }
.story-copy p, .philosophy p { text-align: justify; hyphens: auto; }
.story-copy p { color: var(--ink-soft); }
.philosophy { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.philosophy h3 { color: var(--green-deep); font-size: 1.6rem; margin-bottom: 0.8rem; }
.philosophy p { color: var(--ink-soft); margin: 0; }

/* ---------- Farms ---------- */
  .farms-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
  .farm-card {
    font: inherit; flex: 1 1 180px; max-width: 220px; cursor: pointer; appearance: none;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; text-align: center; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.farm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.farm-card:focus-visible { outline: 3px solid var(--gold-geisha); outline-offset: 2px; }
/* Active (selected) farm */
.farm-card.active { border-color: var(--green-deep); box-shadow: 0 0 0 2px var(--green-deep), var(--shadow-md); }
.farm-card.active h4 { background: var(--green-deep); color: var(--cream); }
/* Photo per farm: assets/images/farm-*.jpg */
.farm-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: linear-gradient(150deg, #2D5A27, #5C4033); }
.farm-card h4 { font-size: 1.02rem; color: var(--brown-coffee); padding: 0.9rem 0.8rem; transition: background 0.25s ease, color 0.25s ease; }

.terroir-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
.terroir-card, .altitude-card { border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.terroir-card { background: var(--cream); border: 1px solid var(--line); }
.terroir-card h3, .altitude-card h3 { color: var(--green-deep); font-size: 1.5rem; margin-bottom: 1rem; }
.terroir-farm-name { font-weight: 700; color: var(--brown-coffee); font-size: 1.05rem; margin-bottom: 0.75rem; }
.terroir-desc { margin-top: 1rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.terroir-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.terroir-list li:last-child { border-bottom: 0; }
.terroir-list .t-key { color: var(--ink-soft); }
.terroir-list .t-val { font-weight: 600; color: var(--brown-coffee); text-align: right; }
.altitude-card { background: linear-gradient(160deg, var(--green-leaf), var(--green-deep)); color: var(--cream); }
.altitude-card h3 { color: var(--cream); }
.altitude-card p { color: rgba(243, 231, 211, 0.9); margin: 0; }
.altitude-card { display: flex; flex-direction: column; }
.altitude-photo { flex: 1 1 auto; min-height: 240px; margin: 1.5rem 0 0; border-radius: calc(var(--radius-lg) - 0.5rem); overflow: hidden; border: 1px solid rgba(243, 231, 211, 0.25); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); position: relative; }
.altitude-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Genetics Tree ---------- */
.tree-hint { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 1.2rem; }
.tree-scroll { overflow-x: auto; padding: 1rem 0.4rem 1.6rem; }
.genetic-tree { display: flex; align-items: center; gap: 2.6rem; min-width: max-content; padding: 0 0.5rem; }
.tree-col { display: flex; flex-direction: column; gap: 1rem; justify-content: center; position: relative; }
.tree-group { display: flex; flex-direction: column; gap: 0.7rem; padding-left: 1.4rem; position: relative; }
.tree-group::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }

.node {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 0.86rem; color: var(--cream);
  border: 0; font-family: var(--sans); white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.node:hover { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-md); filter: brightness(1.06); }
.node:focus-visible { outline: 3px solid var(--gold-geisha); outline-offset: 2px; }
.node .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.node.n-origin { background: var(--green-deep); }
.node.n-bourbon { background: var(--red-bourbon); }
.node.n-geisha { background: var(--gold-geisha); color: var(--ink); }
.node.n-hybrid { background: var(--green-leaf); }
.node.n-venecia { background: var(--brown-coffee); }

.tree-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.5rem; }
.tree-legend li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-soft); }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; }

/* ---------- Varieties ---------- */
  .variety-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
  .variety-card { flex: 1 1 300px; max-width: 360px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.variety-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.variety-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.3rem; }
.variety-card h3 { font-size: 1.45rem; color: var(--brown-coffee); }
.variety-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; color: var(--cream); }
.variety-bg { font-size: 0.8rem; font-weight: 600; color: var(--green-deep); margin-bottom: 0.8rem; }
.variety-desc { font-size: 0.92rem; color: var(--ink-soft); }
.variety-cup { font-size: 0.88rem; margin: 0.4rem 0 1rem; }
.variety-cup strong { color: var(--ink); }
.variety-meta { margin-top: auto; display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.score-row { display: flex; align-items: center; justify-content: space-between; }
.score-pill { background: var(--gold-geisha); color: var(--ink); font-weight: 700; font-size: 0.82rem; padding: 0.25rem 0.7rem; border-radius: 999px; }
.score-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.bar.quality > span { background: var(--red-bourbon); }
.bar.resilience > span { background: var(--green-leaf); }
.bar-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 0.25rem; }

/* ---------- Processing ---------- */
  .process-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
  .process-card { flex: 1 1 290px; max-width: 360px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.process-head { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--serif); padding: 1.3rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.process-head h3 { font-size: 1.2rem; color: var(--brown-coffee); }
.process-head .chev { width: 22px; height: 22px; flex: 0 0 auto; position: relative; transition: transform 0.3s ease; color: var(--green-deep); }
.process-card.open .process-head .chev { transform: rotate(45deg); }
.process-head .chev::before, .process-head .chev::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.process-head .chev::before { left: 50%; top: 4px; width: 2px; height: 14px; transform: translateX(-50%); }
.process-head .chev::after { top: 50%; left: 4px; height: 2px; width: 14px; transform: translateY(-50%); }
.process-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.process-body-inner { padding: 0 1.4rem 1.4rem; }
.process-body-inner p { font-size: 0.92rem; color: var(--ink-soft); }
.benefit-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-bourbon); margin-bottom: 0.4rem; display: block; }
.benefit-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.benefit-tags span { background: var(--beige); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.78rem; color: var(--brown-coffee); }

/* ---------- Sustainability ---------- */
  .sustain-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
  .sustain-card { flex: 1 1 220px; max-width: 280px; background: rgba(255, 248, 239, 0.08); border: 1px solid rgba(255, 248, 239, 0.2); border-radius: var(--radius); padding: 1.5rem; }
.sustain-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-geisha); color: var(--ink); margin-bottom: 0.9rem; }
.sustain-card h4 { font-size: 1.1rem; color: var(--cream); margin-bottom: 0.4rem; }
.sustain-card p { font-size: 0.86rem; color: rgba(243, 231, 211, 0.82); margin: 0; }

/* ---------- Gallery ---------- */
  .gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .gallery-item { flex: 1 1 300px; max-width: 360px; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery-ph { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-ph { transform: scale(1.05); }
/* Photos: assets/images/*.jpg */
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.05); }
.gallery-ph.g1 { background: linear-gradient(150deg, #8B1E1E, #5C4033); }
.gallery-ph.g2 { background: linear-gradient(150deg, #2D5A27, #4F7942); }
.gallery-ph.g3 { background: linear-gradient(150deg, #5C4033, #8B1E1E); }
.gallery-ph.g4 { background: linear-gradient(150deg, #D4A017, #5C4033); }
.gallery-ph.g5 { background: linear-gradient(150deg, #4F7942, #2D5A27); }
.gallery-ph.g6 { background: linear-gradient(150deg, #5C4033, #2D5A27); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--cream); background: linear-gradient(transparent, rgba(20, 28, 16, 0.8)); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.visit-media { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); background: linear-gradient(150deg, #2D5A27, #5C4033); box-shadow: var(--shadow-md); }
.visit-copy h2 { color: var(--green-deep); margin-bottom: 1rem; }
.visit-copy p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-links li { flex: 1 1 200px; max-width: 260px; }
.social-link { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 1.1rem 0.65rem 0.65rem; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-cta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.social-arrow { margin-left: auto; flex-shrink: 0; color: var(--ink-soft); transition: transform 0.2s ease, color 0.2s ease; }
.social-link:hover .social-arrow { transform: translate(2px, -2px); color: var(--ink); }
.social-link:focus-visible { outline: 3px solid var(--gold-geisha); outline-offset: 2px; }
.social-icon { flex-shrink: 0; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--gold-geisha); color: var(--ink); }
.social-text { display: flex; flex-direction: column; min-width: 0; }
.social-name { font-weight: 700; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.section-compact { padding: clamp(2.75rem, 5vw, 4rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.contact-copy p:last-child { margin-bottom: 0; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; padding-left: 2.5rem; border-left: 1px solid rgba(243, 231, 211, 0.22); }
.contact-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.ci-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-geisha); font-weight: 700; }
.ci-value { font-size: 1.05rem; color: var(--cream); }
.ci-value a { color: inherit; white-space: nowrap; }
a.ci-value:hover, .ci-value a:hover { color: var(--gold-geisha); }
.ci-sep { margin: 0 0.4rem; color: rgba(243, 231, 211, 0.5); }
.light { color: rgba(243, 231, 211, 0.86); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(243, 231, 211, 0.86); padding: 3rem 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-bottom: 2.5rem; }
.footer-brand { max-width: 360px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); display: block; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.9rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-content: flex-start; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-geisha); }
.footer-bottom { border-top: 1px solid rgba(243, 231, 211, 0.16); padding: 1.2rem 0; text-align: center; font-size: 0.8rem; }

/* ---------- Side panel / modal ---------- */
.panel-overlay { position: fixed; inset: 0; background: rgba(20, 28, 16, 0.55); backdrop-filter: blur(3px); z-index: 200; opacity: 0; animation: fade 0.25s ease forwards; }
.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); z-index: 210;
  background: var(--cream); box-shadow: -20px 0 50px rgba(0,0,0,0.25);
  padding: 2.4rem 2rem; overflow-y: auto; transform: translateX(100%); animation: slideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes slideIn { to { transform: translateX(0); } }
@keyframes fade { to { opacity: 1; } }
.panel-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--brown-coffee); }
.panel-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem; }
.panel-body h3 { font-size: 1.8rem; color: var(--brown-coffee); margin-bottom: 0.4rem; }
.panel-body .p-sub { font-size: 0.85rem; color: var(--green-deep); font-weight: 600; margin-bottom: 1.1rem; }
.panel-body p { font-size: 0.95rem; color: var(--ink-soft); }
.panel-section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red-bourbon); margin: 1.2rem 0 0.4rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Placeholder label ---------- */
.ph-label { font-size: 0.82rem; letter-spacing: 0.04em; text-align: center; padding: 0 1rem; }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 0.5rem 6%;
    box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: transform 0.35s ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }

  .story-grid, .terroir-wrap, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 1.6rem; }
  .contact-list { padding-left: 0; padding-top: 1.6rem; border-left: 0; border-top: 1px solid rgba(243, 231, 211, 0.22); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-bottom: 12rem; }
}

@media (max-width: 760px) {
  .hero-title-row { flex-direction: column-reverse; align-items: flex-start; gap: 1.2rem; }
  .hero-logo { width: 130px; padding: 0.5rem; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 12rem; }
  .brand-logo { height: 64px; }
  .stat { padding: 0.8rem; }
  .stat strong { font-size: 1rem; }
}

/* Mobile genetics tree -> vertical timeline */
@media (max-width: 760px) {
  .tree-scroll { overflow-x: visible; }
  .genetic-tree { flex-direction: column; align-items: stretch; gap: 1.2rem; min-width: 0; }
  .tree-col { gap: 0.8rem; }
  .tree-group { padding-left: 1.2rem; }
  .node { width: 100%; justify-content: flex-start; }
}

/* Farm details inside the side panel (mobile) */
.panel-tag-farm { background: var(--green-deep); }
.panel-farm-photo { margin: 0.4rem 0 1rem; border-radius: calc(var(--radius-lg) - 0.5rem); overflow: hidden; aspect-ratio: 4 / 3; }
.panel-farm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-body .terroir-list { margin-bottom: 1rem; }
.panel-body .panel-farm-desc { margin-bottom: 1.2rem; }
.panel-altitude { background: linear-gradient(160deg, var(--green-leaf), var(--green-deep)); border-radius: calc(var(--radius-lg) - 0.5rem); padding: 1.2rem 1.3rem; }
.panel-body .panel-altitude p { color: rgba(243, 231, 211, 0.92); margin: 0; }
.panel-body .panel-altitude .panel-altitude-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--cream); margin-bottom: 0.5rem; }

@media (max-width: 760px) {
  .terroir-wrap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
