/* ==========================================================================
   HAU czy MIAU? - Główne Arkusze Stylów
   ========================================================================== */

/* Zmienne globalne */
:root {
    --primary-orange: #EF8C24;
    --primary-orange-hover: #d67a1c;
    --primary-green: #288783;
    --primary-green-hover: #206d69;
    --bg-white: #ffffff;
    --bg-light: #fdfaf6;
    --text-dark: #333333;
    --text-light: #666666;
    --font-main: 'Manrope', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset bazowy */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img, picture, svg {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Komponenty i Przyciski
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: var(--bg-white);
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 140, 36, 0.3);
}

.btn-green {
    background-color: var(--primary-green);
    color: var(--bg-white);
}

.btn-green:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 135, 131, 0.3);
}

.btn-small { padding: 8px 20px; font-size: 0.9rem; }
.disabled-link { pointer-events: none; }

.section-padding { padding: 80px 0; }
.section-white { background-color: var(--bg-white); }
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 800;
}

/* ==========================================================================
   Nawigacja
   ========================================================================== */
.navbar {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    /* DODANE: płynna animacja wysuwania i wsuwania */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* NOWA KLASA: Ukrywa nawigację przesuwając ją do góry o 100% jej wysokości */
.navbar.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-logo { height: 50px; width: auto; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    font-weight: 600;
}

.nav-links a:hover { color: var(--primary-orange); }

/* ==========================================================================
   Header (Hero)
   ========================================================================== */
.hero { width: 100%; }
.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 80vh;
}

/* ==========================================================================
   Sekcja: Dlaczego my?
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 20px;
}

.feature-card img {
    height: 80px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* ==========================================================================
   Sekcja: Oferta
   ========================================================================== */
.section-offer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.offer-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.offer-btn {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 50px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.offer-btn img { height: 60px; }
.offer-btn span { font-weight: 800; font-size: 1.2rem; color: var(--text-dark); }

.offer-btn:hover {
    transform: translateY(-5px); /* Delikatne uniesienie do góry */
    box-shadow: 0 12px 25px rgba(0,0,0,0.1); /* Mocniejszy cień */
    background: rgba(255, 255, 255, 1); /* Wzmocnienie tła */
}

.offer-btn:hover span {
    color: var(--primary-orange); /* Zmiana koloru tekstu na firmowy pomarańcz */
}

/* ==========================================================================
   Karuzela (Marki i Galeria) - nowoczesne podejście bez JS
   ========================================================================== */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    /* Ukrywanie paska przewijania */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    cursor: grab; /* <--- DODAJ TĘ LINIJKĘ */
}

.carousel:active {
    cursor: grabbing; /* Zmienia łapkę na zaciśniętą podczas przeciągania */
}

.carousel::-webkit-scrollbar { display: none; }

.carousel > * {
    scroll-snap-align: center;
    flex-shrink: 0;
}

.brands-carousel { justify-content: space-between; align-items: center; }
.brands-carousel img { height: 60px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.brands-carousel img:hover { filter: grayscale(0%); opacity: 1; }

.gallery-carousel .gallery-item {
    width: 300px;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Sekcja: Opinie
   ========================================================================== */
.section-reviews {
    background-size: cover;
    background-position: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}
.circle-blue { background-color: #4285F4; } /* Kolor typowy dla wizytówki Google */

.author-info { display: flex; flex-direction: column; }
.stars { color: #fbbc04; font-size: 1.2rem; margin-bottom: 2px; }
.name { font-weight: 600; font-size: 0.9rem; }

/* ==========================================================================
   Sekcja: Kontakt
   ========================================================================== */
.contact-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links { display: flex; gap: 20px; }
.social-links a:hover { transform: scale(1.1); }
.contact-actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   Bottom Menu i Stopka
   ========================================================================== */
.bottom-menu {
    background-color: var(--primary-green);
    padding: 20px 0;
    color: var(--bg-white);
}

.bottom-menu .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-weight: 600;
}
.bottom-menu a:hover { text-decoration: underline; opacity: 0.9; }

.site-footer {
    background-color: var(--bg-white);
    padding: 30px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid #eaeaea;
}
.footer-credits { margin-top: 10px; font-size: 0.8rem; }
.footer-credits a { font-weight: 600; color: var(--text-dark); }
.footer-credits a:hover { color: var(--primary-orange); }

/* ==========================================================================
   Banner RODO / Cookies
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary-green);
}

.cookie-banner.show { bottom: 0; }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content a { color: var(--primary-green); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Responsywność (Mobile-First poprawki)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; margin: 15px 0; }
    .brands-carousel { justify-content: flex-start; } /* Pozwala na płynny scroll obok marek na mniejszych ekranach */
    .cookie-content { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Style dla podstron prawnych (Regulamin / Polityki)
   ========================================================================== */

/* Przygaszony zielony hero dla nagłówka podstrony */
.legal-hero {
    background-color: var(--primary-green);
    padding: 60px 0;
    color: var(--bg-white);
}

.legal-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
}

/* Kontener tekstu prawnego */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    color: var(--text-dark);
}

.legal-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
}

/* Reset stylów dla list wielopoziomowych w regulaminie */
.legal-content ol {
    list-style-type: none;
    counter-reset: item;
    padding-left: 0;
}

.legal-content ol > li {
    counter-increment: item;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

/* Tworzenie automatycznej numeracji punktów (1., 2., 3.) */
.legal-content ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary-orange);
}

/* Wewnętrzne listy podpunktów (wypunktowania) */
.legal-content ul {
    list-style-type: disc;
    margin-top: 10px;
    padding-left: 30px;
}

.legal-content ul li {
    margin-bottom: 8px;
    padding-left: 0;
}

/* Wyróżnienia dla linków w tekście i kodu NIP/REGON */
.legal-content a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-orange);
}

.legal-content code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
}

/* Zabezpieczenie przed zbyt długimi wyrazami na mobile */
@media (max-width: 480px) {
    .legal-content ol > li {
        padding-left: 25px;
    }
}

/* ==========================================================================
   Style dla podstrony Kontakt
   ========================================================================== */

/* Siatka 2-kolumnowa dla informacji i mapy */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block h3 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    font-weight: 800;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 5px;
}

.info-block p {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.text-link {
    color: var(--primary-orange);
    font-weight: 600;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Lista godzin otwarcia */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eaeaea;
    color: var(--text-dark);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Panel Mapy i iframe */
.contact-map-panel {
    height: 100%;
    min-height: 400px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mt-2 { margin-top: 1rem; }

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 900px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .contact-map-panel {
        height: 350px;
    }
}

/* ==========================================================================
   Style dla przycisków dokumentów (podstrona Regulaminy)
   ========================================================================== */
.doc-btn {
    display: block;
    width: 100%;
    background-color: var(--bg-white);
    color: var(--text-dark);
    text-align: left;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #eaeaea;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    line-height: 1.4;
    text-decoration: none !important; /* Zdejmuje podkreślenie */
}

.doc-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-decoration: none !important; /* Utrzymuje brak podkreślenia po najechaniu */
}