/* ========================================
   STYLE KOFEJNA PLANTACJA – LEGAL FINANCE CONSULTING
   Kolorystyka: kawa, zieleń liści, ziemia, mleczna piana
   Bez Google Fonts | Bez zewnętrznych zasobów
   Pełna responsywność | Kontrastowe bloki
   ======================================== */

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

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

body {
    font-family: 'Georgia', 'Times New Roman', serif; /* klasyczne, czytelne, lokalne */
    line-height: 1.7;
    color: #3e2723; /* głęboki brąz kawy */
    background: #f5f0e6; /* kremowy papier */
    overflow-x: hidden;
}

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

/* Sekcje – kontrastowe tło */
.section {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(62, 39, 35, 0.18);
}

/* Kolorystyka bloków – rotacja tematyczna */
.oferta { background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%); color: #fffde7; } /* kawa espresso */
.opinie { background: #e8f5e9; color: #1b5e20; } /* zielone liście */
.produkty { background: #d7ccc8; color: #3e2723; } /* ziemia po deszczu */
.media { background: #fff8e1; color: #5d4037; } /* mleczna piana */
.formularz { background: linear-gradient(135deg, #4e342e 0%, #6d4c41 100%); color: #fffde7; } /* ciemna kawa */
.specjalisci { background: #c8e6c9; color: #1b5e20; } /* świeża zieleń */
.zostaw-opinie { background: #efebe9; color: #5d4037; } /* kakaowy beż */
.mapa { background: #fafafa; color: #3e2723; }
.footer { background: #3e2723; color: #d7ccc8; }

/* Nagłówki */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.4rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

h2 {
    font-size: 1.9rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

/* Przyciski */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    margin: 1rem auto 0;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #ff6f00; /* pomarańcz kawy z mlekiem */
    color: #3e2723;
}

.btn-primary:hover {
    background: #ff8a65;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Gridy */
.products-grid,
.reviews-grid,
.experts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.product,
.review,
.expert {
    background: rgba(255,255,255,0.7);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.2s ease;
}

.product:hover,
.review:hover,
.expert:hover {
    transform: scale(1.02);
}

/* Formularz */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

label {
    font-weight: 600;
    font-size: 1.1rem;
}

input[type="email"],
textarea,
input[type="text"] {
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    transition: border 0.3s ease;
}

input[type="email"]:focus,
textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #ff6f00;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Artykuł */
.article-top10 {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    border-left: 6px solid #ff6f00;
    line-height: 1.8;
}

.article-top10 p {
    margin-bottom: 1rem;
}

.article-top10 em {
    display: block;
    margin-top: 1.5rem;
    font-style: italic;
    color: #ff6f00;
    text-align: center;
    font-weight: 600;
}

/* Mapa */
.mapa iframe {
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer p {
    opacity: 0.9;
}

/* ========================================
   RESPONSYWNOŚĆ – MOBILE FIRST
   ======================================== */

@media (min-width: 576px) {
    .products-grid,
    .reviews-grid,
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

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

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

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

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

    form {
        flex-direction: row;
    }

    form input[type="email"],
    form input[type="text"] {
        flex: 1;
    }

    form button {
        width: auto;
        margin-left: 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 4rem 2rem;
    }
}

/* Animacja wejścia */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dekoracje – ziarna kawy (CSS only) */
.oferta::before,
.formularz::before {
    content: '☕';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    opacity: 0.15;
    pointer-events: none;
}

.opinie::before,
.specjalisci::before {
    content: '🌿';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2.5rem;
    opacity: 0.15;
    pointer-events: none;
}

/* Kontrast – wszystkie teksty czytelne */
.oferta *, .formularz * { color: #fffde7 !important; }
.opinie *, .specjalisci * { color: #1b5e20 !important; }
.produkty *, .media *, .zostaw-opinie *, .footer * { color: inherit; }

/* Ukryte pole gclid */
input[type="hidden"] {
    display: none;
}
