/* Krovopokrivač Varaždin — site stylesheet */

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f5f2ec;
  color: #1d2126;
  font-family: 'Barlow', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #b5532f; text-decoration: none; }
a:hover { color: #8e3d20; }
input, select, textarea, button { font-family: inherit; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
h1, h2, h3 {
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.wrap-article { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Topbar ---------- */
.topbar { background: #16191d; color: #b9bdc2; font-size: 14px; }
.topbar .wrap { padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.topbar a { color: #b9bdc2; }
.topbar a.phone { color: #fff; font-weight: 600; }
.topbar-left { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #f5f2ec; border-bottom: 1px solid #ddd6ca; }
.site-header .wrap { padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.logo { display: flex; align-items: center; gap: 12px; color: #1d2126; }
.logo-mark { width: 44px; height: 44px; background: #1d2126; display: flex; align-items: center; justify-content: center; flex: none; }
.logo-mark span { width: 20px; height: 20px; border-top: 5px solid #d0663c; border-left: 5px solid #d0663c; transform: translateY(5px) rotate(45deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .word { font-family: 'Barlow Condensed', Arial Narrow, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: 0.01em; text-transform: uppercase; }
.logo-text .city { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: #b5532f; margin-top: 4px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1; justify-content: center; }
.main-nav a { color: #1d2126; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #b5532f; }
.main-nav a.active { color: #b5532f; border-bottom-color: #b5532f; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #1d2126; color: #1d2126; padding: 10px 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.cart-btn:hover { background: #1d2126; color: #fff; }
.cart-badge { background: #b5532f; color: #fff; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; padding: 14px 24px; border: none; cursor: pointer; text-align: center; }
.btn-primary { background: #b5532f; color: #fff; }
.btn-primary:hover { background: #8e3d20; color: #fff; }
.btn-primary-alt:hover { background: #d0663c; color: #fff; }
.btn-dark { background: #1d2126; color: #fff; }
.btn-dark:hover { background: #b5532f; color: #fff; }
.btn-outline-dark { border: 1px solid #1d2126; color: #1d2126; background: transparent; }
.btn-outline-dark:hover { background: #1d2126; color: #fff; }
.btn-outline-light { border: 1px solid #5b6068; color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-white { background: #fff; color: #1d2126; }
.btn-white:hover { background: #f5f2ec; color: #1d2126; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.link-arrow { font-weight: 600; font-size: 17px; border-bottom: 2px solid #b5532f; padding-bottom: 2px; display: inline-block; }
.link-arrow:hover { color: #1d2126; }

/* chip / toggle buttons */
.chip { padding: 10px 14px; border: 1px solid #cfc8bb; background: #fff; color: #1d2126; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip.active { background: #1d2126; color: #fff; border-color: #1d2126; }
.chip-cat { padding: 10px 16px; border: 1px solid #1d2126; background: transparent; color: #1d2126; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip-cat.active { background: #1d2126; color: #fff; }

/* ---------- Sections ---------- */
section { padding: 96px 24px; }
.section-sm { padding: 72px 24px; }
.section-hero-dark { background: #1d2126; color: #f5f2ec; padding: 88px 24px 96px; }
.section-page-head { background: #1d2126; color: #f5f2ec; padding: 72px 24px 64px; }
.section-alt { background: #ebe6dd; }
.section-dark { background: #1d2126; color: #f5f2ec; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #b5532f; }
.eyebrow-light { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #e0835c; }
.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #9a9fa6; }
.breadcrumb a { color: #9a9fa6; }
h1.page-title { font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: 0.95; margin: 0; }
h2.section-title { font-weight: 700; font-size: clamp(36px, 4.5vw, 58px); line-height: 1; }
.lead { font-size: 19px; color: #c9ccd0; margin: 0; max-width: 680px; }
.lead-dark { font-size: 18px; color: #4f555c; margin: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 32px; }
.grid-values { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.grid-team { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }

/* ---------- Image placeholders / media frame ---------- */
.media { position: relative; overflow: hidden; background: #d9d3c8; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-4-5 { aspect-ratio: 4/5; }
.media-1-1 { aspect-ratio: 1/1; }
.media-4-3 { aspect-ratio: 4/3; }
.media-3-4 { aspect-ratio: 3/4; }
.media-16-10 { aspect-ratio: 16/10; }
.media-16-9 { aspect-ratio: 16/9; }
.media-dark { background: #2a3036; }
.media-caption { position: absolute; left: 16px; bottom: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #fff; background: rgba(0,0,0,.35); padding: 4px 8px; }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.hero-badge { position: absolute; left: -20px; bottom: 40px; background: #f5f2ec; color: #1d2126; padding: 18px 22px; max-width: 260px; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
@media (max-width: 640px) { .hero-badge { left: 12px; right: 12px; max-width: none; bottom: 12px; } }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid #3a4047; padding-top: 24px; margin-top: 8px; }
.hero-stats .num { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.hero-stats .cap { font-size: 14px; color: #9a9fa6; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1px; background: #d6cfc2; border: 1px solid #d6cfc2; }
.service-card { background: #f5f2ec; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: #1d2126; min-height: 260px; }
.service-card:hover { background: #fff; }
.service-card h3 { font-size: 30px; line-height: 1.05; }
.service-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e0d9cd; padding-top: 14px; }
.service-card .foot .go { color: #b5532f; font-weight: 600; }

.service-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; padding: 48px 0; border-bottom: 1px solid #d6cfc2; align-items: center; }
.service-row h2 { font-size: 40px; }
.service-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 20px; }
.service-points li { display: flex; gap: 10px; font-size: 16px; }
.dash { color: #b5532f; font-weight: 700; }
.check { color: #b5532f; font-weight: 700; }

/* ---------- Cards general ---------- */
.card { background: #fff; border: 1px solid #ddd6ca; }
.value-card { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid #1d2126; padding-top: 16px; }
.step-card { display: flex; flex-direction: column; gap: 12px; }
.step-card .n { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 72px; line-height: 0.9; color: #e0835c; }

/* ---------- Review cards ---------- */
.review-card { margin: 0; background: #fff; border: 1px solid #ddd6ca; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.review-stars { color: #b5532f; font-size: 18px; letter-spacing: 4px; }
.review-card blockquote { margin: 0; font-size: 18px; line-height: 1.5; flex: 1; }
.review-card figcaption span { color: #7a7f86; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid #cfc8bb; }
.faq-list details { border-bottom: 1px solid #cfc8bb; padding: 20px 0; }
.faq-list summary { cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 19px; }
.faq-list summary .plus { color: #b5532f; font-size: 24px; line-height: 1; }
.faq-list p { margin: 14px 0 0; color: #4f555c; font-size: 17px; }

/* ---------- Checklist (self-check) ---------- */
.check-item { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; border: 1px solid #d6cfc2; background: transparent; cursor: pointer; font-size: 17px; color: #1d2126; width: 100%; }
.check-item .box { width: 24px; height: 24px; flex: none; border: 2px solid #1d2126; background: transparent; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.check-item.active { border-color: #1d2126; background: #fff; }
.check-item.active .box { background: #b5532f; }
.check-result { background: #1d2126; color: #f5f2ec; padding: 24px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.check-result .label { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: #e0835c; }

/* ---------- Calculator ---------- */
.calc-box { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 26px; border: 1px solid #d6cfc2; }
.calc-result { background: #1d2126; color: #f5f2ec; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.calc-result .cap { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: #9a9fa6; }
.calc-result .amount { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px; line-height: 1.05; }
input[type="range"] { width: 100%; accent-color: #b5532f; }

/* ---------- Products ---------- */
.product-card { background: #fff; border: 1px solid #ddd6ca; display: flex; flex-direction: column; }
.product-card .pad { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #b5532f; }
.product-card .name { font-size: 17px; line-height: 1.3; flex: 1; }
.product-card .sku { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7a7f86; }
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price-row .amt { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; }
.price-row .unit { color: #7a7f86; font-size: 14px; }
.add-btn { background: #1d2126; color: #fff; border: none; padding: 12px; font-weight: 600; font-size: 15px; cursor: pointer; width: 100%; }
.add-btn:hover { background: #b5532f; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  padding: 12px 14px; border: 1px solid #cfc8bb; background: #fff; font-size: 16px; width: 100%;
}
textarea { resize: vertical; }
fieldset { border: 1px solid #d6cfc2; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-weight: 700; padding: 0 6px; }
.radio-row, .check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.radio-row input, .check-row input { accent-color: #b5532f; margin-top: 4px; }

/* ---------- Order summary / cart ---------- */
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #d6cfc2; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; }
.qty-ctl { display: flex; align-items: center; }
.qty-ctl button { width: 34px; height: 34px; border: 1px solid #cfc8bb; background: #fff; cursor: pointer; font-size: 18px; }
.qty-ctl .qty { width: 46px; text-align: center; font-weight: 600; }
.remove-link { margin-left: 14px; background: none; border: none; color: #b5532f; cursor: pointer; font-size: 14px; text-decoration: underline; }
.order-summary { background: #fff; border: 1px solid #d6cfc2; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 110px; }
.summary-row { display: flex; justify-content: space-between; }
.summary-total { display: flex; justify-content: space-between; border-top: 1px solid #d6cfc2; padding-top: 14px; font-size: 20px; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { background: #b5532f; color: #fff; padding: 56px 24px; }
.cta-band .inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-band strong { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(30px, 3.5vw, 44px); text-transform: uppercase; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #16191d; color: #b9bdc2; padding: 72px 24px 32px; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 40px; }
.footer-cols strong { color: #fff; display: block; margin-bottom: 10px; }
.footer-cols a, .footer-cols button.link-like { display: block; color: #b9bdc2; padding: 4px 0; background: none; border: none; text-align: left; font-size: 15px; cursor: pointer; }
.footer-cols a:hover, .footer-cols button.link-like:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c3137; padding-top: 24px; margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #80868d; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(22,25,29,.5); z-index: 60; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: -440px; bottom: 0; width: min(420px, 100%); background: #f5f2ec; z-index: 61; display: flex; flex-direction: column; box-shadow: -20px 0 40px rgba(0,0,0,.2); transition: right .25s ease; }
.cart-drawer.open { right: 0; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #d6cfc2; }
.cart-drawer-head .close { background: none; border: none; font-size: 28px; cursor: pointer; line-height: 1; color: #1d2126; }
.cart-drawer-body { flex: 1; overflow: auto; padding: 0 24px; }
.cart-drawer-foot { padding: 24px; border-top: 1px solid #d6cfc2; display: flex; flex-direction: column; gap: 10px; background: #fff; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: none; justify-content: center; }
.cookie-banner.open { display: flex; }
.cookie-banner .inner { max-width: 880px; width: 100%; background: #1d2126; color: #e6e8ea; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.cookie-banner a { color: #e0835c; }

/* ---------- Phone FAB ---------- */
.phone-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: #b5532f; color: #fff; padding: 14px 18px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.phone-fab:hover { background: #8e3d20; color: #fff; }

/* ---------- Legal pages ---------- */
.legal-meta { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #7a7f86; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 0.95; margin: 0 0 12px; }
.legal h2 { font-size: 24px; text-transform: none; margin: 20px 0 0; }
.legal p, .legal ul { margin: 0; font-size: 17px; line-height: 1.65; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.table-cookies { display: flex; flex-direction: column; border: 1px solid #d6cfc2; margin-top: 12px; font-size: 15px; }
.table-cookies .row { display: grid; grid-template-columns: 1.2fr 1fr 2fr 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid #d6cfc2; }
.table-cookies .row.head { border-top: none; background: #1d2126; color: #fff; font-weight: 600; }
.table-impressum { display: flex; flex-direction: column; border-top: 1px solid #d6cfc2; }
.table-impressum .row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #d6cfc2; }
.table-impressum .row span:first-child { color: #5b6068; }
.table-impressum .row span:last-child { font-weight: 500; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.sticky-top { position: sticky; top: 110px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #ebe6dd; padding: 5px 10px; font-size: 14px; }
.material-tag { border: 1px solid #1d2126; padding: 9px 14px; font-weight: 500; }

@media (max-width: 720px) {
  section { padding: 56px 20px; }
  .section-hero-dark { padding: 56px 20px 64px; }
  .section-page-head { padding: 48px 20px 40px; }
  .order-summary, aside.sticky-top { position: static; }
}
