/* Fagren Stube. Bavarian cooking without vegetable oil. */

:root {
  --forest: #1d382a;
  --forest-deep: #142619;
  --forest-soft: #2c4d3a;
  --gold: #c08a2d;
  --gold-bright: #d9a848;
  --gold-pale: #ecd9ac;
  --cream: #faf5e9;
  --cream-dark: #f1e8d4;
  --cream-deep: #e6d9bd;
  --ink: #23281f;
  --ink-soft: #4d5245;
  --line: #d8cbab;
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3, h4, h5, blockquote {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.15;
}

a { color: var(--forest); }

/* ---------- Reveal (CSS only, staggered fadeInUp) ---------- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim { opacity: 0; animation: fadeInUp 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.22s; }
.anim-3 { animation-delay: 0.42s; }
.anim-4 { animation-delay: 0.58s; }
.anim-5 { animation-delay: 0.72s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { animation: none; opacity: 1; transform: none; }
}

/* ---------- Masthead / nav ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark { font-size: 1.7rem; line-height: 1; }

.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--forest);
  letter-spacing: 0.01em;
}

.brand-text em { color: var(--gold); font-style: italic; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.site-nav > ul > li > a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.99rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 1.1rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav > ul > li > a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.caret { opacity: 0.6; }

/* Mega menu, pure CSS via hover / focus-within */

.has-mega { position: relative; }

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 560px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 70;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-inner {
  background: var(--forest);
  border: 1px solid var(--forest-soft);
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(20, 38, 25, 0.28);
  padding: 1.4rem 1.5rem 1.5rem;
}

.mega-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.2rem;
}

.mega-grid a {
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  transition: background 0.18s ease;
}

.mega-grid a:hover { background: var(--forest-soft); }

.mega-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--cream);
}

.mega-grid span {
  display: block;
  font-size: 0.82rem;
  color: var(--gold-pale);
}

/* Burger, mobile only */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--forest);
  margin: 5.5px 0;
  border-radius: 2px;
}

/* ---------- Hero, two asymmetric columns, framed image, no overlay ---------- */

.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.8rem 2rem 4.2rem;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
}

.kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2.1rem;
}

.cta {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--forest);
  transition: background 0.22s ease, color 0.22s ease;
}

.cta:hover { background: transparent; color: var(--forest); }

.framed {
  padding: 14px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--line);
  outline-offset: 6px;
  background: var(--cream);
}

.framed img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

/* ---------- Principles, inline icon row, no cards ---------- */

.principles {
  padding: 2.6rem 2rem;
  text-align: center;
  background: var(--cream);
}

.principles-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.principles-row {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
}

.principles-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--forest);
}

.principles-row svg { color: var(--gold); flex-shrink: 0; }

.principles-row span {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
}

.principle-dot {
  color: var(--gold);
  font-size: 1.4rem;
}

/* ---------- Recipes, tabbed interface ---------- */

.recipes {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.2rem 2rem 5rem;
}

.section-head { text-align: center; margin-bottom: 2.6rem; }

.section-head h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 0.9rem; }

.section-sub {
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
  margin-bottom: 2.4rem;
}

.tab {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.7rem 1.15rem;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab:hover { color: var(--forest); }

.tab.is-active {
  color: var(--forest);
  border-bottom-color: var(--gold);
}

.panel {
  display: none;
  grid-template-columns: 5fr 7fr;
  gap: 2.8rem;
  align-items: start;
}

.panel.is-open { display: grid; }

.panel-media {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}

.panel-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.panel-body h3 { font-size: 2rem; font-weight: 600; margin-bottom: 0.7rem; }

.panel-desc { color: var(--ink-soft); margin-bottom: 1.3rem; }

.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

.meta strong {
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-right: 0.4rem;
}

.panel-cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.2rem;
}

.panel-cols h4 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.ingredients { list-style: none; }

.ingredients li {
  padding: 0.42rem 0 0.42rem 1.3rem;
  position: relative;
  font-size: 0.99rem;
  border-bottom: 1px dashed var(--cream-deep);
}

.ingredients li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.05rem 2.6rem;
  font-size: 0.99rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold);
}

/* ---------- About, quote style ---------- */

.about {
  background: var(--forest);
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.about-quote-mark {
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 0.6;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

.about blockquote {
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.about p {
  color: var(--gold-pale);
  font-size: 1.03rem;
  max-width: 42em;
  margin: 0 auto;
}

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

.site-footer {
  background: var(--forest-deep);
  color: var(--cream-deep);
  padding: 3.4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--forest-soft);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}

.footer-logo em { color: var(--gold-bright); }

.footer-tagline {
  font-style: italic;
  color: var(--gold-pale);
  margin-top: 0.3rem;
}

.footer-col h5 {
  color: var(--gold-bright);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-weight: 600;
}

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

.footer-col li { margin-bottom: 0.45rem; }

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

.footer-col a:hover { color: var(--gold-bright); }

.footer-legal {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a9b5a3;
}

.footer-legal p { margin-bottom: 0.25rem; }

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

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.6rem 2rem 4.5rem;
}

.legal-main h1 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.legal-main h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.2rem 0 0.8rem;
}

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

.legal-main ul {
  margin: 0 0 1rem 1.4rem;
}

.legal-main li { margin-bottom: 0.45rem; }

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

.company-contact-box {
  margin-top: 3rem;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 1.6rem 1.8rem;
}

.company-contact-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.company-contact-box p {
  margin-bottom: 0.3rem;
  font-size: 0.97rem;
}

/* ---------- Breakpoints: 1080 / 780 / 460 ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: 3.4rem 2rem;
  }
  .hero h1 { font-size: 3rem; }
  .framed img { height: 360px; }
  .panel { grid-template-columns: 1fr; gap: 1.8rem; }
  .panel-media { position: static; }
  .panel-media img { height: 300px; }
  .mega { width: 480px; }
}

@media (max-width: 780px) {
  .burger { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(20, 38, 25, 0.12);
  }

  .site-nav.nav-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 0;
  }

  .site-nav > ul > li > a {
    padding: 0.85rem 2rem;
    width: 100%;
    border-bottom: none;
  }

  .mega {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .mega-inner { border: none; box-shadow: none; padding: 1rem 2rem 1.2rem; }
  .mega-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.4rem; }
  .section-head h2 { font-size: 2rem; }
  .panel-cols { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; }
  .about blockquote { font-size: 1.55rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 460px) {
  .masthead-inner { padding: 0.7rem 1.2rem; }
  .hero-inner { padding: 2.4rem 1.2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.02rem; }
  .framed { padding: 8px; }
  .framed img { height: 240px; }
  .principles { padding: 2rem 1.2rem; }
  .principles-row { gap: 1rem 1.4rem; }
  .principles-row span { font-size: 1.08rem; }
  .principle-dot { display: none; }
  .recipes { padding: 3rem 1.2rem 3.6rem; }
  .panel-media img { height: 210px; }
  .panel-body h3 { font-size: 1.6rem; }
  .about { padding: 3.4rem 1.2rem; }
  .about blockquote { font-size: 1.3rem; }
  .legal-main { padding: 2.6rem 1.2rem 3.2rem; }
  .legal-main h1 { font-size: 2rem; }
  .site-footer { padding: 2.6rem 1.2rem 1.6rem; }
}
