/* =========================================================
   Jantarova — domy w mieście
   ========================================================= */

:root{
  --bg:            #faf8f4;
  --bg-alt:        #f1ebe2;
  --ink:           #2a2622;
  --ink-soft:      #6f665c;
  --line:          #e3dbcd;
  --accent:        #a9743a;
  --accent-dark:   #8a5e2c;
  --dark:          #22201c;
  --dark-soft:     #b9b0a4;
  --white:         #ffffff;
  --radius:        2px;
  --container:     1240px;
  --font-head:     'Poppins', sans-serif;
  --font-body:     'Work Sans', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-head); font-weight: 400; margin:0; color: var(--ink); }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- generic section ---------- */
.section{ padding: 110px 0; }
.section-alt{ background: var(--bg-alt); }
.section-title{
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 56px;
  color: var(--ink);
}
.section-intro{
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 17px;
  margin: -30px 0 56px;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow-light{ color: rgba(255,255,255,.85); }

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  padding: 16px 34px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
  cursor: pointer;
  background: transparent;
}
.btn-accent{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-accent:hover{ background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-block{ width:100%; text-align:center; }

/* ================= HEADER ================= */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 200;
  background: rgba(250,248,244,.62);
  backdrop-filter: blur(8px);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.is-scrolled{
  background: rgba(250,248,244,.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(6px);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display:flex;
  align-items:center;
  gap: 20px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
}
.main-nav{ min-width: 0; }
.header-cta{ flex-shrink: 0; }
.brand-mark{ width: 34px; height: 34px; }
.brand-word{
  font-family: var(--font-head);
  letter-spacing: .18em;
  font-size: 15px;
  color: var(--ink);
}
.main-nav ul{ display:flex; gap: 26px; }
.main-nav a{
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink);
  opacity: .8;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.main-nav a:hover{ opacity: 1; color: var(--accent); }
.header-cta{ padding: 12px 26px; font-size: 12px; }

.nav-toggle{
  display:none;
  flex-direction: column;
  justify-content:center;
  gap:5px;
  width: 30px; height: 26px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
}
.nav-toggle span{
  display:block;
  height:1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ================= HERO ================= */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(14,12,10,.62) 0%, rgba(14,12,10,.28) 42%, rgba(14,12,10,0) 68%),
    linear-gradient(180deg, rgba(20,17,14,.42) 0%, rgba(20,17,14,.12) 32%, rgba(20,17,14,.58) 100%);
}
.hero-content{
  position:relative;
  z-index:1;
  color: var(--white);
  max-width: 640px;
  padding: 180px 32px 90px;
  margin-right: 420px;
}
.hero-content h1{
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.08;
  font-weight: 300;
  margin-bottom: 22px;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
}
.hero-content h1 span{ color: var(--accent); }
.hero-lead{
  font-size: 17px;
  max-width: 480px;
  color: rgba(255,255,255,.92);
  margin-bottom: 34px;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.eyebrow-light{ text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.scroll-cue{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-transform: uppercase;
  letter-spacing:.12em;
  font-size:12px;
  color: var(--white);
}
.scroll-cue span{
  width: 34px; height:1px; background: var(--white);
  position:relative;
}
.scroll-cue span::after{
  content:"";
  position:absolute; right:0; top:-3px;
  width:7px; height:7px;
  border-right:1px solid var(--white);
  border-bottom:1px solid var(--white);
  transform: rotate(45deg);
}

.hero-form{
  position:absolute;
  right: 32px;
  bottom: 60px;
  z-index:2;
  width: 380px;
  max-width: calc(100% - 64px);
  background: rgba(255,255,255,.97);
  padding: 40px 36px 34px;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.hero-form h2{
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing:.04em;
  line-height:1.25;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.hero-form > p{ font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.field{ margin-bottom: 14px; }
.field input, .field textarea{
  width:100%;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius);
  resize: vertical;
}
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--accent); }
.radio-row{ display:flex; flex-direction:column; gap:8px; margin: 4px 0 14px; font-size:13px; color: var(--ink-soft); }
.radio-row label{ display:flex; align-items:center; gap:8px; }
.checkbox-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 11.5px;
  line-height:1.5;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.checkbox-row input{ margin-top:3px; flex-shrink:0; }
.form-note{ margin-top:14px; font-size:13px; color: var(--accent-dark); text-align:center; }

/* ================= two-col intro text ================= */
.two-col.intro-text{
  display:grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  margin-bottom: 56px;
}
.lead-label{
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .04em;
  line-height:1.4;
  color: var(--ink);
}
.lead-body p{ color: var(--ink-soft); margin: 0 0 16px; font-size: 16px; }
.lead-body p:last-child{ margin-bottom:0; }

.banner-img{ margin: 0 0 56px; }
.banner-img img{ width:100%; height: 520px; object-fit: cover; border-radius: var(--radius); }

.img-pair{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.img-pair img{ width:100%; height: 360px; object-fit: cover; border-radius: var(--radius); }

/* ================= ATUTY ================= */
.atuty-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
.atut-card{
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 34px 24px;
  text-align:left;
}
.atut-icon{
  display:inline-flex;
  width: 48px; height:48px;
  color: var(--accent);
  margin-bottom: 20px;
}
.atut-icon svg{ width:100%; height:100%; }
.atut-card h3{
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing:.04em;
  margin-bottom: 10px;
}
.atut-card p{ font-size: 14px; color: var(--ink-soft); margin:0; }

/* ================= LOKALE ================= */
.lokale-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.lokal-card{ background: var(--bg); border: 1px solid var(--line); }
.lokal-img{ height: 280px; overflow:hidden; }
.lokal-img img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.lokal-card:hover .lokal-img img{ transform: scale(1.04); }
.lokal-body{ padding: 28px 30px 32px; }
.lokal-tag{
  display:inline-block;
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.lokal-body h3{
  font-size: 24px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom: 12px;
}
.lokal-body p{ color: var(--ink-soft); font-size:15px; margin-bottom:18px; }
.link-arrow{
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing:.08em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover{ color: var(--accent); border-color: var(--accent); }
.lokale-note{ font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; }

/* ================= OTOCZENIE / map ================= */
.map-frame{ border: 1px solid var(--line); line-height:0; }
.map-frame iframe{ width:100%; display:block; filter: grayscale(15%); }

/* ================= ARCHITEKTURA ================= */
.arch-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.arch-row.single{ grid-template-columns: 1fr; }
.arch-row img{ width:100%; height: 460px; object-fit:cover; border-radius: var(--radius); }
.arch-row.single img{ height: 620px; }

/* ================= WNĘTRZA ================= */
.full-img img{ width:100%; height: 640px; object-fit: cover; display:block; }

/* ================= CTA band ================= */
.cta-band{
  background: var(--dark);
  color: var(--white);
  text-align:center;
  padding: 100px 0;
}
.cta-inner{ max-width: 620px; }
.cta-mark{ width: 56px; height:56px; margin: 0 auto 24px; opacity:.9; }
.cta-band h2{
  font-size: clamp(26px,3vw,34px);
  text-transform: uppercase;
  letter-spacing:.06em;
  margin-bottom: 18px;
  color: var(--white);
}
.cta-band p{ color: var(--dark-soft); margin-bottom: 34px; font-size:15px; }
.cta-band .btn-accent{ border-color: var(--accent); }

/* ================= FOOTER ================= */
.site-footer{ background: var(--dark); color: var(--dark-soft); }
.footer-inner{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 32px 50px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ width: 34px; height:34px; }
.footer-brand span{
  font-family: var(--font-head);
  letter-spacing:.18em;
  font-size:15px;
  color: var(--white);
}
.footer-col h4{
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing:.1em;
  margin-bottom: 12px;
  font-weight:400;
}
.footer-col p{ font-size: 14px; line-height:1.7; margin:0; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom p{ margin:0; font-size:12.5px; text-align:center; color: var(--dark-soft); }

/* ================= back to top ================= */
.back-to-top{
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height:44px;
  border-radius:50%;
  background: var(--ink);
  color: var(--white);
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  opacity:0; pointer-events:none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 150;
}
.back-to-top.is-visible{ opacity:1; pointer-events:auto; transform:none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .hero{ flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 60px; }
  .hero-content{ margin-right: 0; max-width: 620px; padding-top: 150px; }
  .hero-form{ position: static; margin: 60px 32px 0; width:auto; box-shadow:none; }
  .atuty-grid{ grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px){
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg);
    box-shadow: -10px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 110px 40px;
    z-index: 190;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 26px; }
  .main-nav a{ font-size: 15px; }
  .nav-toggle{ display:flex; }
  .header-cta{ display:none; }

  .two-col.intro-text{ grid-template-columns: 1fr; gap: 20px; }
  .img-pair{ grid-template-columns: 1fr; }
  .atuty-grid{ grid-template-columns: repeat(2,1fr); }
  .lokale-grid{ grid-template-columns: 1fr; }
  .arch-row{ grid-template-columns: 1fr; }
  .arch-row img, .arch-row.single img{ height: 380px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; margin-bottom: 10px; }
}

@media (max-width: 560px){
  .section{ padding: 76px 0; }
  .container{ padding: 0 22px; }
  .hero-content{ padding: 130px 22px 40px; }
  .hero-form{ margin: 40px 22px 0; padding: 30px 24px 26px; }
  .banner-img img{ height: 300px; }
  .atuty-grid{ grid-template-columns: 1fr; }
  .full-img img{ height: 320px; }
  .footer-inner{ grid-template-columns: 1fr; padding: 50px 22px 40px; }
}
