/*!
 * mariuszpetlic.pl – elementy tylko strony głównej (uzupełnia css/site.css)
 */

/* ===== Hero ze zdjęciem ===== */
.hero-home { position: relative; background: #c8ccd3; overflow: hidden; text-align: left; padding: 0; }
.hero-home-inner {
    width: min(1180px, 100% - 40px); margin: 0 auto; min-height: min(760px, 92vh);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 24px;
}
.hero-home-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; justify-self: end; max-width: 560px; padding: 120px 0 64px; }
.hero-home-copy .eyebrow { color: #8a3b07; }
.hero-home-copy .lead { color: var(--text); max-width: 520px; margin-top: 20px; }
.hero-home-copy .ctas { margin-top: 32px; }
.hero-home-copy .link { color: #1d4ed8; }
.hero-home .h1 { font-size: clamp(48px, 6.4vw, 88px); }
.hero-home-photo {
    grid-column: 2; grid-row: 1; align-self: end; width: 100%; height: min(660px, 80vh); object-fit: cover; object-position: 100% bottom;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 18%); mask-image: linear-gradient(to left, transparent 0, #000 18%);
}
@media (max-width: 833px) {
    .hero-home-inner { display: flex; flex-direction: column; min-height: 0; width: 100%; }
    .hero-home-copy { order: 0; text-align: center; padding: 120px 20px 0; justify-self: auto; margin: 0 auto; }
    .hero-home-copy .lead { margin-left: auto; margin-right: auto; }
    .hero-home-copy .ctas { justify-content: center; }
    /* nad glowa na zdjeciu jest ok. 17% pustego tla, wiec podsuwamy je pod tekst (tekst ma z-index 1, przyciski zostaja klikalne) */
    .hero-home-photo { order: 1; height: auto; max-width: 440px; aspect-ratio: 4 / 5; margin: -40px auto 0; }
}
.ribbon + .hero-home .hero-home-copy { padding-top: 72px; }

/* ===== Z kim pracuję: cztery kolumny, sama typografia ===== */
.who-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.who-cols > div { padding-top: 24px; border-top: 1px solid var(--line); }
.who-cols .h3 { margin-bottom: 10px; }
.who-cols p { color: var(--muted); }
@media (max-width: 900px) { .who-cols { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 520px) { .who-cols { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Kafelki oferty ===== */
.tiles { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 12px; }
.tiles-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer { background: var(--bg-alt); padding-top: 96px; }
.offer-head { padding-bottom: 56px; }
@media (max-width: 734px) { .offer { padding-top: 64px; } .offer-head { padding-bottom: 40px; } }
.tile { position: relative; overflow: hidden; text-align: center; background: var(--bg); padding: 56px 24px 64px; display: flex; flex-direction: column; align-items: center; }
.tile.dark { background: var(--dark); color: var(--dark-text); }
.tile .eyebrow { font-size: 12px; margin-bottom: 10px; }
.tile .h2 { font-size: clamp(40px, 5vw, 56px); }
.tiles-2 .tile .h2 { font-size: clamp(32px, 3.6vw, 40px); }
.tile .lead { font-size: clamp(21px, 2.2vw, 28px); margin-top: 6px; }
.tiles-2 .tile .lead { font-size: 21px; }
/* cena: mała linia nad przyciskami (jak „Od 4999 zł” na apple.com) */
.tile-price { margin-top: 10px; font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; color: var(--muted); }
.tile .ctas { margin-top: 14px; }
.tile.dark .eyebrow { color: #f0a35c; }
.tile.dark .muted, .tile.dark .tile-price { color: var(--dark-muted); }
.tile.dark .link { color: var(--link-dark); }
.tile-visual { margin-top: auto; padding: 40px 0 0; width: 100%; display: flex; justify-content: center; }
@media (max-width: 833px) { .tiles-2 { grid-template-columns: 1fr; } }

/* ===== Ikony usług (SVG, styl SF Symbols: kontur + jeden miedziany akcent) ===== */
.ico { width: 64px; height: 64px; margin-bottom: 18px; color: var(--text); fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tile.dark .ico { color: var(--dark-text); }
.ico .dash { stroke-dasharray: 2 4; opacity: .5; }
/* rysowanie konturu przy pierwszym pojawieniu się kafelka (JS dodaje .will-draw, potem .shown) */
.ico .d { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
.ico .d:nth-of-type(2) { transition-delay: .12s; }
.ico .d:nth-of-type(3) { transition-delay: .24s; }
.ico .d.a { transition-delay: .36s; }
.ico .f, .ico .dash { transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--ease) .8s, transform .6s cubic-bezier(.34,1.56,.64,1) .8s; }
.will-draw:not(.shown) .ico .d { stroke-dashoffset: 1; }
.will-draw:not(.shown) .ico .f { opacity: 0; transform: scale(.4); }
.will-draw:not(.shown) .ico .dash { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ico * { transition: none !important; } }

/* wyróżniona Mapa: tekst po lewej, duża ikona po prawej */
.tile-feature { flex-direction: row; align-items: center; justify-content: center; gap: clamp(40px, 6vw, 88px); text-align: left; padding: 72px clamp(24px, 6vw, 96px); }
.tile-feature .feature-copy { max-width: 560px; }
.tile-feature .ctas { justify-content: flex-start; }
.feature-art { flex: none; display: flex; align-items: center; justify-content: center; width: clamp(180px, 24vw, 300px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(234,88,12,0.22), rgba(234,88,12,0) 68%); }
.feature-art .ico { width: 62%; height: auto; margin: 0; stroke-width: 1.6; }
@media (max-width: 833px) {
    .tile-feature { flex-direction: column-reverse; text-align: center; gap: 8px; padding: 48px 24px 56px; }
    .tile-feature .ctas { justify-content: center; }
    .feature-art { width: 160px; }
}
/* pozostałe usługi: zwarta siatka kart */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 32px 32px; background: var(--bg); color: var(--text); text-decoration: none !important; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.svc:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.svc .ico { width: 44px; height: 44px; margin-bottom: 20px; }
.svc .h3 { font-size: clamp(24px, 2.4vw, 28px); }
.svc p { margin-top: 8px; color: var(--muted); font-size: 17px; line-height: 1.4; }
.svc .tile-price { margin-top: 16px; }
.svc .link { margin-top: auto; padding-top: 20px; font-size: 17px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc { padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) { .svc:hover { transform: none; } }

/* voucher: licznik dni jako wizual */
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(72px, 10vw, 128px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.countdown span { display: block; margin-top: 10px; font-size: 17px; color: var(--dark-muted); }

/* ===== Zdanie odsłaniane słowo po słowie ===== */
.statement { background: var(--dark); color: var(--dark-text); }
.statement-track { height: 220vh; }
.statement-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.statement p { text-align: center; text-wrap: balance; font-family: var(--serif); font-size: clamp(36px, 5.2vw, 72px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.statement .w { color: #3a3a3c; transition: color 0.35s linear; }
.statement .w.on { color: var(--dark-text); }
.statement em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* wyróżnione słowa (<em> w treści): miedziany gradient marki po odsłonięciu */
.statement .w.hl.on { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) {
    .statement-track { height: auto; }
    .statement-pin { position: static; height: auto; padding: 120px 0; }
    .statement .w { color: var(--dark-text); }
    .statement .w.hl { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* ===== Porównanie form ===== */
.compare-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.compare-grid .col { display: grid; grid-row: span 10; grid-template-rows: subgrid; justify-items: center; align-items: start; padding: 0 20px; text-align: center; border-left: 1px solid var(--line); }
.compare-grid .col:first-child { border-left: 0; }
.compare-grid .h4 { font-size: 24px; }
.compare-grid .desc { font-size: 14px; color: var(--muted); }
.compare-grid .cprice { font-size: 17px; font-weight: 600; margin-top: 12px; }
.compare-grid .btn { font-size: 14px; padding: 8px 16px; min-height: 36px; margin-top: 12px; }
.compare-grid dt { font-size: 12px; color: var(--muted); margin-top: 20px; }
.compare-grid dt:first-of-type { width: 100%; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.compare-grid dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.compare-grid dl { display: contents; }
@media (max-width: 833px) {
    .compare-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .compare-grid .col { padding: 0 10px; }
    .compare-grid .col:nth-child(3) { border-left: 0; }
    .compare-grid .h4 { font-size: 19px; }
    .compare-grid dd { font-size: 14px; }
}

/* ===== Klienci ===== */
.marquee { display: flex; overflow: hidden; user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; list-style: none; margin: 0; padding: 0; min-width: 100%; justify-content: space-around; }
.marquee-track li { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.015em; color: var(--muted-2); padding: 0 40px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
    .marquee-track { animation: marquee 40s linear infinite; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track[aria-hidden] { display: none; } .marquee-track { flex-wrap: wrap; row-gap: 1rem; } }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ===== Z bloga: trzy kolorowe kafelki (cofnięcie: usunąć ten blok) ===== */
#blog .post:nth-child(3n+1) { background: #ffd6bd; } /* brzoskwinia */
#blog .post:nth-child(3n+2) { background: #c6e6ce; } /* mięta */
#blog .post:nth-child(3n+3) { background: #dccff6; } /* lawenda */
#blog .post small, #blog .post p { color: #3d3d42; }
#blog .post .link { color: #1d4ed8; }
