/* --- BAZA .NET & RESET --- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    /* Ważne: usuwamy margin-bottom: 60px, który .NET dodaje domyślnie, 
     bo Ty masz własną, dużą stopkę */
    margin-bottom: 0;
    font-family: 'Open Sans', sans-serif;
    color: #4a4a4a;
    line-height: 1.7;
}

/* --- TWOJE STYLE (HYGGE) --- */
:root {
    /* Paleta Terapeutyczna */
    --primary-color: #5A8F91;
    --primary-hover: #457274;
    --secondary-bg: #F5F7F8;
    --text-dark: #2C3E50;
    --footer-bg: #222831;
}

/* --- UTILITY CLASSES --- */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-dark-custom {
    color: var(--text-dark) !important;
}

.bg-light-custom {
    background-color: var(--secondary-bg) !important;
}

.bg-dark-custom {
    background-color: var(--footer-bg) !important;
}

/* --- PRZYCISKI --- */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary-custom:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-1px);
    }

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
}

    .btn-outline-custom:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* --- NAVBAR --- */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 80px;
    /* Ścieżka zakłada strukturę: wwwroot/css i wwwroot/Images */
    background-image: url('https://terapeutycznesos.pl/images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    min-height: 700px;
}

.hero-content-box {
    background-color: rgba(255, 255, 255, 0.50); /* Idealne 50% */
    backdrop-filter: blur(8px);
    color: #333;
}

@media (min-width: 992px) {
    .hero-content-box .lead {
        font-size: 1.35rem;
        line-height: 1.8;
        font-weight: 400;
    }

    .hero-content-box h1 {
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-content-box {
        text-align: center;
    }

        .hero-content-box .d-flex {
            justify-content: center;
        }
}

/* --- KARTY OFERTY --- */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

    .hover-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.075) !important;
    }

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(90, 143, 145, 0.1);
    border-radius: 50%;
}

/* --- PŁYWAJĄCY PRZYCISK --- */
.btn-floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 65px;
    min-width: 65px;
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-green 2s infinite;
}

    .btn-floating-phone .phone-text {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
        white-space: nowrap;
        transition: all 0.4s ease;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .btn-floating-phone:hover {
        background-color: var(--primary-hover);
        padding-right: 25px;
        width: auto;
    }

        .btn-floating-phone:hover .phone-text {
            max-width: 200px;
            opacity: 1;
            margin-left: 12px;
        }

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(90, 143, 145, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(90, 143, 145, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(90, 143, 145, 0);
    }
}

@media (max-width: 576px) {
    .btn-floating-phone {
        bottom: 20px;
        right: 20px;
        height: 55px;
        min-width: 55px;
        padding: 0;
    }

        .btn-floating-phone .phone-text {
            display: none;
        }

        .btn-floating-phone:hover {
            padding: 0;
        }
}

@media (min-width: 992px) {
    .navbar-nav a[href^="tel:"] {
        pointer-events: none;
        cursor: text;
    }
}

/* --- POPRAWKI DLA PODSTRON --- */

/* Odsunięcie treści od góry - ZWIĘKSZONE I WYMUSZONE */
.page-header-spacing {
    padding-top: 150px !important; /* Zwiększamy odstęp i wymuszamy priorytet */
    padding-bottom: 3rem !important; /* Zachowujemy dolny odstęp jak w py-5 */
}

/* Nasz własny kolor obramowania - WYMUSZONY */
.border-primary-custom {
    border-color: var(--primary-color) !important;
    border-width: 4px !important; /* Upewniamy się, że ramka jest gruba */
}

/* 1. Naprawa aktywnego linku w głównym menu (np. "Oferta" gdy jesteś w tej sekcji) */
.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
    color: #5c7c64 !important; /* Twój kolor podstawowy (wpisz tutaj swój kod HEX) */
    background-color: transparent !important; /* Usuwa niebieskie tło jeśli się pojawia */
}

/* 2. Naprawa elementów wewnątrz rozwijanego menu (Dropdown) */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #5c7c64 !important; /* Tło szałwiowe zamiast niebieskiego */
    color: #fff !important; /* Biały tekst */
}

/* Opcjonalnie: Kolor po najechaniu myszką w menu rozwijanym */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa; /* Jasne szare tło (delikatne) */
    color: #5c7c64 !important; /* Tekst szałwiowy */
}