/* ============================================================
   MAŃKOWSKI — Ubezpieczenia i Finanse
   Wersja Astro (B Slate Gold + Fraunces + Inter)
   ============================================================ */


/* === Base typography === */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FDF8F3;
    color: #0F172A;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}


/* === Utilities === */
.text-balance {
    text-wrap: balance;
}


/* === Reveal-on-scroll === */
.reveal-element {
    opacity: 1;
    will-change: opacity, transform;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal-element {
        opacity: 0;
    }
    .js-enabled .reveal-element.is-visible {
        animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: calc(var(--index, 0) * 100ms);
    }
}


/* === Dual-card === */
.dual-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-card .bg-img {
    transition: transform 1.2s ease, opacity 0.6s ease;
    transform: scale(1.05);
}

.dual-card:hover .bg-img {
    transform: scale(1);
    opacity: 0.4;
}

.dual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(40, 18, 4, 0.80) 0%,
        rgba(40, 18, 4, 0.25) 50%,
        rgba(40, 18, 4, 0.05) 100%
    );
    z-index: 10;
}


/* === Process step pattern (linia łącząca) === */
.process-step::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
    display: none;
}

@media (min-width: 1024px) {
    .process-step:not(:last-child)::before {
        display: block;
    }
}
