/* --- 1. GLOBALNY RESET (Wklej na samą górę index.css) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* To naprawia uciekanie elementów */
}

body {
    background-color: #000; /* Czarne tło całej strony */
    color: #fff;            /* Biały tekst */
    font-family: 'Arial', sans-serif; /* Naprawa czcionki */
    overflow-x: hidden;     /* Brak paska przewijania na dole */
    width: 100%;
}

/* --- 2. NAPRAWA KONTENERA (Ważne dla Hero, Zespołu i Stopki) --- */
/* Jeśli usunąłeś to przy czyszczeniu header'a, reszta strony się rozjechała */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. SZYBKA NAPRAWA STOPKI --- */
footer {
    background-color: #111;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    width: 100%;
}

/* --- PONIŻEJ ZOSTAWMY TWOJE STARE STYLE --- */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: brightness(0.4);
}

.hero-content h1 { font-size: 48px; margin-bottom: 20px; text-transform: uppercase; }
.hero-content p { font-size: 18px; margin-bottom: 30px; }

.btn-main {
    padding: 15px 40px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 30px;
}
.btn-main:hover { background-color: #fff; color: #000; }

.team-section {
    background-color: #a68b6c;
    padding: 80px 20px;
    text-align: center;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.team-member {
    position: relative;
    width: 250px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-member:hover img { transform: scale(1.05); }

.member-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
}

.btn-small {
    display: block; width: 100%; padding: 8px 0;
    border: 1px solid #fff; text-align: center; color: #fff;
    text-decoration: none; font-size: 12px; text-transform: uppercase;
    margin-top: 10px; transition: 0.3s;
}
.btn-small:hover { background-color: #fff; color: #000; }

/* --- NOWE SEKCJE STRONY GŁÓWNEJ --- */

/* Wspólne ustawienia sekcji */
section {
    padding: 80px 20px;
    text-align: center;
}

section h2 {
    font-size: 32px;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #333; /* Ciemny tekst na jasnym tle */
    position: relative;
    display: inline-block;
}

/* Ozdobna linia pod nagłówkiem */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #cda45e; /* Złoty */
    margin: 15px auto 0;
}

/* 1. FEATURES (Ikony) */
.features-section {
    background-color: #fff;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 20px;
}

.feature-box .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-box h3 {
    color: #cda45e;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}

/* 2. SERVICES PREVIEW (Kafelki) */
.services-preview {
    background-color: #111; /* Ciemne tło */
    color: #fff;
}

.services-preview h2 {
    color: #fff; /* Biały nagłówek na ciemnym tle */
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* css/style.css - Poprawka dla sekcji "Czym się zajmujemy" */

.service-card {
    background: #222;
    padding: 40px 20px;
    flex: 1;
    min-width: 280px;
    border: 1px solid #333;
    transition: 0.3s;

    /* --- TU ZACZYNA SIĘ MAGIA CENTROWANIA --- */
    display: flex;
    flex-direction: column; /* Ustawia elementy jeden pod drugim (Tytuł -> Opis -> Przycisk) */
    align-items: center;    /* Centruje wszystko w poziomie (to naprawi Twój przycisk!) */
    text-align: center;     /* Centruje tekst wewnątrz elementów */
}

.service-card:hover {
    border-color: #cda45e;
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    width: 100%;
}

.service-card p {
    color: #aaa;
    margin-bottom: 25px;
    width: 100%;
}

.service-card .btn-small {
    margin-top: auto;
    width: auto;
    min-width: 150px;
    text-align: center;
}

/* 3. OPINIE */
.reviews-section {
    background-color: #f9f9f9;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.review-box {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 280px;
    border-radius: 5px;
    font-style: italic;
}

/* Ensure review text is readable on white cards */
.review-box p {
    color: #333; /* dark text for contrast */
    line-height: 1.6;
    margin: 0 0 10px;
}

/* Reviewer name / meta */
.review-box span,
.review-box h4,
.review-box strong {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
    font-style: normal;
}

.stars {
    color: #cda45e;
    font-size: 20px;
    margin-bottom: 15px;
} 

/* 4. CTA (Ciemny pasek na dole) */
.cta-section {
    background: url('../img/salon-bg.jpg') no-repeat center center/cover; /* Opcjonalnie tło */
    background-color: #000; /* Jeśli nie masz zdjęcia */
    color: #fff;
    padding: 100px 20px;
}

.cta-section h2 {
    color: #cda45e;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
}

.btn-book-large {
    display: inline-block;
    padding: 15px 40px;
    background: #cda45e;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
    border: 2px solid transparent;
}

/* Keep text readable on hover and add subtle outline */
.btn-book-large:hover {
    background: #fff;
    color: #000;
    border-color: #cda45e;
    text-decoration: none;
}

.btn-book-large:focus {
    outline: 2px solid #fff; /* visible focus for accessibility */
    outline-offset: 2px;
}

/* --- POPRAWKA DLA PODSTRON --- */
/* Dodajemy odstęp od góry, żeby menu nie zasłaniało treści na podstronach */
body:not(.home-page) section:first-of-type {
    padding-top: 120px; /* Odsunięcie treści spod menu */
}

/* --- OFERTA (zawartość css/oferta.css scalona tutaj) --- */
.offer-section {
    padding: 100px 20px 60px;
    background-color: #222;
    color: #fff;
    min-height: 100vh;
}

/* Nagłówki */
.offer-section h1 {
    font-size: 36px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.intro-text {
    text-align: center;
    color: #bbb;
    margin-bottom: 60px;
    font-size: 14px;
}

.category-block {
    margin-bottom: 60px;
}

.category-block h2 {
    display: inline-block;
    margin: 0 auto 30px;
    text-align: center;
    text-transform: uppercase;
    color: #cda45e; /* Złoty kolor nagłówka kategorii */
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    position: relative;
}

/* Center the decorative line under category headers and ensure it is centered */
.category-block h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #cda45e;
    margin: 12px auto 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.3s;
    border: 1px solid #333;
}

.service-item:hover { transform: translateY(-5px); border-color: #cda45e; }

.service-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; border-bottom: 1px solid #444; padding-bottom: 10px; }
.service-header .name { font-weight: bold; font-size: 16px; text-transform: uppercase; color: #fff; }
.service-header .price { color: #cda45e; font-weight: bold; font-size: 16px; white-space: nowrap; }
.service-details { font-size: 13px; color: #aaa; display: flex; flex-direction: column; gap: 5px; }
.service-details .time { color: #888; font-style: italic; font-size: 12px; }
.offer-footer { text-align: center; margin-top: 60px; border-top: 1px solid #444; padding-top: 40px; }
.btn-book-large { display: inline-block; padding: 15px 50px; border: 2px solid #cda45e; color: #000; background: #cda45e; text-decoration: none; font-size: 18px; text-transform: uppercase; transition: 0.3s; border-radius: 30px; margin-top: 20px; }
.btn-book-large:hover { background-color: #fff; color: #000; border-color: #cda45e; }
html { scroll-behavior: smooth; }
#damskie, #barber, #koloryzacja { scroll-margin-top: 120px; }

/* --- KONTAKT (scalone z css/kontakt.css) --- */
.contact-section {
    padding-top: 120px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #f4f4f4;
    min-height: 80vh;
    text-align: center;
}

.contact-section h1 { font-size: 36px; margin-bottom: 10px; margin-top: 0; text-transform: uppercase; color: #333; }

.contact-container { display: flex; justify-content: center; gap: 30px; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; text-align: left; }

.contact-info, .contact-form { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); flex: 1; min-width: 300px; }

.contact-info h3, .contact-form h3 { margin-top: 0; color: #cda45e; text-transform: uppercase; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }

.contact-info p, .info-item { color: #555; margin-bottom: 15px; line-height: 1.6; }

.fake-address-note { font-size: 11px; color: #999; font-style: italic; margin-top: 2px; }

.map-container { margin-top: 20px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; }

.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; color: #555; }

.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; background-color: #f9f9f9; font-family: inherit; }

.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #cda45e; background-color: #fff; }

.btn-send { width: 100%; padding: 15px; background-color: #333; color: white; border: none; border-radius: 5px; cursor: pointer; text-transform: uppercase; font-weight: bold; transition: 0.3s; }
.btn-send:hover { background-color: #cda45e; color: #000; }

/* --- REZERWACJA (scalone z css/rezerwacja.css) --- */
.booking-section { padding: 120px 20px; background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/salon_bg.jpg'); background-color: #222; background-size: cover; background-position: center; min-height: 100vh; display: flex; justify-content: center; align-items: center; }

.booking-box { background: white; padding: 40px; border-radius: 10px; width: 100%; max-width: 600px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

.booking-box h1 { text-align: center; margin-bottom: 5px; text-transform: uppercase; color: #333; }
label { display: block; margin-top: 15px; margin-bottom: 5px; font-weight: bold; color: #555; font-size: 14px; }

.booking-box select, .booking-box input { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 14px; background-color: #f9f9f9; }

.date-time-group { display: flex; gap: 15px; }
.date-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }

.date-card {
    flex: 0 0 auto; /* Nie ściskaj kart */
    width: 70px;
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: #fff; /* jasne tło domyślne */
    color: #111; /* ciemny tekst domyślnie */
    transition: 0.2s;
}

.date-card:hover {
    border-color: #cda45e;
    background: #f7f7f7;
    color: #111;
}

.date-card.active {
    background-color: #cda45e; /* złote tło */
    color: #fff; /* biały tekst */
    border-color: #cda45e;
}

.date-card span {
    display: block;
    font-size: 12px;
}

.date-card strong {
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto; /* Scroll jak jest dużo godzin */
    padding-right: 5px;
}

.time-slot {
    padding: 8px;
    background: #fff; /* jasne tło */
    border: 1px solid #ddd;
    color: #111; /* ciemny tekst */
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.time-slot:hover {
    background-color: #f0f0f0;
    border-color: #cda45e;
    color: #111;
}

.time-slot.active {
    background-color: #cda45e;
    color: #fff;
    border-color: #cda45e;
    font-weight: bold;
}

/* Ensure inputs/selects inside booking form are readable */
.booking-box select,
.booking-box input,
.booking-box textarea {
    color: #111;
    background-color: #fff;
    border: 1px solid #ddd;
}

.booking-box select:disabled {
    background-color: #f3f3f3;
    color: #666;
}

.hidden-input { display: none; }
.btn-book { width: 100%; padding: 15px; background-color: #a68b6c; color: white; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; text-transform: uppercase; cursor: pointer; margin-top: 25px; transition: 0.3s; }
.btn-book:hover { background-color: #333; }