:root {
  --deep-teal: #0f5757;
  --dark-teal: #0a3d3d;
  --ivory: #f4f1e8;
  --paper: #fffdf7;
  --lavender: #af9ff2;
  --lime: #c1ff72;
  --terracotta: #b85042;
  --line: #d9d5c3;
  --display: var(--font-display);
  --body: var(--font-body);
  --radius: 6px;
  --shadow: 0 18px 50px rgba(10, 61, 61, 0.12);
}

/* Reset, hlavička a pätička sa preberajú z /assets/css/style.css.
   Tu je len to, čo je vlastné stránkam receptov. */

/* stránky receptov majú o niečo tmavšiu textovú farbu, zvyšok preberajú zo style.css */
.recipes-page { color: var(--dark-teal); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--dark-teal); border-radius: var(--radius); background: var(--deep-teal); color: white; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(10, 61, 61, .17); }
.button-lime { border-color: var(--lime); background: var(--lime); color: var(--dark-teal); }
.button-secondary { background: transparent; color: var(--dark-teal); }
.eyebrow { margin: 0 0 14px; color: var(--terracotta); font-size: .74rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
/* veľkosti a rez nadpisov berú stránky receptov zo /assets/css/style.css,
   aby sedeli so zvyškom webu; tu zladíme len dva prvky, ktoré nie sú nadpisy */
.recipe-card-title, .category-copy strong { font-family: var(--display); font-weight: 600; line-height: 1.18; }
h1, h2, h3, p { text-wrap: pretty; }

.lchf-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0; background: var(--ivory); }
.lchf-hero::before { content: ""; position: absolute; width: 440px; height: 440px; right: -190px; top: -210px; border: 80px solid rgba(175, 159, 242, .24); border-radius: 50%; }
.lchf-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: var(--space-lg); align-items: center; }
.lchf-hero h1 { max-width: 20ch; margin: 0 0 .4em; }
.lchf-hero h1 span { display: block; color: var(--deep-teal); font-style: italic; }
.hero-lead { max-width: 62ch; margin: 0; color: #405b54; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: var(--space-sm); }
.text-link { font-weight: 700; text-underline-offset: 5px; }
.hero-facts { display: flex; gap: 20px; margin: var(--space-md) 0 0; }
.hero-facts div { min-width: 112px; padding-left: 15px; border-left: 2px solid var(--lavender); }
.hero-facts dt { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.hero-facts dd { margin: 5px 0 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.lchf-hero-visual { position: relative; }
.hero-image-frame { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-image-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 3px; pointer-events: none; }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-sticker { position: absolute; z-index: 2; right: -26px; bottom: 26px; display: grid; place-items: center; width: 104px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); font-family: var(--display); font-weight: 600; line-height: 1.05; text-align: center; transform: rotate(-9deg); box-shadow: 0 8px 24px rgba(10, 61, 61, .16); }

.method-strip { padding: 0; background: var(--deep-teal); color: var(--ivory); }
.method-strip .container { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: clamp(30px, 7vw, 85px); }
.method-strip span { position: relative; font-family: var(--display); font-size: clamp(1rem, 2.1vw, 1.45rem); }
.method-strip span + span::before { content: "✦"; position: absolute; left: calc(clamp(30px, 7vw, 85px) / -2); color: var(--lime); transform: translateX(-50%); }

.recipe-browser { padding: clamp(2.75rem, 6vw, var(--space-xl)) 0; }
.section-heading { display: grid; grid-template-columns: 1fr .65fr; gap: var(--space-md); align-items: end; margin-bottom: var(--space-md); }
.section-heading h2, .lchf-explainer h2 { margin: 0; }
.section-heading > p { max-width: 480px; margin: 0 0 8px; color: var(--muted); }
.recipe-toolbar { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 247, .62); }
.recipe-search { position: relative; display: block; }
.recipe-search svg { position: absolute; left: 18px; top: 50%; width: 21px; height: 21px; fill: none; stroke: var(--deep-teal); stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.recipe-search input { width: 100%; height: 58px; padding: 0 18px 0 52px; border: 1px solid var(--line); border-radius: var(--radius); outline: 0; background: white; color: var(--dark-teal); }
.recipe-search input:focus { border-color: var(--deep-teal); box-shadow: 0 0 0 3px rgba(15, 87, 87, .1); }
.recipe-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.filter-pill { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--dark-teal); font-size: .82rem; font-weight: 700; cursor: pointer; }
.filter-pill span { margin-left: 5px; color: var(--muted); font-size: .74rem; }
.filter-pill:hover, .filter-pill.is-active { border-color: var(--deep-teal); background: var(--deep-teal); color: white; }
.filter-pill.is-active span { color: var(--lime); }
.recipe-result-count { margin: 28px 0 15px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recipe-card { min-width: 0; }
.recipe-card[hidden] { display: none; }
.recipe-card-button { width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: left; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.recipe-card-button:hover { border-color: var(--deep-teal); transform: translateY(-5px); box-shadow: var(--shadow); }
.recipe-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d7d4c9; }
.recipe-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.recipe-card-button:hover img { transform: scale(1.035); }
.recipe-card-pill, .category-count { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 3px; background: var(--lime); color: var(--dark-teal); font-size: .7rem; font-style: normal; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.recipe-card-body { min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.recipe-card-title { display: block; font-size: 1.35rem; }
.recipe-card-link { display: block; margin-top: auto; padding-top: 18px; color: var(--terracotta); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.empty-state { margin-top: 32px; padding: 45px; border: 1px dashed var(--deep-teal); text-align: center; }
.empty-state h3 { margin: 0; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); }

.lchf-explainer { padding: clamp(2.75rem, 6vw, var(--space-xl)) 0; background: var(--paper); border-block: 1px solid var(--line); }
.explainer-grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(55px, 9vw, 125px); }
.explainer-copy > p { margin: 0 0 20px; font-size: 1.05rem; }
.expert-note { margin-top: 35px; padding: 25px 28px; border-left: 5px solid var(--lavender); background: rgba(175, 159, 242, .14); }
.expert-note strong { display: block; margin-bottom: 4px; }

.recipe-cta { padding: clamp(2.75rem, 6vw, var(--space-xl)) 0; }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: var(--space-md); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--deep-teal); color: white; }
.cta-card .eyebrow { color: var(--lime); }
.cta-card h2 { max-width: 24ch; margin: 0 0 .4em; }
.cta-card p:last-child { max-width: 62ch; margin: 0; color: rgba(255,255,255,.8); }

.recipe-dialog { width: min(calc(100% - 32px), 1050px); max-height: min(90vh, 920px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--dark-teal); box-shadow: 0 35px 100px rgba(0,0,0,.32); }
.recipe-dialog::backdrop { background: rgba(5, 38, 38, .72); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; }
.dialog-close { position: sticky; z-index: 3; float: right; right: 16px; top: 16px; width: 44px; height: 44px; margin: 16px 16px -60px 0; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.65rem; line-height: 1; cursor: pointer; box-shadow: 0 5px 18px rgba(10,61,61,.18); }
.dialog-media { position: relative; height: min(36vh, 350px); background: #d7d4c9; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { padding: clamp(28px, 5vw, 56px); }
.dialog-content h2 { max-width: 24ch; margin: 0 0 .5em; }
.recipe-detail-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(35px, 7vw, 80px); margin-top: 42px; }
.recipe-detail-grid h3 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ingredient-subhead { margin: 25px 0 8px; font-size: .9rem; }
.ingredient-list { margin: 0; padding: 0; list-style: none; }
.ingredient-list li { position: relative; padding: 7px 0 7px 19px; border-bottom: 1px solid rgba(217, 213, 195, .58); }
.ingredient-list li::before { content: ""; position: absolute; left: 1px; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); }
.steps-list { margin: 0; padding: 0; counter-reset: recipe-step; list-style: none; }
.steps-list li { position: relative; min-height: 42px; padding: 0 0 20px 54px; counter-increment: recipe-step; }
.steps-list li::before { content: counter(recipe-step); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--deep-teal); color: white; font-family: var(--display); font-weight: 600; }
.recipe-safety-note { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.category-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 var(--space-md); text-align: center; }
.category-hero-inner { max-width: 930px; }
.category-hero h1 { margin: 0 0 .4em; }
.category-hero h1 span { color: var(--deep-teal); font-style: italic; }
.category-hero > .container > p:last-child { max-width: 62ch; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.recipe-categories { padding: 0 0 clamp(2.75rem, 6vw, var(--space-xl)); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.category-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-image { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #d7d4c9; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-image img { transform: scale(1.035); }
.category-card-kids .category-count { background: var(--lavender); }
.category-copy { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 34px); }
.category-copy .eyebrow { margin-bottom: 12px; }
.category-copy strong { display: block; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.category-copy > span:not(.eyebrow) { max-width: 46ch; margin-top: 12px; color: var(--muted); }
.category-copy em { margin-top: auto; padding-top: 22px; color: var(--terracotta); font-size: .78rem; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category-cta { padding-top: 0; }

/* pätička preberá vzhľad z /assets/css/style.css; tu je len nadpis "Pre klientov" */
.footer-client-heading { margin-top: var(--space-sm); }
@media (max-width: 1020px) {
  .lchf-hero-grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .lchf-hero-grid, .section-heading, .explainer-grid, .cta-card { grid-template-columns: 1fr; }
  .lchf-hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .lchf-hero-visual { width: min(85%, 520px); margin-inline: auto; }
  .hero-sticker { right: -20px; }
  .section-heading { gap: 18px; }
  .cta-card { gap: 35px; text-align: center; }
  .cta-card .button { justify-self: center; }
  .recipe-detail-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  .hero-actions { flex-direction: column; }
  .hero-facts { gap: 8px; }
  .hero-facts div { min-width: 90px; padding-left: 9px; }
  .hero-facts dt { font-size: 1.3rem; }
  .hero-sticker { width: 104px; right: -8px; bottom: -25px; }
  .method-strip .container { min-height: 110px; flex-direction: column; gap: 3px; }
  .method-strip span + span::before { display: none; }
  .recipe-toolbar { padding: 12px; }
  .recipe-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .filter-pill { flex: 0 0 auto; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card-body { min-height: 124px; }
  .dialog-media { height: 250px; }
  .dialog-content { padding: 28px 21px 35px; }
  .category-copy { min-height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
