/* ==========================================================
   Block: epiano-cta
   BEM: epiano-cta__[element]--[modifier]
   Tokeny i style wspólne → assets/css/blocks-base.css
   ========================================================== */

/* --- Wrapper --- */
.epiano-cta {
    position: relative;
    padding: var(--space-3xl) 0;
    color: var(--text-inverse);
    text-align: center;
    overflow: hidden;
}

/* --- Parallax background image layer --- */
/* URL zdjęcia ustawiany inline z pola CF bg_image */
.epiano-cta__bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--bg-dark); /* fallback gdy brak zdjęcia */
    z-index: 1;
    will-change: transform;
}

/* --- Dark overlay --- */
.epiano-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--bg-dark-overlay);
    pointer-events: none;
    z-index: 2;
}

/* --- Container --- */
/* max-width/margin/padding → utility .epiano-container w template.php */
.epiano-cta__container {
    position: relative;
    z-index: 3;
}

/* --- Content area --- */
.epiano-cta__content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Eyebrow / Title / Divider --- */
/* Bazowe style → utility classes w template.php:
   .epiano-eyebrow / .epiano-section-heading.--light / .epiano-divider.--light */

/* CTA eyebrow potrzebuje display:block (nie inline-block jak domyślnie) */
.epiano-cta__eyebrow {
    display: block;
}

/* Dodatkowy odstęp pod tytułem specyficzny dla CTA */
.epiano-cta__title {
    margin-bottom: var(--space-md);
}

/* --- Description --- */
.epiano-cta__desc {
    font-size: var(--fz-lg);
    color: rgba(252, 251, 249, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    line-height: 1.6;
}

/* --- Phone link --- */
.epiano-cta__phone-link {
    text-decoration: none;
    display: inline-block;
}

/* --- Phone wrapper card --- */
.epiano-cta__phone-wrapper {
    display: inline-flex;
    align-items: center;
    text-align: left;
    gap: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 155, 39, 0.3);
    padding: var(--space-md) var(--space-xl);
    transition: all var(--transition-normal);
}

.epiano-cta__phone-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

/* --- Phone icon circle --- */
.epiano-cta__phone-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* --- Phone text stack --- */
.epiano-cta__phone-text {
    display: flex;
    flex-direction: column;
}

/* --- Phone label --- */
.epiano-cta__phone-label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fz-sm);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* --- Phone number --- */
.epiano-cta__phone-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-inverse);
    display: block;
    line-height: 1;
}

/* --- Note (hours) --- */
.epiano-cta__note {
    margin-top: var(--space-lg);
    font-size: var(--fz-sm);
    color: rgba(252, 251, 249, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 600px) {
    .epiano-cta__phone-wrapper {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .epiano-cta__phone-text {
        align-items: center;
    }
}
