/* --- ZMIENNE I RESET --- */
:root {
    --primary-color: #008080;
    --primary-dark: #006666;
    --accent-color: #FF7F50;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9fbfb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    --hipets-color: #008080;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- NAWIGACJA --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

/* Menu Mobilne Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- PRZYCISK HIPETS (PŁYWAJĄCY) --- */
.hipets-float {
    position: fixed;
    left: 20px;
    bottom: 30px;
    background-color: var(--white);
    color: var(--hipets-color) !important;
    border: 2px solid var(--hipets-color);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s, background 0.3s;
    text-align: left;
}

.hipets-float:hover {
    transform: translateY(-3px);
    background-color: var(--hipets-color);
    color: var(--white) !important;
}

.hipets-icon {
    font-size: 1.5rem;
}

.hipets-text {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.hipets-text small {
    font-weight: 400;
    font-size: 0.75rem;
}

/* --- SEKCJA HERO (Slideshow) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: none; /* Domyślnie ukrywamy, kontrolujemy to niżej */
}

/* --- Domyślny widok: DESKTOP --- */
.desktop-slide {
    display: block; /* Pokaż desktopowe slajdy */
}

.mobile-slide {
    display: none; /* Ukryj mobilne slajdy */
}

/* Domyślnie aktywny jest pierwszy slajd DESKTOPOWY */
.desktop-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- WSPÓLNE STYLE SEKCJI --- */
section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- O NAS --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- USŁUGI --- */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- ZESPÓŁ --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    justify-items: center;
}

.team-member {
    text-align: center;
    width: 100%;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow);
    background-color: #ddd;
}

.team-member h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- KONTAKT --- */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--white);
        width: 100%;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hipets-float {
        padding: 8px 15px;
        bottom: 20px;
        left: 10px;
    }
    
    .desktop-slide {
        display: none !important;
        opacity: 0 !important;
    }

    .mobile-slide {
        display: block !important;
        background-position: top center;
    }
    
    /* Mobilny slajd, który jest aktywny przez JS */
    .mobile-slide.active {
        opacity: 1 !important;
    }
}