/* Termosice Jutro — design system. Split-screen duality: pine / snow / berry. */

:root {
  --pine: #102a24;
  --pine-2: #1b3f36;
  --snow: #f4efe4;
  --snow-2: #ffffff;
  --berry: #b23a3a;
  --berry-2: #e7a2a2;
  --ink: #15201d;
  --mute: #5b6b65;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(16,42,36,.35);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--snow);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 4px; }

/* ===== layout helpers ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.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: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--berry); font-weight: 700; margin-bottom: .6em; display: block;
}

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.reveal-clip { clip-path: inset(0 0 100% 0); }
.reveal.reveal-clip.in-view { clip-path: inset(0 0 0% 0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--snow); border-bottom: 1px solid rgba(16,42,36,.1);
}
.logo-mark { width: 180px; height: 40px; aspect-ratio: 220/48; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 600; position: relative; padding: 4px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--berry); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-cart { display: flex; align-items: center; gap: 6px; position: relative; }
.cart-count {
  background: var(--berry); color: var(--snow); border-radius: 999px; font-size: .7rem;
  min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--pine); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    background: var(--pine); color: var(--snow); flex-direction: column; align-items: flex-start;
    padding: 90px 28px; gap: 22px; transform: translateX(100%); visibility: hidden;
    transition: transform .35s ease, visibility .35s ease; z-index: 60;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--snow); }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; border: 2px solid transparent;
  min-height: 44px; position: relative; overflow: hidden; isolation: isolate; transition: color .25s ease, border-color .25s ease;
}
.btn-fill { background: var(--pine); color: var(--snow); }
.btn-fill::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--berry); z-index: -1;
  transition: left .3s ease;
}
.btn-fill:hover::before { left: 0; }
.btn-outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--snow); }
.btn-ghost { background: transparent; color: var(--snow); border-color: rgba(244,239,228,.5); }
.btn-ghost:hover { background: rgba(244,239,228,.15); }
.btn-sm { padding: 9px 18px; font-size: .9rem; min-height: 38px; }

/* ===== page hero (inner pages) ===== */
.page-hero {
  background: var(--pine); color: var(--snow); padding: clamp(64px, 12vw, 120px) 0 clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--snow); }
.page-hero p { color: var(--berry-2); max-width: 60ch; font-size: 1.1rem; }
.breadcrumbs { font-size: .85rem; color: rgba(244,239,228,.7); margin-bottom: 1.2em; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== prose (legal text) ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.legal-toc { background: var(--snow-2); border: 1px solid rgba(16,42,36,.12); border-radius: var(--radius); padding: 22px 26px; max-width: var(--measure); margin: 0 auto 2.5em; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== notice ===== */
.notice { border-radius: var(--radius); padding: 18px 22px; border: 1px solid; margin: 1.5em 0; }
.notice-info { background: #eef5f2; border-color: #bcd6cc; }
.notice-warn { background: #fbeceb; border-color: var(--berry-2); }

/* ===== cards ===== */
.card {
  background: var(--snow-2); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 18px 20px 22px; }

/* ===== product card / strip ===== */
.product-card { display: flex; flex-direction: column; }
.product-card .price { color: var(--berry); font-weight: 700; font-size: 1.1rem; }
.product-strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { display: contents; } }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-detail-info .price { font-size: 1.6rem; color: var(--berry); font-weight: 700; }
.product-specs { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 8px; }
.product-specs li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(16,42,36,.15); padding-bottom: 6px; }
.engraving-field { margin: 1.2em 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 1.2em 0; }
.qty-row input { width: 64px; text-align: center; }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2em; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid rgba(16,42,36,.12); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-summary {
  background: var(--snow-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  max-width: 400px; margin-left: auto;
}
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; margin: 1em 0; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--mute); }

/* ===== forms ===== */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .field-wide { 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-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid rgba(16,42,36,.25); border-radius: 8px; font: inherit;
  accent-color: var(--berry); background: var(--snow-2);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); }
.field-error { color: var(--berry); font-size: .85rem; min-height: 1.1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin-top: 12px; font-weight: 600; }
.form-msg.is-success { color: var(--pine); }
.form-msg.is-error { color: var(--berry); }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 10px; }

/* ===== faq ===== */
.faq { max-width: var(--measure); margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(16,42,36,.15); padding: 18px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; 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.4rem; color: var(--berry); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--mute); }

/* ===== breadcrumbs duplicate utility already above ===== */

/* ===== split-screen hero (home) ===== */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 86vh; position: relative; }
@media (max-width: 760px) { .split-hero { grid-template-columns: 1fr; min-height: auto; } }
.split-half { padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.split-pine { background: var(--pine); color: var(--snow); }
.split-snow { background: var(--snow); color: var(--ink); }
.split-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .3em; }
.split-hero .lede { font-size: 1.15rem; max-width: 42ch; }
.split-pine .lede { color: var(--berry-2); }
.split-divider {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; background: var(--berry);
  transform: translateX(-50%); display: none;
}
@media (min-width: 761px) { .split-divider { display: block; } }
.hero-assembling { width: 100%; max-width: 320px; margin-top: 28px; }
.hero-assembling path, .hero-assembling rect, .hero-assembling circle { opacity: 0; transform: translateY(14px); animation: assemble .7s ease forwards; }
@media (prefers-reduced-motion: reduce) { .hero-assembling path, .hero-assembling rect, .hero-assembling circle { opacity: 1; transform: none; animation: none; } }
@keyframes assemble { to { opacity: 1; transform: none; } }

/* ===== accordion panels (home composition) ===== */
.accordion-panels { display: flex; gap: 14px; height: 420px; }
@media (max-width: 760px) { .accordion-panels { flex-direction: column; height: auto; } }
.accordion-panel {
  flex: 1; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer;
  transition: flex-grow .5s ease; background: var(--pine); min-width: 60px;
}
.accordion-panel.is-open { flex-grow: 4; }
@media (max-width: 760px) { .accordion-panel { height: 90px; transition: height .5s ease; } .accordion-panel.is-open { height: 320px; } }
.accordion-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.accordion-panel-label {
  position: absolute; inset: auto 0 0 0; padding: 18px; color: var(--snow); z-index: 2;
  background: linear-gradient(to top, rgba(16,42,36,.85), transparent);
}
.accordion-panel-body { position: absolute; inset: 0; padding: 20px; color: var(--snow); z-index: 2; opacity: 1; transition: opacity .3s ease .15s; display: flex; flex-direction: column; justify-content: flex-end; }
.accordion-panel:not(.is-open) .accordion-panel-body { opacity: 0; }
.accordion-panel.is-open .accordion-panel-label { opacity: 0; }

/* ===== warmth test (signature feature) ===== */
.warmth-test { background: var(--pine-2); color: var(--snow); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.warmth-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 1.4em; }
.warmth-form .field { min-width: 160px; }
.warmth-form select, .warmth-form input { background: var(--snow); }
#warmthResult { margin-top: 20px; background: rgba(244,239,228,.08); border-radius: 10px; padding: 18px 20px; }
#warmthResult .warmth-pick { margin-bottom: 12px; }

/* ===== decorative SVGs ===== */
.section-divider { width: 100%; height: auto; display: block; color: var(--pine); }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }
.badge-seal { width: 96px; height: 96px; color: var(--berry); }
.ornament-wave { width: 100%; height: 36px; color: var(--pine); }

/* ===== footer ===== */
.site-footer { background: var(--pine); color: var(--snow); padding: 64px 24px 24px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 160px; height: 36px; }
.footer-brand p { color: rgba(244,239,228,.75); max-width: 32ch; }
.footer-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8em; color: var(--berry-2); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { text-decoration: underline; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(244,239,228,.4); background: rgba(244,239,228,.1); color: var(--snow); }
.newsletter-form input::placeholder { color: rgba(244,239,228,.6); }
.footer-mail { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: rgba(244,239,228,.8); }
.footer-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(244,239,228,.15); color: rgba(244,239,228,.6); font-size: .85rem; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto;
  background: var(--pine); color: var(--snow); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); z-index: 100; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: clamp(60px, 12vw, 140px) 24px; }
.page-404 h1 { font-size: clamp(3rem, 10vw, 7rem); color: var(--berry); }

/* COMPONENTS: .class - what it is
.wrap - centered max-width page container
.section - vertical rhythm spacing wrapper
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.eyebrow - small uppercase label above headings
.reveal / .reveal.in-view / .reveal-clip / .reveal-stagger - scroll-reveal animation states
.site-header / .logo-mark / .site-nav / .nav-cart / .cart-count / .nav-toggle - header & nav
.btn / .btn-fill / .btn-outline / .btn-ghost / .btn-sm - button variants with fill-sweep hover
.page-hero / .breadcrumbs - inner page hero banner + breadcrumb trail
.prose - readable long-form legal/content text block
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-warn - callout boxes
.card / .card-media / .card-body - generic content card with hover lift + image zoom
.product-card / .product-strip - product card and mobile horizontal scroll-snap strip
.product-detail / .product-detail-media / .product-detail-info / .product-specs / .engraving-field / .qty-row - product page layout
.cart-table / .cart-summary / .cart-empty - cart & checkout layout
.form-grid / .field / .field-error / .hp-field / .form-msg - form layout, fields, honeypot, feedback message
.contact-layout / .contact-info - contact page two-column layout
.faq / .faq-item - FAQ accordion built on details/summary
.split-hero / .split-half / .split-pine / .split-snow / .split-divider - home split-screen hero
.hero-assembling - SVG hero composition with shapes assembling into the logo
.accordion-panels / .accordion-panel / .accordion-panel-label / .accordion-panel-body - home expanding panel composition
.warmth-test / .warmth-form - signature "Topli Test" interactive feature section
.section-divider / .grain-overlay / .badge-seal / .ornament-wave - bespoke decorative SVG utilities
.site-footer / .footer-grid / .footer-col / .newsletter-form - footer layout
.cookie-banner / .cookie-actions - cookie consent banner
.page-404 - 404 page layout
*/

/* ===== missing components ===== */
.logo {
  display: inline-flex;
  align-items: center;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-input {
  width: 64px;
  padding: 12px 14px;
  text-align: center;
  border: 1px solid rgba(16,42,36,.25);
  border-radius: 8px;
  font: inherit;
  accent-color: var(--berry);
  background: var(--snow-2);
}

.qty-input:focus {
  border-color: var(--pine);
}

.remove-btn {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--berry);
  font-weight: 600;
  font-size: .85rem;
  transition: background-color .25s ease, color .25s ease;
}

.remove-btn:hover {
  background-color: rgba(178,58,58,.08);
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 600px) {
  .qty-input {
    width: 56px;
  }
}
