/* ==========================================================
   STYLE.CSS - SAJAN TRANSPORT & POMOC DROGOWA
========================================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* KOREKTA PRECYZYJNEGO SCROLLOWANIA DO SEKCJI (+10px NIŻEJ) */
section[id], div[id] {
    scroll-margin-top: 85px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ZMIENNE */
:root {
    --primary: #d8232a;
    --primary-dark: #a5141b;
    --black: #111111;
    --white: #ffffff;
    --gray: #666666;
    --light: #f6f6f6;
    --border: #e8e8e8;
    --shadow: 0 15px 40px rgba(0, 0, 0, .08);
    --radius: 12px;
    --transition: .35s;
}

/* ELEMENTY PODSTAWOWE */
img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding: 100px 10%;
}

h1 {
    font-size: clamp(32px, 4vw, 60px);
    line-height: 1.1;
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 25px;
}

h3 {
    font-size: clamp(20px, 2vw, 26px);
}

p {
    color: var(--gray);
    margin-top: 15px;
}

.container {
    max-width: 1400px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* PRZYCISKI */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border: 2px solid white;
    color: white;
    border-radius: var(--radius);
    transition: .35s;
    font-weight: 600;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* HEADER - POPRAWIONY I PROPORCJONALNY DO STRONY */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: clamp(140px, 12vw, 220px);
    height: auto;
    cursor: pointer;
}

/* ODNOŚNIKI PROPORCJONALNE W DESKTOP */
.menu {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 40px);
}

.menu li a {
    font-size: clamp(15px, 1.1vw, 19px);
    font-weight: 600;
    position: relative;
    transition: .3s;
    white-space: nowrap;
}

.menu li a:hover,
.menu li a.active {
    color: var(--primary);
}

.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: .35s;
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

/* ZMIANA JĘZYKA */
.language-switch {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.language-switch button {
    width: clamp(34px, 2.5vw, 42px);
    height: clamp(34px, 2.5vw, 42px);
    font-size: clamp(12px, 0.9vw, 15px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    background: #efefef;
    transition: .35s;
}

.language-switch button.active,
.language-switch button:hover {
    background: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    border: none;
    background: none;
    font-size: 34px;
    cursor: pointer;
}

/* HERO (ZDJĘCIE HERO.PNG W TLE) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url('hero100.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    margin-bottom: 30px;
}

.hero p {
    color: #ffffff;
    font-size: clamp(16px, 1.5vw, 22px);
    margin-bottom: 45px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* O NAS */
#about {
    background: #ffffff;
}

#about article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: flex-start;
}

#about figure {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 110px;
}

#about figure img {
    transition: .5s;
}

#about figure:hover img {
    transform: scale(1.08);
}

#about h3 {
    margin-bottom: 20px;
    color: var(--black);
}

#about p {
    margin-bottom: 18px;
    line-height: 1.8;
}

/* LICZNIKI */
.statistics {
    background: var(--primary);
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.statistics article {
    padding: 30px;
}

.statistics h3 {
    font-size: clamp(38px, 4vw, 58px);
    margin-bottom: 10px;
    font-weight: 800;
}

.statistics p {
    color: #ffffff;
    font-size: 18px;
}

/* OFERTA */
#services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: #ffffff;
    padding: 45px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
}

.service-card i {
    font-size: 55px;
    color: var(--primary);
    margin-bottom: 25px;
}

/* DLACZEGO MY */
.advantages {
    background: #ffffff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.advantage {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius);
    transition: .35s;
}

.advantage:hover {
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.advantage i {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 25px;
}

/* FLOTA I GALERIA - DYNAMICZNE TŁO Z PARALAKSĄ */
.fleet-section,
.gallery-section {
    position: relative;
    background-color: #f4f5f8;
    color: #222222;
    overflow: hidden;
}

.bg-watermark {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('logo.jpg');
    background-size: 600px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: grayscale(30%);
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0);
}

.fleet-grid,
.gallery-grid,
.gallery-tabs {
    position: relative;
    z-index: 2;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.fleet-card {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .35s;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.fleet-card:hover {
    transform: translateY(-10px);
}

.fleet-card img {
    height: 260px;
    object-fit: cover;
    transition: .4s;
}

.fleet-card:hover img {
    transform: scale(1.08);
}

.fleet-content {
    padding: 30px;
}

.fleet-content ul {
    margin-top: 15px;
}

.fleet-content li {
    margin-bottom: 8px;
    color: var(--gray);
}

/* GALERIA - ZAKŁADKI (PRZESUWAK / TABS) W JASNYM STYLU */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    background: #e5e8ed;
    padding: 6px;
    border-radius: 50px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    color: var(--gray);
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-tab-btn:hover {
    color: var(--black);
}

.gallery-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(216, 35, 42, 0.3);
}

.gallery-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    position: relative;
    z-index: 2;
}

.gallery-content.active {
    display: block;
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-grid figure {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: #ffffff;
}

.gallery-grid img {
    height: 250px;
    object-fit: cover;
    transition: .45s;
}

.gallery-grid figure:hover img {
    transform: scale(1.12);
}

/* SEKCJA POMOC DROGOWA / AUTOLAWETA */
.tow-section {
    padding: 80px 10%;
    background: #ffffff;
}

.tow-truck-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    border-top: 5px solid var(--primary);
}

.tow-truck-image {
    width: 100%;
    height: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tow-truck-image img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.tow-truck-content .badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tow-truck-content h3 {
    font-size: 28px;
    color: #111;
    margin-bottom: 15px;
}

.tow-truck-content p {
    color: #555;
    font-size: 16px;
    margin-top: 10px;
}

.tow-truck-list {
    margin: 20px 0 30px 0;
}

.tow-truck-list li {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tow-truck-list li i {
    color: var(--primary);
}

.two-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.photo-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-placeholder:hover img {
    transform: scale(1.05);
}

.tow-extra-photos {
    margin-top: 40px;
}

/* KONTAKT & BARDZIEJ WIDOCZNA SPEDYCJA */
#contact {
    background: #ffffff;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-wrapper {
    max-width: 1150px;
    margin: 0 auto;
}

.highlighted-dispatch {
    background: #fefefe;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(216, 35, 42, 0.12);
    margin-bottom: 60px;
}

.dispatch-header-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px;
}

.dispatch-header-banner i {
    font-size: 28px;
}

.dispatch-header-banner .dispatch-title {
    margin-bottom: 0;
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dispatch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dispatch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dispatch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dispatcher-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 34px;
    border: 2px solid var(--border);
}

.dispatcher-info {
    flex: 1;
}

.badge-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-tag.int-tag {
    background: #111111;
    color: #ffffff;
}

.dispatcher-info h3 {
    font-size: 22px;
    color: var(--black);
    margin-bottom: 2px;
}

.dispatcher-info .role {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.dispatcher-info .desc {
    font-size: 14px;
    color: #555;
    margin-top: 0;
    margin-bottom: 18px;
    line-height: 1.5;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}

.contact-details a {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-details i {
    color: var(--primary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.contact-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .03);
}

.contact-box i {
    font-size: 28px;
    color: var(--primary);
}

/* FORMULARZE KONTAKTOWE - KONTRAHENT / REKRUTACJA */
.contact-forms-section {
    max-width: 900px;
    margin: 0 auto 70px;
    background: #fefefe;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(216, 35, 42, 0.12);
}

.form-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--light);
    padding: 6px;
    border-radius: 50px;
}

.form-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.form-tab-btn i {
    font-size: 16px;
}

.form-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(216, 35, 42, 0.3);
}

.contact-form {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.contact-form.active {
    display: flex;
}

.contact-form h3 {
    color: var(--black);
    text-align: center;
}

.contact-form .form-desc {
    text-align: center;
    margin-top: -8px;
    margin-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #222;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.12);
}

.contact-form .btn-primary {
    align-self: center;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* LOKALIZACJA - ZDJĘCIA + MAPA */
.location-wrapper {
    margin-top: 70px;
}

.location-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.location-photo {
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.location-photo:hover img {
    transform: scale(1.05);
}

.map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.map iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    padding: 70px 10% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-grid h3 {
    margin-bottom: 20px;
}

.footer-grid ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-grid a {
    color: #ccc;
    transition: .3s;
}

.footer-grid a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 25px;
    text-align: center;
    color: #aaa;
    font-size: 15px;
}

/* RESPONSYWNOŚĆ MOBILNA ORAZ POWIĘKSZENIE MENU */
@media(max-width:1200px) {
    .services-grid,
    .fleet-grid,
    .advantages-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:992px) {
    #about article {
        grid-template-columns: 1fr;
    }

    #about figure {
        position: static;
    }

    .tow-truck-card {
        grid-template-columns: 1fr;
    }

    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .dispatch-grid,
    .location-photos-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .two-photos-grid {
        grid-template-columns: 1fr;
    }

    /* MENU MOBILNE DLA EKRANÓW PONIZEJ 992px */
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 25px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
    }

    .menu li a {
        font-size: 18px;
        display: block;
        padding: 8px 0;
    }

    .menu.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media(max-width:768px) {
    section {
        padding: 60px 5%;
    }

    .dispatch-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-forms-section {
        padding: 22px;
    }

    .form-tabs, .gallery-tabs {
        flex-direction: column;
        border-radius: 16px;
    }

    .form-tab-btn, .gallery-tab-btn {
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }

    .services-grid,
    .fleet-grid,
    .gallery-grid,
    .advantages-grid,
    .footer-grid,
    .statistics {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}



.dispatcher-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 34px;
    border: 2px solid var(--border);
    overflow: hidden; /* Dopisane: zapobiega wystawaniu zdjęcia poza kółko */
}

/* Dopisana reguła dla zdjęć w awatarze */
.dispatcher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}