/* Fotoatelier Domov — design system. Retro diner x forest/bone/brass. */
:root {
  --forest: #1f3b2c;
  --forest-dark: #12251a;
  --bone: #e8dcc0;
  --bone-light: #f6f1e3;
  --brass: #b5762f;
  --brass-light: #d79a4f;
  --teal: #2f6e66;
  --red: #a4342a;
  --ink: #1b1b16;
  --radius: 10px;
  --shadow-1: 0 8px 24px rgba(18, 37, 26, 0.18);
  --shadow-2: 0 18px 44px rgba(18, 37, 26, 0.28);
  --font-display: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, 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(--bone-light);
  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); margin: 0 0 0.5em; line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; opacity: 0.6; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--forest); color: var(--bone); box-shadow: var(--shadow-1); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0.7rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-mark { width: 150px; height: 33px; }
.logo-word { font-family: var(--font-display); font-size: 17px; fill: var(--bone); letter-spacing: 0.02em; }
.logo-word--accent { fill: var(--brass-light); }
.nav-toggle { display: none; background: none; border: 0; color: var(--bone); cursor: pointer; padding: 0.4rem; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { font-size: 0.95rem; padding: 0.4rem 0; position: relative; }
.site-nav a:not(.nav-cart)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--brass-light); transition: right 0.25s ease; }
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { right: 0; }
.nav-cart { display: flex; align-items: center; gap: 0.3rem; position: relative; min-height: 44px; }
.cart-count { background: var(--brass); color: var(--forest-dark); font-weight: 700; font-size: 0.75rem; border-radius: 999px; padding: 0.05rem 0.45rem; min-width: 1.4em; text-align: center; }
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.4); } }
.nav-close { display: none; background: none; border: 0; color: var(--forest); cursor: pointer; }
.nav-scrim { position: fixed; inset: 0; background: rgba(18,37,26,0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 48; }
.nav-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--bone-light); color: var(--ink); flex-direction: column; align-items: flex-start; padding: 4.5rem 1.6rem 2rem; gap: 1.1rem; transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease; z-index: 49; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-close { display: block; position: absolute; top: 1.2rem; right: 1.2rem; min-width: 44px; min-height: 44px; }
  .site-nav a { color: var(--ink); font-size: 1.05rem; }
  .nav-cart { color: var(--ink); }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; padding: 0.75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; min-height: 44px; position: relative; overflow: hidden; }
.btn-solid { background: var(--brass); color: var(--forest-dark); }
.btn-solid:hover { background: var(--brass-light); }
.btn-outline { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn-outline:hover { background: rgba(232,220,192,0.12); }
.btn-ghost { border-color: var(--bone); color: var(--bone-light); background: transparent; }
.btn-ghost:hover { background: rgba(232,220,192,0.15); }
.btn-sweep { background: var(--forest); color: var(--bone); z-index: 0; }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--teal); transition: left 0.3s ease; z-index: -1; }
.btn-sweep:hover::before { left: 0; }
.btn-block { width: 100%; }

/* ===== Layout helpers ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; }
.section { padding: 4.5rem 0; }
.grid { display: grid; gap: 1.6rem; }
.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-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ===== Hero ===== */
.hero { position: relative; background: var(--forest); color: var(--bone); overflow: hidden; padding: 5rem 0 6rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(232,220,192,0.05) 0 18px, transparent 18px 36px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-headline { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 1rem; }
.hero-headline .word { display: inline-block; opacity: 0; transform: translateY(0.6em); animation: word-rise 0.6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 0.08s); }
@media (prefers-reduced-motion: reduce) { .hero-headline .word { opacity: 1; transform: none; animation: none; } }
@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }
.hero-lede { font-size: 1.1rem; max-width: 42ch; color: var(--bone); opacity: 0.9; }
.hero-art { position: relative; aspect-ratio: 4/3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-2); filter: sepia(0.15) saturate(1.1); }
.hero-frame-svg { position: absolute; inset: -14px; z-index: 1; pointer-events: none; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ===== Divider strip ===== */
.divider-strip { display: block; }

/* ===== Reveal ===== */
.reveal { opacity: 1; }
.reveal.js-hidden { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 15% 0); transition: opacity 0.6s ease, transform 0.6s ease, clip-path 0.6s ease; }
.reveal.js-hidden.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ===== Card stack (home composition) ===== */
.stack-section { position: relative; padding: 5rem 0 7rem; background: var(--bone-light); }
.card-stack { position: relative; display: grid; gap: 1.4rem; max-width: 900px; margin: 0 auto; }
.stack-card { background: var(--bone); border: 1px solid rgba(31,59,44,0.15); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-1); transition: transform 0.4s ease, box-shadow 0.4s ease; }
@media (min-width: 720px) {
  .card-stack { display: block; height: 560px; }
  .stack-card { position: sticky; top: 90px; margin-bottom: 1.2rem; }
  .stack-card:nth-child(1) { transform: rotate(-1.4deg) translateX(-18px); }
  .stack-card:nth-child(2) { transform: rotate(1deg) translateX(10px); }
  .stack-card:nth-child(3) { transform: rotate(-0.6deg) translateX(-6px); }
  .stack-card.in-view:nth-child(1) { transform: rotate(-3deg) translateX(-60px); }
  .stack-card.in-view:nth-child(2) { transform: rotate(2deg) translateX(40px); }
  .stack-card.in-view:nth-child(3) { transform: rotate(-1deg) translateX(-30px); }
}
.stack-card h3 { color: var(--forest); }
.stack-card .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--brass); }

/* ===== Product / service cards ===== */
.product-card { background: var(--bone); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .thumb img { transform: scale(1.07); }
.product-card .body { padding: 1.2rem; }
.product-card h3 { color: var(--forest); font-size: 1.15rem; }
.product-card .price { color: var(--brass); font-weight: 700; }

.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.6rem; }
.product-strip .product-card { flex: 0 0 260px; scroll-snap-align: start; }
@media (min-width: 720px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; } }

/* ===== Memory Wall Planner (signature feature) ===== */
.planner { background: var(--forest); color: var(--bone); border-radius: var(--radius); padding: 2.4rem; display: grid; gap: 2rem; grid-template-columns: 1fr 1.3fr; box-shadow: var(--shadow-2); }
@media (max-width: 800px) { .planner { grid-template-columns: 1fr; } }
.planner-controls { display: flex; flex-direction: column; gap: 1rem; }
.planner-controls label { font-weight: 600; font-size: 0.9rem; }
.planner-controls select, .planner-controls input[type="range"] { width: 100%; accent-color: var(--brass); }
.planner-wall { position: relative; background: var(--bone); border-radius: 6px; min-height: 280px; padding: 1rem; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0.6rem; align-content: start; }
.planner-frame { aspect-ratio: 1; background: var(--forest-dark); border: 4px solid var(--brass); display: flex; align-items: center; justify-content: center; color: var(--bone); transition: transform 0.25s ease; }
.planner-frame:hover { transform: scale(1.04) rotate(-1deg); }
.planner-note { font-size: 0.85rem; opacity: 0.85; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--forest); color: var(--bone); padding: 3.2rem 0; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { max-width: 60ch; opacity: 0.9; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; gap: 0.4rem; font-size: 0.85rem; color: var(--forest); opacity: 0.75; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; }

/* ===== Prose (legal pages) ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { color: var(--forest); margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.3rem; }
.legal-toc { background: var(--bone); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; max-width: var(--measure); }
.legal-toc h2 { margin-top: 0; font-size: 1.05rem; color: var(--forest); }
.legal-toc ol { padding-left: 1.2rem; margin: 0; }

/* ===== Notice ===== */
.notice { border-left: 4px solid var(--brass); background: var(--bone); padding: 1rem 1.2rem; border-radius: 6px; margin: 1.4rem 0; max-width: var(--measure); }
.notice.notice-warn { border-left-color: var(--red); }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea { font: inherit; padding: 0.7rem 0.9rem; border: 2px solid rgba(31,59,44,0.25); border-radius: 8px; background: var(--bone-light); accent-color: var(--brass); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field-error { color: var(--red); font-size: 0.82rem; min-height: 1.1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.3em; font-weight: 600; }
.form-msg.is-success { color: var(--teal); }
.form-msg.is-error { color: var(--red); }
.field-row { display: flex; gap: 0.6rem; }
@media (max-width: 480px) { .field-row { flex-direction: column; } }

/* ===== FAQ ===== */
.faq { max-width: var(--measure); display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--bone); border-radius: 8px; padding: 0.3rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; color: var(--forest); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brass); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1rem; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price-tag { font-size: 1.8rem; color: var(--brass); font-weight: 700; }

/* ===== Cart ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 0.8rem; border-bottom: 1px solid rgba(31,59,44,0.15); }
.cart-summary { background: var(--bone); border-radius: var(--radius); padding: 1.4rem; max-width: 360px; margin-left: auto; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-top: 0.8rem; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { background: var(--forest); color: var(--bone); border-radius: var(--radius); padding: 1.8rem; }
.contact-info .info-row { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.9rem; }

/* ===== Footer ===== */
.site-footer { background: var(--forest-dark); color: var(--bone); padding: 3rem 0 1.2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; display: grid; grid-template-columns: 1.3fr 2fr 1.3fr; gap: 2rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-light); }
.footer-col a { opacity: 0.85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-brand p { opacity: 0.8; max-width: 32ch; }
.footer-news h3 { font-size: 1rem; }
.newsletter-form input[type="email"] { flex: 1; border: 0; border-radius: 8px; padding: 0.65rem 0.9rem; }
.footer-email { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; opacity: 0.85; }
.footer-bottom { text-align: center; opacity: 0.6; font-size: 0.82rem; margin-top: 2rem; }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--forest-dark); color: var(--bone-light); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-2); z-index: 60; display: flex; flex-direction: column; gap: 0.8rem; }
.cookie-actions { display: flex; gap: 0.8rem; justify-content: flex-end; flex-wrap: wrap; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 5rem 0; }
.error-404 .big { font-size: clamp(4rem, 14vw, 9rem); color: var(--brass); font-family: var(--font-display); margin: 0; }

/* COMPONENTS: .section - vertical page section wrapper
   COMPONENTS: .wrap - max-width content container
   COMPONENTS: .grid/.grid-2/.grid-3/.grid-4 - responsive grid layouts
   COMPONENTS: .hero - home/page hero band
   COMPONENTS: .hero-headline .word - staggered word-rise animated headline span
   COMPONENTS: .stack-section/.card-stack/.stack-card - home fanning card stack composition
   COMPONENTS: .product-card - catalog/service card with image zoom on hover
   COMPONENTS: .product-strip - horizontal scroll-snap product strip (mobile)
   COMPONENTS: .planner/.planner-controls/.planner-wall/.planner-frame - Memory Wall Planner signature feature
   COMPONENTS: .page-hero - inner page hero band
   COMPONENTS: .breadcrumbs - breadcrumb trail nav
   COMPONENTS: .prose - readable-measure long-form legal text
   COMPONENTS: .legal-toc - table of contents box for legal pages
   COMPONENTS: .notice/.notice-warn - callout box
   COMPONENTS: .btn/.btn-solid/.btn-outline/.btn-ghost/.btn-sweep/.btn-block - button variants
   COMPONENTS: .form-grid/.field/.field-full/.field-error/.hp-field/.form-msg - form layout and states
   COMPONENTS: .faq/.faq-item - details/summary FAQ accordion
   COMPONENTS: .product-detail/.gallery-main/.price-tag - product/service detail layout
   COMPONENTS: .cart-table/.cart-summary - booking basket / cart layout
   COMPONENTS: .contact-layout/.contact-info - contact page split layout
   COMPONENTS: .site-header/.site-nav/.nav-toggle/.nav-cart/.cart-count - header and nav
   COMPONENTS: .site-footer/.footer-cols/.newsletter-form - footer
   COMPONENTS: .cookie-banner/.cookie-actions - cookie consent banner
   COMPONENTS: .reveal/.js-hidden/.in-view - scroll-reveal animation hook
   COMPONENTS: .error-404 - 404 page layout
   COMPONENTS: .sr-only - visually hidden accessible text */

/* Custom page-specific styles */
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-thumb { background: none; border: 2px solid var(--brass); padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s ease; }
.gallery-thumb img { display: block; width: 100px; height: 75px; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--forest); }
.gallery-thumb.is-active { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31,59,44,0.2); }

.qty-input { border: 1px solid var(--brass); border-radius: var(--radius); padding: 0.5rem; text-align: center; font-family: var(--font-body); font-size: 1rem; }

.remove-btn { background: none; border: none; color: var(--red); cursor: pointer; font-size: 1.2rem; padding: 0.25rem; min-width: 44px; min-height: 44px; transition: opacity 0.2s; }
.remove-btn:hover { opacity: 0.7; }

.filter-btn { min-width: auto; padding: 0.5rem 1rem; }
.filter-btn.is-active { background: var(--brass); color: var(--forest-dark); }
