/**
 * AutoSkupWWA.pl - Style responsywne
 */

/* Tablet - Poniżej 1200px */
@media (max-width: 1199px) {
    :root {
        --section-spacing: 4rem;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-form {
        flex: 0 0 350px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet pionowy - Poniżej 992px */
@media (max-width: 991px) {
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-lead {
        margin: 0 auto 2rem;
    }
    
    .hero-form {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-step {
        flex: 0 0 50%;
        margin-bottom: 2rem;
    }
    
    .map-container {
        flex-direction: column;
    }
    
    #warszawa-map {
        flex: 0 0 auto;
        height: 400px;
    }
    
    .stats-container {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 2rem;
    }
}

/* Mobile - Poniżej 768px */
@media (max-width: 767px) {
    :root {
        --section-spacing: 3rem;
        --font-size-3xl: 1.875rem;  /* 30px */
        --font-size-4xl: 2.25rem;   /* 36px */
    }
    
    /* Nagłówek mobilny */
    .header-top {
        flex-direction: column;
        padding: 0.75rem 0;
    }
    
    .contact-info {
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 2;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        z-index: 1001;
        padding: 2rem;
        margin: 0;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-item {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .menu-item a {
        padding: 0.75rem 0;
    }
    
    .has-dropdown .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        min-width: auto;
        display: none;
    }
    
    .has-dropdown.open .sub-menu {
        display: block;
    }
    
    .dropdown-toggle::after {
        content: '+';
        margin-left: 0.5rem;
    }
    
    .header-cta {
        order: 3;
    }
    
    .header-cta .btn-text {
        display: none;
    }
    
    .header-cta .btn-call {
        padding: 0.5rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .header-cta .icon {
        margin-right: 0;
    }
    
    /* Sekcje mobilne */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonials-slider {
        padding-bottom: 1rem;
    }
    
    .testimonial {
        flex: 0 0 300px;
        padding: 1.5rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    /* FAQ mobilne */
    .faq-question h3 {
        font-size: var(--font-size-base);
    }
    
    /* Footer mobilny */
    .footer-column {
        flex: 0 0 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Cookies */
    .cookie-notice .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Small Mobile - Poniżej 576px */
@media (max-width: 575px) {
    .hero-section h1 {
        font-size: var(--font-size-2xl);
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .phone-link {
        margin-right: 0;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .logo img {
        width: 150px;
        height: auto;
    }
}

/* ========== COOKIE CONSENT STYLES ========== */

/* Banner cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--color-primary);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-text h3 {
    font-size: var(--font-size-lg);
    color: var(--color-secondary);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    color: var(--color-gray);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-settings-btn {
    background-color: transparent;
    border: 1px solid var(--color-light-gray);
    color: var(--color-gray);
}

.cookie-settings-btn:hover {
    background-color: var(--color-background);
    border-color: var(--color-gray);
    color: var(--color-dark-gray);
}

/* Modal ustawień cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-modal-content {
    transform: translateY(0) scale(1);
}

.cookie-modal-header {
    padding: 2rem 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--color-secondary);
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background-color: var(--color-background);
    color: var(--color-dark-gray);
}

.cookie-modal-close svg {
    width: 20px;
    height: 20px;
}

.cookie-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-description {
    margin-bottom: 2rem;
}

.cookie-description p {
    margin: 0;
    color: var(--color-gray);
    line-height: 1.6;
}

.cookie-description a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-description a:hover {
    color: var(--color-primary-dark);
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-category {
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.cookie-category:hover {
    border-color: var(--color-accent);
}

.cookie-category-header {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-base);
    color: var(--color-secondary);
    font-weight: 600;
}

.cookie-category-info p {
    margin: 0;
    color: var(--color-gray);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Custom toggle switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 52px;
    height: 28px;
    background-color: var(--color-light-gray);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label:hover {
    background-color: #c0c0c0;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label {
    background-color: var(--color-primary);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label:hover {
    background-color: var(--color-primary-dark);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label .toggle-slider {
    transform: translateX(24px);
}

/**
 * Poprawki mobile dla AutoSkupWWA.pl
 * Dodaj na końcu pliku responsive.css
 */

/* Mobile - Poniżej 768px */
@media (max-width: 767px) {
    
    /* ========== TOP HEADER MOBILE - BARDZO KOMPAKTOWY ========== */
    .header-top {
        padding: 0.3rem 0; /* Bardzo mały padding */
        font-size: 11px; /* Mała czcionka */
        min-height: auto;
    }
    
    .header-top .container {
        flex-direction: row; /* Poziomo na mobile */
        justify-content: center; /* Wyśrodkowane */
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: row; /* Telefon i godziny obok siebie */
        gap: 1rem;
        margin-bottom: 0;
        align-items: center;
        justify-content: center;
    }
    
    .phone-link {
        font-size: 11px;
        margin-right: 0;
        display: flex;
        align-items: center;
        gap: 0.2rem;
        white-space: nowrap;
    }
    
    .phone-link .icon {
        font-size: 10px;
    }
    
    .working-hours {
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 0.2rem;
        white-space: nowrap;
    }
    
    .working-hours .icon {
        font-size: 10px;
    }
    
    /* UKRYJ SOCIAL MEDIA NA MOBILE */
    .social-links {
        display: none;
    }
    
    /* ========== HEADER MAIN MOBILE ========== */
    .header-main {
        padding: 0.75rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .header-main .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
    }
    
    /* Logo na środku */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    
    .logo img {
        width: 140px;
        height: auto;
    }
    
    /* Menu hamburger po lewej */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10;
        order: 1;
    }
    
    .bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--color-black);
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 1px;
    }
    
    /* ========== CTA BUTTON MOBILE - PROSTOKĄT ZAMIAST KOŁA ========== */
    .header-cta {
        order: 3;
        z-index: 10;
    }
    
    .header-cta .btn-call {
        padding: 0.6rem 1rem; /* Prostokątny padding */
        border-radius: var(--border-radius); /* Normalny border-radius, nie koło */
        width: auto; /* Auto width zamiast fixed */
        height: auto; /* Auto height zamiast fixed */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        font-size: var(--font-size-xs);
        white-space: nowrap;
        min-width: auto;
    }
    
    /* Tekst widoczny na mobile */
    .header-cta .btn-text {
        display: inline; /* Pokaż tekst */
        font-weight: 500;
    }
    
    .header-cta .icon {
        margin-right: 0; /* Usuń margin, bo mamy gap */
        font-size: var(--font-size-xs);
    }
    
    /* ========== NAVIGATION MOBILE ========== */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--box-shadow-lg);
        transition: var(--transition);
        z-index: 1001;
        padding: 2rem 0;
        margin: 0;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2rem;
    }
    
    .menu-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--color-light-gray);
    }
    
    .menu-item a {
        padding: 1rem 0;
        display: block;
        width: 100%;
        font-size: var(--font-size-base);
    }
    
    .has-dropdown .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        min-width: auto;
        display: none;
        background-color: var(--color-background);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .has-dropdown.open .sub-menu {
        display: block;
    }
    
    .dropdown-toggle::after {
        content: '+';
        margin-left: auto;
        font-size: var(--font-size-lg);
        transition: var(--transition);
    }
    
    .has-dropdown.open .dropdown-toggle::after {
        content: '−';
        transform: rotate(0deg);
    }
    
    /* Overlay dla menu mobile */
    .main-navigation.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 85%;
        width: 15%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Zablokuj scroll gdy menu otwarte */
    body.no-scroll {
        overflow: hidden;
    }
}

/* Small Mobile - Poniżej 576px */
@media (max-width: 575px) {
    
    /* Jeszcze kompaktowszy top header */
    .header-top {
        padding: 0.25rem 0; /* Bardzo mały padding */
    }
    
    .header-top .container {
        gap: 0.75rem;
    }
    
    .phone-link,
    .working-hours {
        font-size: 10px; /* Bardzo mała czcionka */
    }
    
    .phone-link .icon,
    .working-hours .icon {
        font-size: 9px;
    }
    
    /* Logo jeszcze mniejsze */
    .logo img {
        width: 120px;
    }
    
    /* CTA button na małych ekranach */
    .header-cta .btn-call {
        padding: 0.5rem 0.8rem;
        font-size: 11px;
    }
    
    /* Menu toggle mniejsze */
    .bar {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .mobile-menu-toggle {
        padding: 0.4rem;
    }
}

/* ========== DODATKOWE POPRAWKI DLA LEPSZEJ UX ========== */

/* Animacja menu hamburgera */
@media (max-width: 767px) {
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 4px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -4px);
    }
}

/* Poprawka dla bardzo wysokich telefonów */
@media (max-width: 767px) and (min-height: 800px) {
    .main-navigation {
        padding-top: 3rem;
    }
    
    .main-menu {
        padding-top: 1rem;
    }
}