/* --- Zmienne kolorystyczne i reset --- */
:root {
    --primary-color: #4a6741;
    --secondary-color: #2c3e2d;
	/* #2c3e2d; */
    --accent-color: #6D6060;
    --bg-color: #dfbfc1;
	/* #fcfbf8; */
    
    --text-color: #333333;
    --light-bg: #fff0f0;
	/* #f2f0e9; */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
} 

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

/* --- Poprawka dla kotwic i płynne przewijanie --- */
html {
    /* scroll-behavior: smooth; /* Dodaje ładny, płynny zjazd do sekcji zamiast nagłego skoku */ */
    scroll-padding-top: 65px; /* Zapas dla nawigacji na komputerach */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Styl dla wszystkich linków wewnątrz sekcji (poza nawigacją) */
section a {
    color: var(--primary-color); /* Użyje czerwieni maku z Twoich zmiennych */
    text-decoration: underline;  /* Doda podkreślenie */
    transition: 0.3s;
}

section a:hover {
    color: var(--secondary-color); /* Zmieni kolor na zielony po najechaniu */
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* --- Klasy użytkowe --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* --- Przyciski --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none; /* DODAJ TĘ LINIĘ */
}

.btn-primary {
    background-color: #2c3e2d;
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
}

.btn-dark {
    background-color: var(--secondary-color);
    color: white;
}

.btn-dark:hover {
    background-color: var(--primary-color);
}

/* --- Nawigacja --- */
.navbar {
    background-color: #dfbfc1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    /* font-weight: 700; /* Bold */
	font-size: clamp(1.5rem, 6vw, 2.2rem);
	/* white-space: nowrap;  */
    letter-spacing: -1px; /* Logo ma ciasny światło między literami */
    color: var(--accent-color);
    /* text-transform: lowercase; /* Logo jest pisane małymi literami */
	display: block;
}
/* .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
} */

.highlight {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: url('/images/maki.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    /* Przyciemnienie zdjęcia */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: var(--bg-color);
    z-index: 1;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--bg-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h3 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Karty Oferty --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Sekcja O Nas (Split) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout>div {
    flex: 1;
}

.text-left {
    text-align: left;
    margin-left: 0;
    transform: none;
}

.text-left::after {
    left: 0;
    transform: none;
}

.image-block img {
    border-radius: 8px;
    box-shadow: 10px 10px 0px var(--primary-color);
}

/* --- Kontakt --- */
/* Nowy układ dla sekcji kontakt */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 równe kolumny */
    gap: 30px;
    text-align: center;
}

.contact-info {
    display: contents; /* Pozwala elementom info-item stać się bezpośrednimi dziećmi grida */
}

.info-item {
    flex-direction: column; /* Ikona nad tekstem */
    align-items: center;
 	background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 0; /* Resetujemy margines dolny */
}

.info-item i {
    margin-right: 0;
    margin-bottom: 15px;
    font-size: 2rem;
}

/* Na telefonach wracamy do jednej kolumny */





/* 
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
} */

/* .contact-info, */
.contact-form {
    flex: 1;
    min-width: 300px;
}

/* .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
} */

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* --- Stopka --- */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.socials a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

.socials a:hover {
    color: var(--accent-color);
}

/* --- Responsywność --- */
/* @media (max-width: 999px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1, h2 {
        font-size: 2.5rem;
    }

    .split-layout {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
} */

/* --- Responsywność --- */

/* 1. TABLET I MAŁE LAPTOPY (np. iPad, laptopy 13") 
   Układ dwukolumnowy dla kontaktu i sekcji "O nas" */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .split-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-content h1, h2 {
        font-size: 3rem;
    }
}

/* 2. DUŻY TELEFON (Orientacja pionowa)
   Przejście na pełną kolumnę, logo zaczyna dominować */
@media (max-width: 768px) {
	html {
        scroll-padding-top: 55px; 
    }
	
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        font-size: 2rem;
    }

    .split-layout {
        display: flex;
        flex-direction: column; 
    }

    .image-block {
        order: 2; 
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1, h2 {
        font-size: 2.2rem;
    }
}

/* 3. MAŁY TELEFON (mweb - mniejsze niż iPhone 12/13/14)
   Maksymalna czytelność i wielkie logo */
@media (max-width: 480px) {
	html {
        scroll-padding-top: 125px; /* Zapas dla najwyższego menu na bardzo małych ekranach */
    }
	
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: clamp(1.8rem, 8vw, 2.2rem); 
        width: 100%;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 999px) and (min-width: 601px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap; /* Pozwala na tworzenie wierszy */
        justify-content: center; /* Środkuje wszystko */
        align-items: center;
        gap: 10px;
        /* padding: 15px; */
    }

    /* WIERSZ 1: LOGO zajmuje całą szerokość */
    .logo {
        flex: 0 0 100%; 
        text-align: center;
        font-size: 2.2rem;
        margin-bottom: 0px;
    }

    /* WIERSZ 2: Dane i Menu obok siebie */
    /* Wszystkie p (telefon/ig) oraz ul (menu) stają się elementami drugiego wiersza */
    .nav-container p, 
    .nav-links {
        flex: 0 1 auto; /* Szerokość zależna od zawartości */
        margin: 0;
        /* font-size: 0.9rem; */
    }

    .nav-links {
        display: flex;
        gap: 15px;
    }
}

/* Dla najmniejszej rozdziałki (poniżej 600px) - pełna kolumna (wszystko pod sobą) */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
}

/* @media (max-width: 999px) and (min-width: 601px) {
    .logo {
        border-bottom: 1px solid var(--light-bg);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
} */