/* Definicje kolorów i fontów */
:root {
    --dark-background: #1a1a1a; /* Bardzo ciemny grafit / prawie czarny */
    --text-light: #f4f4f4;       /* Jasny tekst */
    --accent-color: #BF935D;     /* Beż/złoto z logo */
    --secondary-accent: #A57D4A; /* Ciemniejszy odcień akcentu dla hover */
    --light-grey: #e0e0e0;       /* Lekki szary dla tła sekcji */
    --text-dark: #333;           /* Ciemny tekst dla jasnych sekcji */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-grey);
    color: var(--text-dark);
    box-sizing: border-box;
}

.container {
    max-width: 960px;
    margin: 30px auto;
    background: #fff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- Header Section --- */
.hero-section {
    background-color: var(--dark-background);
    color: var(--text-light);
    padding: 60px 40px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('sciezka/do/obrazka-tla.jpg'); */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 20px;
}
.logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(191, 147, 93, 0.5));
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.8em;
    color: var(--text-light);
    margin-bottom: 10px;
    text-align: center;
}

.hero-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--accent-color);
    margin-top: 0;
    font-weight: 600;
    text-align: center;
}

.hero-section p.slogan {
    font-size: 1.3em;
    margin-top: 20px;
    color: var(--text-light);
    font-weight: 400;
}

/* --- Navigation Menu --- */
nav {
    background-color: var(--dark-background);
    text-align: center;
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 8px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 50%;
    bottom: -5px;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active { /* Klasa active dla bieżącej strony */
    color: var(--accent-color);
}

nav ul li a:hover::after,
nav ul li a.active::after { /* Efekt podkreślenia dla aktywnej strony */
    width: 100%;
    left: 0;
}

/* --- General Headings --- */
.section-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* --- Content Sections (new styling for padding) --- */
section {
    padding: 40px;
    background-color: #fff;
    border-bottom: 1px solid var(--light-grey);
}
section:last-of-type {
    border-bottom: none;
}

/* Specyficzny styl dla sekcji na stronie głównej */
.main-content-home {
    padding-bottom: 20px; /* Mniej miejsca przed przyciskami CTA na home */
}

.text-block {
    text-align: justify;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--text-dark);
}
.text-block p {
    margin-bottom: 1em;
}

.text-block ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}
.text-block li {
    margin-bottom: 8px;
}

/* Stylizacja dla kart usług na stronie głównej */
.services-overview {
    text-align: center;
    padding: 40px;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.card h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left; /* Tytuły kart wyrównane do lewej */
}
.card h4 a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}
.card h4 a:hover {
    color: var(--secondary-accent);
}
.card p {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--dark-background) !important; /* Ważne, żeby nadpisać kolor linku */
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.card-button:hover {
    background-color: var(--secondary-accent);
    color: white !important;
}


/* --- Contact Buttons (Styles for the contact section buttons like phone and email) --- */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--light-grey);
}
.contact-buttons a {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--dark-background);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.contact-buttons a:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-2px);
    color: white;
}
.contact-buttons a svg {
    margin-right: 10px;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- Form Section --- */
.form-section {
    padding: 40px;
    background-color: #fff;
    border-top: 1px solid var(--light-grey);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(191, 147, 93, 0.2);
    outline: none;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group button {
    background-color: var(--accent-color);
    color: var(--dark-background);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.form-group button:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-2px);
    color: white;
}

/* --- Alerts --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 0;
    padding: 25px;
    background-color: var(--dark-background);
    color: var(--text-light);
    border-radius: 0 0 10px 10px;
}
footer p {
    margin: 0;
}



/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 0;
    }
    .hero-section {
        padding: 40px 20px;
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section h2 {
        font-size: 1.3em;
    }
    .hero-section p.slogan {
        font-size: 1.1em;
    }
    .section-title {
        font-size: 1.6em;
    }
    nav ul li {
        margin: 0 8px;
    }
    nav ul li a {
        font-size: 1em;
    }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact-buttons a {
        width: 90%;
        max-width: 300px;
    }
    section {
        padding: 30px 20px;
    }
    .form-section {
        padding: 30px 20px;
    }
    .service-cards {
        grid-template-columns: 1fr; /* Karty pod sobą na małych ekranach */
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section h2 {
        font-size: 1em;
    }
    .hero-section p.slogan {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.4em;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    nav ul li {
        margin: 0;
    }
    .form-group button {
        width: 100%;
    }
}

/* Style dla pojedynczego przycisku kontaktowego, używany w innych miejscach niż sekcja kontakt */
/* PRZENOIESIONE NA KONIEC PLIKU, ABY ZAPEWNIĆ PRAWIDŁOWE NADPISYWANIE STYLI */
.contact-button-single {
    display: inline-flex; /* Zachowuje się jak przycisk inline-block */
    align-items: center; /* Wyśrodkowanie tekstu w pionie (jeśli byłaby ikona) */
    padding: 15px 30px;
    background-color: var(--accent-color); /* Kolor tła z Twojej palety */
    color: var(--dark-background); /* Kolor tekstu z Twojej palety */
    text-decoration: none; /* Usuwa podkreślenie z linku */
    border-radius: 8px; /* Zaokrąglone rogi */
    font-size: 1.2em; /* Rozmiar czcionki */
    font-weight: 600; /* Grubość czcionki */
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease; /* Płynne przejścia */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Delikatny cień */
    text-align: center; /* Wyśrodkowanie tekstu */
    white-space: nowrap; /* Zapobiega łamaniu się tekstu */
}

.contact-button-single:hover {
    background-color: var(--secondary-accent); /* Ciemniejszy kolor tła na hover */
    transform: translateY(-2px); /* Delikatne podniesienie na hover */
    color: white; /* Biały tekst na hover */
}


