/* === BAZOWE ZMIENNE (QUIET LUXURY / MINIMALIST) === */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Jost', sans-serif;
    
    --color-primary: #18191a; /* Dyskretny, bardzo ciemny grafit */
    --color-primary-dark: #0a0a0b; 
    --color-secondary: #cba87c; /* Delikatny, wyblakły szampan/mosiądz zamiast jaskrawego złota */
    --color-secondary-hover: #b08d5b;
    --color-dark-graphite: #2a2a2c; 
    --color-text: #4a4a4c;
    --color-light: #ffffff;
    --color-bg-offset: #f7f7f8; /* Niezauważalna łamana biel/szarość */
    --color-border: #e4e4e6;
    
    --transition: all 0.4s ease-out;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.08);
}

/* === RESET I OGÓLNE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem; 
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
    width: 100%;
    max-width: 1200px; /* Minimalizm lubi węższe teksty i więcej oddechu na bokach */
    margin: 0 auto;
    padding: 0 24px;
}

/* === TYPOGRAFIA (STONOWANA ELEGANCJA) === */
h1, h2, h3, h4, .section-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 400; /* Zdejmujemy grubą, agresywną wagę na rzecz klasy */
    letter-spacing: 0.02em;
}

h1 {
    font-size: 4.5rem; /* Odrobinę mniejsze i subtelniejsze */
    color: var(--color-light);
    font-weight: 400;
    font-style: italic; /* Częsta praktyka w high-endzie, dodaje płynności */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.section-title {
    font-size: 2.5rem; /* Zmniejszone dla dyskrecji */
    position: relative;
    margin-bottom: 1rem;
    font-style: italic;
}

.section-title.align-center {
    text-align: center;
}

p.section-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text); 
    max-width: 800px;
    margin: 0 auto 4rem auto;
    letter-spacing: 0.02em;
}

.text-center { text-align: center; }
.text-white { color: var(--color-light) !important; }

/* === PRZYCISKI (DYSKRETNE LINIE I WYPEŁNIENIA) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 1px solid var(--color-light);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-light);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--color-light);
}

.btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.cta-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: 4px;
    margin-top: 1.5rem;
}
.cta-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* === 0. NAWIGACJA / MENU === */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(24, 25, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    color: var(--color-light);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.logo-svg {
    transition: var(--transition);
}

.logo:hover .logo-svg {
    transform: rotate(45deg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.lang-selector {
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 1.5rem;
}

.lang-selector a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.lang-selector a.active, .lang-selector a:hover {
    color: var(--color-light);
    font-weight: 500;
}

/* === WSPÓLNE TŁA === */
.bg-offset { background-color: var(--color-bg-offset); }
.bg-white { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-primary); }
section { padding: 8rem 0; }

/* === 1. HERO SECTION (STONOWANY WIDOK) === */
.hero {
    position: relative;
    width: 100%;
    height: 850px; /* Stała wysokość dla pewności wyświetlania na każdym ekranie */
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0d0e0f;
    background-image: url('images/hero_mercedes_1774571608156.png'); /* Powrót do pewnych zasobów lokalnych */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dyskretny gradient, który nie zamydla obrazu */
    background: linear-gradient(180deg, 
        rgba(10,10,11,0.4) 0%, 
        rgba(10,10,11,0.0) 40%, 
        rgba(10,10,11,0.0) 60%, 
        rgba(10,10,11,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Silniejszy cień zamiast zaciemniania całego tła */
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* === 2. OFERTA (PROSTA I CZYSTA) === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 5rem;
}

.center-text {
    text-align: center;
}

.product-card {
    background: transparent;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3; 
    overflow: hidden;
    margin-bottom: 2rem;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.02);
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    flex-grow: 1;
    color: var(--color-text); 
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* === 3. USŁUGI PREMIUM / KIEROWCY (SMART CASUAL, PROSTOKĄTY) === */
.ingredients {
    padding: 10rem 0; /* Więcej przestrzeni */
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8rem; /* Bardzo duże odstępy wyznaczające klasę */
    margin-top: 6rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Parzyste elementy odwracają kolejność na desktopie */
.feature-item:nth-child(even) .feature-image {
    order: 2;
}

.feature-image {
    width: 100%;
    position: relative;
}

.feature-image::before {
    /* Ozdobna przesunięta ramka za zdjęciem */
    content: '';
    position: absolute;
    top: -15px; left: -15px;
    width: 100%; height: 100%;
    border: 1px solid var(--color-secondary);
    z-index: 0;
}

.feature-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

.feature-text h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* === 4. CENNIK (LUKSUSOWA TABELA) === */
.pricing {
    background-color: var(--color-light);
    padding: 8rem 0;
}

.pricing-table-wrapper {
    margin-top: 4rem;
    overflow-x: auto; /* Zabezpieczenie na wąskich ekranach */
}

.luxury-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    text-align: left;
}

.luxury-table th {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--color-primary);
    font-size: 1.3rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.luxury-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.luxury-table tr:hover td {
    background-color: var(--color-bg-offset);
}

.service-name {
    font-weight: 500;
    color: var(--color-primary);
    width: 30%;
}

.td-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 300;
    color: #888;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.luxury-table tr.table-group-header td {
    background-color: var(--color-bg-offset);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--color-border);
}

.luxury-table tr.air-group td {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.pricing-footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.8;
}

/* === 5. O NAS / FILOZOFIA === */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content h2 {
    color: var(--color-light); 
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
}

.signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85; /* Przyciemnione by stapiało się z szarym backgroundem */
}


/* === 6. KONTAKT (Dyskretny, minimalny układ) === */
.contact-cta {
    background-color: var(--color-bg-offset);
    padding: 8rem 0;
}

.contact-cta .section-title {
    color: var(--color-primary);
}

.contact-subtitle {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.contact-link {
    color: var(--color-primary);
    position: relative;
}

.contact-link:hover {
    color: var(--color-secondary);
}

.divider {
    color: var(--color-border);
    font-weight: 300;
}

/* === STOPKA === */
footer {
    background-color: var(--color-primary-dark);
    color: rgba(255,255,255,0.5);
    padding: 5rem 0 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-light);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links a:hover {
    color: var(--color-light);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .feature-item {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .feature-item:nth-child(even) .feature-image {
        order: 0; /* Reset na mobile */
    }
    .about-container { grid-template-columns: 1fr; gap: 4rem; }
}

/* Ścisłe wymuszenie kolumn wg początkowych wytycznych! */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn { width: 100%; }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Dopasowanie luksusowej tabeli w formie "kart/wierszy" dla małych ekranów (zapobieganie overflowowi) */
    .luxury-table, .luxury-table tbody, .luxury-table tr, .luxury-table td, .luxury-table th {
        display: block;
        width: 100%;
    }
    
    .luxury-table thead { display: none; } /* Ukrywamy nagłówki kolumn na komórki */
    
    .luxury-table tr {
        margin-bottom: 2rem;
        background: #fff;
        border: 1px solid var(--color-border);
        padding: 1rem;
    }

    .luxury-table td {
        padding: 0.8rem 0;
        border-bottom: 1px dashed var(--color-border);
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .luxury-table td:last-child {
        border-bottom: none;
    }

    .luxury-table td.service-name {
        text-align: left;
        background: #fafafa;
        padding: 1rem;
        margin: -1rem -1rem 1rem -1rem; /* Naciągnięcie na krawędzie */
        border-bottom: 2px solid var(--color-border);
        display: block;
    }
    
    .luxury-table td::before {
        /* Wstrzykiwane nagłówki mobilne */
        content: attr(data-label); /* Użytkownik dopisze ewentualnie, my wrzucimy statycznie */
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--color-primary);
        font-style: italic;
    }

    /* Alternatywny układ w CSS dla komórek bez użycia data-label, korzystając struktury */
    .luxury-table td:nth-child(2)::before { content: "Maybach GLS: "; }
    .luxury-table td:nth-child(3)::before { content: "GLS 500: "; }
    .luxury-table td:nth-child(4)::before { content: "S63 AMG: "; }

    .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }
    .divider { display: none; }
    
    .nav-links {
        display: none; /* Ukryte na mobile dla czystości, chyba że dodamy hamburger menu */
    }

    .lang-selector {
        border-left: none;
        padding-left: 0;
    }
}

/* === WTYCZKA WHATSAPP === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}
