/* =========================================
   SEKCJA HERO (Strona główna)
========================================= */

/* Reset marginesów z motywu rodzica (Astra) */
.site-main,
#primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--pastel-blue) 0%, #ffffff 100%);
    color: var(--text-dark);
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: -5px; /* Delikatny zakład dla bezpieczeństwa krawędzi */
    padding: 80px 20px 140px;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Usunięto wadliwy clip-path */
}

/* Gwarantowany ukośny Divider SVG wklejony jako ::after */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    /* To jest obrazek z białym ukośnym cięciem, który naciąga się na 100% z zachowaniem formy */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 L1000,100 L1000,0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
}




.hero-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* === LOGO I TŁO === */
.hero-logo-wrapper {
    position: relative;
    margin-bottom: 50px;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Trzyma bąbelki w środku */
    border-radius: 50%; /* Zawęża overflow do okrągłego obszaru */
}

.hero-animated-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;

    background: radial-gradient(circle,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(240, 247, 255, 0.75) 44%,
    rgba(240, 247, 255, 0) 51%
    );

    border-radius: 50%;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0px 10px 20px rgba(74, 158, 255, 0.15));
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Dekoracyjne, organiczne tło */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.85;
    filter: blur(2px);
}

.blob-1 { width: 280px; height: 280px; background: #a8d5ff; top: 5%; left: 5%; animation: organicOrbit 20s linear infinite; }
.blob-2 { width: 230px; height: 230px; background: #ffd6e8; bottom: 5%; right: 5%; animation: organicOrbit 25s linear infinite reverse; }
.blob-3 { width: 200px; height: 200px; background: #a8e6cf; top: -5%; right: 15%; animation: organicOrbit 15s linear infinite; }

/* === ANIMACJE CSS === */
@keyframes gentleFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes organicOrbit {
    0% { transform: rotate(0deg) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { transform: rotate(180deg) scale(1.05); border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    100% { transform: rotate(360deg) scale(1); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Fade-in na wejście strony */
.hero-wrap > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-wrap .hero-logo-wrapper { animation-delay: 0.1s; }
.hero-wrap h1 { animation-delay: 0.3s; }
.hero-wrap p { animation-delay: 0.5s; }
.hero-wrap .hero-buttons { animation-delay: 0.7s; }

@keyframes fadeUpIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Teksty w Hero */
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 500;
}

/* Przyciski */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(74, 158, 255, 0.3);
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 158, 255, 0.4);
}

.hero-btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-color) !important;
    padding: 12px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.hero-btn-outline:hover {
    background: var(--pastel-blue);
    transform: translateY(-3px);
}

/* Responsywność dla Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 120px; /* Troszkę większy dół na mobile */
        /* Na małych ekranach skos będzie odrobinę płytszy */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-logo-wrapper {
        width: 220px;
        height: 220px;
        margin-bottom: 30px;
    }

    .hero-animated-logo {
        width: 150px;
        height: 150px;
    }

    .blob-1 { width: 160px; height: 160px; top: 10%; left: 0%; }
    .blob-2 { width: 140px; height: 140px; bottom: 5%; right: 0%; }
    .blob-3 { width: 120px; height: 120px; top: 5%; right: 10%; }
}

@media (max-width: 480px) {
    .hero-logo-wrapper {
        width: 180px;
        height: 180px;
    }

    .hero-animated-logo {
        width: 120px;
        height: 120px;
    }

    .blob-1 { width: 130px; height: 130px; }
    .blob-2 { width: 110px; height: 110px; }
    .blob-3 { width: 100px; height: 100px; }
}
