/* ==========================================================================
   VILCOR - System Design i Zmienne CSS
   ========================================================================== */
:root {
    /* 
       KOLORYSTYKA MARKI (BRAND COLORS)
       Podmień wartości HEX na docelowe kolory firmy VILCOR 
    */
    --primary-color: #111827;       /* Główny ciemny kolor (np. grafit / granat) */
    --secondary-color: #1f2937;     /* Jaśniejszy odcień ciemnego (używany np. na kafelkach) */
    --accent-color: #f97316;        /* Wyrazisty akcent (np. pomarańczowy / złoty / niebieski) */
    --accent-hover: #ea580c;        /* Kolor akcentu przy najechaniu (hover) */
    
    /* Kolory tekstu i tła (Neutralne) */
    --text-main: #334155;           /* Główny tekst na jasnym tle */
    --text-muted: #64748b;          /* Szary, stonowany tekst */
    --text-light: #f8fafc;          /* Jasny tekst (na ciemnym tle) */
    --text-light-muted: #94a3b8;    /* Zgaszony jasny tekst (na ciemnym tle) */
    
    --bg-main: #ffffff;             /* Główne tło strony (biel) */
    --bg-light: #f8fafc;            /* Delikatnie szare tło do wydzielania sekcji */
    --bg-dark: #0f172a;             /* Ciemne tło (np. Hero, Footer) */
    
    /* Zmienne pomocnicze (Stylistyka, Cienie) */
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --container-width: 1200px;
}

/* ==========================================================================
   Reset i Baza
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typografia i Narzędzia (Utilities)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.025em;
}

.title-underline {
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
    border-radius: 4px;
}

.title-underline.center {
    margin: 0 auto 30px auto;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.text-center { text-align: center; }
.text-white .section-title { color: var(--text-light); }
.text-light-muted { color: var(--text-light-muted); }
.accent { color: var(--accent-color); }
.bg-light { background-color: var(--bg-light); }
.lead { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; color: var(--primary-color); line-height: 1.7; }

/* ==========================================================================
   Przyciski (Buttons)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Nawigacja i Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
}

/* Styl jeśli użyto img dla logo */
.logo img {
    max-height: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-link:not(.btn-nav):hover {
    color: var(--accent-color);
}

.nav-link:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.btn-nav:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    padding-top: 80px; /* Offset na menu */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light-muted);
    margin-bottom: 48px;
    animation: fadeInUp 1s ease forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.2s ease forwards;
}

/* ==========================================================================
   O Marce (About)
   ========================================================================== */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.about-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 24px;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.glass-card svg {
    margin: 0 auto;
}

.glass-card h3 {
    margin: 20px 0 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Produkty (Products Grid)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.product-img-wrapper {
    position: relative;
    height: 240px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-badge.accent {
    background-color: var(--accent-color);
}

.product-content {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    line-height: 1.4;
}

.product-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.product-btn {
    margin-top: auto;
    text-align: center;
    border-width: 1px;
}

/* ==========================================================================
   Dlaczego My (Features)
   ========================================================================== */
.features {
    background-color: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-box {
    text-align: center;
    padding: 48px 32px;
    background-color: var(--secondary-color);
    border-radius: 20px;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    background-color: #273447; /* Lekko jaśniejszy */
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.feature-box:hover .feature-icon {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-light-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.125rem;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.detail-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.125rem;
    font-weight: 600;
}

.detail-item p {
    color: var(--text-muted);
}

.contact-form-container {
    background-color: var(--bg-main);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* ==========================================================================
   Stopka (Footer)
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

/* ==========================================================================
   Animacje Kluczowe (Keyframes)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsywność (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .about-inner,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-visual {
        order: -1;
    }
}

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

    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 72px; /* Wysokość headera */
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px 24px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        font-size: 1.25rem;
        padding: 10px 0;
        text-align: center;
    }
    
    .btn-nav {
        display: block;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }

    .contact-form-container {
        padding: 30px 20px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
