/* Pranjeoken Lipa — newspaper-broadsheet design system */

:root {
  --ink: #1b2420;
  --forest: #1b3a2f;
  --forest-dark: #112620;
  --bone: #f3ecd9;
  --bone-dim: #e9dfc4;
  --brass: #a9822c;
  --brass-light: #cda44f;
  --rule: #1b2420;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --measure: 68ch;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --radius: 2px;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 var(--space-2); 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 texture overlay ===== */
body::before {
  content: "";
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 1000; opacity: 0.045; mix-blend-mode: multiply;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* ===== layout helpers ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-3); }
.grid { display: grid; gap: var(--space-3); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-1{margin-top:var(--space-1)} .mt-2{margin-top:var(--space-2)} .mt-3{margin-top:var(--space-3)} .mt-4{margin-top:var(--space-4)}
.mb-1{margin-bottom:var(--space-1)} .mb-2{margin-bottom:var(--space-2)} .mb-3{margin-bottom:var(--space-3)} .mb-4{margin-bottom:var(--space-4)}
.section { padding: var(--space-5) 0; }
.rule { border: none; border-top: 2px solid var(--ink); margin: 0; }
.rule--thin { border-top: 1px solid var(--bone-dim); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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

/* ===== header / masthead ===== */
.site-header { background: var(--bone); border-bottom: 4px double var(--ink); position: relative; z-index: 50; }
.masthead { max-width: 1180px; margin: 0 auto; padding: var(--space-2) var(--space-3) var(--space-1); display: grid; gap: 0.4rem; }
.masthead-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); }
.logo { display: flex; align-items: center; gap: 0.6rem; justify-self: center; color: var(--forest); }
.logo-mark { color: var(--forest); flex: none; }
.logo-word { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); letter-spacing: 0.01em; }
.logo-word em { font-style: normal; color: var(--brass); }
.logo-word--footer { color: var(--bone); font-size: 1.5rem; }
.logo-word--footer em { color: var(--brass-light); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; position: absolute; right: var(--space-3); top: var(--space-2); cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--ink); display: block; }

.site-nav { display: flex; justify-content: center; gap: var(--space-3); padding: 0.6rem 0 0.9rem; border-top: 1px solid var(--bone-dim); font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; flex-wrap: wrap; }
.site-nav a { padding: 0.3rem 0.1rem; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brass); transition: width 0.25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--brass); }
.nav-cart { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-count { background: var(--forest); color: var(--bone); border-radius: 50%; min-width: 1.4em; height: 1.4em; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75em; }
.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: 760px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px); background: var(--forest); color: var(--bone); flex-direction: column; align-items: flex-start; padding: 5rem var(--space-3); gap: var(--space-2);
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s ease; z-index: 200; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .logo { justify-self: start; }
}

/* ===== hero ===== */
.hero { position: relative; overflow: hidden; background: var(--forest); color: var(--bone); padding: var(--space-5) 0 var(--space-4); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-4); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); color: var(--bone); }
.hero .lede { font-size: 1.15rem; max-width: 42ch; color: var(--bone-dim); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(0.15) saturate(1.1); border: 6px solid var(--bone); }
.hero-card { position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--bone); color: var(--ink); padding: var(--space-2) var(--space-3); border: 2px solid var(--ink); max-width: 220px; box-shadow: 10px 10px 0 var(--brass); }
.hero-card strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { position: static; margin-top: 1rem; box-shadow: 6px 6px 0 var(--brass); } }

.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(243,236,217,0.3); border-bottom: 1px solid rgba(243,236,217,0.3); padding: 0.5rem 0; margin-top: var(--space-4); font-family: var(--font-mono); letter-spacing: 0.06em; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; padding-left: 0; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== dividers / ornaments ===== */
.divider { width: 100%; height: 28px; color: var(--brass); margin: var(--space-3) 0; }
.badge-seal { width: 110px; height: 110px; color: var(--forest); }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; cursor: pointer; position: relative; overflow: hidden; min-height: 44px; transition: color 0.3s ease; }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--ink); z-index: -1; transition: left 0.3s ease; }
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--bone); }
.btn--brass { border-color: var(--brass); background: var(--brass); color: var(--forest-dark); }
.btn--brass::before { background: var(--forest-dark); }
.btn--brass:hover, .btn--brass:focus-visible { color: var(--bone); }
.btn--ghost { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--forest-dark); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== cards / products ===== */
.card { background: var(--bone); border: 1px solid var(--ink); padding: var(--space-3); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--brass); }
.product-card { display: flex; flex-direction: column; gap: 0.6rem; }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--ink); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--brass); }
.product-strip { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }

/* ===== Steklomer calculator ===== */
.steklomer { background: var(--forest); color: var(--bone); padding: var(--space-4); border: 1px solid var(--ink); }
.steklomer .form-grid { margin-top: var(--space-2); }
.steklomer label { color: var(--bone-dim); }
.steklomer-result { margin-top: var(--space-2); font-family: var(--font-display); font-size: 1.3rem; background: rgba(243,236,217,0.08); padding: var(--space-2); border: 1px dashed var(--brass-light); }

/* ===== page hero (inner pages) ===== */
.page-hero { background: var(--forest); color: var(--bone); padding: var(--space-4) 0 var(--space-3); }
.page-hero h1 { color: var(--bone); font-size: clamp(2rem, 1.6rem + 2vw, 3.2rem); }
.page-hero p { color: var(--bone-dim); max-width: var(--measure); }

/* ===== breadcrumbs ===== */
.breadcrumbs { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: 0.4rem; color: var(--forest); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brass); }
.breadcrumbs span[aria-hidden] { color: var(--brass); }

/* ===== prose (legal pages) ===== */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-4); font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem; }
.prose h3 { margin-top: var(--space-3); font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.legal-toc { background: var(--bone-dim); border: 1px solid var(--ink); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.legal-toc h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

/* ===== notice ===== */
.notice { border: 1px solid var(--ink); border-left: 6px solid var(--brass); padding: var(--space-2) var(--space-3); background: var(--bone-dim); }
.notice--success { border-left-color: var(--forest); }
.notice--error { border-left-color: #8a2b22; }

/* ===== forms ===== */
.form-grid { display: grid; gap: var(--space-2); }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--ink); background: var(--bone); color: var(--ink); padding: 0.7rem; font: inherit; accent-color: var(--brass); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #8a2b22; font-size: 0.85rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-feedback { color: #8a2b22; }
.form-success { color: var(--forest); font-weight: bold; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--bone-dim); padding: var(--space-2) 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brass); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.6rem; max-width: var(--measure); }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.product-detail > * { min-width: 0; }
.product-detail .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--ink); }
.product-detail .price { font-family: var(--font-display); font-size: 2rem; color: var(--brass); }
.product-detail .meta-list { display: flex; gap: var(--space-3); font-family: var(--font-mono); font-size: 0.85rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--bone-dim); padding: 0.8rem 0.5rem; text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--ink); }
.cart-table input[type=number] { width: 4rem; min-height: 40px; border: 1px solid var(--ink); padding: 0.3rem; }
.cart-summary { background: var(--bone-dim); border: 1px solid var(--ink); padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.3rem; border-top: 2px solid var(--ink); padding-top: 0.6rem; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.contact-layout > * { min-width: 0; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-info .item { display: flex; gap: 0.7rem; align-items: flex-start; }
.contact-info svg { color: var(--brass); flex: none; margin-top: 0.1rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== footer ===== */
.site-footer { background: var(--forest-dark); color: var(--bone-dim); padding: var(--space-5) 0 var(--space-2); margin-top: var(--space-5); }
.footer-grid { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-3); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: var(--space-3); }
.footer-grid > * { min-width: 0; }
.footer-col h3 { color: var(--bone); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); margin-bottom: 0.8rem; }
.footer-col a { display: block; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--brass-light); }
.footer-mail { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.6rem; color: var(--brass-light); }
.footer-newsletter .field { flex-direction: row; }
.footer-newsletter input { flex: 1; min-width: 0; }
.footer-bottom { text-align: center; padding-top: var(--space-4); font-size: 0.8rem; color: var(--bone-dim); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; background: var(--forest-dark); color: var(--bone); padding: var(--space-2) var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; border-top: 2px solid var(--brass); }
.cookie-banner a { color: var(--brass-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; }

.meta-short { color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.meta-list { font-size: 0.9rem; display: block; }
.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--bone-dim); padding: var(--space-2) 0; cursor: pointer; }
.faq-item h3 { margin-top: 0; margin-bottom: 0; font-size: 1rem; }
.faq-item p { margin: 0.6rem 0 0 0; max-width: var(--measure); }

/* COMPONENTS:
.wrap - centered max-width content wrapper
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.section - vertical page section spacing
.rule / .rule--thin - horizontal divider lines
.reveal / .reveal--clip / .reveal-group - scroll-reveal animation hooks
.site-header / .masthead / .logo / .logo-mark / .logo-word - header & masthead branding
.nav-toggle / .site-nav / .nav-cart / .cart-count - navigation & mobile menu
.hero / .hero-grid / .hero-media / .hero-card / .lede - home hero section
.ticker - scrolling headline ticker (hero motion)
.divider / .badge-seal - decorative bespoke SVG ornaments
.btn / .btn--brass / .btn--ghost / .btn--block - button variants with fill-sweep hover
.card / .product-card / .product-strip / .thumb - product/service cards and mobile strip
.steklomer / .steklomer-result - signature calculator feature block
.page-hero - inner-page hero banner
.breadcrumbs - breadcrumb navigation trail
.prose / .legal-toc - long-form legal text and table of contents
.notice / .notice--success / .notice--error - callout boxes
.form-grid / .field / .field-error / .honeypot / .form-feedback / .form-success - form components
.faq / .faq-item - accordion FAQ entries
.product-detail / .meta-list - single product/service detail layout
.cart-table / .cart-summary - cart and checkout tables
.contact-layout / .contact-info - contact page two-column layout
.site-footer / .footer-grid / .footer-col / .footer-newsletter / .footer-bottom - site footer
.cookie-banner / .cookie-actions - cookie consent banner
*/
