/* ==========================================================================
   Flóra Natura - Design system
   Style: single-line SVG drawings, sage/oat/clay palette, airy layout.
   ========================================================================== */

:root {
  --oat: #f5efe3;
  --oat-dark: #e8ddc8;
  --sage: #8ea077;
  --sage-dark: #5f7050;
  --clay: #b9774f;
  --clay-dark: #93593a;
  --ink: #2c2a24;
  --ink-soft: #5c584c;
  --paper: #fffcf6;
  --line: #d9cfb8;
  --radius: 1.1rem;
  --shadow-paper: 0 18px 40px -24px rgba(44, 42, 36, 0.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease, clip-path 0.7s ease; }
.reveal:not(.in-view) { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 15% 0); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0); }
.reveal--1.in-view { transition-delay: 0.08s; }
.reveal--2.in-view { transition-delay: 0.16s; }
.reveal--3.in-view { transition-delay: 0.24s; }
.reveal--4.in-view { transition-delay: 0.32s; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245, 239, 227, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.01em; color: var(--sage-dark); }
.nav-toggle { background: none; border: none; color: var(--ink); display: none; padding: 0.4rem; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav ul { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav a { font-size: 0.96rem; position: relative; padding: 0.3rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.cart-link { position: relative; display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--clay); color: #fff; font-size: 0.7rem; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump 0.4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--paper); flex-direction: column; align-items: flex-start; padding: 5.5rem 1.8rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform 0.35s ease, visibility 0.35s; box-shadow: var(--shadow-paper); }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
  .cart-link { margin-top: 1.5rem; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; transition: color 0.3s ease, border-color 0.3s ease; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn--primary { background: var(--sage-dark); color: #fff; }
.btn--primary::before, .btn--sweep::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--clay); z-index: -1; transition: left 0.35s ease; }
.btn--primary:hover::before, .btn--sweep:hover::before { left: 0; }
.btn--sweep { background: var(--sage-dark); color: #fff; }
.btn--secondary { background: transparent; color: var(--sage-dark); border-color: var(--sage-dark); }
.btn--secondary:hover { background: var(--sage-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.15); }
.btn--full { width: 100%; }

.link-underline { position: relative; font-weight: 600; color: var(--clay-dark); }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.link-underline:hover::after { transform: scaleX(1); }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(3rem, 10vw, 6rem) 0 clamp(2rem, 6vw, 4rem); overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; text-align: center; }
.hero__title { font-size: clamp(2.6rem, 8vw, 6rem); margin-bottom: 0.3em; }
.hero__lede { max-width: 42ch; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__orbit { position: relative; max-width: 620px; margin: 3rem auto 0; aspect-ratio: 1; }
.hero__orbit img { position: absolute; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-paper); border: 4px solid var(--paper); }
.hero__orbit-1 { width: 32%; top: 2%; left: 4%; animation: orbit1 22s linear infinite; }
.hero__orbit-2 { width: 26%; bottom: 6%; right: 2%; animation: orbit2 26s linear infinite; }
.hero__orbit-3 { width: 20%; top: 38%; right: 20%; animation: orbit1 30s linear infinite reverse; }
.hero__center-ring { position: absolute; inset: 10%; border: 1.5px dashed var(--line); border-radius: 50%; }
@keyframes orbit1 { from { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(4deg); } to { transform: translateY(0) rotate(0deg); } }
@keyframes orbit2 { from { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(16px) rotate(-5deg); } to { transform: translateY(0) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .hero__orbit img { animation: none; } }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--oat-dark); overflow: hidden; padding: 0.9rem 0; }
.marquee__track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.1rem; color: var(--sage-dark); letter-spacing: 0.03em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- decorative svg ---- */
.divider { display: block; width: 100%; height: auto; margin: 1rem 0; color: var(--sage); }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0.05; z-index: 1; mix-blend-mode: multiply; }
.badge-seal { width: 92px; height: 92px; color: var(--clay); }

/* ---- product strip / cards ---- */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1.5rem; overflow-x: auto; padding: 0.5rem 0 1.5rem; scroll-snap-type: x mandatory; }
.product-strip .product-card { scroll-snap-align: start; }
.grid-3 .product-card { }
.product-card { background: var(--paper); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-paper); transition: transform 0.3s ease; display: flex; flex-direction: column; gap: 0.6rem; }
.product-card:hover { transform: translateY(-6px); }
.product-card__link { display: block; }
.product-card__img { border-radius: 0.8rem; overflow: hidden; aspect-ratio: 1; margin-bottom: 0.8rem; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.07); }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.1em; }
.product-card__cat { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-dark); margin-bottom: 0.2em; }
.product-card__price { font-weight: 700; color: var(--clay-dark); margin-bottom: 0; }

/* ---- feature: recipe builder ---- */
.recipe-feature { background: var(--paper); border-radius: 1.4rem; padding: clamp(1.5rem, 5vw, 3rem); box-shadow: var(--shadow-paper); }
.recipe-form { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.2rem; }
.recipe-form select { padding: 0.75rem 1rem; border-radius: 0.7rem; border: 1.5px solid var(--line); background: var(--oat); font-size: 1rem; min-height: 44px; }
.recipe-result { margin-top: 1.5rem; display: grid; gap: 1rem; }
.recipe-card { display: flex; gap: 1rem; align-items: center; background: var(--oat); border-radius: 1rem; padding: 0.9rem; }
.recipe-card img { border-radius: 0.6rem; object-fit: cover; }
.recipe-card h4 { margin: 0 0 0.2em; font-size: 1rem; }
.recipe-card p { margin: 0 0 0.2em; font-size: 0.9rem; }

/* ---- generic page-hero (inner pages) ---- */
.page-hero { padding: clamp(2.6rem, 7vw, 4.5rem) 0 2rem; text-align: center; border-bottom: 1px solid var(--line); background: var(--oat-dark); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { max-width: 50ch; margin: 0 auto; }

.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); padding: 1rem 0; }
.breadcrumbs a { color: var(--sage-dark); }
.breadcrumbs span[aria-hidden] { margin: 0 0.4em; }

/* ---- prose for legal pages ---- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--clay-dark); text-decoration: underline; }
.legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem 1.5rem; max-width: 70ch; margin: 0 auto 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 0.6em; }
.legal-toc ol { padding-left: 1.2em; margin: 0; }
.legal-toc a { color: var(--sage-dark); }

/* ---- notice ---- */
.notice { border-radius: 1rem; padding: 1rem 1.3rem; border: 1.5px solid var(--line); background: var(--oat); margin-bottom: 1.5rem; }
.notice--success { border-color: var(--sage); background: #eef3e8; }
.notice--error { border-color: var(--clay); background: #fbece3; }

/* ---- forms ---- */
.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea { padding: 0.8rem 1rem; border-radius: 0.7rem; border: 1.5px solid var(--line); background: var(--paper); font: inherit; min-height: 44px; accent-color: var(--clay); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage-dark); }
.field-error { color: var(--clay-dark); font-size: 0.82rem; margin: 0.2em 0 0; }
.form-success { margin-top: 1rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- contact ---- */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info ul { display: grid; gap: 1rem; margin-top: 1rem; }
.contact-info li { display: flex; gap: 0.7rem; align-items: flex-start; }
.contact-info svg { flex: none; color: var(--sage-dark); margin-top: 0.1em; }

/* ---- faq ---- */
.faq { max-width: 70ch; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { background: var(--paper); border-radius: 0.9rem; border: 1px solid var(--line); padding: 0.3rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0.9rem; font-size: 1.3rem; color: var(--clay); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ---- product detail ---- */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-detail__gallery { border-radius: 1.2rem; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-paper); }
.product-detail__gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--clay-dark); }
.qty-row { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0; }
.qty-row input { width: 80px; padding: 0.7rem; border-radius: 0.6rem; border: 1.5px solid var(--line); min-height: 44px; }

/* ---- cart ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table__prod { display: flex; align-items: center; gap: 0.8rem; }
.cart-table__prod img { border-radius: 0.5rem; object-fit: cover; }
.cart-remove { background: none; border: none; color: var(--clay-dark); font-size: 1.2rem; min-width: 32px; min-height: 32px; }
.cart-summary { background: var(--paper); border-radius: 1rem; padding: 1.5rem; max-width: 420px; margin-left: auto; box-shadow: var(--shadow-paper); }
.cart-summary__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }

/* ---- about ---- */
.timeline { display: grid; gap: 1.5rem; margin-top: 2rem; }
.timeline-item { display: flex; gap: 1.2rem; }
.timeline-item svg { flex: none; color: var(--sage); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--oat); margin-top: 3rem; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: var(--oat); }
.site-footer a:hover { color: var(--clay); }
.site-footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-brand p { color: #cfcabb; max-width: 28ch; }
.footer-col h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8em; color: var(--oat-dark); }
.footer-col ul { display: grid; gap: 0.6rem; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: 0.7rem 1rem; border-radius: 999px; border: none; min-height: 44px; }
.footer-mail { display: flex; align-items: center; gap: 0.5rem; color: #cfcabb; margin-top: 0.8rem; }
.site-footer__bottom { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.2rem 1.5rem 0; border-top: 1px solid #44412f; font-size: 0.85rem; color: #a7a28e; }

/* ---- cookie banner ---- */
.cookie-banner { position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--oat); border-radius: 1rem; padding: 1.3rem 1.5rem; box-shadow: var(--shadow-paper); z-index: 300; }
.cookie-banner p { color: #e7e3d3; font-size: 0.9rem; margin-bottom: 0.9rem; }
.cookie-banner a { color: var(--clay); }
.cookie-banner__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---- toast ---- */
.fn-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--ink); color: var(--oat); padding: 0.9rem 1.3rem; border-radius: 0.7rem; font-size: 0.9rem; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; z-index: 400; }
.fn-toast.is-visible { opacity: 1; transform: translateY(0); }

/* COMPONENTS: .class - what it is
   .site-header - sticky top header with logo, nav, cart link
   .site-nav - main navigation (off-canvas on mobile via .is-open)
   .nav-toggle - mobile hamburger button
   .cart-link / .cart-count - cart icon link and animated item-count bubble
   .btn / .btn--primary / .btn--secondary / .btn--ghost / .btn--sweep / .btn--small / .btn--full - button variants
   .link-underline - text link with animated underline on hover
   .hero / .hero__title / .hero__lede / .hero__actions / .hero__orbit / .hero__orbit-1/2/3 / .hero__center-ring - home hero with orbiting images
   .marquee / .marquee__track - scrolling brand-word strip
   .divider - decorative inline SVG divider
   .grain-overlay - fixed full-viewport grain texture overlay
   .badge-seal - circular badge/seal SVG icon
   .product-strip - horizontal scroll-snap row of product cards (mobile)
   .product-card - catalog/home product card with image zoom on hover
   .recipe-feature / .recipe-form / .recipe-result / .recipe-card - signature "Ápolási Recept" feature
   .page-hero - inner-page hero/header band
   .breadcrumbs - breadcrumb trail
   .prose - readable long-form legal/text content
   .legal-toc - table of contents box for legal pages
   .notice / .notice--success / .notice--error - inline alert boxes
   .form-grid / .field / .field-error / .form-success / .hp-field - form layout, field group, inline error, success message, honeypot
   .contact-layout / .contact-info - two-column contact page layout
   .faq / .faq-item - FAQ accordion (details/summary)
   .product-detail / .product-detail__gallery / .product-detail__price / .qty-row - product detail page layout
   .cart-table / .cart-summary - cart listing table and totals box
   .timeline / .timeline-item - about-page story timeline
   .site-footer / .footer-brand / .footer-col / .newsletter-form - site footer
   .cookie-banner - bottom cookie consent banner
   .fn-toast - transient confirmation toast
   .reveal / .reveal--1..4 / .in-view - scroll-reveal animation utility and stagger delays
   .wrap / .section / .grid-2 / .grid-3 / .text-center - layout utilities
*/

/* wg-contrast-autofix */
footer.site-footer div.site-footer__grid div.footer-col.footer-newsletter p { color: #ffffff !important; }
footer.site-footer div.site-footer__bottom p { color: #ffffff !important; }
