/* ============================================================
   Brick Hotel - kwatery pracownicze, Błonie (demo scall.me)
   Silnik: dwuszpaltowy uklad "oferta + sticky panel zapytania"
   ============================================================ */

:root {
  --navy: #182a3f;
  --navy-deep: #101d2c;
  --steel: #46586b;
  --ink: #232f3d;
  --brick: #a63e24;
  --brick-dark: #8c3018;
  --bg: #ffffff;
  --bg-soft: #f3f5f7;
  --line: #dde3e9;
  --panel-line: #2e4258;
  --radius: 10px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brick); }
a:hover { color: var(--brick-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

section[id], aside[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(16, 29, 44, 0.1); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-mark {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 7px 6px;
}
.brand-mark i { background: var(--brick); border-radius: 1px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.brand-text small { font-size: 0.72rem; color: var(--steel); font-weight: 500; }

.nav-links { margin-left: auto; display: flex; gap: 22px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a:hover { color: var(--brick); }

.nav-cta {
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 0.94rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brick-dark); color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 20px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav-tel { color: var(--brick); }

/* ---------- Layout: dwie szpalty ---------- */

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 44px;
}

/* ---------- Hero ---------- */

.hero { padding: 36px 0 8px; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brick);
  margin-bottom: 10px;
}

.hero h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); font-weight: 800; margin-bottom: 14px; }

.hero-lead { font-size: 1.06rem; color: var(--steel); max-width: 56ch; margin-bottom: 18px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.badge-rating { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge-rating strong { color: #ffc76b; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: center;
}
.btn-brick { background: var(--brick); color: #fff; }
.btn-brick:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { background: none; color: var(--navy); border: 2px solid var(--navy); padding: 11px 20px; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-full { width: 100%; }

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- Panel zapytania ---------- */

.panel {
  background: var(--navy);
  color: #eef3f8;
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  border-top: 5px solid var(--brick);
}
.panel-col { margin-top: 24px; }

.panel h2 {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.panel-sub { font-size: 0.92rem; color: #c3d0dd; margin-bottom: 18px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #dbe4ee;
  margin-bottom: 5px;
}
.field input, .field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 7px;
  border: 1px solid var(--panel-line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--brick);
  outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: #e2836b; outline: 2px solid #e2836b; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-bottom: 14px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { margin-top: 12px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: #9fe3b1; font-weight: 600; }
.form-status.err { color: #ffb39e; font-weight: 600; }

.panel-note { margin-top: 12px; font-size: 0.8rem; color: #9fb0c2; }

/* ---------- Sekcje lewej kolumny ---------- */

.col-main > section { padding: 34px 0; border-top: 1px solid var(--line); }
.col-main > section:first-child { border-top: 0; }

.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 10px; }
.section-lead { color: var(--steel); max-width: 62ch; margin-bottom: 22px; }

/* liczby */
.stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stats-grid li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brick);
  border-radius: 8px;
  padding: 14px 16px;
}
.stats-grid strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.1;
}
.stats-grid span { font-size: 0.88rem; color: var(--steel); }

/* galeria */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.gallery-grid figcaption { font-size: 0.88rem; color: var(--steel); margin-top: 8px; }

/* dla firm */
.b2b-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.b2b-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
}
.b2b-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.b2b-card p { font-size: 0.95rem; color: var(--steel); }
.b2b-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* lokalizacja */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.location-address {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  align-self: start;
}
.address-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: #ffc76b;
  font-weight: 700;
  margin-bottom: 6px;
}
.address-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.address-extra { margin-top: 10px; font-size: 0.9rem; color: #c3d0dd; }

.location-list { list-style: none; display: grid; gap: 12px; }
.location-list li {
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--steel);
  position: relative;
}
.location-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brick);
  border-radius: 8px 0 0 8px;
}
.location-list strong { color: var(--navy); }

/* opinie */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.review-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.review-card p { font-size: 0.98rem; color: var(--ink); }
.review-card p::before { content: "\201E"; color: var(--brick); font-weight: 700; }
.review-card p::after { content: "\201D"; color: var(--brick); font-weight: 700; }
.review-card footer { margin-top: 8px; font-size: 0.82rem; color: var(--steel); font-weight: 600; }
.reviews-link { margin-top: 18px; font-size: 0.95rem; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
}
.contact-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 4px;
}
.contact-value { font-weight: 600; color: var(--navy); }
.contact-value a { color: var(--navy); text-decoration: none; }
.contact-value a:hover { color: var(--brick); }

/* ---------- Sticky CTA mobile ---------- */

.mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 40;
  background: var(--brick);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 29, 44, 0.3);
}
.mobile-cta:hover { background: var(--brick-dark); color: #fff; }

body { padding-bottom: 74px; } /* miejsce na sticky CTA na mobile */

/* ---------- Stopka ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b8c5d3;
  text-align: center;
  padding: 26px 20px 32px;
  font-size: 0.9rem;
}

.site-credit { margin-top: 8px; font-size: 0.82rem; }
.site-credit a { color: #8fa3b8; text-decoration: none; }
.site-credit a:hover { color: #fff; }

/* ---------- Reveal (ukryte TYLKO pod .js - patrz CHECKLIST Bramka 1 pkt 5) ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in, .js.ready .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Breakpointy ---------- */

/* tablet+ : wiecej kolumn w sekcjach */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .b2b-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 260px 1fr; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

/* burger ponizej 880px (iPad 768 dostaje burger - CHECKLIST Bramka 1 pkt 6) */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* desktop: dwie szpalty + sticky panel, chowamy mobilne CTA */
@media (min-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto 1fr;
  }
  .hero { grid-column: 1; grid-row: 1; }
  .col-main { grid-column: 1; grid-row: 2; }
  .panel-col { grid-column: 2; grid-row: 1 / span 2; margin-top: 36px; }
  .panel { position: sticky; top: 84px; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
