/*
Theme Name: Long Term Car Rental
Theme URI: https://example.com/
Author: Jules
Description: A modern WordPress theme for long-term car rental.
Version: 1.3.0 (Fixed Header Force)
Text Domain: long-term-car-rental
*/

/* --- USTAWIENIA GLOBALNE --- */
:root {
    --primary-color: #34495e; /* Dark Slate Blue */
    --accent-color: #e74c3c; /* Red accent */
    --text-color: #333333;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, rgba(52, 73, 94, 0.9) 0%, rgba(41, 128, 185, 0.8) 100%);
    --gradient-btn: linear-gradient(to right, #3498db, #2980b9);
    --form-bg: rgba(44, 62, 80, 0.9);
    --border-color: #ecf0f1;
    --radius: 4px;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Offset dla kotwic menu (żeby nagłówek nie zasłaniał treści) */
#oferta, #o-nas, #proces, #kontakt {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- NAGŁÓWEK (HEADER) - POPRAWKA WYMUSZONA --- */
.site-header {
    background: #ffffff !important;
    padding: 10px 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important; /* Musi być na samym wierzchu */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
}

/* Kontener nagłówka - wymuszamy układ poziomy */
.header-inner, .site-header .container {
    display: flex !important;
    flex-direction: row !important; /* Poziomo */
    justify-content: space-between !important;
    align-items: center !important; /* Środek w pionie */
    flex-wrap: nowrap !important; /* Nie zawijaj */
    height: 70px !important; /* Sztywna wysokość */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO - Naprawa wielkości */
.site-branding {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    max-width: 250px !important;
}

.site-branding a {
    display: block !important;
}

/* Celujemy w KAŻDY obrazek w logo, żeby go zmniejszyć */
.site-branding img, 
.custom-header-logo {
    height: 50px !important; /* Sztywna wysokość */
    width: auto !important;  /* Zachowaj proporcje */
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* NAWIGACJA - Menu środkowe */
.main-navigation {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.main-navigation ul, 
.main-navigation .menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 30px !important;
}

.main-navigation li {
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation a {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    font-family: 'Oswald', sans-serif !important;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--primary-color) !important;
}

/* PRZYCISK (CTA) - Prawa strona */
.header-cta {
    flex: 0 0 auto !important;
    display: block !important;
}

.btn-parent-site {
    background: transparent !important;
    color: #333 !important;
    padding: 8px 15px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid transparent !important;
}

.btn-parent-site:hover {
    color: #007bff !important;
}


/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    background: url('https://wnajmie.pl/wp-content/uploads/2026/01/5.png') center/cover no-repeat;
    min-height: 750px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Booking Form Styles */
.hero-form, .contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: var(--radius);
    color: #333;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    max-width: 400px;
}
.contact-form-card h3 { color: var(--primary-color); margin-top: 0; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 5px; font-weight: 600; }
.form-control {
    width: 100%; padding: 10px; border: 1px solid #ddd;
    background: #f9f9f9; border-radius: var(--radius);
    box-sizing: border-box; font-family: inherit;
}
textarea.form-control { resize: vertical; }

.btn-submit, .btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}
.btn-submit:hover, .btn-primary:hover { opacity: 0.9; background: #2c3e50; }

/* --- FLEET SECTION --- */
.listings-section, .fleet-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}
.fleet-grid, .cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.fleet-card, .car-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.fleet-card:hover, .car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.car-badge, .car-tag {
    position: absolute; top: 15px; left: 15px;
    background: var(--primary-color); color: var(--white);
    font-size: 0.75rem; padding: 5px 12px; border-radius: 2px;
    text-transform: uppercase; font-weight: 700; z-index: 2;
}
.car-badge.premium { background: var(--accent-color); }

.fleet-image, .car-image {
    width: 100%; height: 250px; object-fit: cover; background: #f4f4f4;
}
.fleet-details, .car-content {
    padding: 25px; text-align: left; flex-grow: 1; display: flex; flex-direction: column;
}
.fleet-title, .car-title {
    font-size: 1.4rem; margin-bottom: 5px; color: var(--text-color);
    font-family: 'Oswald', sans-serif; font-weight: 700;
}
.fleet-subtitle { font-size: 0.9rem; color: #888; margin-bottom: 15px; }
.fleet-price-box { border-bottom: 1px solid #eee; margin-bottom: 15px; padding-bottom: 15px; }
.fleet-price, .car-price { font-size: 1.4rem; color: var(--accent-color); font-weight: 700; display: block; }
.fleet-price-sub { font-size: 0.8rem; color: #999; }
.fleet-features-short, .car-specs {
    list-style: none; padding: 0; margin: 0 0 20px 0; color: var(--text-light); font-size: 0.9rem;
}
.fleet-features-short li { margin-bottom: 5px; }
.fleet-features-short i { color: var(--accent-color); margin-right: 8px; }

.book-btn, .btn-book {
    display: block; width: 100%;
    background: #343a40; color: var(--white);
    padding: 12px; border: none; border-radius: var(--radius);
    text-transform: uppercase; font-weight: 700; text-align: center;
    cursor: pointer; margin-top: auto; transition: background 0.3s;
}
.book-btn:hover { background: #0056b3; }

/* --- ABOUT SECTION --- */
.about-section, .content-section { padding: 80px 0; background: #fff; }
.about-wrapper, .about-container {
    display: flex; align-items: center; gap: 50px; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto;
}
.about-text { flex: 1; min-width: 300px; }
.about-text h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; text-transform: uppercase; }
.about-mission { 
    font-weight: bold; color: var(--primary-color); 
    border-left: 4px solid var(--accent-color); padding-left: 15px; margin-top: 20px;
}
.about-images { flex: 1; min-width: 300px; position: relative; height: 400px; }
.img-collage {
    position: absolute; border-radius: 4px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); background-size: cover; background-position: center;
}
.img-1 {
    top: 0; left: 0; width: 65%; height: 280px; z-index: 1;
    background-image: url('https://wnajmie.pl/wp-content/uploads/2026/01/15.png');
}
.img-2 {
    bottom: 0; right: 0; width: 60%; height: 260px; z-index: 2; border: 8px solid var(--white);
    background-image: url('https://wnajmie.pl/wp-content/uploads/2026/01/16.png');
}

/* --- PROCESS SECTION --- */
.process-section { padding: 5rem 0; background: #fff; text-align: center; }
.process-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1200px; margin: 40px auto 0; padding: 0 20px; }
.process-step {
    flex: 1; min-width: 250px; background: white; padding: 30px 20px;
    border-radius: 4px; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.step-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; }
.step-title { font-weight: bold; margin-bottom: 10px; color: var(--primary-color); font-size: 1.2rem; }
.step-desc { font-size: 0.9rem; color: #777; }

/* --- FOOTER --- */
.locations-section { background: var(--bg-light); padding: 60px 0; text-align: center; }
.site-footer, .footer-info {
    background: #1a1a1a; color: #aaa; padding: 40px 0; text-align: center;
}
.footer-contact { color: var(--white); font-size: 1.1rem; margin-bottom: 20px !important; }
.legal-note { font-size: 0.75rem; color: #555; margin-top: 20px !important; max-width: 800px; margin: 0 auto; }

/* --- MODAL / POPUP --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 9999; justify-content: center; align-items: center; padding: 20px;
}
.modal-content {
    background: white; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto;
    border-radius: 5px; position: relative; display: flex; flex-direction: row; flex-wrap: wrap; animation: fadeIn 0.3s;
}
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #333; cursor: pointer; z-index: 10;
}
.modal-info { flex: 1.2; min-width: 320px; padding: 40px; background: #fff; border-right: 1px solid #eee; }
.modal-form { flex: 0.8; min-width: 300px; padding: 40px; background: #fcfcfc; }
.equipment-list-full { list-style: none; padding: 0; margin-top: 20px; }
.equipment-list-full li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; color: #444; font-size: 0.95rem; }
.equipment-list-full strong { color: var(--primary-color); display: block; margin-bottom: 2px;}
.modal-phone { font-size: 1.6rem; font-weight: bold; color: var(--primary-blue); margin-top: 5px; display: block; text-decoration: none; }
.modal-gallery { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.modal-gallery img { width: 32%; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSYWNOŚĆ (MOBILE) --- */
@media (max-width: 900px) {
    /* HEADER MOBILE */
    .header-inner, .site-header .container {
        height: auto !important;
        flex-direction: column !important;
        padding: 15px !important;
        gap: 15px !important;
    }
    .main-navigation ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    .site-branding img, .custom-header-logo {
        height: 40px !important; /* Mniejsze logo na tel */
        margin: 0 auto !important;
    }
    
    /* CONTENT MOBILE */
    .hero-wrapper { justify-content: center; text-align: center; }
    .hero-text { padding-right: 0; margin-bottom: 40px; }
    .hero-text h1 { font-size: 2.5rem; }
    .about-wrapper { flex-direction: column; }
    .about-images { width: 100%; height: 350px; }
    .modal-content { flex-direction: column; }
    .modal-info { border-right: none; border-bottom: 1px solid #eee; }
    .modal-gallery img { height: 80px; }
}