/* ============================================================
   Rendav Chuchi - Swiss cooking without vegetable oil
   Palette: alpine milk, deep spruce, Swiss red, butter gold
   Type: Fraunces (display) + Archivo (text)
   ============================================================ */

:root {
  --snow: #f3f4ef;
  --paper: #fdfdfa;
  --pine: #1d3b2d;
  --pine-deep: #122a1f;
  --pine-soft: #2c5442;
  --alp-red: #a92c2a;
  --butter: #b9891f;
  --ink: #202822;
  --stone: #57655c;
  --line: rgba(29, 59, 45, 0.16);
  --cream-text: #eef0e8;
  --cream-dim: #b9c4b8;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(18, 42, 31, 0.09);
  --shadow-lift: 0 18px 44px rgba(18, 42, 31, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--pine);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Signature: Swiss cross kicker ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--alp-red);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 3px;
  background:
    linear-gradient(#fff, #fff) center / 58% 13% no-repeat,
    linear-gradient(#fff, #fff) center / 13% 58% no-repeat,
    var(--alp-red);
}

.kicker.on-dark { color: var(--cream-dim); }

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(253, 253, 250, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(18, 42, 31, 0.07);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo span.cow { margin-right: 8px; }

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover { color: var(--alp-red); border-bottom-color: var(--alp-red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--pine);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero (split) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  min-height: 100vh;
  background: var(--snow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 64px 90px 28px;
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}

.hero-copy .kicker { margin-bottom: 26px; }

.hero-copy h1 {
  font-size: clamp(2.7rem, 4.9vw, 4.2rem);
  font-weight: 640;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--alp-red);
}

.hero-copy .lede {
  font-size: 1.14rem;
  color: var(--stone);
  max-width: 33em;
  margin-bottom: 38px;
}

.hero-tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.04rem;
  color: var(--butter);
  margin-bottom: 14px;
}

.btn-hero {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pine);
  color: var(--cream-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 16px 34px;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.btn-hero:hover {
  background: var(--alp-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.hero-figure {
  position: relative;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(243, 244, 239, 0.5) 0%, rgba(243, 244, 239, 0) 26%);
}

.hero-figure .photo-note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 32px 20px;
  background: linear-gradient(to top, rgba(18, 42, 31, 0.78), rgba(18, 42, 31, 0));
  color: var(--cream-text);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---------- Principles ---------- */

.principles {
  background: var(--pine-deep);
  color: var(--cream-text);
  padding: 96px 0 104px;
}

.principles-head { max-width: 620px; margin-bottom: 64px; }

.principles-head h2 {
  color: var(--cream-text);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-top: 18px;
}

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

.principle {
  border-top: 2px solid rgba(238, 240, 232, 0.22);
  padding-top: 28px;
}

.principle .p-word {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.62rem;
  font-weight: 600;
  color: var(--cream-text);
  margin-bottom: 6px;
}

.principle .p-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 16px;
}

.principle p { color: var(--cream-dim); font-size: 1rem; }

/* ---------- Recipes ---------- */

.recipes-section { padding: 108px 0 96px; }

.recipes-header { max-width: 660px; margin-bottom: 66px; }

.recipes-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  margin: 18px 0 18px;
}

.recipes-header p { color: var(--stone); font-size: 1.08rem; }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

.recipe-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--pine);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.recipe-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.recipe-img-wrap { overflow: hidden; height: 265px; }

.recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-img { transform: scale(1.045); }

.recipe-info { padding: 30px 32px 34px; }

.recipe-info h3 { font-size: 1.55rem; margin-bottom: 6px; }

.recipe-origin {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 14px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.87rem;
  color: var(--stone);
  margin-bottom: 16px;
}

.recipe-meta span + span::before {
  content: "\00B7";
  margin-right: 14px;
  color: var(--alp-red);
}

.recipe-desc { color: var(--stone); font-size: 1rem; margin-bottom: 22px; }

.btn-expand {
  background: none;
  border: 1.5px solid var(--pine);
  color: var(--pine);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-expand:hover { background: var(--pine); color: var(--cream-text); }

.recipe-details {
  display: none;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.recipe-details.active { display: block; }

.recipe-details h4 {
  font-family: "Archivo", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--alp-red);
  margin: 22px 0 12px;
}

.recipe-details h4:first-child { margin-top: 0; }

.recipe-details ul, .recipe-details ol {
  padding-left: 22px;
  font-size: 0.98rem;
  color: var(--ink);
}

.recipe-details li { margin-bottom: 8px; }

.recipe-details li::marker { color: var(--alp-red); font-weight: 600; }

/* ---------- About ---------- */

.about-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 104px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.about-figure img { width: 100%; height: 440px; object-fit: cover; }

.about-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin: 18px 0 22px;
}

.about-copy p { color: var(--stone); margin-bottom: 18px; font-size: 1.05rem; }

.about-copy p strong { color: var(--pine); font-weight: 600; }

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

.footer {
  background: var(--pine-deep);
  color: var(--cream-dim);
  padding: 78px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.2fr;
  gap: 54px;
  margin-bottom: 54px;
}

.footer-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream-text);
  margin-bottom: 16px;
}

.footer-brand p { font-size: 0.96rem; max-width: 30em; }

.footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--butter);
  margin-bottom: 18px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--cream-text); }

.company-contact-box {
  background: rgba(238, 240, 232, 0.06);
  border: 1px solid rgba(238, 240, 232, 0.14);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 0.93rem;
  line-height: 1.7;
}

.company-contact-box strong { color: var(--cream-text); }

.footer-bottom {
  border-top: 1px solid rgba(238, 240, 232, 0.14);
  padding-top: 26px;
  font-size: 0.87rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
}

.footer-bottom a { color: var(--cream-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream-text); }

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

.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 150px 28px 90px;
}

.legal-main h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin: 20px 0 10px;
}

.legal-updated {
  color: var(--stone);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 42px;
}

.legal-main h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
}

.legal-main p { margin-bottom: 16px; color: var(--ink); }

.legal-main ul { padding-left: 24px; margin-bottom: 16px; }

.legal-main li { margin-bottom: 8px; }

.legal-main a { color: var(--alp-red); }

.legal-main .company-contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  margin-top: 36px;
}

.legal-main .company-contact-box strong { color: var(--pine); }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .recipe-img, .recipe-card, .btn-hero { transition: none !important; }
}

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

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 140px 40px 70px 28px; }
  .principles-grid { gap: 32px; }
  .recipes-grid { gap: 32px; }
  .about-grid { gap: 44px; }
}

@media (max-width: 768px) {
  body { font-size: 18px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(18, 42, 31, 0.12);
    padding: 10px 0;
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 28px;
    border-bottom: none;
  }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 128px 28px 56px; max-width: none; margin: 0; }
  .hero-figure { height: 340px; order: 2; }

  .principles { padding: 72px 0 80px; }
  .principles-grid { grid-template-columns: 1fr; gap: 36px; }

  .recipes-section { padding: 80px 0 72px; }
  .recipes-grid { grid-template-columns: 1fr; }

  .about-section { padding: 76px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure img { height: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .container, .nav-container { padding: 0 20px; }
  .hero-copy { padding: 118px 20px 48px; }
  .hero-copy h1 { font-size: 2.35rem; }
  .recipe-info { padding: 24px 22px 28px; }
  .recipe-img-wrap { height: 215px; }
  .btn-hero { width: 100%; justify-content: center; }
  .legal-main { padding: 128px 20px 70px; }
}
