/* ============================================================
   Dofrix Kuchnia . dofrix.com
   Polish editorial stylesheet
   Palette: forest green, rye gold, deep plum, cream
   Type: Fraunces (display serif) + Karla (body sans)
   Signature: wycinanki folk band + framed photo tiles
   ============================================================ */

:root {
  --ink: #27231b;
  --ink-soft: #56503f;
  --ink-faint: #8a8170;
  --cream: #f6f1e7;
  --paper: #fbf8f0;
  --cream-deep: #ece4d2;
  --forest: #2f4a3c;
  --forest-deep: #24392e;
  --forest-night: #182720;
  --gold: #c8a15c;
  --gold-bright: #d9b678;
  --gold-pale: #f0e4c6;
  --plum: #4a2338;
  --plum-deep: #371a2a;
  --line: rgba(36, 57, 46, 0.18);
  --line-soft: rgba(36, 57, 46, 0.09);
  --shadow-soft: 0 1px 2px rgba(24, 39, 32, 0.05), 0 10px 30px rgba(24, 39, 32, 0.09);
  --shadow-lift: 0 2px 6px rgba(24, 39, 32, 0.08), 0 24px 48px rgba(24, 39, 32, 0.16);
  --heading-font: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body-font: 'Karla', 'Avenir Next', 'Segoe UI', sans-serif;
  --radius-card: 14px;
  --radius-btn: 8px;
  --folk-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16'%3E%3Crect width='64' height='16' fill='%23182720'/%3E%3Cpath d='M10 3 L15 8 L10 13 L5 8 Z' fill='%23c8a15c'/%3E%3Cpath d='M42 3 L47 8 L42 13 L37 8 Z' fill='%23c8a15c'/%3E%3Ccircle cx='26' cy='8' r='2.6' fill='%234a2338'/%3E%3Ccircle cx='58' cy='8' r='2.6' fill='%234a2338'/%3E%3Crect y='0' width='64' height='1.4' fill='%23c8a15c' fill-opacity='0.55'/%3E%3Crect y='14.6' width='64' height='1.4' fill='%23c8a15c' fill-opacity='0.55'/%3E%3C/svg%3E");
  --folk-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 22 L44 36 L36 50 L28 36 Z' fill='none' stroke='%23f0e4c6' stroke-opacity='0.05'/%3E%3Ccircle cx='36' cy='36' r='26' fill='none' stroke='%23f0e4c6' stroke-opacity='0.035'/%3E%3C/svg%3E");
}

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-deep); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--plum); }
ul, ol { list-style-position: outside; }
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 560;
  line-height: 1.16;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--plum);
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ===== KICKER / ORNAMENT ===== */
.kicker {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 18px;
}
.kicker--left { position: relative; padding-left: 44px; }
.kicker--left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 1.5px;
  background: var(--gold);
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  font-size: 15px;
}
.ornament::before, .ornament::after {
  content: "";
  width: 56px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 20px 0;
  background: transparent;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.navbar.scrolled {
  background: rgba(24, 39, 32, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(24, 39, 32, 0.28);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 620;
  color: var(--cream);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--gold-bright); }
.logo-mark { font-size: 26px; line-height: 1; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(246, 241, 231, 0.4);
  border-radius: 8px;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 231, 0.88);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    var(--folk-texture),
    radial-gradient(1100px 600px at 85% -10%, rgba(200, 161, 92, 0.14), transparent 60%),
    radial-gradient(900px 620px at -10% 110%, rgba(74, 35, 56, 0.32), transparent 55%),
    linear-gradient(160deg, var(--forest-night) 0%, var(--forest-deep) 52%, var(--forest) 100%);
  color: var(--cream);
  padding: 172px 0 116px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: var(--folk-band);
  background-repeat: repeat-x;
  opacity: 0.9;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}
.hero-copy .kicker { color: var(--gold-bright); }
.hero-copy .kicker--left::before { background: var(--gold-bright); }
.hero h1 {
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 590;
  color: var(--paper);
  margin-bottom: 26px;
}
.hero h1 em { color: var(--gold-bright); }
.hero-lede {
  font-size: 19.5px;
  line-height: 1.75;
  color: rgba(246, 241, 231, 0.85);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-bottom: 40px; }
.btn-primary {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--forest-night);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 16px 34px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(24, 39, 32, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}
.btn-primary:hover {
  color: var(--forest-night);
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}
.hero-fats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--heading-font);
  font-size: 17px;
  font-style: italic;
  color: rgba(246, 241, 231, 0.75);
}
.hero-fats .dot { color: var(--gold); font-style: normal; font-size: 12px; }

.hero-figure { position: relative; margin: 0; }
.hero-frame {
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1.5px solid rgba(200, 161, 92, 0.55);
  border-radius: var(--radius-card);
  pointer-events: none;
}
.hero-tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-tile img { width: 100%; height: 470px; object-fit: cover; }
.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(24, 39, 32, 0.45));
}
.hero-tile-base {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 62%;
  height: 46%;
  background: linear-gradient(160deg, var(--plum), var(--plum-deep));
  border-radius: var(--radius-card);
  z-index: -1;
}
.hero-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(24, 39, 32, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 161, 92, 0.35);
  border-radius: 10px;
  padding: 12px 18px;
}
.cap-mark { color: var(--gold-bright); font-size: 15px; }
.cap-title {
  font-family: var(--heading-font);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--paper);
}
.cap-sub { font-size: 12.5px; letter-spacing: 0.06em; color: rgba(246, 241, 231, 0.7); }

/* ===== PRINCIPLES ===== */
.principles {
  background:
    var(--folk-texture),
    linear-gradient(120deg, var(--forest-night), var(--forest-deep));
  padding: 84px 0;
  border-bottom: 1px solid rgba(200, 161, 92, 0.22);
}
.principles-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.principle {
  position: relative;
  padding: 6px 0 0 26px;
  border-left: 2px solid rgba(200, 161, 92, 0.5);
}
.p-word {
  display: inline-block;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.principle h3 { font-size: 24px; color: var(--paper); margin-bottom: 12px; }
.principle p { font-size: 16.5px; line-height: 1.72; color: rgba(246, 241, 231, 0.76); }

/* ===== RECIPES SECTION ===== */
.recipes-section {
  background:
    radial-gradient(900px 480px at 110% 0%, rgba(200, 161, 92, 0.12), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--cream) 30%);
  padding: 108px 0 120px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 68px; }
.section-head h2 {
  font-size: clamp(34px, 4vw, 48px);
  margin-bottom: 20px;
}
.section-head p { font-size: 18.5px; color: var(--ink-soft); }
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}
.recipe-card {
  background: #fffdf8;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.recipe-media { position: relative; overflow: hidden; }
.recipe-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.recipe-card:hover .recipe-img { transform: scale(1.045); }
.recipe-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--gold-pale);
  background: rgba(55, 26, 42, 0.88);
  border: 1px solid rgba(200, 161, 92, 0.4);
  border-radius: 999px;
  padding: 5px 15px;
}
.recipe-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(24, 39, 32, 0.28));
  pointer-events: none;
}
.recipe-info { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.recipe-info h3 { font-size: 27px; margin-bottom: 4px; }
.recipe-sub {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 16px;
  color: var(--plum);
  margin-bottom: 12px;
}
.recipe-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.recipe-meta .sep { color: var(--gold); }
.recipe-desc { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 22px; }
.btn-expand {
  align-self: flex-start;
  font-family: var(--body-font);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: transparent;
  border: 1.5px solid var(--forest);
  border-radius: var(--radius-btn);
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-expand:hover { background: var(--forest); color: var(--gold-pale); }
.recipe-details {
  display: none;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.recipe-details.active { display: block; animation: unfold 0.45s ease; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.recipe-details h4 {
  font-size: 15px;
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 20px 0 12px;
}
.recipe-details h4:first-child { margin-top: 0; }
.recipe-details ul, .recipe-details ol { padding-left: 22px; }
.recipe-details li { font-size: 16px; color: var(--ink-soft); margin-bottom: 8px; }
.recipe-details ul li::marker { color: var(--gold); }
.recipe-details ol li::marker { color: var(--plum); font-weight: 700; }

/* ===== ABOUT ===== */
.about-section {
  background:
    radial-gradient(760px 420px at -6% 20%, rgba(74, 35, 56, 0.08), transparent 55%),
    var(--cream-deep);
  padding: 116px 0;
  border-top: 1px solid var(--line-soft);
}
.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr);
  gap: 76px;
  align-items: center;
}
.about-figure { position: relative; margin: 0; }
.about-frame {
  position: absolute;
  inset: -18px -18px 18px 18px;
  border: 1.5px solid rgba(74, 35, 56, 0.4);
  border-radius: var(--radius-card);
  pointer-events: none;
}
.about-tile {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.about-tile img { width: 100%; height: 440px; object-fit: cover; }
.about-tile-base {
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 58%;
  height: 42%;
  background: linear-gradient(160deg, var(--forest), var(--forest-night));
  border-radius: var(--radius-card);
  z-index: -1;
}
.about-copy h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 24px; }
.about-copy p { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 20px; max-width: 60ch; }
.about-sign {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  margin-top: 6px;
}
.about-sign .mahl { color: var(--plum); font-weight: 600; }

/* ===== FOLK BAND DIVIDER ===== */
.folk-band {
  height: 16px;
  background: var(--folk-band);
  background-repeat: repeat-x;
}

/* ===== FOOTER ===== */
.footer {
  background:
    var(--folk-texture),
    linear-gradient(180deg, var(--forest-night), #101b15);
  color: rgba(246, 241, 231, 0.82);
  padding: 78px 0 34px;
}
.footer a { color: var(--gold-bright); }
.footer a:hover { color: var(--gold-pale); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 54px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(200, 161, 92, 0.22);
}
.footer-logo {
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 620;
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-brand p { font-size: 16px; line-height: 1.7; max-width: 40ch; margin-bottom: 16px; }
.footer-tag {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-bright);
}
.footer h4 {
  font-family: var(--body-font);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(246, 241, 231, 0.82); font-size: 16px; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-company p { font-size: 15.5px; line-height: 1.8; }
.footer-bottom { padding-top: 28px; text-align: center; }
.footer-bottom p { font-size: 14px; color: rgba(246, 241, 231, 0.55); }

/* ===== LEGAL PAGES ===== */
.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 168px 32px 96px;
}
.legal-main h1 {
  font-size: clamp(38px, 4.6vw, 54px);
  margin-bottom: 14px;
}
.legal-meta { font-size: 15.5px; color: var(--ink-faint); }
.legal-main h2 {
  font-size: 25px;
  margin: 42px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.legal-main h3 { font-size: 20px; margin: 24px 0 10px; }
.legal-main p { margin-bottom: 16px; color: var(--ink-soft); }
.legal-main ul, .legal-main ol { padding-left: 24px; margin-bottom: 18px; }
.legal-main li { margin-bottom: 9px; color: var(--ink-soft); }
.legal-main ul li::marker { color: var(--gold); }
.company-contact-box {
  margin-top: 26px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
}
.company-contact-box h3 { color: var(--plum); }
.company-contact-box p { margin-bottom: 8px; }

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .recipe-details.active { animation: none; }
  .recipe-card, .recipe-img, .btn-primary { transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding: 152px 0 100px; }
  .hero-tile img { height: 400px; }
  .principles-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-inner { grid-template-columns: 1fr; gap: 70px; }
  .about-figure { order: 2; }
  .about-copy { order: 1; }
  .about-tile img { height: 380px; }
}
@media (max-width: 768px) {
  body { font-size: 17.5px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(24, 39, 32, 0.98);
    border: 1px solid rgba(200, 161, 92, 0.3);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 9px 0; }
  .nav-links a::after { display: none; }
  .hero { padding: 136px 0 88px; }
  .hero-lede { font-size: 18.5px; }
  .recipes-grid { grid-template-columns: 1fr; }
  .recipes-section { padding: 88px 0 96px; }
  .about-section { padding: 92px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-main { padding: 148px 24px 80px; }
}
@media (max-width: 480px) {
  .container, .nav-container, .hero-inner, .principles-grid, .about-inner { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 38px; }
  .hero-tile img { height: 300px; }
  .hero-frame { inset: -12px 12px 12px -12px; }
  .hero-caption { left: 14px; bottom: 14px; padding: 10px 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .recipe-info { padding: 26px 22px 28px; }
  .recipe-img { height: 220px; }
  .about-tile img { height: 280px; }
  .about-frame { inset: -12px -12px 12px 12px; }
  .section-head { margin-bottom: 52px; }
  .company-contact-box { padding: 22px 20px; }
}
