@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

/* --- ZMIENNE KOLORYSTYCZNE --- */
:root {
    --primary: #473add;
    --primary-hover: #2c2ee3;
    --text-dark: #202124;
    --text-light: #5f6368;
    --bg-light: #f4f5f7; 
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(71, 58, 221, 0.15);
}

/* --- RESET I BAZA --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Cabin', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* --- NAWIGACJA --- */
#banner {  
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

#logo {
    height: 100%;
    display: flex;
    align-items: center;
}

#picture {
    max-height: 85px; 
    width: auto;
    transition: 0.3s ease;
}

.navigation {
    display: flex;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1002; 
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
    border-radius: 3px;
}

/* --- SEKCJA GŁÓWNA (HERO) --- */
.hero-section {
    background-image: url('obraz_tlo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 100dvh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 5, 40, 0.8), rgba(20, 20, 80, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: white;
    max-width: 900px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-content h3 {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(71, 58, 221, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(71, 58, 221, 0.6);
}

/* --- TYPOGRAFIA I WSPÓLNE ELEMENTY --- */
.scroll-section {
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bg-white { background-color: var(--bg-white); }

.scroll-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 50px auto;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.subsection-title {
    margin-bottom: 25px;
    font-size: 1.55rem;
    color: var(--primary);
}

/* --- KARTA "O FIRMIE" --- */
.info-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
}

.info-column {
    padding: 50px 45px;
    flex: 1;
}

.info-column:first-child {
    background-color: var(--bg-white);
    border-right: 1px solid #eee;
}

/* Styl listy punktów po lewej stronie - KOMPUTER */
.info-card .info-column:first-child ul {
    list-style: none !important;
}

.info-card .info-column:first-child ul li {
    font-size: 1.21rem !important;     
    line-height: 1.55 !important;      
    color: var(--text-dark) !important;
    margin-bottom: 23px !important;    
    position: relative !important;
    padding-left: 44px !important;
}

.info-card .info-column:first-child ul li:last-child {
    margin-bottom: 0 !important;
}

/* Kółeczko z ptaszkiem na komputerze: idealnie 2px od góry, 26px wysokości */
.info-card .info-column:first-child ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px !important; /* Idealne wycentrowanie z linią tekstu */
    color: var(--primary);
    background: rgba(71, 58, 221, 0.12);
    width: 26px !important;
    height: 26px !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem !important;
}

/* Prawa strona (O Właścicielu) */
.info-column p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: justify;
    line-height: 1.65;
}

.quote-text {
    font-weight: 600;
    color: var(--primary) !important;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* Zwykła lista w sekcji Usługi */
ul.lista {
    list-style: none;
    font-size: 1.1rem;
    color: var(--text-light);
}

ul.lista li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

ul.lista li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    background: rgba(71, 58, 221, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

/* --- USŁUGI --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.service-card-modern {
    background: white;
    border-radius: 16px;
    padding: 45px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(71, 58, 221, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(71, 58, 221, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.service-card-modern:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card-modern h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-card-modern .lista li {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- GALERIA COVERFLOW (3D) --- */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px; 
    height: 380px;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none; 
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    filter: blur(0);
    pointer-events: auto;
    cursor: zoom-in; 
}

.slider-item.prev {
    opacity: 0.6;
    transform: translate(-95%, -50%) scale(0.8);
    z-index: 2;
    filter: blur(4px); 
    pointer-events: auto;
    cursor: pointer; 
}

.slider-item.next {
    opacity: 0.6;
    transform: translate(-5%, -50%) scale(0.8);
    z-index: 2;
    filter: blur(4px);
    pointer-events: auto;
    cursor: pointer;
}

.slider-item.active::after {
    content: '\f00e'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 4rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slider-item.active:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    max-width: 90%; 
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease-out;
    object-fit: contain;
}

.close-btn {
    position: absolute; 
    top: 20px; right: 30px;
    color: white; 
    font-size: 40px; 
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover { color: var(--primary); }

@keyframes zoomIn { 
    from {transform: scale(0.9); opacity: 0;} 
    to {transform: scale(1); opacity: 1;} 
}

/* --- KONTAKT --- */
.contact-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 50px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details p, .contact-hours p {
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover { color: var(--primary); }

.phone-link {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary) !important;
}

.contact-hours h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-map {
    flex: 1.2;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- STOPKA --- */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
}

/* --- PŁYWAJĄCE PRZYCISKI --- */
#scrollTopBtn {
    display: none; 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 998; 
    background-color: var(--primary); 
    color: white;
    border: none; 
    width: 55px; height: 55px;
    border-radius: 50%; 
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(71, 58, 221, 0.4);
    transition: all 0.3s;
    justify-content: center; align-items: center;
    opacity: 0; cursor: pointer;
}

#scrollTopBtn.show { opacity: 1; display: flex; }
#scrollTopBtn:hover { background-color: var(--primary-hover); transform: translateY(-5px); }

#quickCallWrapper {
    position: fixed;
    bottom: 100px; 
    right: 30px;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#quickCallWrapper.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

#quickCallBtn {
    background-color: #2ecc71; 
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    text-decoration: none;
    animation: pulse 2s infinite;
}

#quickCallBtn:hover {
    background-color: #27ae60;
}

#closeCallBtn {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.2s;
}

#closeCallBtn:hover {
    background-color: #ff6b81;
    transform: scale(1.15);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .info-card { flex-direction: column; }
    .info-column:first-child { border-right: none; border-bottom: 1px solid #eee; }
    
    .info-card .info-column:first-child ul li { 
        margin-bottom: 22px !important; 
        font-size: 1.08rem !important; 
        line-height: 1.55 !important;
        padding-left: 38px !important;
    }
    
    .info-card .info-column:first-child ul li::before {
        width: 24px !important;
        height: 24px !important;
        top: 1.5px !important;
        font-size: 0.76rem !important;
    }

    .services-grid { grid-template-columns: 1fr; }
    .contact-container { flex-direction: column; padding: 30px; gap: 30px;}
    .contact-map { min-height: 350px; }
    .scroll-section { padding: 70px 5%; }
}

@media (max-width: 768px) {
    #banner { padding: 0 20px; height: 80px; }
    #picture { max-height: 55px; } 
    .hamburger { display: flex; }

    .navigation {
        position: fixed;
        top: 80px;
        right: -100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
        z-index: 1001; 
    }

    .navigation.nav-open { right: 0; }
    .nav-link { display: block; padding: 15px; font-size: 1.2rem; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { padding-top: 80px; }

    .gallery-slider-wrapper { height: 350px; }
    .slider-item { width: 75vw; height: 250px; } 
    .slider-item.prev { transform: translate(-85%, -50%) scale(0.85); opacity: 0.4; filter: blur(2px); }
    .slider-item.next { transform: translate(-15%, -50%) scale(0.85); opacity: 0.4; filter: blur(2px); }
    .prev-btn { left: 5px; width: 40px; height: 40px; font-size: 16px; }
    .next-btn { right: 5px; width: 40px; height: 40px; font-size: 16px; }
}

@media (max-width: 480px) {
    .scroll-section { padding: 60px 20px; }
    .service-card-modern { padding: 25px 20px; }
    .info-column { padding: 30px 20px; }
    
    /* TELEFON: proporcjonalne kółko 22px i top: 1px - idealnie w środku pierwszej linii */
    .info-card .info-column:first-child ul li { 
        font-size: 1.02rem !important; 
        padding-left: 34px !important; 
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
    }

    .info-card .info-column:first-child ul li::before {
        width: 22px !important;
        height: 22px !important;
        top: 1px !important; 
        font-size: 0.72rem !important;
    }
    
    .contact-details p { font-size: 1rem; }
    
    .gallery-slider-wrapper { height: 300px; }
    .slider-item { width: 80vw; height: 220px; }
    .slider-item.prev { transform: translate(-85%, -50%) scale(0.8); }
    .slider-item.next { transform: translate(-15%, -50%) scale(0.8); }

    #scrollTopBtn { width: 45px; height: 45px; font-size: 18px; bottom: 15px; right: 15px; }
    #quickCallWrapper { bottom: 70px; right: 15px; }
    #quickCallBtn { width: 50px; height: 50px; font-size: 22px; }
    #closeCallBtn { width: 20px; height: 20px; font-size: 11px; }
}