/* NKK Nieruchomości – main.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1e3fa0;
  --blue-dark: #152d78;
  --blue-light: #2b52cc;
  --gold: #c8a94b;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --text: #1a1a2e;
  --text-muted: #5a6072;
  --border: #e0e4ef;
}

html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); font-size: 16px; line-height: 1.6; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 12px rgba(30,63,160,.07);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px; background: var(--blue); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.logo-text-block { display: flex; flex-direction: column; }
.logo-main { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--blue); letter-spacing: 1px; line-height: 1.1; text-transform: uppercase; }
.logo-sub { font-size: 10px; font-weight: 300; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 8px 14px; border-radius: 4px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--blue); background: #eef1fb; }
.nav-links .nav-cta { background: var(--blue) !important; color: var(--white) !important; }
.nav-links .nav-cta:hover { background: var(--blue-dark) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 88vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 80px 40px 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 18px; border-radius: 20px; margin-bottom: 28px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; color: var(--white); line-height: 1.15; max-width: 820px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 40px; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--gold); color: var(--blue-dark); font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; padding: 14px 32px; border-radius: 4px; transition: background .2s, transform .15s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: #d4b55e; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; padding: 12px 30px; border-radius: 4px; transition: background .2s, border-color .2s; cursor: pointer; display: inline-block; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── SEARCH BOX ── */
.search-box { background: var(--white); border-radius: 8px; padding: 28px 32px; width: 100%; max-width: 900px; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; z-index: 2; }
.search-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.search-tab { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); padding: 8px 20px; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.search-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.field-group { display: flex; flex-direction: column; gap: 4px; }
.field-group label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.field-group select, .field-group input { height: 44px; border: 1.5px solid var(--border); border-radius: 4px; padding: 0 14px; font-family: 'Lato', sans-serif; font-size: 14px; color: var(--text); background: var(--white); transition: border-color .2s; outline: none; width: 100%; }
.field-group select:focus, .field-group input:focus { border-color: var(--blue); }
.btn-search { height: 44px; background: var(--blue); color: var(--white); border: none; border-radius: 4px; padding: 0 28px; font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn-search:hover { background: var(--blue-dark); }

/* ── STATS ── */
.stats { background: var(--blue-dark); padding: 40px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 20px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--gold); font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }

/* ── SECTIONS ── */
.section { padding: 80px 40px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; color: var(--text); max-width: 560px; margin: 0 auto 16px; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; font-weight: 300; }
.section-divider { width: 48px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ── CATEGORIES ── */
.categories { background: var(--off-white); }
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.category-card { background: var(--white); border-radius: 8px; border: 1px solid var(--border); padding: 32px 20px; text-align: center; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30,63,160,.12); border-color: var(--blue); }
.cat-icon { width: 52px; height: 52px; background: #eef1fb; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.cat-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cat-count { font-size: 12px; color: var(--text-muted); }

/* ── LISTINGS ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.listing-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, transform .2s; text-decoration: none; color: var(--text); display: block; }
.listing-card:hover { box-shadow: 0 8px 28px rgba(30,63,160,.13); transform: translateY(-3px); }
.listing-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #dce5f8 0%, #b8c9f0 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.listing-img-placeholder img { width: 100%; height: 200px; object-fit: cover; display: block; }
.listing-badge { position: absolute; top: 14px; left: 14px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; }
.listing-badge.wynajem { background: var(--gold); color: var(--blue-dark); }
.listing-body { padding: 20px; }
.listing-price { font-size: 1.3rem; font-weight: 700; color: var(--blue); font-family: 'Playfair Display', serif; margin-bottom: 4px; }
.listing-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.listing-location { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 4px; }
.listing-meta { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 14px; flex-wrap: wrap; }
.listing-meta-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* ── ABOUT ── */
.about-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-logo-big { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.about-logo-icon { width: 90px; height: 90px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.about-badge-year { position: absolute; bottom: -18px; right: 24px; background: var(--gold); color: var(--blue-dark); padding: 16px 22px; border-radius: 8px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.badge-year-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-year-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.about-content { padding-left: 20px; }
.about-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 20px; }
.about-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; font-weight: 300; line-height: 1.75; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 32px; }
.about-feature { display: flex; align-items: flex-start; gap: 10px; }
.feature-check { width: 20px; height: 20px; background: #eef1fb; border-radius: 50%; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.about-feature span { font-size: 14px; font-weight: 700; color: var(--text); }

/* ── SERVICES ── */
.services { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.service-card { background: var(--white); border-radius: 8px; border: 1px solid var(--border); padding: 32px 28px; transition: box-shadow .2s; }
.service-card:hover { box-shadow: 0 8px 32px rgba(30,63,160,.1); }
.service-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #eef1fb; line-height: 1; margin-bottom: 16px; }
.service-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); padding: 80px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border: 60px solid rgba(255,255,255,.05); border-radius: 50%; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 36px; font-weight: 300; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ── */
.contact-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.contact-map { }
.map-container { width: 100%; height: 500px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(30,63,160,.12); }
.map-container iframe { width: 100%; height: 100%; border: none; }
.contact-info { padding-right: 20px; }
.contact-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 24px; line-height: 1.2; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 44px; height: 44px; background: #eef1fb; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.contact-item-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 3px; }
.contact-item-value { font-size: 15px; font-weight: 700; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--border); border-radius: 4px; padding: 12px 16px; font-family: 'Lato', sans-serif; font-size: 14px; color: var(--text); background: var(--white); outline: none; transition: border-color .2s; resize: vertical; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
#nkk-form-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
#nkk-form-msg.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ── FOOTER ── */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.7); padding: 60px 40px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-main { color: var(--white); font-size: 15px; }
.footer-logo .logo-sub { color: rgba(255,255,255,.4); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; font-weight: 300; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none; transition: background .2s, color .2s; }
.social-link:hover { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col ul span { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ── PAGINATION ── */
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--border); margin: 0 4px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: background .2s, color .2s; }
.page-numbers.current, .page-numbers:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 20px 80px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 2fr 2fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .map-container { height: 400px; }
  .section { padding: 60px 20px; }
}
@media (max-width: 560px) {
  .search-fields { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
}
