/* ═══════════════════════════════════════════════════════════════
   Waldemar's Eaton Mess — OGANIKO-branded recipe site
   Mobile-first, responsive. Tokens from oganiko-branding skill.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── OGANIKO Primary ── */
  --og-black: #000000;
  --og-white: #FFFFFF;
  --og-green: #109200;
  --og-fresh-leaf: #34C755;
  --og-gold: #EECA25;

  /* ── Secondary ── */
  --og-dark-gray: #333333;
  --og-olive: #6B8E23;
  --og-sage: #9CAF88;
  --og-lavender: #9370DB;

  /* ── Semantic ── */
  --og-bg-primary: var(--og-white);
  --og-bg-secondary: #F8F8F6;
  --og-bg-card: var(--og-white);
  --og-text-primary: #1A1A1A;
  --og-text-secondary: var(--og-dark-gray);
  --og-text-muted: #777777;
  --og-border: #E0E0E0;
  --og-border-subtle: rgba(0, 0, 0, 0.06);

  --og-glass: rgba(228, 228, 223, 0.94); /* slightly darker than the off-white body/hero, for header contrast */
  --og-glass-blur: blur(12px);

  /* ── Type ── */
  --og-font-primary: 'Helvetica Neue', Arial, sans-serif;
  --og-leading-tight: 1.15;
  --og-leading-snug: 1.25;
  --og-leading-relaxed: 1.65;
  --og-weight-light: 300;
  --og-weight-regular: 400;
  --og-weight-medium: 500;
  --og-weight-bold: 700;

  /* ── Spacing ── */
  --og-space-sm: 0.5rem;
  --og-space-md: 1rem;
  --og-space-lg: 1.5rem;
  --og-space-xl: 2rem;
  --og-space-2xl: 3rem;
  --og-space-3xl: 4rem;

  /* ── Radii / shadow ── */
  --og-radius-md: 8px;
  --og-radius-lg: 12px;
  --og-radius-xl: 16px;
  --og-radius-full: 9999px;
  --og-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --og-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --og-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  --og-transition: all 0.2s ease;
  --og-max-width: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.og-brand {
  font-family: var(--og-font-primary);
  font-size: 1rem;
  line-height: var(--og-leading-relaxed);
  color: var(--og-text-secondary);
  background: var(--og-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--og-green); }

/* ── Language toggle (CSS-driven) ── */
.en, .pl { }
html[lang="en"] .pl { display: none !important; }
html[lang="pl"] .en { display: none !important; }

/* ── Container ── */
.og-container {
  width: 100%;
  max-width: var(--og-max-width);
  margin: 0 auto;
  padding: 0 var(--og-space-md); /* 16px gutters on mobile */
}
@media (min-width: 640px) {
  .og-container { padding: 0 var(--og-space-lg); } /* 24px from tablet up */
}

/* ── Buttons ── */
.og-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--og-space-sm);
  padding: 0.7rem 1.4rem;
  font-family: var(--og-font-primary);
  font-size: 0.95rem;
  font-weight: var(--og-weight-medium);
  border-radius: var(--og-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--og-transition);
  text-decoration: none;
  white-space: nowrap;
}
.og-btn-primary { background: var(--og-fresh-leaf); color: var(--og-white); }
.og-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--og-shadow-md); }
.og-btn-outline { background: transparent; color: var(--og-green); border: 1.5px solid var(--og-green); }
.og-btn-outline:hover { background: var(--og-green); color: var(--og-white); }
.og-btn-gold { background: var(--og-gold); color: var(--og-black); white-space: normal; }
.og-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--og-shadow-md); }

/* ── Card ── */
.og-card {
  background: var(--og-bg-card);
  border: 1px solid var(--og-border-subtle);
  border-radius: var(--og-radius-lg);
  padding: var(--og-space-lg);
  box-shadow: var(--og-shadow-sm);
}

/* ═══════════════  HEADER  ═══════════════ */
/* Mobile-first: brand on the left; language toggle + hamburger on the right.
   Section links live in a slide-down panel revealed by the hamburger.
   At ≥768px the links become an inline nav and the hamburger disappears. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--og-glass);
  backdrop-filter: var(--og-glass-blur) saturate(140%);
  -webkit-backdrop-filter: var(--og-glass-blur) saturate(140%);
  border-bottom: 1px solid var(--og-border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--og-space-sm);
  min-height: 60px;
  /* ODS logo clear-space rule: the row's total height must leave >= 50% of
     .brand-logo's height as clearance above/below (row height is governed by
     whichever child is tallest, e.g. the 42px hamburger at mobile — not
     necessarily the logo itself). See wiki/principles/logo-clear-space.md. */
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand-logo { display: block; height: 32px; width: auto; }

.header-right { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }

/* ── Language toggle (always visible) ── */
.lang-switch { display: inline-flex; align-items: center; gap: 0.1rem; }
.lang-btn {
  font-family: var(--og-font-primary);
  font-size: 0.82rem;
  font-weight: var(--og-weight-bold);
  letter-spacing: 0.04em;
  color: var(--og-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: var(--og-radius-md);
  transition: var(--og-transition);
  min-width: 44px;
  min-height: 44px;
}
.lang-btn:hover { color: var(--og-green); background: rgba(16, 146, 0, 0.07); }
.lang-btn.is-active { color: var(--og-white); background: var(--og-green); }
.lang-divider { color: var(--og-border); font-weight: var(--og-weight-light); }

/* ── Hamburger (mobile only) — icon-only square button ── */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius-md);
  color: var(--og-text-primary);
  cursor: pointer;
  transition: var(--og-transition);
}
.nav-toggle:hover { border-color: var(--og-green); color: var(--og-green); }
.nav-toggle-icon { position: relative; width: 18px; height: 12px; display: inline-block; }
.nav-toggle-icon span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5px; }
.nav-toggle-icon span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ── Section nav: slide-down panel on mobile ── */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--og-bg-primary);
  border-bottom: 1px solid var(--og-border-subtle);
  box-shadow: var(--og-shadow-md);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease, visibility 0s linear 0.3s;
}
.site-nav.is-open { max-height: 70vh; visibility: visible; transition: max-height 0.3s ease, visibility 0s; }
.nav-links { list-style: none; padding: var(--og-space-sm) 0; }
.nav-link {
  display: block;
  padding: 0.95rem var(--og-space-lg);
  color: var(--og-text-primary);
  text-decoration: none;
  font-weight: var(--og-weight-medium);
  font-size: 1.05rem;
  border-left: 3px solid transparent;
  transition: var(--og-transition);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--og-bg-secondary); border-left-color: var(--og-green); color: var(--og-green); }

/* Backdrop behind the open mobile menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-backdrop.is-open { opacity: 1; }

/* ═══════════════  HERO  ═══════════════ */
.hero {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(52,199,85,0.10), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(238,202,37,0.12), transparent 55%),
    var(--og-bg-secondary);
  padding: var(--og-space-2xl) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--og-space-2xl);
  align-items: center;
}
.kicker { display: inline-block; margin-bottom: var(--og-space-md); color: var(--og-green); font-size: 0.75rem; font-weight: var(--og-weight-medium); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-title {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-weight: var(--og-weight-bold);
  line-height: var(--og-leading-tight);
  color: var(--og-text-primary);
  letter-spacing: -0.01em;
}
.hero-lead {
  margin-top: var(--og-space-lg);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: var(--og-leading-relaxed);
  color: var(--og-text-secondary);
  max-width: 36ch;
}
.hero-actions { margin-top: var(--og-space-xl); display: flex; flex-wrap: wrap; gap: var(--og-space-md); }

.hero-figure {
  position: relative;
  border-radius: var(--og-radius-xl);
  overflow: hidden;
  box-shadow: var(--og-shadow-lg);
  max-width: 460px;
  margin: 0 auto;
}
.hero-figure img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* ═══════════════  META BAR  ═══════════════ */
.meta-bar { background: var(--og-green); color: var(--og-white); }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--og-space-md);
  padding: var(--og-space-lg) var(--og-space-lg);
}
.meta-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; }
.meta-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; font-weight: var(--og-weight-medium); }
.meta-value { font-size: 1.15rem; font-weight: var(--og-weight-bold); }

/* ═══════════════  CONTENT  ═══════════════ */
.content-grid { padding: var(--og-space-3xl) var(--og-space-lg); }
.block { margin-bottom: var(--og-space-3xl); scroll-margin-top: 84px; }
.block:last-child { margin-bottom: 0; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: var(--og-weight-bold);
  color: var(--og-text-primary);
  line-height: var(--og-leading-snug);
  margin-bottom: var(--og-space-xl);
  position: relative;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 4px;
  border-radius: var(--og-radius-full);
  background: linear-gradient(90deg, var(--og-green), var(--og-gold));
}

/* ── Ingredients ── */
.ingredient-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--og-space-lg);
}
.group-title { font-size: 1.2rem; font-weight: var(--og-weight-bold); color: var(--og-green); margin-bottom: var(--og-space-md); }
.ing-list { list-style: none; }
.ing-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--og-text-secondary);
}
.ing-list li:last-child { margin-bottom: 0; }
.ing-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: var(--og-radius-full);
  background: var(--og-fresh-leaf);
}
.ing-list em, .step-list em { font-style: italic; color: var(--og-text-muted); }

/* ── Method ── */
.steps { list-style: none; counter-reset: step; }
.step { margin-bottom: var(--og-space-xl); }
.step:last-child { margin-bottom: 0; }
.step-head { display: flex; align-items: center; gap: var(--og-space-md); margin-bottom: var(--og-space-md); }
.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--og-radius-full);
  background: var(--og-green);
  color: var(--og-white);
  font-weight: var(--og-weight-bold);
  font-size: 1.1rem;
}
.step-title { font-size: 1.25rem; font-weight: var(--og-weight-bold); color: var(--og-text-primary); }
.step-list { list-style: none; padding-left: calc(40px + var(--og-space-md)); }
.step-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}
.step-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: var(--og-radius-full);
  background: var(--og-gold);
}

/* ── Berry choice ── */
.berry-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--og-space-lg);
  margin-bottom: var(--og-space-lg);
}
.berry { text-align: left; padding: 0; overflow: hidden; }
.berry-figure { margin: 0; }
.berry-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.berry-name { font-size: 1.2rem; font-weight: var(--og-weight-bold); color: var(--og-text-primary); margin: var(--og-space-lg) var(--og-space-lg) 0.4rem; }
.berry p { padding: 0 var(--og-space-lg) var(--og-space-lg); }
/* Text-only fallback when a berry photo is unavailable */
.berry--no-image { padding-top: var(--og-space-sm); }
.berry p { color: var(--og-text-secondary); }
/* ── Standout "summer trick" tip ── */
.standout-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--og-space-md);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(52, 199, 85, 0.10), transparent 60%),
    linear-gradient(135deg, #EAF7FF 0%, #F2FBF4 100%);
  border: 1px solid rgba(52, 199, 85, 0.30);
  border-radius: var(--og-radius-lg);
  padding: var(--og-space-lg);
  margin-bottom: var(--og-space-xl);
  box-shadow: var(--og-shadow-sm);
}
.standout-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--og-radius-full);
  background: var(--og-white);
  color: #3AA6D6;
  box-shadow: var(--og-shadow-sm);
}
.standout-body { min-width: 0; }
.standout-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: var(--og-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--og-green);
  margin-bottom: 0.3rem;
}
.standout-text { color: var(--og-text-primary); font-size: 1.05rem; line-height: var(--og-leading-relaxed); }
.standout-text strong { color: var(--og-green); }

/* ── Tips ── */
.tips-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--og-space-lg); }
.tip { color: var(--og-text-secondary); border: 1px solid rgba(52, 199, 85, 0.28); background: rgba(52, 199, 85, 0.045); }

/* ═══════════════  FOOTER  ═══════════════ */
/* Mobile-first 2-column grid: brand+language / Oganiko Digital CTA.
   Columns stack on mobile but are always LEFT-aligned — never centered
   as a default layout (see wiki/principles/left-align-default.md).
   The very bottom bar uses a slightly darker shade than the main
   footer area above it, for a visible colour break at the page edge. */
.site-footer {
  background: #222222; /* OGANIKO dark-mode "surface" token — lightened from #1A1A1A for a clearer break against the pure-black bottom bar */
  color: var(--og-white);
  padding: var(--og-space-2xl) 0 0;
  text-align: left;
  margin-top: var(--og-space-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--og-space-2xl);
  padding-bottom: var(--og-space-2xl);
}
.footer-col { min-width: 0; }
.footer-col-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--og-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--og-space-md);
}
.footer-col-label-gold { color: var(--og-gold); font-size: 0.85rem; }

/* Column 1 — brand */
.footer-col-brand { display: flex; flex-direction: column; }
.footer-brand-logo { display: block; height: 36px; width: auto; margin-bottom: 20px; } /* ODS logo clear-space: >= 50% of logo height */
.footer-note { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; max-width: 32ch; }

.footer-lang-switch { justify-content: flex-start; }
.site-footer .lang-switch .lang-btn { color: rgba(255, 255, 255, 0.65); }
.site-footer .lang-switch .lang-btn:hover { color: var(--og-fresh-leaf); background: rgba(255, 255, 255, 0.08); }
.site-footer .lang-switch .lang-btn.is-active { background: var(--og-fresh-leaf); color: var(--og-white); }
.site-footer .lang-divider { color: rgba(255, 255, 255, 0.25); }

/* Column 2 — Oganiko Digital story + CTA (right-aligned, wider column) */
.footer-col-cta { text-align: right; }
.footer-story-text {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.95rem;
  line-height: var(--og-leading-relaxed);
  margin-bottom: var(--og-space-lg);
  max-width: 56ch;
  margin-left: auto;
}
.footer-cta { gap: 0.5rem; }
.footer-cta svg { transition: transform 0.2s ease; flex: 0 0 auto; }
.footer-cta:hover svg { transform: translateX(3px); }

/* Bottom bar — full-width, split left/right (not centered).
   Pure black against the footer's #222222 surface, plus a visible green-
   tinted seam, so the break reads clearly rather than relying on a subtle
   grayscale shift alone. */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--og-space-lg) var(--og-space-md);
  margin-top: var(--og-space-xl);
  background: var(--og-black);
  border-top: 2px solid rgba(52, 199, 85, 0.35);
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-bottom-divider { display: none; color: rgba(255, 255, 255, 0.3); }
.footer-copyright { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }
.footer-credit { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }
.footer-bottom .lang-btn { min-width: 44px; min-height: 44px; }
.footer-credit a,
.footer-note a {
  color: var(--og-fresh-leaf);
  font-weight: var(--og-weight-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover,
.footer-note a:hover { color: var(--og-white); }

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; padding-left: var(--og-space-lg); padding-right: var(--og-space-lg); }
  .footer-bottom-left { flex-direction: row; align-items: center; }
  .footer-bottom-divider { display: inline-block; }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 0.9fr 1.5fr;
    gap: var(--og-space-xl);
  }
  .footer-col-cta { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: var(--og-space-xl); }
}

/* ═══════════════  RESPONSIVE  ═══════════════ */
@media (min-width: 640px) {
  .meta-grid { grid-template-columns: repeat(4, 1fr); }
  .ingredient-cards { grid-template-columns: repeat(2, 1fr); }
  .berry-cards { grid-template-columns: repeat(3, 1fr); }
  .tips-list { grid-template-columns: repeat(3, 1fr); }
}

/* ── Desktop navigation (≥768px): inline links, no hamburger ── */
@media (min-width: 768px) {
  .header-inner { gap: var(--og-space-md); min-height: 64px; padding-top: 17px; padding-bottom: 17px; }
  .header-right { gap: var(--og-space-md); }
  .nav-toggle { display: none; }
  .brand-logo { height: 36px; }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-links { display: flex; flex-direction: row; padding: 0; gap: 0.15rem; }
  .nav-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    border-left: none;
    border-radius: var(--og-radius-md);
  }
  .nav-link:hover, .nav-link:focus-visible { background: rgba(16, 146, 0, 0.08); border-left-color: transparent; }
  .nav-backdrop { display: none; }
}

@media (min-width: 900px) {
  .hero { padding: var(--og-space-3xl) 0; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--og-space-3xl); }
  .hero-figure { max-width: 100%; }
  .hero-figure img { aspect-ratio: 4 / 5; }
  .ingredient-cards { grid-template-columns: repeat(3, 1fr); }
  .content-grid { padding-top: var(--og-space-3xl); padding-bottom: var(--og-space-3xl); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
