/* ===== BOKA Garden Room — style ===== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #faf7f2;
  --color-text: #2b2621;
  --color-text-muted: #6b6258;
  --color-accent: #a6763f;
  --color-accent-dark: #2b2621;
  --color-border: #e7e0d6;
  --color-promo: #b23b2e;
  --font-heading: 'Raleway', 'Open Sans', sans-serif;
  --font-body: 'Lato', 'Open Sans', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 .5em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.section-title strong { font-weight: 700; }
.section-sub { text-align: center; max-width: 720px; margin: 0 auto 40px; color: var(--color-text-muted); font-size: .95rem; }
.section-rule {
  width: 60px; height: 2px; background: var(--color-accent-dark); margin: 0 auto 20px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--color-accent); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent-dark);
  color: var(--color-accent-dark);
}
.btn-outline:hover { background: var(--color-accent-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
  transform: translateY(0);
  transition: transform .28s ease;
}
.site-header.site-header--hidden { transform: translateY(-100%); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.site-header .logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: .95rem; letter-spacing: .02em; white-space: nowrap;
}
.site-header .logo img { height: 34px; flex: none; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .88rem; font-weight: 600; letter-spacing: .02em; }
.nav-links a:hover { color: var(--color-accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-size: cover; background-position: center; background-attachment: fixed;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.1));
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 2.6rem; max-width: 640px; margin: 0 auto 28px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero h1 strong { font-weight: 800; }

/* ---- Products grid ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card { text-align: center; }
.product-card .thumb {
  aspect-ratio: 4/3; overflow: hidden; margin-bottom: 18px; background: var(--color-bg-alt);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.product-card .price { font-weight: 700; margin-bottom: 2px; }
.product-card .price-net { color: var(--color-text-muted); font-size: .82rem; margin-bottom: 14px; }
.product-card .badge { color: var(--color-promo); font-weight: 700; font-size: .82rem; margin-bottom: 8px; text-transform: uppercase; }
.product-card.configurator-card { display: flex; flex-direction: column; justify-content: center; background: var(--color-bg-alt); padding: 20px; }

/* ---- Product detail ---- */
.product-detail {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}
.product-detail:nth-child(even) { background: var(--color-bg-alt); }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product-detail .gallery-main { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 12px; cursor: zoom-in; }
.product-detail .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-detail .gallery-thumbs img { aspect-ratio: 1; object-fit: cover; cursor: zoom-in; border: 2px solid transparent; }
.product-detail .gallery-thumbs img:hover { border-color: var(--color-accent); }

.product-detail .kicker { color: var(--color-promo); font-weight: 700; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.product-detail h2 { font-size: 2rem; }
.product-detail .price-row { margin: 18px 0; }
.product-detail .price-old { text-decoration: line-through; color: var(--color-text-muted); margin-right: 10px; }
.product-detail .price-new { font-size: 1.6rem; font-weight: 800; color: var(--color-promo); }
.product-detail .price-net { color: var(--color-text-muted); font-size: .88rem; }
.product-detail .desc { margin: 20px 0; color: var(--color-text-muted); }
.product-detail .cta-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.spec-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 32px;
}
.spec-item { display: flex; gap: 14px; align-items: flex-start; }
.spec-item .icon { width: 40px; height: 40px; flex: none; }
.spec-item .icon img { width: 100%; height: 100%; object-fit: contain; }
.spec-item h4 { font-size: .95rem; margin-bottom: 2px; }
.spec-item p { margin: 0; font-size: .85rem; color: var(--color-text-muted); }

.options-note {
  margin-top: 40px; padding: 20px 24px; background: #fff; border: 1px solid var(--color-border);
}
.options-note h4 { margin-bottom: 10px; }
.options-note ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: .88rem; }
.options-note li { margin-bottom: 4px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,12,10,.92);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,.28); }

/* ---- Configurator ---- */
.configurator-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
.config-step { text-align: center; }
.config-step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 700;
}
.config-step h4 { font-size: 1rem; }
.config-step p { font-size: .86rem; color: var(--color-text-muted); }

.form-status { margin-top: 14px; font-size: .88rem; }
.form-status.ok { color: #2e6b2e; }
.form-status.err { color: var(--color-promo); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.about-card { text-align: center; }
.about-card .photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; background: var(--color-bg-alt); }
.about-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-card h3 { margin-bottom: 2px; }
.about-card .role { color: var(--color-accent); font-size: .85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.about-card p { color: var(--color-text-muted); font-size: .92rem; }

/* ---- Zobacz na żywo (parallax) ---- */
.parallax-section {
  position: relative; background-size: cover; background-position: center; background-attachment: fixed;
}
.parallax-section::before { content: ""; position: absolute; inset: 0; background: rgba(43,38,33,.6); }
.parallax-section .container { position: relative; z-index: 1; }
.visit-card {
  background: var(--color-bg); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.visit-copy p { margin-top: 16px; color: var(--color-text-muted); font-size: .95rem; }
.map-frame { position: relative; width: 100%; padding-bottom: 78%; height: 0; overflow: hidden; }
.map-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.embed-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border: none; padding: 24px; cursor: pointer; background: var(--color-bg-alt); font-family: inherit;
}
.embed-placeholder .ep-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--color-text); text-align: center; }
.embed-placeholder .ep-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--color-accent-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.embed-placeholder .ep-label { font-size: .9rem; font-weight: 700; }
.embed-placeholder .ep-note { font-size: .78rem; color: var(--color-text-muted); max-width: 34ch; }

/* ---- Kontakt ---- */
.contact-wrap {
  background: #fff; border: 1px solid var(--color-border); display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 0; overflow: hidden;
}
.contact-form { padding: 48px; border-right: 1px solid var(--color-border); }
.field { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--color-text-muted); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--color-border); color: var(--color-text); padding: 14px;
  font: inherit; font-size: .92rem;
}
.field select { padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent-dark); }
.field textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .78rem; color: var(--color-text-muted); }
.consent input { margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 22px; width: 100%; }
.form-helper { margin-top: 12px; font-size: .82rem; color: var(--color-text-muted); }
.contact-info { background: var(--color-bg-alt); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { width: 20px; height: 20px; stroke: var(--color-accent-dark); flex: none; margin-top: 2px; }
.info-row .t1 { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); font-weight: 700; }
.info-row .t2 { font-size: .92rem; font-weight: 600; margin-top: 4px; color: var(--color-text); }
.info-row a:hover { color: var(--color-accent); }

/* ---- Footer ---- */
.site-footer { background: var(--color-accent-dark); color: #fff; padding: 56px 0 0; }
.footer-top {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: start;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.15);
}
.fbrand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; color: #fff; }
.fbrand img { width: 26px; height: 26px; filter: invert(1); }
.footer-tagline { margin-top: 16px; font-size: .88rem; color: rgba(255,255,255,.72); max-width: 38ch; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: rgba(255,255,255,.72); }
.footer-contact .t1 { font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-contact a:hover { color: #fff; }
.footer-top .btn { align-self: start; }
.footer-bottom {
  padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.5);
  display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--color-accent-dark); color: #fff; padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner p { font-size: .84rem; color: rgba(255,255,255,.8); max-width: 64ch; line-height: 1.55; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }
.cookie-actions .btn { padding: 12px 22px; font-size: .8rem; }
.cookie-actions .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.cookie-actions .btn-outline:hover { background: #fff; color: var(--color-accent-dark); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* ---- Utility ---- */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .configurator-steps { grid-template-columns: 1fr; }
  .parallax-section, .hero { background-attachment: scroll; }
  .visit-card { grid-template-columns: 1fr; padding: 28px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { border-right: none; border-bottom: 1px solid var(--color-border); padding: 32px 24px; }
  .contact-info { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--color-border); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .products-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .site-header .logo { font-size: .8rem; }
}
