/* ═══════════════════════════════════════
   HARBOR LEGAL — Image Integration CSS
   ═══════════════════════════════════════ */

/* ── Hero split layout (tekst + obraz obok siebie) ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 380px;
}

.hero-split-text .section-tag,
.hero-split-text .section-title,
.hero-split-text .section-desc {
  text-align: left;
  max-width: none;
}

.hero-split-image {
  position: relative;
  overflow: hidden;
}

.hero-split-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Izometryczne — wtapiają się w beżowe tło */
.hero-split-image.iso img {
  mix-blend-mode: multiply;
}

/* Fotograficzne — shadow + zaokrąglenie */
.hero-split-image.photo {
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(45, 43, 107, 0.12);
}

.hero-split-image.photo img {
  border-radius: 12px;
  filter: saturate(0.92) contrast(1.02);
}

/* ── Hero background illustration (pełne tło za tekstem) ── */
.hero-bg-illustration {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 65%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-illustration img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.75;
}

/* ── Pillar hero overrides for split ── */
.pillar-hero .hero-split .section-title,
.pillar-hero .hero-split .section-desc,
.pillar-hero .hero-split .section-tag {
  text-align: left;
}

.pillar-hero .hero-split .section-desc {
  max-width: none;
}

/* ── About split (tekst + zdjęcie obok) ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(45, 43, 107, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Dekoracyjna ilustracja ── */
.section-illustration {
  max-width: 680px;
  margin: 32px auto 0;
  opacity: 0.9;
}

.section-illustration img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-split-image {
    order: -1;
    max-height: 260px;
  }

  .hero-split-image img {
    max-height: 260px;
    object-fit: contain;
    object-position: center;
  }

  .hero-split-text .section-tag,
  .hero-split-text .section-title,
  .hero-split-text .section-desc,
  .pillar-hero .hero-split .section-title,
  .pillar-hero .hero-split .section-desc,
  .pillar-hero .hero-split .section-tag {
    text-align: center;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-bg-illustration {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    transform: none;
    margin-bottom: 16px;
    opacity: 0.4;
  }
}

/* ── Rich Pillar Cards (strona główna Specjalizacje) ── */
.pillar-cards-rich {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.pillar-rich {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 36px 30px 30px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.pillar-rich::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.pillar-rich:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 43, 107, 0.08);
}

.pillar-rich:hover::before {
  transform: scaleX(1);
}

.pillar-rich-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: 12px;
}

.pillar-rich-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.25;
}

.pillar-rich-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pillar-rich-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.pillar-rich-highlights li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.pillar-rich-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
}

.pillar-rich-tags {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--ink-muted);
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.pillar-rich-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.pillar-rich:hover .pillar-rich-link {
  color: var(--indigo);
}

@media (max-width: 768px) {
  .pillar-cards-rich {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ── USP Grid (Usługi page) ── */
.uslugi-usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.uslugi-usp {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.uslugi-usp-icon {
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.uslugi-usp-title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.uslugi-usp-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .uslugi-usp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Model cards hover + responsive ── */
#modelGrid a:hover,
.section > .container > div[style*="grid-template-columns:1fr 1fr 1fr"] > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 43, 107, 0.08);
}

@media (max-width: 768px) {
  #modelGrid,
  .section > .container > div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ── Wycena page ── */
.wycena-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.wycena-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wycena-section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--indigo);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}

.wycena-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wycena-field {
  display: flex;
  flex-direction: column;
}

.wycena-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.wycena-optional {
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
}

.wycena-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 15px;
  background: var(--bg);
  transition: border-color .2s;
  color: var(--ink);
}

.wycena-input:focus {
  outline: none;
  border-color: var(--indigo);
}

.wycena-textarea {
  resize: vertical;
  min-height: 120px;
}

.wycena-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Chip selectors */
.wycena-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wycena-chip {
  cursor: pointer;
}

.wycena-chip input {
  display: none;
}

.wycena-chip span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all .2s;
  user-select: none;
}

.wycena-chip:hover span {
  border-color: var(--indigo);
  color: var(--indigo);
}

.wycena-chip input:checked + span {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

/* Right column info cards */
.wycena-info-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 28px;
}

.wycena-info-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.wycena-info-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wycena-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.wycena-step-num {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.wycena-step-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.wycena-step-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .wycena-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .wycena-row {
    grid-template-columns: 1fr;
  }
}


/* == Wycena page == */
.wycena-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.wycena-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wycena-section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--indigo);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}

.wycena-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wycena-field {
  display: flex;
  flex-direction: column;
}

.wycena-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.wycena-optional {
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
}

.wycena-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 15px;
  background: var(--bg);
  transition: border-color .2s;
  color: var(--ink);
}

.wycena-input:focus {
  outline: none;
  border-color: var(--indigo);
}

.wycena-textarea {
  resize: vertical;
  min-height: 120px;
}

.wycena-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 fill=%27none%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 stroke=%27%236b6b80%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.wycena-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wycena-chip {
  cursor: pointer;
}

.wycena-chip input {
  display: none;
}

.wycena-chip span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
  transition: all .2s;
  user-select: none;
}

.wycena-chip:hover span {
  border-color: var(--indigo);
  color: var(--indigo);
}

.wycena-chip input:checked + span {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

.wycena-info-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 28px;
}

.wycena-info-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.wycena-info-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wycena-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.wycena-step-num {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.wycena-step-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.wycena-step-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .wycena-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .wycena-row {
    grid-template-columns: 1fr;
  }
}
