/* Ptičnica - style.css */
:root {
  --moss: #2f4a3e;
  --moss-dark: #1f3329;
  --sky: #9fd1de;
  --sky-deep: #4f8fa3;
  --peach: #f1c9a3;
  --cream: #f7efe0;
  --bark: #6b4b33;
  --ink: #233027;
  --radius: 18px;
  --shadow: 0 12px 30px -10px rgba(35,48,39,.25);
  --measure: 68ch;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: "Charter", Georgia, "Times New Roman", serif; margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: var(--sky-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.icon { flex-shrink: 0; }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-0{margin-top:0} .mt-1{margin-top:1rem} .mt-2{margin-top:2rem} .mt-3{margin-top:3rem}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:1rem} .mb-2{margin-bottom:2rem} .mb-3{margin-bottom:3rem}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2px solid var(--moss); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: block; }
.logo-mark { width: 150px; height: auto; aspect-ratio: 220/48; }
.logo-word { font-family: "Charter", Georgia, serif; font-size: 26px; fill: var(--moss); }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.main-nav a { color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--sky-deep); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--sky-deep); }
.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-count { background: var(--moss); color: var(--cream); border-radius: 999px; font-size: .75rem; padding: 1px 7px; min-width: 20px; text-align: center; }
.cart-link.bump .cart-count { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.burger { display: none; background: none; border: none; color: var(--moss); cursor: pointer; padding: 6px; }
@media (max-width: 820px) {
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100vh;
    background: var(--moss); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 90px 28px; gap: 20px; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease; font-size: 1.1rem;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--cream); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--moss); color: var(--cream); margin-top: 64px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.2fr 2fr 1.3fr; gap: 40px; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: #cfe0d6; max-width: 32ch; }
.footer-cols { display: flex; gap: 32px; }
.footer-cols h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sky); margin-bottom: .8em; }
.footer-cols a { display: block; color: var(--cream); opacity: .9; margin-bottom: .5em; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.footer-newsletter h3 { color: var(--sky); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type=email] { flex: 1; padding: 10px 12px; border-radius: 10px; border: none; font-family: inherit; }
.footer-email { margin-top: 14px; display: flex; gap: 8px; align-items: center; color: #cfe0d6; }
.footer-bottom { text-align: center; padding: 16px 0 28px; color: #a8c1b2; font-size: .85rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 999px; padding: 13px 26px; font-size: 1rem; font-family: inherit; cursor: pointer; text-decoration: none; }
.btn-sweep { position: relative; overflow: hidden; background: var(--moss); color: var(--cream); isolation: isolate; }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--sky-deep); transition: left .3s ease; z-index: -1; }
.btn-sweep:hover::before { left: 0; }
.btn-outline { background: transparent; color: var(--moss); border: 2px solid var(--moss); }
.btn-outline:hover { background: var(--moss); color: var(--cream); }
.btn-ghost-dark { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn-ghost-dark:hover { background: var(--cream); color: var(--moss-dark); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky-deep); outline-offset: 3px;
}

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 48px 0 24px; overflow: hidden; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; position: relative; min-height: 70vh; }
.hero-headline { font-size: clamp(2.6rem, 8vw, 5.4rem); color: var(--moss); margin: 0 auto; max-width: 16ch; position: relative; z-index: 3; }
.hero-headline em { font-style: italic; color: var(--sky-deep); }
.hero-sub { max-width: 46ch; margin: 0 auto 28px; font-size: 1.15rem; position: relative; z-index: 3; }
.orbit-wrap { position: relative; width: 100%; max-width: 640px; height: 420px; margin: 0 auto; }
.orbit-item { position: absolute; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); width: 140px; aspect-ratio: 1; border: 4px solid var(--cream); animation: orbit-float 7s ease-in-out infinite; }
.orbit-item img { width: 100%; height: 100%; object-fit: cover; }
.orbit-item.o1 { top: 0; left: 10%; animation-delay: 0s; }
.orbit-item.o2 { top: 40%; right: 2%; width: 110px; animation-delay: 1.2s; }
.orbit-item.o3 { bottom: 0; left: 28%; width: 120px; animation-delay: 2.4s; }
.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 150px; height: 150px; z-index: 2; }
@keyframes orbit-float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
@media (max-width: 760px) { .orbit-wrap { height: 340px; } .orbit-item { width: 100px; } .orbit-item.o3 { left: 8%; } }

.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .05; pointer-events: none; z-index: 0; }

/* hero motion: shapes assembling into logo */
.assemble-piece { animation: assemble 1.1s cubic-bezier(.2,.8,.2,1) both; }
.assemble-piece.p1 { animation-delay: 0s; }
.assemble-piece.p2 { animation-delay: .12s; }
.assemble-piece.p3 { animation-delay: .24s; }
@keyframes assemble {
  from { opacity: 0; transform: translate(var(--fx,0), var(--fy,-40px)) scale(.6) rotate(-8deg); }
  to { opacity: 1; transform: translate(0,0) scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .assemble-piece, .orbit-item { animation: none !important; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.r1.in-view { transition-delay: .05s; }
.reveal.r2.in-view { transition-delay: .15s; }
.reveal.r3.in-view { transition-delay: .25s; }
.reveal.r4.in-view { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- product cards / strip ---------- */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 1.1rem; margin: 0; }
.product-card .price { font-weight: bold; color: var(--moss); font-size: 1.15rem; margin-top: auto; }
.product-card .btn { margin-top: 10px; }
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--moss); color: var(--cream); padding: clamp(48px,10vw,88px) 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--cream); }
.page-hero p { max-width: 50ch; margin: 0 auto; color: #d9e7dd; }

/* breadcrumbs */
.breadcrumbs { font-size: .85rem; color: #557; padding: 14px 0; }
.breadcrumbs a { color: var(--sky-deep); }
.breadcrumbs span { color: #8a9a90; margin: 0 6px; }

/* notices */
.notice { border-radius: 12px; padding: 16px 20px; margin: 0 0 20px; border-left: 4px solid var(--sky-deep); background: #eef7f7; }
.notice-success { border-color: var(--moss); background: #e9f3ec; }
.notice-error { border-color: #b4452f; background: #fbeae6; }

/* prose (legal pages) */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; color: var(--moss); }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: #efe6d6; border-radius: 14px; padding: 20px 24px; max-width: var(--measure); margin: 0 auto 32px; }
.legal-toc h2 { margin-top: 0; font-size: 1.05rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; }
.form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border-radius: 10px; border: 2px solid #cfd8d2; font-family: inherit; font-size: 1rem; accent-color: var(--moss);
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sky-deep); }
.field-error { color: #b4452f; font-size: .82rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea { border-color: #b4452f; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status-ok { color: var(--moss); }
.form-status-error { color: #b4452f; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { background: #efe6d6; border-radius: var(--radius); padding: 28px; }
.contact-info h2 { margin-top: 0; }
.contact-info .row { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid #d8cfb8; padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--sky-deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 10px; color: #445; }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.product-detail .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-size: 1.8rem; color: var(--moss); font-weight: bold; margin: 10px 0 20px; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--moss); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: none; border: none; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 46px; border: none; text-align: center; font-size: 1rem; font-family: inherit; }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.cart-table th { text-align: left; border-bottom: 2px solid var(--moss); padding: 10px 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid #e2dac4; vertical-align: middle; }
.cart-table .cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-table .cart-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-remove { color: #b4452f; background: none; border: none; cursor: pointer; font-size: .85rem; text-decoration: underline; }
.cart-summary { max-width: 360px; margin-left: auto; background: #efe6d6; border-radius: var(--radius); padding: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { font-size: 1.3rem; font-weight: bold; color: var(--moss); border-top: 2px solid var(--moss); padding-top: 10px; margin-top: 10px; }
.cart-empty { text-align: center; padding: 60px 0; color: #667; }

/* ---------- decorative dividers / badges ---------- */
.divider { width: 100%; height: 48px; display: block; color: var(--sky); }
.seal { width: 86px; height: 86px; }
.pattern-strip { height: 28px; width: 100%; display: block; }

/* ---------- signature feature: Svetovalec za gnezdilnico ---------- */
.advisor { background: linear-gradient(160deg, var(--sky) 0%, var(--peach) 100%); border-radius: 28px; padding: clamp(28px,5vw,52px); position: relative; overflow: hidden; }
.advisor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .advisor-grid { grid-template-columns: 1fr; } }
.bird-select { display: grid; gap: 10px; }
.bird-btn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.65); border: 2px solid transparent; border-radius: 14px; padding: 12px 16px; text-align: left; cursor: pointer; font-family: inherit; font-size: .98rem; transition: transform .2s ease, border-color .2s ease; }
.bird-btn:hover { transform: translateX(4px); }
.bird-btn.active { border-color: var(--moss); background: #fff; }
.advisor-result { background: #fff; border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); min-height: 220px; }
.advisor-result dt { font-weight: 700; color: var(--moss); margin-top: 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.advisor-result dd { margin: 2px 0 0; }

/* ---------- utility ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--peach); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
@media (max-width: 760px) { .split-panel { grid-template-columns: 1fr; } }
.split-panel .half { padding: clamp(32px,5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.split-panel .half.moss { background: var(--moss); color: var(--cream); }
.split-panel .half.sky { background: var(--sky); color: var(--ink); }
.split-panel .half.peach { background: var(--peach); color: var(--ink); }

/* COMPONENTS: .class - what it is
.wrap - centered max-width container
.grid / .grid-2 / .grid-3 / .grid-4 - responsive CSS grid helpers
.section - vertical page section spacing
.site-header / .header-inner - sticky top header bar
.logo / .logo-mark / .logo-word - SVG logo lockup
.main-nav - primary navigation, becomes off-canvas menu on mobile
.cart-link / .cart-count - cart icon + animated item count
.burger - mobile menu toggle button
.site-footer / .footer-inner / .footer-brand / .footer-cols / .footer-newsletter / .footer-bottom - footer layout
.newsletter-form / .hp-field - footer newsletter form + hidden honeypot
.btn / .btn-sweep / .btn-outline / .btn-ghost-dark / .btn-lg - button variants (fill-sweep, outline, dark-ghost)
.hero / .hero-inner / .hero-headline / .hero-sub - home hero block
.orbit-wrap / .orbit-item / .orbit-center - orbiting images around centered headline
.hero-grain - SVG turbulence grain overlay
.assemble-piece (.p1/.p2/.p3) - shapes-assemble-into-logo entrance animation
.reveal (.r1-.r4) - scroll-reveal animation hooks, staggered
.product-card / .product-strip - catalog product card and mobile scroll-snap strip
.page-hero - inner-page hero banner
.breadcrumbs - breadcrumb trail
.notice / .notice-success / .notice-error - message/alert boxes
.prose - readable long-form legal/content text measure
.legal-toc - table of contents box for legal pages
.form-grid / .field / .field-error - form layout and field with inline error
.form-status / .form-status-ok / .form-status-error - async form submit feedback
.contact-layout / .contact-info - two-column contact page layout
.faq / .faq-item - details/summary accordion
.product-detail / .gallery / .qty-stepper - single product page layout + quantity control
.cart-table / .cart-summary / .cart-empty - cart/checkout table and totals box
.divider / .seal / .pattern-strip - decorative SVG dividers, seals, pattern strips
.advisor / .advisor-grid / .bird-select / .bird-btn / .advisor-result - signature feature (nest-box advisor)
.badge - small pill label
.split-panel / .half (.moss/.sky/.peach) - two-tone split-screen panel
*/

/* ---------- cookie banner ---------- */
.cookie-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- product info ---------- */
.product-info { display: flex; flex-direction: column; gap: 6px; }

/* ---------- contact form ---------- */
.contact-layout-form { width: 100%; }

/* ---------- contact info item ---------- */
.contact-info-item { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }

/* ---------- quantity input ---------- */
.qty-input { padding: 8px 10px; border: 2px solid #cfd8d2; border-radius: 8px; font-family: inherit; font-size: 1rem; text-align: center; width: 60px; background: #fff; }
.qty-input:focus { border-color: var(--sky-deep); }

@media (max-width: 560px) {
  .cookie-actions { flex-direction: column; gap: 8px; }
  .qty-input { width: 50px; }
}

/* wg-contrast-autofix */
#cookie-decline { color: #111111 !important; }
