/* Reset i podstawowe style */
:root {
    --primary-color: #4a3b31; /* Głęboki brąz */
    --secondary-color: #a08c7d; /* Jaśniejszy, ciepły brąz/beż */
    --background-color: #fdfaf6; /* Bardzo jasny beż / złamana biel */
    --text-color: #333333; /* Ciemnoszary tekst */
    --accent-color: #c89f76; /* Akcent - np. przyciski, złocisty brąz */
    --white-color: #ffffff;
    --light-gray-bg: #f0ebe5; /* Tło dla niektórych sekcji */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;

    --container-width: 1100px;
    --section-padding: 60px 20px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 0; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    overflow-x: hidden; /* Zapobiega poziomemu scrollbarowi przy animacjach slide */
}

.bg-light {
    background-color: var(--light-gray-bg);
}

/* Nawigacja */
header {
    background-color: var(--background-color);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: var(--header-height);
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Ukryty na desktopie */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Styl dla otwartego hamburgera */
.nav-open .hamburger { background-color: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }


/* Sekcja Hero */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.25)), url('img/roaster-banner.jpg'); /* Przyciemnienie tła */
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh; /* Pełna wysokość ekranu */
    padding-top: var(--header-height); /* Odsunięcie od fixed header */
}

.hero-content h1 {
    color: var(--white-color);
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 800px; /* Ograniczenie szerokości dla lepszej czytelności */
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: none; /* Dla przycisku w formularzu */
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color); /* Upewnij się, że kolor tekstu pozostaje biały */
    transform: translateY(-3px);
}

/* Lista kaw */
.coffee-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.coffee-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary-color);
    font-size: 1.1rem;
}
.coffee-list li:last-child {
    border-bottom: none;
}
.coffee-list li strong {
    color: var(--primary-color);
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Kontakt */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-form {
    flex: 2;
    min-width: 300px; /* Dla lepszego układu na mniejszych ekranach */
}

.contact-details {
    flex: 1;
    min-width: 250px;
}

.contact-details h3 {
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.contact-details p strong {
    display: block;
    margin-bottom: 3px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(200, 159, 118, 0.3); /* Delikatny glow dla focusa */
}

.error-message {
    color: #cc0000;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

#formStatus {
    margin-top: 15px;
    font-weight: bold;
}
#formStatus.success { color: green; }
#formStatus.error { color: red; }


/* Stopka */
footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Animacje przy przewijaniu */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsywność */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.6rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    :root { --section-padding: 50px 15px; }
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-content p { font-size: 1.1rem; }
    h2 { font-size: 1.8rem; }

    nav ul {
        display: none; /* Ukryj listę na mobilnych */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    nav ul.nav-active {
        display: flex; /* Pokaż, gdy menu jest aktywne */
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    nav ul li a {
        display: block;
        padding: 10px;
    }

    .nav-toggle {
        display: block; /* Pokaż hamburger na mobilnych */
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root { --section-padding: 40px 10px; }
    .hero-section { min-height: 80vh; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .cta-button { padding: 12px 24px; font-size: 0.9rem;}

    .gallery-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na małych ekranach */
    }
}