/* styles.css – stylizacja w klimacie "fabryka traktorów" */
/* Kolorystyka: metal, stal, olej, cegła, zielony akcent (jak traktor) */
/* Bez Google Fonts – używamy systemowych fontów */

:root {
    --color-metal: #2c3e50;      /* ciemny stalowy */
    --color-rust: #8b4513;      /* rdza */
    --color-oil: #1a1a1a;       /* głęboki olejowy */
    --color-brick: #7f3f16;     /* cegła fabryczna */
    --color-green: #4a7c59;     /* zielony traktor */
    --color-light: #ecf0f1;     /* jasny beton */
    --color-accent: #e67e22;    /* pomarańczowy alarmowy */
    --color-text-dark: #f5f5f5;
    --color-text-light: #222;
    --max-width: 1090px;
    --radius: 8px;
    --shadow: 0 6px 16px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

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

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    max-width: var(--max-width);
    background: #0e0e0e url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23111111"/><path d="M0,50 H100 M50,0 V100" stroke="%23222222" stroke-width="1"/></svg>') repeat;
    color: var(--color-text-dark);
    background-attachment: fixed;
}

/* Kontener główny */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Sekcje – kontrastowe, fabryczne */
.section {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

/* Gradientowe tło z metalicznym efektem */
.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.9), rgba(26,26,26,0.9));
    opacity: 0.92;
    z-index: -1;
}

/* Blok 1: Oferta – wysoki, hero */
#oferta {
    min-height: 470px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232c3e50" width="1200" height="600"/><path fill="%234a7c59" d="M200,300 L250,250 L300,280 Z M400,320 L450,270 L500,300 Z M600,290 L650,240 L700,270 Z"/><circle cx="900" cy="320" r="80" fill="%23e67e22" opacity="0.7"/></svg>') center/cover no-repeat;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

#oferta .container {
    position: relative;
    z-index: 2;
}

#oferta h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    color: #fff;
}

#oferta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#oferta strong {
    color: var(--color-accent);
}

/* Przycisk w ofercie */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230,126,34,0.4);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230,126,34,0.6);
}

/* Produkty – stalowy blok */
#produkty {
    background: var(--color-metal);
    color: var(--color-text-dark);
}

#produkty h2 {
    color: var(--color-green);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.produkty-lista {
    list-style: none;
    padding-left: 0;
}

.produkty-lista li {
    background: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 5px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: var(--transition);
}

.produkty-lista li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

/* Artykuł – wyróżniony, jak instrukcja fabryczna */
.artykul-tematyczny {
    background: var(--color-light);
    color: var(--color-text-light);
    padding: 2rem;
    margin-top: 2rem;
    border: 3px solid var(--color-rust);
    border-radius: var(--radius);
    box-shadow: inset 0 0 20px rgba(139,69,19,0.2);
}

.artykul-tematyczny h3 {
    color: var(--color-rust);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.artykul-tematyczny h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: 0.5rem auto;
}

.artykul-tematyczny p {
    margin-bottom: 1rem;
    text-align: justify;
}

.artykul-tematyczny em {
    display: block;
    text-align: right;
    font-style: italic;
    color: var(--color-green);
    margin-top: 1rem;
}

/* Opinie – cegła */
#opinie {
    background: var(--color-brick);
    color: var(--color-text-dark);
}

#opinie h2 {
    color: var(--color-light);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.opinia {
    background: rgba(255,255,255,0.15);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-green);
}

.opinia p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.opinia cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* Specjaliści – olejowy */
#specjalisci {
    background: var(--color-oil);
    color: var(--color-text-dark);
}

#specjalisci h2 {
    color: var(--color-accent);
}

.specjalisci-lista {
    list-style: none;
}

.specjalisci-lista li {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border-right: 5px solid var(--color-green);
    transition: var(--transition);
}

.specjalisci-lista li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

/* Działalność – metaliczny */
.dzialalnosc {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    color: var(--color-text-dark);
}

.dzialalnosc h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Formularz – kontrastowy */
#zapisz-sie {
    background: var(--color-green);
    color: white;
}

#zapisz-sie h2 {
    color: white;
    text-align: center;
}

#zapisz-sie form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#zapisz-sie label {
    font-weight: bold;
    color: var(--color-light);
}

#zapisz-sie input[type="email"] {
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #222;
}

#zapisz-sie input[type="email"]:focus {
    outline: 3px solid var(--color-accent);
}

#zapisz-sie button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

#zapisz-sie button:hover {
    background: white;
    color: var(--color-accent);
    transform: scale(1.05);
}

/* Mapa */
#kontakt {
    background: var(--color-light);
    color: var(--color-text-light);
}

#kontakt h2 {
    color: var(--color-metal);
}

#kontakt p {
    margin-bottom: 1rem;
    font-weight: bold;
}

#kontakt iframe {
    border: 3px solid var(--color-rust);
    border-radius: var(--radius);
}

/* Stopka */
.footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    border-top: 3px solid var(--color-accent);
}

.footer p {
    margin: 0;
}

.domainName {
    color: var(--color-accent);
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    #oferta {
        min-height: 400px;
        padding: 2rem 1rem;
    }

    #oferta h1 {
        font-size: 2.2rem;
    }

    .container {
        width: 95%;
        padding: 1.5rem 0.5rem;
    }

    .produkty-lista li,
    .specjalisci-lista li,
    .opinia {
        padding: 0.8rem;
    }

    #zapisz-sie form {
        padding: 0 1rem;
    }

    .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #oferta h1 {
        font-size: 1.9rem;
    }

    .artykul-tematyczny {
        padding: 1.5rem;
    }

    #zapisz-sie input[type="email"],
    #zapisz-sie button {
        font-size: 0.95rem;
    }
}
