/* ==========================================================
   De Bonneville — Artisan Cheese Factory
   Warm, editorial style inspired by wisconsincheese.com
   ========================================================== */

:root {
  --cream: #faf6ee;
  --cream-deep: #f3ecdc;
  --gold: #e2a63d;
  --gold-dark: #c78a24;
  --rind: #8a5a2b;
  --char: #2e2419;
  --char-soft: #5a4a37;
  --white: #fffdf9;
  --dark-bg: #33281c;

  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;

  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--char);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--char);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-dark); margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.section-lede {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--char-soft);
  font-size: 1.05rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow 0.25s;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(46, 36, 25, 0.12); }

.main-nav {
  max-width: 1140px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-left  { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-link {
  text-decoration: none;
  color: var(--char);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* Logo (centered) */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1.1;
  padding: 0 18px;
}

.logo-mark { font-size: 1.5rem; }

.logo-text {
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--char);
}

.logo-img {
  height: 54px;
  width: auto;
  /* the PNG has a solid white background; multiply blends it into the cream header */
  mix-blend-mode: multiply;
}

.logo-sub {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--rind);
}

/* Language switcher */
.lang-switch { position: relative; }

.lang-btn {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.lang-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 10px rgba(226, 166, 61, 0.45);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  list-style: none;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(46, 36, 25, 0.18);
  min-width: 150px;
  overflow: hidden;
  z-index: 110;
}

.lang-menu.open { display: block; }

.lang-menu button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--char);
  cursor: pointer;
  white-space: nowrap;
}

.lang-menu button:hover { background: var(--cream); }

.lang-menu button.active {
  background: var(--cream-deep);
  font-weight: 700;
}

/* Burger (mobile) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  position: relative;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--char);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 10px 0; font-size: 0.95rem; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 92vh;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero .hero-media {
  position: absolute;
  /* 20% taller than the hero so the parallax shift never exposes a gap */
  inset: -20% 0 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 48px 24px;
  /* opaque so the logo's white background disappears under mix-blend-mode: multiply */
  background: var(--cream);
  border: 3px solid var(--gold);
  border-radius: 6px;
  margin: 24px;
}

.hero-content h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
}

.hero-logo {
  height: 96px;
  width: auto;
  margin: 0 auto 1.2rem;
  display: block;
  /* the PNG has a solid white background; multiply blends it into the hero card */
  mix-blend-mode: multiply;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--char-soft);
  max-width: 560px;
  margin: 1rem auto 1.8rem;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--char);
}

.btn-primary:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }

/* ---------------- Sections ---------------- */

.section { padding: 96px 0; }

.section-cream { background: var(--cream); }

/* Split layout (text + image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* two-item variant: centered instead of leaving a hole in the 3-column grid */
.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(46, 36, 25, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(46, 36, 25, 0.15);
}

.card-body { padding: 22px 24px 26px; }

.card-meta {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card p:last-child { margin-bottom: 0; font-size: 0.94rem; color: var(--char-soft); }

/* ---------------- Craft steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.step {
  padding: 26px 22px;
  border-top: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 0 6px 6px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.step p { margin-bottom: 0; font-size: 0.92rem; color: var(--char-soft); }

.craft-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 2.5rem 0;
}

.contact-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 28px 26px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.contact-card p { margin-bottom: 0; color: var(--char-soft); }

/* ---------------- Legal ---------------- */

.section-legal { padding: 72px 0; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 2rem;
}

.legal-block {
  background: var(--white);
  border-radius: 6px;
  padding: 26px 26px 30px;
  box-shadow: 0 2px 10px rgba(46, 36, 25, 0.06);
}

.legal-block h3 { color: var(--gold-dark); font-size: 1.05rem; }
.legal-block p { margin-bottom: 0; font-size: 0.86rem; color: var(--char-soft); }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--char);
  color: var(--cream);
  padding: 56px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.18);
}

.footer-brand .logo-text { color: var(--cream); font-size: 1.5rem; margin-left: 8px; }

/* on the dark footer the white-background PNG sits on a cream chip */
.footer-logo {
  height: 64px;
  width: auto;
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 6px;
  box-sizing: content-box;
}

.footer-brand p { margin-top: 0.8rem; font-size: 0.9rem; color: #cbbfa9; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* links shrink to text width so the hover underline matches */
  gap: 10px;
}

.footer-nav .nav-link { color: #cbbfa9; font-size: 0.78rem; }
.footer-nav .nav-link:hover { color: var(--gold); }

.copyright {
  text-align: center;
  font-size: 0.78rem;
  color: #9a8d76;
  margin: 22px 0 0;
}

/* ---------------- Image placeholders ---------------- */

.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(226, 166, 61, 0.12) 0 22px,
      rgba(226, 166, 61, 0.22) 22px 44px),
    var(--cream-deep);
  border: 2px dashed var(--gold);
  overflow: hidden;
}

.img-placeholder::before {
  content: "🧀";
  font-size: 3rem;
  opacity: 0.5;
  position: absolute;
}

.ph-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 36, 25, 0.75);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-card  { height: 210px; border-left: none; border-right: none; border-top: none; }
.img-tall  { height: 480px; border-radius: 6px; }
.img-wide  { height: 300px; border-radius: 6px; }

/* real photos in the placeholder slots */
img.img-card {
  width: 100%;
  object-fit: cover;
  border: none;
}

/* frames whose photo drifts slightly slower than the page (parallax) */
.parallax-frame {
  position: relative;
  overflow: hidden;
}

.parallax-frame img {
  display: block;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
/* Lake Sevan banner in the contact section */
.sevan-banner {
  position: relative;
  height: 320px;
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
}

.sevan-banner img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.sevan-banner figcaption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 36, 25, 0.72);
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 9px 26px;
  border-radius: 30px;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .nav-group { display: none; }

  .main-nav {
    grid-template-columns: auto 1fr auto auto;
  }

  .logo { align-items: flex-start; padding: 0; grid-column: 1; }

  .main-nav .lang-switch-mobile,
  .burger { display: block; }

  /* keep flag visible on mobile: re-show only the lang switch */
  .nav-right {
    display: flex;
    grid-column: 3;
  }
  .nav-right > li { display: none; }
  .nav-right > .lang-switch { display: block; }

  .burger { grid-column: 4; }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .craft-gallery { grid-template-columns: 1fr; }
  .legal-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .card-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-content { padding: 32px 18px; }
}
