/* Hero Unified — gradient i animacje jak na stronie "Umów wizytę" */

:root {
    --primary: #064F3D;
    --primary-dark: #0B1A17;
}

/* Zastosuj do typowych klas hero występujących w projekcie */
.new-banner,
.hero-section,
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.new-banner::before,
.hero-section::before,
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.new-banner::after,
.hero-section::after,
.page-banner::after {
    content: '';
    position: absolute;
    /* Naprawa CLS - używamy stałych wymiarów zamiast inset z ujemnymi wartościami */
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background:
        conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.05) 60deg, transparent 120deg),
        conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.03) 60deg, transparent 120deg);
    opacity: 0.4;
    pointer-events: none;
    animation: hero-rotate 22s linear infinite;
    /* Zapobiega CLS - element nie wpływa na layout */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Izolacja od layoutu - zapobiega przesunięciom */
    contain: layout style paint;
    /* Upewniamy się że element nie powoduje reflow */
    isolation: isolate;
    /* Z-index aby był nad tłem ale nie wpływał na layout */
    z-index: 0;
}

@keyframes hero-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wspólne kontenery i treści */
.new-banner .banner-container,
.hero-section .container,
.page-banner .container {
    position: relative;
    z-index: 2;
}

.new-banner .banner-content h1,
.hero-section h1,
.page-banner h1 {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Obraz/Logo w hero bez cieni - ZAWSZE WIDOCZNE */
.new-banner .banner-logo img,
.hero-section .hero-image img,
.page-banner .hero-image img {
    box-shadow: none !important;
    filter: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Delikatne pływanie logo jak na Umów wizytę */
.new-banner .banner-logo img,
.hero-section .hero-image img,
.page-banner .hero-image img { animation: hero-float 3s ease-in-out infinite; }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Dostosowanie odstępów (bez naruszania układów stron) */
@media (min-width: 769px) {
    .new-banner,
    .hero-section,
    .page-banner { padding: 100px 0 !important; }
}

@media (max-width: 768px) {
    .new-banner,
    .hero-section,
    .page-banner { padding: 60px 0 !important; }
}


