/* ==========================================================================
   Josrib Kuchyňa — Slovak highland recipes, styles.css
   Tavola structural variant: top navbar w/ CSS-only mega menu, asymmetric
   two-column hero, inline principle icons, tabbed recipe interface,
   quote-style about, CSS-only staggered reveal.
   ========================================================================== */

:root {
  /* palette — Slovak highland: forest pine, paprika red, warm parchment */
  --paper: #f5f1e6;
  --paper-deep: #ebe1c9;
  --card: #fffcf4;
  --ink: #241f19;
  --ink-soft: #55493a;
  --ink-faint: #8a7d68;
  --pine: #1f3c2d;
  --pine-deep: #142a1f;
  --pine-mist: #e4ebe2;
  --paprika: #a8391f;
  --paprika-deep: #7c2314;
  --gold: #b98a3a;
  --gold-light: #d9b268;
  --line: #ddd0ac;
  --shadow: 0 18px 40px -22px rgba(20, 20, 10, 0.35);

  --font-display: "Petrona", "Iowan Old Style", "Georgia", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine-deep);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 16px;
}

/* reduced motion, disable everything below */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

[data-anim] {
  animation: fadeInUp 0.9s cubic-bezier(.22,.61,.36,1) both;
}

/* ==========================================================================
   Top bar (thin strip above navbar)
   ========================================================================== */

.top-strip {
  background: var(--pine-deep);
  color: var(--pine-mist);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 16px;
}

/* ==========================================================================
   Navbar + CSS-only mega menu
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 241, 230, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  color: var(--pine-deep);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 15px;
}

.nav-links > li { position: relative; }

.nav-links a.nav-link {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a.nav-link:hover,
.nav-item:focus-within a.nav-link {
  border-color: var(--paprika);
  color: var(--paprika-deep);
}

.nav-item.has-mega > a.nav-link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  position: relative;
  top: -2px;
}

/* mega menu: pure CSS, hover/focus-within reveal */
.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

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

.mega-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paprika);
  margin: 0 0 12px;
}

.mega-col a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}

.mega-col a:hover { color: var(--pine); }
.mega-col a:last-child { border-bottom: none; }

.nav-cta {
  background: var(--paprika);
  color: #fff8ef;
  padding: 11px 24px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--paprika-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--pine-deep);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero — asymmetric two column, thin decorative frame
   ========================================================================== */

.hero {
  padding: 74px 0 88px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.01em;
}

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

.hero-copy p.lede {
  margin: 26px 0 34px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pine);
  color: var(--paper);
  padding: 15px 30px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-1px); }

.hero-note {
  font-size: 14px;
  color: var(--ink-faint);
  font-style: italic;
}

.hero-frame {
  position: relative;
  padding: 16px;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 2px;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
}

.hero-frame .frame-caption {
  position: absolute;
  bottom: -18px;
  left: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--pine-deep);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Principles — single inline row of SVG icons
   ========================================================================== */

.principles {
  padding: 10px 0 88px;
}

.principles-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.principle {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.principle svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--paprika);
}

.principle-text .p-word {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  color: var(--gold);
  margin-bottom: 2px;
}

.principle-text .p-label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--pine-deep);
}

.principle-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}

/* ==========================================================================
   Recipes — tabbed interface
   ========================================================================== */

.recipes {
  background: var(--pine-mist);
  padding: 100px 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.tab-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn .t-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
}

.tab-btn:hover { color: var(--pine-deep); }

.tab-btn.active {
  color: var(--paprika-deep);
  border-color: var(--paprika);
}

.recipe-panel {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.recipe-panel.active {
  display: grid;
  animation: fadeInUp 0.6s ease both;
}

.recipe-photo {
  position: relative;
}

.recipe-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
}

.recipe-meta-row {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.recipe-meta-row span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.recipe-meta-row span b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  font-size: 17px;
  color: var(--pine-deep);
  margin-top: 2px;
}

.recipe-body h3 {
  font-size: 28px;
  margin-bottom: 6px;
}

.recipe-body .r-native {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 15.5px;
  margin-bottom: 14px;
  display: block;
}

.recipe-body p.r-desc {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.recipe-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
}

.recipe-columns h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 14px;
}

.recipe-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-columns ul li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 15.5px;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--line);
}

.recipe-columns ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.recipe-columns ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.recipe-columns ol li {
  counter-increment: steps;
  padding: 0 0 18px 40px;
  position: relative;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.recipe-columns ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   About — serif quote style
   ========================================================================== */

.about {
  padding: 108px 0;
}

.about .container {
  max-width: 820px;
  text-align: center;
}

.about .kicker { display: block; }

.quote-mark {
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 0.4;
  color: var(--gold-light);
  display: block;
  margin: 0 0 8px;
}

.about blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  color: var(--pine-deep);
  line-height: 1.45;
}

.about .about-sign {
  margin-top: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.about-copy {
  margin-top: 42px;
  color: var(--ink-soft);
  font-size: 16.5px;
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.about-copy p + p { margin-top: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--pine-deep);
  color: #d9e2d9;
  padding: 72px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 48px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(217, 226, 217, 0.16);
}

.footer-brand .brand { color: #f5f1e6; }
.footer-brand .brand-mark { background: var(--gold); color: var(--pine-deep); }

.footer-brand p {
  margin-top: 16px;
  font-size: 14.5px;
  color: #b7c4b8;
  max-width: 34ch;
}

footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 18px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; color: #d9e2d9; }
.footer-links a:hover { color: var(--gold-light); }

.footer-company p {
  font-size: 14px;
  line-height: 1.7;
  color: #b7c4b8;
  margin: 0;
}

.footer-company strong { color: #f5f1e6; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #93a293;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.legal-hero p {
  color: var(--ink-soft);
  margin-top: 12px;
}

.legal-body {
  padding: 56px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 23px;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-body ul { padding-left: 22px; }

.legal-body a { color: var(--paprika-deep); text-decoration: underline; }

.company-contact-box {
  margin-top: 50px;
  padding: 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--paprika);
  border-radius: 3px;
}

.company-contact-box h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.company-contact-box p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Reveal stagger (load-time, CSS only)
   ========================================================================== */

.hero-copy { animation: fadeInUp 0.9s ease both; }
.hero-frame { animation: fadeInUp 0.9s ease both; animation-delay: 0.15s; }

.principle:nth-child(1) { animation: fadeInUp 0.8s ease both; animation-delay: 0.05s; }
.principle:nth-child(3) { animation: fadeInUp 0.8s ease both; animation-delay: 0.15s; }
.principle:nth-child(5) { animation: fadeInUp 0.8s ease both; animation-delay: 0.25s; }

.section-head { animation: fadeInUp 0.8s ease both; }

/* ==========================================================================
   Responsive — 1080 / 780 / 460
   ========================================================================== */

@media (max-width: 1080px) {
  .container { padding: 0 26px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-frame { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .section { padding: 68px 0; }
  .navbar .container { height: 72px; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 26px;
    gap: 6px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 150;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  .nav-links a.nav-link { display: block; padding: 14px 0; width: 100%; }
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 8px 0 8px 14px;
    border: none;
    border-left: 2px solid var(--line);
  }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .principles-row { flex-direction: column; gap: 26px; }
  .principle-divider { display: none; }

  .recipe-panel { grid-template-columns: 1fr; padding: 26px; }
  .recipe-columns { grid-template-columns: 1fr; }

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

@media (max-width: 460px) {
  body { font-size: 17px; }
  .hero { padding: 50px 0 60px; }
  .hero-copy h1 { font-size: 34px; }
  .tab-list { gap: 4px; }
  .tab-btn { padding: 10px 12px; font-size: 14px; }
  .quote-mark { font-size: 80px; }
  .footer-bottom { flex-direction: column; }
}
