/* --- ZMIENNE KOLORYSTYCZNE --- */
:root {
    --primary-color: #2A9D8F; /* Morski/Turkusowy */
    --secondary-color: #264653; /* Ciemny granat */
    --accent-color: #E9C46A; /* Złoty (dla Hadado) */
    --bg-light: #F4F9F9;
    --text-dark: #333333;
    --text-light: #ffffff;
    --white: #ffffff;
}

/* --- RESET I BAZA --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: var(--bg-light); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; margin-bottom: 1rem; color: var(--secondary-color); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- PRZYCISKI (STYLE OGÓLNE) --- */
.btn {
    display: inline-block; padding: 12px 30px; background-color: var(--primary-color);
    color: var(--white); border-radius: 50px; font-weight: 700; text-transform: uppercase;
    font-size: 0.9rem; border: 2px solid var(--primary-color); cursor: pointer; margin-top: 10px;
    text-align: center;
}
.btn:hover { background-color: transparent; color: var(--primary-color); }

.btn-back {
    color: var(--primary-color); font-weight: 700; border: 2px solid var(--primary-color);
    padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; display: inline-block; margin-top: 10px;
}
.btn-back:hover { background-color: var(--primary-color); color: var(--white); }

/* --- NAGŁÓWEK (Wersja SLIM / Wąska) --- */
header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0; /* Mały odstęp góra/dół dla oszczędności miejsca */
}

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

/* Logo Obrazkowe - Skalowanie */
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-height: 55px; /* Komputer: Optymalna wysokość, żeby nie rozpychać paska */
    width: auto;
    display: block;
    transition: 0.3s;
}

/* Nawigacja */
nav ul { display: flex; gap: 25px; }
nav a { font-weight: 600; font-size: 0.95rem; color: var(--secondary-color); }
nav a:hover { color: var(--primary-color); }

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transition: 0.3s;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 80px 20px 20px;
}
.mobile-menu.active {
    right: 0;
}
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}
.close-menu:hover {
    background: rgba(0,0,0,0.1);
}
.mobile-menu nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu nav li {
    border-top: 1px solid #f0f0f0;
}
.mobile-menu nav li:first-child {
    border-top: none;
}
.mobile-menu nav a {
    display: block;
    font-size: 1rem;
    padding: 15px 20px;
    text-align: center;
    width: 100%;
    transition: background 0.3s;
    color: var(--secondary-color);
}
.mobile-menu nav a:hover {
    background: rgba(0,0,0,0.05);
}
.mobile-contact {
    border-top: 2px solid var(--primary-color);
    margin-top: 20px;
    padding-top: 20px;
}
.mobile-contact-item {
    display: block;
    padding: 12px 20px;
    text-align: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-contact-item:last-child {
    border-bottom: none;
}
.mobile-contact-item:hover {
    background: rgba(0,0,0,0.05);
}
.mobile-contact-item span {
    margin-right: 8px;
}

/* --- HERO SECTION (ZDJĘCIE W TLE + DWA GUZIKI) --- */
.hero {
    /* Ścieżka wychodzi z folderu css (../) do folderu images */
    background: linear-gradient(rgba(38, 70, 83, 0.7), rgba(42, 157, 143, 0.7)), url('../images/fizjoterapia-kepno.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh; /* 80% wysokości ekranu */
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

/* Wymuszenie białego koloru tekstów w Hero */
.hero h1, .hero p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Cień dla czytelności */
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin: 0 auto 30px auto; }

/* Kontener na przyciski w Hero */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Przycisk w Hero (Standardowy) - kasujemy margines, bo kontener go ustawia */
.hero-buttons .btn { margin-top: 0; }

/* --- Przycisk "Zadzwoń teraz" (Wersja WYRÓŻNIONA) --- */
.btn-outline {
    background-color: #E9C46A; /* Złoty kolor - rzuca się w oczy! */
    border: 2px solid #E9C46A;
    color: #264653; /* Ciemny tekst, żeby był czytelny na żółtym */
    
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 196, 106, 0.4); /* Złota poświata */
    
    /* Dodajemy animację pulsowania */
    animation: pulse-gold 2s infinite;
}

.btn-outline:hover {
    background-color: #dcb350; /* Troszkę ciemniejszy złoty po najechaniu */
    border-color: #dcb350;
    transform: translateY(-2px); /* Lekkie uniesienie */
}
/* --- ANIMACJA PULSOWANIA DLA PRZYCISKU --- */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 196, 106, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 196, 106, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 196, 106, 0);
    }
}


/* --- SEKCJE OGÓLNE --- */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background-color: var(--primary-color); margin: 15px auto 0; }

/* --- O MNIE --- */
.about-content { display: block; }
.about-text { width: 100%; }

.about-img-circle {
    float: left;
    width: 200px;
    height: 200px;
    margin-right: 30px;
    margin-bottom: 10px;
    shape-outside: circle(50%);
}

.about-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid var(--white);
}

/* Responsywność dla O mnie - na telefonie centrujemy */
@media (max-width: 600px) {
    .about-img-circle {
        float: none;
        margin: 0 auto 20px auto;
        width: 180px;
        height: 180px;
    }
    .about-text {
        text-align: center;
    }
}

.cert-box { background: #eefcfb; padding: 15px; border-left: 4px solid var(--primary-color); margin: 20px 0; font-style: italic; clear: both; }

/* --- OFERTA --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border-top: 5px solid var(--primary-color); }
.service-card:hover { transform: translateY(-5px); }
.service-list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.service-list li::before { content: '✓'; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }

/* --- CENNIK --- */
.price-section { background-color: var(--white); }
table.price-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; background: var(--white); box-shadow: 0 0 10px rgba(0,0,0,0.05); }
table.price-table th, table.price-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
table.price-table th { background-color: var(--secondary-color); color: var(--white); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.package-card { background: var(--bg-light); padding: 30px; text-align: center; border-radius: 10px; border: 1px solid #ddd; }
.package-card.highlight { background: #fff; border: 2px solid var(--primary-color); transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.price-big { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); margin: 15px 0; display: block; }
.note { font-size: 0.85rem; color: #666; text-align: center; margin-top: 20px; }

/* --- FAQ & LEGAL --- */
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.faq-item summary { padding: 20px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-size: 1.5rem; color: var(--primary-color); }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 20px 20px 20px; color: #555; }

.legal-content { background: var(--white); padding: 50px; margin: 40px auto; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.legal-section { margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { border-left: 5px solid var(--primary-color); padding-left: 15px; }
.legal-section ul { list-style: disc; margin-left: 20px; margin-bottom: 15px; }

/* --- KONTAKT & FORMULARZ --- */
.contact-wrapper { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-item { margin-bottom: 25px; display: flex; align-items: flex-start; }
.icon { margin-right: 15px; font-size: 1.2rem; color: var(--primary-color); }

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

/* Styl Checkboxa RODO */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #555;
    text-align: left;
}
.form-checkbox input {
    width: auto;
    margin-top: 4px; /* Wyrównanie boxa do pierwszej linii tekstu */
}
.form-checkbox a { text-decoration: underline; color: var(--primary-color); }

/* --- FOOTER --- */
footer { background-color: var(--secondary-color); color: var(--white); padding: 40px 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 20px; }
.footer-col { margin-bottom: 15px; }
.footer-logo-img { max-height: 60px; margin-bottom: 10px; }
.footer-description { opacity: 0.8; line-height: 1.5; margin-bottom: 15px; }
.footer-social { display: flex; gap: 10px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: all 0.3s ease; }
.social-icon:hover { background: var(--primary-color); transform: translateY(-3px); }
.social-icon svg { width: 18px; height: 18px; fill: white; }
.footer-title { font-size: 1.1rem; margin-bottom: 15px; position: relative; padding-bottom: 8px; color: var(--white); }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { opacity: 0.8; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--primary-color); }
.footer-contact { display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px; }
.footer-contact p { margin-bottom: 0; line-height: 1.5; }
.footer-contact .icon { margin-right: 10px; opacity: 0.8; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 15px 0; text-align: center; }
.footer-bottom .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.7; }
.footer-bottom a { text-decoration: underline; transition: opacity 0.3s; }
.footer-bottom a:hover { opacity: 1; color: var(--primary-color); }

/* Cookie banner adjustment */
#cookie-banner { bottom: 40px; }

/* --- COOKIE BANNER --- */
#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #264653; color: #ffffff; padding: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 9999; display: none; font-family: 'Lato', sans-serif; }
.cookie-content { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cookie-text { flex: 1; font-size: 0.9rem; line-height: 1.4; }
.cookie-text a { color: #2A9D8F; text-decoration: underline; }
.cookie-btn { background-color: #2A9D8F; color: white; border: none; padding: 10px 25px; border-radius: 50px; cursor: pointer; font-weight: 700; white-space: nowrap; transition: 0.3s; }
.cookie-btn:hover { background-color: #21867a; }

/* --- RESPENSYWNOŚĆ (TELEFONY) --- */
@media (max-width: 768px) {
    /* Hero */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    /* Header Mobile */
    .nav-container { flex-direction: row; justify-content: space-between; align-items: center; }
    .logo-img { max-height: 50px; } /* Nieco większe logo na telefonie */
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    
    /* Cennik */
    .package-card.highlight { transform: scale(1); }
    
    /* Cookie Banner */
    .cookie-content { flex-direction: column; text-align: center; }

    /* Footer Mobile */
    footer { padding: 30px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 15px; }
    .footer-col { margin-bottom: 10px; }
    .footer-title { font-size: 1rem; margin-bottom: 10px; }
    .footer-links li { margin-bottom: 6px; }
    .footer-contact { flex-direction: column; gap: 6px; }
    .footer-contact p { margin-bottom: 0; }
    .footer-bottom { padding: 10px 0; }
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- BLOG STYLES --- */
.blog-list {
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-info {
    padding: 25px;
}

.blog-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.blog-info h3 a {
    color: inherit;
    transition: color 0.3s;
}

.blog-info h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.post-date {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.blog-summary {
    margin: 15px 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

.blog-single {
    background-color: var(--white);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-content h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.post-summary {
    background: var(--bg-light);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

.post-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    margin: 30px 0;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body strong {
    color: var(--secondary-color);
}

.post-body br {
    margin-bottom: 15px;
}

.post-back {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Responsywność dla bloga */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .post-content {
        padding: 20px 15px;
    }
    
    .post-content h1 {
        font-size: 2rem;
    }
    
    .blog-info {
        padding: 20px;
    }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .rating {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-card .star {
    margin: 0 2px;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: auto; /* Push author to the bottom */
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
