/*
Theme Name: Astra Child - Kwadrat Nieruchomosci
Theme URI: https://nieruchomosci.digitalgo.pl
Description: Motyw potomny Astra dla nieruchomosci.digitalgo.pl (demo portfolio)
Author: Daria Katarzyna Krol
Author URI: https://digitalgo.pl
Template: astra
Version: 1.0.0
Text Domain: astra-child-nieruchomosci
*/

/* ============================================================ */
/* Ukrycie natywnego naglowka/stopki Astry - wlasny design      */
/* ============================================================ */
header#masthead,
.ast-header-break-point .ast-mobile-menu-buttons,
.ast-mobile-header-wrap,
#ast-mobile-header {
    display: none !important;
}
.site-footer.footer-sml-devices,
.ast-small-footer {
    display: none !important;
}
body {
    padding-top: 0 !important;
}

/* ===========================================================
   KWADRAT NIERUCHOMOŚCI — demo, arkusz wspólny
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --stone: #F6F3EE;
  --stone-dark: #EDE7DB;
  --ink: #1B2430;
  --ink-soft: #4A5364;
  --brick: #B44B33;
  --brick-dark: #8F3924;
  --moss: #5C6B57;
  --line: #D8D2C4;
  --slate: #12181F;
  --slate-line: #2A3340;

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

a { color: inherit; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--brick); }

.main-nav {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brick);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brick); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  transition: 0.25s;
}
.mobile-toggle::before { top: 14px; }
.mobile-toggle span { top: 19px; }
.mobile-toggle::after { top: 24px; }
.mobile-toggle.open::before { transform: translateY(5px) rotate(45deg); }
.mobile-toggle.open span { opacity: 0; }
.mobile-toggle.open::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Blueprint texture ---------- */
.blueprint-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.4;
}

.hero .blueprint-bg {
  opacity: 1;
  background-image:
    linear-gradient(rgba(216, 210, 196, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 210, 196, 0.5) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: 600px;
  overflow: hidden;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 850px 700px at 0% 25%, var(--stone) 0%, var(--stone) 25%, rgba(246,243,238,0.6) 50%, rgba(246,243,238,0) 75%),
    radial-gradient(ellipse 850px 500px at 0% 75%, var(--stone) 10%, var(--stone) 30%, rgba(246,243,238,0.6) 45%, rgba(246,243,238,0) 75%);
}


/* ---------- Hero / search ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 18px;
  position: relative;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 12ch;
  position: relative;
}
.hero-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 40px;
  position: relative;
  text-align: left;
}

.search-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 16px;
  box-shadow: 0 24px 60px -20px rgba(27, 36, 48, 0.18);
  margin-bottom: -64px;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field select, .field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  font-family: var(--body);
  font-size: 0.92rem;
  line-height: 48px;
  color: var(--ink);
  background: var(--stone);
}
.search-btn {
  align-self: end;
  background: var(--brick);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 28px;
  height: 42px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--brick-dark); }

.hero-photo-frame {
  position: relative;
  height: 340px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin-top: 56px;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--slate);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ---------- Section shell ---------- */
.section { padding: 120px 0 80px; }
.section-tight { padding: 80px 0; }
.section-dark { background: var(--slate); color: #fff; }
.section-dark p { color: #B7C0CC; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brick);
  margin: 0 0 10px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  margin: 0;
  max-width: 20ch;
}
.section-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- Property card ("karta nieruchomości") ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prop-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(27, 36, 48, 0.22);
}
.prop-photo { position: relative; height: 210px; }
.prop-photo img { width: 100%; height: 100%; object-fit: cover; }
.prop-status {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--moss);
  color: #fff;
}
.prop-status.sold { background: var(--brick); }
.prop-price {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(18, 24, 31, 0.82);
  padding: 6px 12px;
  border-radius: 4px;
}
.prop-body { padding: 20px 20px 22px; border-top: 1px dashed var(--line); position: relative; flex: 1; display: flex; flex-direction: column; }
.prop-body::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  background: var(--stone);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.prop-body::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  background: var(--stone);
  border-radius: 50%;
  transform: translate(50%, -50%);
}
.prop-addr { font-weight: 700; font-size: 1.02rem; margin: 0 0 4px; }
.prop-loc { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 16px; }
.prop-specs {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.prop-specs span strong { color: var(--ink); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item .num {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--brick);
  display: block;
  margin-bottom: 6px;
}
.trust-item .lbl { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--slate-line);
  align-items: start;
}
.process-list li:last-child { border-bottom: 1px solid var(--slate-line); }
.process-list .step-mark {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--brick);
}
.process-list h3 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 8px; font-weight: 600; }
.process-list p { margin: 0; max-width: 60ch; text-align: left; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 24px;
  text-align: center;
}
.testimonial cite { font-style: normal; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brick);
  color: #fff;
  border-radius: 8px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--display); font-size: 1.9rem; margin: 0; font-weight: 600; max-width: 16ch; }
.cta-band .btn-white {
  background: #fff;
  color: var(--brick);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Filters (oferty.html) ---------- */
.filters-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  align-items: center;
}
.filter-pill {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.filter-pill.active, .filter-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-count { margin-left: auto; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 0;
}
.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .k { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink-soft); width: 90px; flex-shrink: 0; padding-top: 2px; }
.contact-row .v { font-weight: 600; }
.contact-row .v a { text-decoration: none; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-submit {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 30px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--brick); }

.map-block {
  height: 320px;
  min-height: 260px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--stone-dark);
  position: relative;
  overflow: hidden;
}
.map-block .blueprint-bg { opacity: 0.7; mask-image: none; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 40px; height: 40px;
  background: var(--brick);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: #B7C0CC;
  padding: 64px 0 32px;
  margin-top: 100px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--slate-line);
  margin-bottom: 28px;
}
.footer-logo { font-family: var(--display); color: #fff; font-size: 1.3rem; margin: 0 0 14px; }
.footer-top p { text-align: left; font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 0.9rem; color: #B7C0CC; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: #6E7787; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .search-panel { grid-template-columns: 1fr; margin-bottom: 24px; }
  .hero-photo-frame { margin-top: 24px; height: 240px; }
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .listings-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section { padding: 72px 0 48px; }
  .process-list li { grid-template-columns: 1fr; gap: 8px; }
}

.hero h1 { color: var(--ink) !important; }
.section-head h2 { color: var(--ink) !important; }
.section-dark .section-head h2 { color: #fff !important; }
.process-list h3 { color: #fff !important; }
.testimonial blockquote { color: var(--ink) !important; }
.cta-band h2 { color: #fff !important; }
.footer-logo { color: #fff !important; }
.logo { color: var(--ink) !important; }