/* style.css - Wersja PRO (Inspirowana Trelka + Fenix) */

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* --- 6. DLACZEGO MY (Atuty - Styl Fenix) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h2 { color: var(--primary); margin-bottom: 20px; }
.features-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}
.features-list li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* --- 7. USŁUGI (Kafelki - Styl Trelka) --- */
.services { background-color: var(--light); }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}
.section-title .divider {
    height: 3px;
    width: 60px;
    background: var(--accent);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 30px;
    border-top: 4px solid var(--gold); /* Złoty akcent premium */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}
.service-card:hover { transform: translateY(-5px); }
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}
.service-card h3 { margin-bottom: 15px; color: var(--dark); }

/* --- 8. CTA (Wezwanie do działania) --- */
.cta-section {
    background: var(--primary);
    color: #fff;
    text-align: center;
}
.cta-section h2 { margin-bottom: 20px; }

/* --- 9. STOPKA --- */
footer {
    background: var(--dark);
    color: #aaa;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: #fff; }
.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- 10. RESPONSIVE DESIGN (MEDIA QUERIES) --- */

/* STYL DLA TABLETÓW I TELEFONÓW (Poniżej 768px) */
@media (max-width: 768px) {

    /* Grid w jednej kolumnie */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Odwrócenie kolejności na telefonie (najpierw tekst, potem obrazek - opcjonalne) */
    .about-image {
        order: -1; /* Jeśli chcesz obrazek nad tekstem */
        margin-bottom: 20px;
    }

    /* Kafelki usług - jeden pod drugim (grid już to robi automatycznie, ale dla pewności) */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* STYL DLA DESKTOPÓW (Powyżej 769px) */
@media (min-width: 769px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* Dwie kolumny obok siebie */
    }
}

/* --- 11. FLOATING CTA (PŁYWAJĄCY PRZYCISK KONTAKTU) --- */
#floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2147483647; /* Maksymalny z-index, zawsze na wierzchu */
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.5;
}

/* Główny Zielony Przycisk */
.cta-main-btn {
    background-color: #28a745; /* Soczysta zieleń */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Poprawki dla Mobile - Usuwa "lepkość" przycisku */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}

.cta-main-btn:hover {
    transform: scale(1.05);
    background-color: #218838;
}

.cta-icon {
    font-size: 20px;
}

/* Menu Kontaktu (Początkowo ukryte) */
.cta-menu {
    position: absolute;
    bottom: 70px; /* Nad przyciskiem */
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    border: 1px solid #e1e1e1;
}

.cta-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sekcja Detektywa */
.cta-person {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.cta-person:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.cta-name {
    color: #1a4d80; /* Twój kolor granatowy */
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    display: block;
}

.cta-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

/* Siatka przycisków */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie kolumny */
    gap: 8px;
}

/* Przyciski komunikatorów */
.comm-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.comm-link:hover { opacity: 0.9; }

/* Kolory komunikatorów */
.btn-tel { background: #1a4d80; grid-column: span 2; } /* Telefon szeroki */
.btn-sms { background: #6c757d; }
.btn-wa  { background: #25D366; }
.btn-sig { background: #3a76f0; }
.btn-tg  { background: #0088cc; }

/* Responsywność dla małych telefonów */
@media (max-width: 480px) {
    #floating-cta { bottom: 15px; right: 15px; }
    .cta-main-btn { padding: 12px 18px; font-size: 14px; }
    .cta-menu { width: 280px; right: -10px; }
}