/* --- Reset i zmienne --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --accent-color: #e5c158; /* Głębokie, eleganckie złoto/szampan */
    --text-clear: rgba(255, 255, 255, 0.85); /* Jasny, bardzo czytelny kolor do opisów */
    --bg-dark: #0a0a0a;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--primary-color);
    line-height: 1.6;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Przykładowe zdjęcie szarej ulicy / auta dla testu kontrastu */
    background: url('https://images.unsplash.com/photo-1605515298946-d062f2e9da53?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    z-index: 1;
}

/* NOWOŚĆ: Gradient od lewej do prawej. Perfekcyjnie odcina tekst od szarego tła */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(10, 10, 10, 0.75) 40%, 
        rgba(10, 10, 10, 0.2) 100%);
    z-index: -1;
}

/* --- Nawigacja (Wciśnięta do środka - 10%) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 10%; /* Zwiększony padding boczny */
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Hero Content (Wciśnięty do środka - 10%) --- */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%; /* Zwiększony padding boczny */
    max-width: 1000px;
}

.badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

/* ZWIEKSZONY NAGŁÓWEK */
.hero-content h1 {
    font-size: 5.5rem; /* Zwiększone z 4.5rem */
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    letter-spacing: -2px; /* Zacieśnienie liter daje luksusowy, nowoczesny look */
}

/* POPRAWKA: Rezygnacja z hollow na rzecz pełnego, czystego koloru akcentu */
.hero-content .highlight {
    color: var(--accent-color);
}

/* POPRAWKA CZYTELNOŚCI OPISU */
.hero-content .hero-desc {
    font-size: 1.15rem;
    color: var(--text-clear); /* Jaśniejszy kolor */
    margin-bottom: 3rem;
    max-width: 550px;
    font-weight: 400; /* Zwiększona grubość z 300 na 400 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); /* Ciekawe odcięcie od jasnych elementów tła */
}

/* --- Przyciski --- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 1.1rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0px; /* Całkowicie ostre rogi = nowoczesna technologia */
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.7rem 1.8rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* --- Dekoracja Scroll --- */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 10%; /* Dopasowane do nowego marginesu strony */
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Responsywność dla telefonów --- */
@media (max-width: 992px) {
    .navbar, .hero-content {
        padding-left: 5%;
        padding-right: 5%;
    }
    .scroll-indicator {
        left: 5%;
    }
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .nav-links, .btn-outline {
        display: none; 
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        text-align: center;
        width: 100%;
    }
}

/* --- Sekcja Ekspertyzy (Usługi) --- */
.expertise-section {
    padding: 10rem 10%; /* Większy oddech z góry i dołu */
    background-color: var(--bg-dark);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* POPRAWKA 1: Nagłówek Sekcji wyśrodkowany */
.section-header {
    text-align: center;
    margin: 0 auto 6rem auto;
    max-width: 750px;
}

.section-header .badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    letter-spacing: -1.5px;
}

.section-header .highlight {
    color: var(--accent-color);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-clear);
    font-weight: 400;
    line-height: 1.8;
}

/* Siatka Usług */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* NOWOŚĆ: Karty Usług z rodzicem pozycjonującym pod zdjęcia */
.service-card {
    position: relative;
    padding: 4.5rem 2.5rem;
    overflow: hidden;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.03); /* Bardzo subtelny detal krawędzi */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efekt Zoom dla zdjęć w tle jako pseudo-elementy */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Linki do luksusowych, ciemnych zdjęć autodetailingu w tle */
.card-korekta::before { background-image: url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?q=80&w=800&auto=format&fit=crop'); }
.card-ceramika::before { background-image: url('https://images.unsplash.com/photo-1607860108855-64acf2078ed9?q=80&w=800&auto=format&fit=crop'); }
.card-ppf::before { background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=800&auto=format&fit=crop'); }

/* Ciemna, elegancka maska nakładana na zdjęcie */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.96) 100%);
    transition: background 0.5s ease;
    z-index: 2;
}

/* Treść wyciągnięta nad warstwę zdjęcia i maski */
.card-content {
    position: relative;
    z-index: 3;
}

/* Efekty Hover na całą kartę */
.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scale(1.08); /* Płynne powiększenie tła */
}

.service-card:hover .card-overlay {
    /* Rozjaśnienie maski przy najechaniu - "efekt czystego lakieru" */
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.88) 100%);
}

/* Złota linia na górze */
.card-hover-line {
    position: absolute;
    top: 0; left: 0; height: 3px; width: 0%;
    background-color: var(--accent-color);
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 4;
}

.service-card:hover .card-hover-line {
    width: 100%;
}

/* Detale wnętrza kafelka */
.card-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-clear);
    margin-bottom: 3.5rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* POPRAWKA 2: Usunięcie fabrycznego underline z linków i strzałek */
.card-link, .card-link:hover, .card-link:focus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important; /* Blokada podkreślenia */
    transition: color 0.3s ease;
}

.card-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    color: var(--accent-color);
    font-size: 1.2rem;
    text-decoration: none !important; /* Blokada podkreślenia strzałki */
}

.service-card:hover .card-link {
    color: var(--accent-color);
}

.service-card:hover .arrow {
    transform: translateX(8px);
}

/* --- Responsywność --- */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-section {
        padding: 6rem 5%;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Sekcja Case Study (Techniczna / Autodetailing) --- */
.case-study-section {
    padding: 10rem 10%;
    background-color: #030303; /* Ekstremalnie ciemne tło */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-wrapper {
    display: flex;
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Dekoracyjne rogi w stylu interfejsu (HUD) */
.case-wrapper::before, .case-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    z-index: 5;
}

.case-wrapper::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}

.case-wrapper::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}

/* Lewa strona: Zdjęcie auta */
.case-visual {
    flex: 1.2;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Detal techniczny na zdjęciu */
.tech-hud {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3333; /* Agresywna czerwień / styl nagrywania */
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Prawa strona: Dane inżynieryjne */
.case-data {
    flex: 1;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.project-id {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.case-data h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.project-color {
    font-size: 0.9rem;
    color: var(--text-clear);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Siatka parametrów technicznych */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
}

.tech-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tech-value {
    font-family: monospace; /* Stała szerokość daje techniczny klimat */
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Werdykt klienta - surowy, zintegrowany z interfejsem */
.client-verdict {
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.client-verdict p {
    font-size: 1.05rem;
    color: var(--text-clear);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.client-name {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsywność */
@media (max-width: 1200px) {
    .case-wrapper {
        flex-direction: column;
    }
    .case-visual {
        min-height: 400px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .case-data {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr; /* Na telefonie parametry w jednej kolumnie */
        gap: 1.5rem;
    }
    .case-data {
        padding: 3rem 2rem;
    }
    .case-data h3 {
        font-size: 2rem;
    }
}

/* --- Sekcja Kontaktowa --- */
.contact-section {
    padding: 10rem 10%;
    background-color: var(--bg-dark);
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    align-items: stretch;
}

/* Lewy Panel */
.contact-data-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Dane w formie technicznej (zapożyczenie klas z Case Study) */
.contact-data-panel .info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Formularz Premium */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-row {
    display: flex;
    gap: 2rem;
}

.input-group {
    position: relative;
    flex: 1;
}

/* Pola wejściowe i Select */
.premium-form input,
.premium-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

/* Ukrycie standardowej strzałki w Select i ostylowanie go pod nasz design */
.premium-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c158' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 15px;
    padding-right: 20px;
    color: rgba(255, 255, 255, 0.5); /* Jasniejszy kolor dla placeholdera */
}

.premium-form select option {
    background-color: var(--bg-dark);
    color: var(--primary-color);
}

/* Animacja Label (pływające etykiety) */
.premium-form label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Aktywacja obramowania na złoto i przesunięcie etykiety w górę */
.premium-form input:focus,
.premium-form select:focus {
    border-bottom-color: var(--accent-color);
}

.premium-form input:focus + label,
.premium-form input:not(:placeholder-shown) + label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
}

/* Prawa strona - Mapa */
.contact-map {
    flex: 1;
    position: relative;
    min-height: 450px;
    background-color: #050505;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ramki narożnikowe (HUD styl z Case Study) */
.map-hud-corners::before, .map-hud-corners::after {
    content: ''; position: absolute; width: 30px; height: 30px; border: 2px solid var(--accent-color); z-index: 5; pointer-events: none;
}
.map-hud-corners::before {
    top: -1px; left: -1px; border-right: none; border-bottom: none;
}
.map-hud-corners::after {
    bottom: -1px; right: -1px; border-left: none; border-top: none;
}

/* Filtr odwracający kolory mapy Google - Genialny trik na Dark Mode! */
.contact-map iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* Inwersja, nasycenie i lekka korekta barwy, żeby mapa była czarno-szaro-złota */
    filter: invert(100%) hue-rotate(180deg) contrast(110%) sepia(20%) grayscale(80%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-map:hover iframe {
    opacity: 1;
}

/* Responsywność */
@media (max-width: 1024px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-map {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-data-panel .info-grid {
        gap: 2rem;
    }
}