/* iHouse.pl - warstwa leadowa (skup nieruchomości)
   Namespace .ih- trzyma te style z dala od motywu Maktub, który operuje
   na bardzo ogólnych klasach (.title, .text, .card). */

.ih {
  --ih-accent: #2563EB;
  --ih-accent-dark: #1D4ED8;
  --ih-ink: #0F2744;
  --ih-body: #45526A;
  --ih-muted: #7a8699;
  --ih-line: #e4e8ef;
  --ih-soft: #F5F8FF;
  --ih-tint: #EAF1FE;
  --ih-radius: 14px;
  color: var(--ih-body);
  font-size: 16px;
  line-height: 1.65;
}

.ih * { box-sizing: border-box; }

.ih .ih-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.ih h1, .ih h2, .ih h3 {
  color: var(--ih-ink);
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ih .ih-h1 { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.05rem); font-weight: 800; }
.ih .ih-h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 750; }
.ih h3 { font-size: 1.15rem; font-weight: 700; }
.ih p { margin: 0 0 16px; }
.ih a { color: var(--ih-accent); }

.ih .ih-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ih-accent);
  margin-bottom: 12px;
}

.ih .ih-lead,
.ih .ih-section-lead {
  font-size: 1.075rem;
  color: var(--ih-body);
  max-width: 62ch;
}

/* --- Hero --- */

.ih .ih-hero {
  background: linear-gradient(180deg, #fff 0%, var(--ih-soft) 100%);
  border-bottom: 1px solid var(--ih-line);
  padding: clamp(40px, 5vw, 76px) 0 clamp(44px, 5vw, 80px);
}

.ih .ih-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.ih .ih-hero-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.ih .ih-hero-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ih-ink);
  font-weight: 500;
}

.ih .ih-hero-points li::before,
.ih .ih-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 18px;
  height: 9px;
  border-left: 2.5px solid var(--ih-accent);
  border-bottom: 2.5px solid var(--ih-accent);
  transform: rotate(-45deg);
}

.ih .ih-hero-phone {
  margin-top: 26px;
  font-size: 1rem;
  color: var(--ih-muted);
}

.ih .ih-hero-phone a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ih-ink);
  text-decoration: none;
  margin: 0 8px;
}

.ih .ih-hero-phone span { display: block; font-size: 0.88rem; }

/* --- Karta formularza --- */

.ih .ih-form-card {
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius);
  box-shadow: 0 18px 50px rgba(23, 32, 46, 0.09);
  padding: clamp(22px, 2.4vw, 32px);
}

.ih .ih-form-title { font-size: 1.35rem; margin-bottom: 6px; }
.ih .ih-form-sub { color: var(--ih-muted); font-size: 0.94rem; margin-bottom: 20px; }

.ih .wpcf7 { font-size: 0.95rem; }
.ih .wpcf7 p { margin: 0 0 14px; }
.ih .wpcf7 label { display: block; font-weight: 600; color: var(--ih-ink); font-size: 0.86rem; margin-bottom: 6px; }

.ih .wpcf7 input[type="text"],
.ih .wpcf7 input[type="tel"],
.ih .wpcf7 input[type="email"],
.ih .wpcf7 select,
.ih .wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ih-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ih-ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ih .wpcf7 textarea { min-height: 96px; resize: vertical; }

.ih .wpcf7 input:focus,
.ih .wpcf7 select:focus,
.ih .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--ih-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.ih .wpcf7 ::placeholder { color: #9aa4b3; }

.ih .wpcf7 .wpcf7-acceptance,
.ih .wpcf7 .wpcf7-list-item { margin: 0; }

.ih .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--ih-muted);
  font-weight: 400;
}

.ih .wpcf7 input[type="checkbox"] { margin-right: 8px; accent-color: var(--ih-accent); }

.ih .wpcf7 input[type="submit"] {
  width: 100%;
  padding: 15px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--ih-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ih .wpcf7 input[type="submit"]:hover { background: var(--ih-accent-dark); transform: translateY(-1px); }

.ih .wpcf7 .wpcf7-not-valid-tip { color: var(--ih-accent-dark); font-size: 0.82rem; }
.ih .wpcf7-response-output { border-radius: 10px; font-size: 0.9rem; }

/* --- Pasek liczb --- */

.ih .ih-strip {
  background: var(--ih-ink);
  padding: 26px 0;
}

.ih .ih-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.ih .ih-strip-grid strong {
  display: block;
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ih .ih-strip-grid span { color: #b6c0d0; font-size: 0.9rem; }

/* --- Sekcje --- */

.ih .ih-section { padding: clamp(44px, 5vw, 80px) 0; }
.ih .ih-section-alt { background: var(--ih-soft); border-block: 1px solid var(--ih-line); }
.ih .ih-section .ih-h2 { margin-bottom: 10px; }
.ih .ih-section-lead { margin-bottom: 34px; }

/* --- Kroki --- */

.ih .ih-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: none;
}

.ih .ih-steps li { position: relative; padding-top: 6px; }

.ih .ih-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ih-tint);
  color: var(--ih-accent);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.ih .ih-steps h3 { margin-bottom: 8px; }
.ih .ih-steps p { font-size: 0.96rem; margin: 0; }

/* --- Karty --- */

.ih .ih-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ih .ih-cards-3 { grid-template-columns: repeat(3, 1fr); }

.ih .ih-card {
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: var(--ih-radius);
  padding: 26px 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.ih .ih-card:hover { box-shadow: 0 14px 34px rgba(23, 32, 46, 0.08); transform: translateY(-2px); }
.ih .ih-card p { font-size: 0.96rem; margin: 0; }
.ih .ih-card p + p { margin-top: 12px; }
.ih .ih-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, 0.35); }

/* --- Dwie kolumny + notka --- */

.ih .ih-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.ih .ih-check { list-style: none; margin: 0; padding: 0; }

.ih .ih-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.ih .ih-note {
  background: var(--ih-tint);
  border: 1px solid #cfe0fb;
  border-radius: var(--ih-radius);
  padding: 28px 26px;
}

.ih .ih-note p:last-child { margin-bottom: 0; }
.ih .ih-note p { font-size: 0.96rem; }

/* --- Wiersze kontaktowe --- */

.ih .ih-contact-rows { margin: 26px 0 30px; }

.ih .ih-contact-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ih-line);
}

.ih .ih-contact-label {
  grid-row: span 2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ih-muted);
  padding-top: 6px;
}

.ih .ih-contact-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ih-ink);
  text-decoration: none;
}

.ih a.ih-contact-value:hover { color: var(--ih-accent); }
.ih .ih-contact-value-plain { font-size: 1rem; font-weight: 500; line-height: 1.55; }
.ih .ih-contact-note { font-size: 0.86rem; color: var(--ih-muted); }
.ih .ih-note-tight { padding: 22px 24px; }
.ih .ih-note-tight h3 { font-size: 1.02rem; }

.ih .ih-card-link {
  color: var(--ih-ink);
  text-decoration: none;
}

.ih .ih-card-link:hover { color: var(--ih-accent); }

/* --- Miasta --- */

.ih .ih-cities {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 18px;
}

.ih .ih-cities a {
  display: block;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: 10px;
  color: var(--ih-ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ih .ih-cities a:hover { border-color: var(--ih-accent); color: var(--ih-accent); }
.ih .ih-cities-more { font-size: 0.95rem; color: var(--ih-muted); }

/* --- FAQ --- */

.ih .ih-faq-wrap { max-width: 860px; }
.ih .ih-faq details { border-bottom: 1px solid var(--ih-line); }

.ih .ih-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 650;
  color: var(--ih-ink);
  font-size: 1.03rem;
  position: relative;
}

.ih .ih-faq summary::-webkit-details-marker { display: none; }

.ih .ih-faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ih-accent);
  border-bottom: 2px solid var(--ih-accent);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.ih .ih-faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.ih .ih-faq details p { padding: 0 40px 20px 0; margin: 0; font-size: 0.98rem; }

/* --- CTA --- */

.ih .ih-cta {
  background: var(--ih-ink);
  padding: clamp(44px, 5vw, 76px) 0;
}

.ih .ih-cta .ih-h2,
.ih .ih-cta .ih-section-lead { color: #fff; }
.ih .ih-cta .ih-section-lead { color: #c2cbd8; }

.ih .ih-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.ih .ih-cta-phone a {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.ih .ih-cta-phone span { display: block; color: #8f9bad; font-size: 0.88rem; }
.ih .ih-cta-mail a { color: #c2cbd8; }

/* --- Zdjęcia w tle sekcji --- */

/*
 * Fotografia leży w `::before` pod treścią, a nie w `background` sekcji: dzięki
 * temu można jej dać samo `opacity` i zachować kolor tła sekcji jako podkład.
 * Nakładka gradientowa (`::after`) domyka czytelność po stronie tekstu, bo przy
 * jednolitym przygaszeniu zdjęcia jasne fragmenty kadru zjadały kontrast liter.
 * Zdjęcia: Pexels (licencja Pexels, bez wymogu atrybucji).
 */
.ih .ih-photo { position: relative; isolation: isolate; }
.ih .ih-photo > * { position: relative; z-index: 2; }

.ih .ih-photo::before,
.ih .ih-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ih .ih-photo::before {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.ih .ih-photo::after { z-index: 1; }

/*
 * Krycie zdjęcia i nakładki mnożą się, więc para 0.16/0.9 dawała fakturę
 * praktycznie niewidoczną. Zdjęcie idzie pełną siłą, a czytelność bierze na
 * siebie sama nakładka - nieprzezroczysta tam, gdzie leży tekst, i otwarta tam,
 * gdzie kadr ma być widoczny.
 */
.ih .ih-photo-hero::before {
  background-image: url("photos/hero-facade.jpg");
  background-position: right center;
}

.ih .ih-photo-hero::after {
  background: linear-gradient(100deg, #fff 0%, rgba(255, 255, 255, 0.97) 30%, rgba(255, 255, 255, 0.74) 58%, rgba(255, 255, 255, 0.42) 100%);
}

.ih .ih-photo-cities::before {
  background-image: url("photos/cities-aerial.jpg");
  background-position: center 35%;
}

.ih .ih-photo-cities::after {
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.95) 0%, rgba(245, 248, 255, 0.78) 32%, rgba(245, 248, 255, 0.88) 100%);
}

.ih .ih-photo-cta::before {
  background-image: url("photos/cta-interior.jpg");
  background-position: center 40%;
}

.ih .ih-photo-cta::after {
  background: linear-gradient(95deg, rgba(15, 39, 68, 0.94) 0%, rgba(15, 39, 68, 0.86) 42%, rgba(15, 39, 68, 0.62) 100%);
}

/* --- Pas ze zdjęciem między sekcjami --- */

.ih .ih-band {
  padding: clamp(52px, 6vw, 92px) 0;
  border-block: 1px solid var(--ih-line);
}

.ih .ih-photo-band::before {
  background-image: url("photos/cta-house.jpg");
  background-position: center 58%;
}

.ih .ih-photo-band::after {
  background: linear-gradient(90deg, rgba(15, 39, 68, 0.9) 0%, rgba(15, 39, 68, 0.74) 46%, rgba(15, 39, 68, 0.35) 100%);
}

.ih .ih-band-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.ih .ih-band .ih-h2 { color: #fff; max-width: 24ch; }
.ih .ih-band p { color: #d3dcea; max-width: 58ch; margin: 12px 0 0; }
.ih .ih-band .ih-eyebrow { color: #93b4fb; }

.ih .ih-band-btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 10px;
  background: var(--ih-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.ih .ih-band-btn:hover { background: var(--ih-accent-dark); color: #fff; }

/* --- Responsywność --- */

@media (max-width: 1024px) {
  .ih .ih-hero-grid,
  .ih .ih-cta-grid,
  .ih .ih-split { grid-template-columns: 1fr; }
  .ih .ih-steps { grid-template-columns: repeat(2, 1fr); }
  .ih .ih-cards,
  .ih .ih-cards-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .ih .ih-band-in { grid-template-columns: 1fr; }
  /* Pionowy kadr na waskim ekranie: przy poziomym gradiencie tekst trafial na
     jasna czesc zdjecia i tracil kontrast. */
  .ih .ih-photo-hero::after,
  .ih .ih-photo-band::after,
  .ih .ih-photo-cta::after {
    background: linear-gradient(180deg, rgba(15, 39, 68, 0.9) 0%, rgba(15, 39, 68, 0.8) 100%);
  }
  .ih .ih-photo-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 100%);
  }
}

@media (max-width: 680px) {
  .ih .ih-wrap { padding: 0 18px; }
  .ih .ih-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ih .ih-steps,
  .ih .ih-cards,
  .ih .ih-cards-3 { grid-template-columns: 1fr; }
  .ih .ih-form-card { padding: 20px; }
}
