/* ==========================================================================
   page-oferta.css — Style specyficzne dla /oferta/
   Ładowane tylko gdy aktywny szablon page-oferta.php.
   ========================================================================== */

/* ─── PAGE HERO — Tryptyk pełnoekranowy ─────────────────────────────────── */

section.page-hero {
  padding-block: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-hero .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(245, 240, 230, 0.16);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.65);
  flex-wrap: wrap;
  gap: 12px;
  z-index: 3;
}

.page-hero .top-meta .right {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  white-space: nowrap;
}

/* Triptych panels */
.tryptyk {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(245, 240, 230, 0.16);
  min-height: 0;
}

.panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 48px);
  color: #F5F0E6;
  text-decoration: none;
  transition: flex-grow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: var(--bg-soft, #EDE8DC);
  min-height: 70vh;
}

.panel .panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel .panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s ease;
  filter: brightness(0.72) saturate(0.95);
}

.panel .panel-bg .ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(245, 240, 230, 0.04) 0 22px, transparent 22px 23px),
    var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18%;
  gap: 14px;
}

.panel .panel-bg .ph::before,
.panel .panel-bg .ph::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
}

.panel .panel-bg .ph::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.panel .panel-bg .ph::after  { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

.panel .panel-bg .ph-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.7);
}

.panel .panel-bg .ph-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: rgba(245, 240, 230, 0.5);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 16, 0) 35%, rgba(26, 20, 16, 0.88) 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.panel-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.panel-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0;
  opacity: 0.95;
}

.panel-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.5vw, 104px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0 0 18px;
  color: #F5F0E6;
}

.panel-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.panel-tech {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.78);
  margin-bottom: 24px;
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 230, 0.24);
  gap: 16px;
}

.panel-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}

.panel-price small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  margin-right: 6px;
}

.panel-arrow {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F5F0E6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s ease, color 0.25s ease;
}

.panel-arrow svg {
  transition: transform 0.3s ease;
}

/* Panel hover */
.panel:hover { flex-grow: 1.6; }
.panel:hover .panel-bg img { transform: scale(1.06); filter: brightness(0.85) saturate(1.05); }
.panel:hover::after { opacity: 0.55; }
.panel:hover .panel-arrow { color: var(--accent); gap: 16px; }
.panel:hover .panel-arrow svg { transform: translateX(4px); }


/* ─── SERVICE TILES ──────────────────────────────────────────────────────── */

section.tiles {
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px);
  background: var(--bg-soft, #EDE8DC);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.tile {
  background: var(--bg, #F5F0E6);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26, 20, 16, 0.08);
}

.tile-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft, #EDE8DC);
  position: relative;
}

.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tile:hover .tile-photo img { transform: scale(1.04); }

.tile-photo-ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(26, 20, 16, 0.04) 18px 19px),
    var(--bg-soft, #EDE8DC);
  border: 1px solid var(--line, #DDD7C9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tile-photo-ph::before,
.tile-photo-ph::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
}

.tile-photo-ph::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.tile-photo-ph::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.tile-photo-ph .ph-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft, #5C4F44);
}

.tile-photo-ph .ph-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted, #9A8E83);
}

.tile-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  padding: 28px clamp(24px, 3vw, 36px) 0;
}

.tile h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 6px 0 14px;
  padding-inline: clamp(24px, 3vw, 36px);
}

.tile h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

.tile-desc {
  color: var(--ink-soft, #5C4F44);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
  padding-inline: clamp(24px, 3vw, 36px);
}

/* Długi opis (ACF: usluga_opis_dlugi) */
.tile-long-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft, #5C4F44);
  padding-inline: clamp(24px, 3vw, 36px);
  margin: 0 0 18px;
}

.tile-long-desc p { margin: 0 0 10px; }
.tile-long-desc p:last-child { margin-bottom: 0; }

/* Korzyści (ACF Repeater: usluga_korzysci) */
.tile-benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 clamp(24px, 3vw, 36px);
}

.tile-benefits li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #5C4F44);
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px solid var(--line, #DDD7C9);
}

.tile-benefits li:first-child { border-top: 1px solid var(--line, #DDD7C9); }

.tile-benefits li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 7px;
}

.tile-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 clamp(24px, 3vw, 36px) 22px;
  flex-grow: 1;
}

.tile-tech span {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #5C4F44);
  padding: 6px 12px;
  border: 1px solid var(--line, #DDD7C9);
}

.tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line, #DDD7C9);
  margin-top: auto;
}

.tile-foot .price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-foot .price-l {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted, #9A8E83);
}

.tile-foot .price-v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}

.tile-foot .arrow-cta {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.25s ease;
}

.tile:hover .tile-foot .arrow-cta { gap: 16px; color: var(--accent); }


/* ─── INCLUDED IN PRICE ──────────────────────────────────────────────────── */

section.included {
  padding-block: clamp(64px, 9vw, 120px);
}

.included-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.included-head .eyebrow { margin-bottom: 18px; }

.included-head h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  max-width: 18ch;
}

.included-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }

.included-head p {
  color: var(--ink-soft, #5C4F44);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.included-item {
  padding-top: 24px;
  border-top: 1px solid var(--line, #DDD7C9);
}

.included-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.included-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
}

.included-item p {
  margin: 0;
  color: var(--ink-soft, #5C4F44);
  font-size: 16px;
  line-height: 1.6;
}


/* ─── FINAL CTA ──────────────────────────────────────────────────────────── */

section.final-cta {
  background: var(--ink);
  color: #F5F0E6;
  padding-block: clamp(80px, 10vw, 130px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

section.final-cta::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 280px;
  height: 280px;
  background: url("../img/logo.webp") no-repeat center / contain;
  opacity: 0.1;
  transform: rotate(8deg);
  pointer-events: none;
}

section.final-cta .container { position: relative; z-index: 2; }

section.final-cta .eyebrow { color: rgba(245, 240, 230, 0.55); }

section.final-cta h2 {
  color: #F5F0E6;
  max-width: 18ch;
  margin: 24px auto 28px;
}

section.final-cta h2 em { color: var(--accent); font-style: italic; font-weight: 300; }

section.final-cta p {
  color: rgba(245, 240, 230, 0.7);
  max-width: 46ch;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.65;
}

section.final-cta .actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

section.final-cta .btn-ghost {
  border-color: rgba(245, 240, 230, 0.4);
  color: #F5F0E6;
}

section.final-cta .btn-ghost:hover {
  background: #F5F0E6;
  color: var(--ink);
  border-color: #F5F0E6;
}

section.final-cta .btn-primary { background: var(--accent); color: #F5F0E6; }
section.final-cta .btn-primary:hover { background: #F5F0E6; color: var(--ink); }


/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .included-grid { grid-template-columns: 1fr 1fr; }
  .panel { min-height: 56vh; }
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .tiles-grid .tile:last-child { grid-column: span 2; max-width: 50%; justify-self: center; }
}

@media (max-width: 820px) {
  section.page-hero { min-height: auto; }

  .tryptyk {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(50vh, auto);
    gap: 1px;
  }

  .panel { min-height: 50vh; }
  .panel:hover { flex-grow: 1; }
  .panel-name { font-size: clamp(56px, 12vw, 84px); }

  .tiles-grid {
    grid-template-columns: 1fr;
  }

  .tiles-grid .tile:last-child {
    grid-column: span 1;
    max-width: 100%;
    justify-self: auto;
  }

  .included-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .included-grid { grid-template-columns: 1fr; gap: 8px; }

  .page-hero .top-meta { font-size: 14px; padding: 16px 20px; flex-wrap: wrap; }
  .page-hero .top-meta .right { font-size: 16px; }
}

@media (max-width: 520px) {
  .tile-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}
