/* Style domyślne (dla większych ekranów - desktop) - istniejące style zostają */

/* Media query dla tabletów (np. ekrany o szerokości do 768px) */
@media (max-width: 768px) {
    header {
        padding: 30px;
    }

    header h1 {
        font-size: 2.5em;
    }

    #about .services {
        flex-direction: column; /* Układ pionowy na mniejszych ekranach */
        align-items: center; /* Wyśrodkowanie elementów */
    }

    .service {
        margin-bottom: 20px;
    }
}

/* Media query dla smartfonów (np. ekrany o szerokości do 480px) */
@media (max-width: 480px) {
    header {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .service img {
        width: 40px;
        height: 40px;
    }

    .service p {
        font-size: 0.8em;
    }
}

/* Stylizacja logo */
.logo {
    width: 250px;
    /* Dostosuj szerokość logo */
    height: auto;
    /* Automatyczna wysokość, żeby zachować proporcje */
    display: block;
    /* Ustawienie na block, żeby można było ustawiać marginesy */
    margin: 0 auto;
    /* Wyśrodkowanie logo (opcjonalne) */
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400; /* Normalna grubość czcionki */
    margin: 0;
    padding: 0;
    background-color: #f5f0f5;
    color: #2e294e;
}

header {
    position: relative; /* Ważne: Ustawiamy pozycję jako relative, aby móc pozycjonować obraz absolutnie */
    padding: 50px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /*background-color: rgba(100, 0, 200, 0.2); /* Opcjonalnie: Lekki fioletowy odcień dla nagłówka */
    overflow: hidden;
}

h1 {
    font-family: 'Great Vibes', cursive; /* Great Vibes do nagłówków h1 */
    font-weight: normal; /* Usuwa pogrubienie, jeśli czcionka je ma */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Opcjonalny cień dla podkreślenia */
}

h2 {
    font-family: 'Pacifico', cursive; /* Pacifico do nagłówków h2 */
    font-weight: normal; /* Usuwa pogrubienie, jeśli czcionka je ma */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Opcjonalny cień dla podkreślenia */
}

/* Opcjonalnie: Ustawienie wag czcionek dla Lato */
body {
    font-family: 'Lato', sans-serif;
    font-weight: 400; /* Normalna grubość */
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
}

h2 {
    font-family: 'Lato', cursive;
    font-weight: normal;
}
blockquote {
    font-family: 'Indie Flower', cursive;
}

/* Stylowanie obrazu w nagłówku */
.header-image {
    position: absolute; /* Pozycjonujemy obraz absolutnie */
    top: 0; /* Umieszczamy go na górze nagłówka */
    left: 0; /* Umieszczamy go po lewej stronie nagłówka */
    width: 100%; /* Rozciągamy na całą szerokość nagłówka */
    height: 100%; /*Rozciągamy na całą wysokość nagłówka*/
    object-fit: cover; /* Skalujemy obraz, żeby wypełniał obszar zachowując proporcje */
    opacity: 0.6; /* Możemy ustawić przezroczystość obrazu */
    z-index: -1; /* Kluczowe: Ustawiamy z-index na -1, aby obraz był pod tekstem i przyciskiem */
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

header button {
    background-color: #d4ac0d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

#about {
    padding: 50px;
    text-align: center;
}

#about .services {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    text-decoration: none; /* Usuwa podkreślenie linków */
    color: inherit; /* Dziedziczy kolor tekstu */
}

#about .services a {
  color: inherit;
  text-decoration: none;
}

#about .services div {
    text-align: center;
}

#about .services img {
    width: 300px;
    height: 300px;
    margin-bottom: 10px;
}

#testimonials {
    padding: 50px;
    text-align: center;
    background-color: #eee;
}

#testimonials blockquote {
    font-style: italic;
    font-size: 1.1em;
}

#contact {
    padding: 50px;
    text-align: center;
}

.bottom-image {
    display: block;
    margin: 40px 0;
    width: 200px;
    max-width: 90%;
    height: auto;
    opacity: 0.85;
    box-shadow: 0 4px 24px rgba(46,41,78,0.08);
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    position: relative;
}
.footer-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-logo {
    height: 48px;
    width: auto;
    margin-right: 24px;
    cursor: pointer;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
}
.footer-logo:hover {
    filter: brightness(0.8) invert(0.8);
}
.footer-text {
    font-size: 1em;
    letter-spacing: 1px;
}
/* Stylowanie nawigacji */
nav {
    background-color: rgba(73, 44, 90, 0.425); /* Lekko przezroczyste tło */
    padding: 10px;
    position: sticky; /* Pasek menu będzie się przesuwał ze scrollowaniem */
    top: 0; /* Przykleja się do góry ekranu */
    z-index: 100; /* Zapewnia, że menu będzie nad innymi elementami */
    backdrop-filter: blur(10px); /* Dodaje efekt rozmycia tła */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Delikatny cień */
    transition: all 0.3s ease; /* Płynne przejścia */
}

nav ul {
    list-style: none; /* Usuwa punktorowanie */
    margin: 0;
    padding: 0;
    display: flex; /* Użycie flexboxa */
    justify-content: center; /* Wyśrodkowanie linków */
}

nav li {
    margin: 0 15px; /* Odstępy między linkami */
}

nav a {
    color: white; /* Biały kolor tekstu */
    text-decoration: none; /* Usuwa podkreślenie */
    font-weight: bold; /* Pogrubienie tekstu */
    transition: color 0.3s ease; /* Płynne przejście koloru */
}

nav a:hover {
    color: #d4ac0d; /* Kolor po najechaniu */
}

/* Modal styles */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #f5f0f5;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #2e294e;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #d4ac0d;
}

.service-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
}

.modal h1 {
    color: #2e294e;
    margin-bottom: 20px;
}

.modal h2 {
    color: #2e294e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.modal p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(46,41,78,0.08);
}

.contact-form label {
    font-weight: bold;
    color: #2e294e;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #d4ac0d;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: #f5f0f5;
    resize: vertical;
}

.contact-form button {
    background-color: #d4ac0d;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background-color: #b38a00;
}

#pricing-modal .modal-content {
    text-align: center;
}
#pricing-modal .modal-content ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.booking-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
    align-items: center;
    margin: 32px 0 0 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.booking-tile {
    background: #f5f0f5;
    border: 2px solid #d4ac0d;
    border-radius: 16px;
    padding: 32px 28px;
    font-size: 1.2em;
    font-weight: bold;
    color: #2e294e;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(46,41,78,0.08);
    transition: background 0.2s, border 0.2s, color 0.2s, transform 0.2s;
    min-width: 180px;
    text-align: center;
}
.booking-tile:hover {
    background: #d4ac0d;
    color: #fff;
    border-color: #b38a00;
    transform: translateY(-4px) scale(1.04);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .booking-tiles {
        max-width: 100%;
        gap: 16px;
    }
    .booking-tile {
        min-width: 120px;
        padding: 24px 10px;
        font-size: 1em;
    }
    .modal-content {
        width: 95%;
        max-width: 95vw;
        padding: 18px;
    }
    .contact-form {
        padding: 18px 8px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 18px;
    }
    header h1 {
        font-size: 1.5em;
    }
    .logo {
        width: 120px;
    }
    .header-image {
        height: 120px;
    }
    nav ul {
        flex-direction: column;
        gap: 8px;
    }
    .booking-tiles {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 8px;
    }
    .footer-logo {
        height: 32px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .contact-form {
        max-width: 100%;
        padding: 10px 2px;
    }
    .modal-content {
        padding: 8px;
    }
    #about {
        padding: 18px 2px;
    }
    #testimonials, #contact {
        padding: 18px 2px;
    }
    .bottom-image {
        width: 100px;
        margin: 20px 0;
    }
}

.testimonial-form {
    max-width: 400px;
    margin: 24px 0 0 0;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(46,41,78,0.06);
}
.testimonial-form label {
    font-weight: bold;
    color: #2e294e;
}
.testimonial-form input[type='text'],
.testimonial-form textarea {
    padding: 8px;
    border: 1px solid #d4ac0d;
    border-radius: 6px;
    font-size: 1em;
    background: #f5f0f5;
}
.testimonial-form button {
    background-color: #d4ac0d;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.testimonial-form button:hover {
    background-color: #b38a00;
}
.testimonial-form-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.testimonial-form button[type='reset'] {
    background: #eee;
    color: #2e294e;
    border: 1px solid #d4ac0d;
    font-weight: normal;
}
.testimonial-form button[type='reset']:hover {
    background: #f5f0f5;
    color: #b38a00;
    border-color: #b38a00;
}
.testimonials-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 32px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}
.testimonial-slide {
    flex: 0 0 90%;
    max-width: 400px;
    min-width: 300px;
    scroll-snap-align: start;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 600px) {
    .testimonial-slide {
        flex-basis: 98vw;
        max-width: 98vw;
        min-width: 240px;
    }
    .testimonials-carousel {
        gap: 12px;
    }
}

/* Payment Modal Styles */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    max-width: 500px;
    width: 100%;
}

.payment-option {
    background: #fff;
    border: 2px solid #d4ac0d;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 24px rgba(46,41,78,0.08);
}

.payment-option:hover {
    background: #d4ac0d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(212,172,13,0.3);
}

.payment-option h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #2e294e;
    transition: color 0.3s ease;
}

.payment-option:hover h3 {
    color: #fff;
}

.payment-option p {
    margin: 0;
    font-size: 1em;
    color: #666;
    transition: color 0.3s ease;
}

.payment-option:hover p {
    color: #fff;
}

@media (max-width: 600px) {
    .payment-options {
        gap: 15px;
        margin-top: 20px;
    }
    
    .payment-option {
        padding: 18px;
    }
    
    .payment-option h3 {
        font-size: 1.1em;
    }
    
    .payment-option p {
        font-size: 0.9em;
    }
}

/* Blog Styles */
#blog-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    gap: 40px;
}

.blog-container {
    flex: 2;
    max-width: 800px;
}

.blog-post {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px rgba(46,41,78,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(46,41,78,0.12);
}

.blog-post h2 {
    color: #2e294e;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.blog-post h3 {
    color: #2e294e;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9em;
    color: #666;
}

.post-meta .date {
    color: #d4ac0d;
    font-weight: bold;
}

.post-meta .category {
    background: #f5f0f5;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #d4ac0d;
    color: #2e294e;
}

.post-content {
    line-height: 1.7;
    color: #2e294e;
}

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

.post-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content strong {
    color: #d4ac0d;
    font-weight: bold;
}

.blog-sidebar {
    flex: 1;
    max-width: 350px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(46,41,78,0.08);
}

.sidebar-widget h3 {
    color: #2e294e;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #d4ac0d;
    padding-bottom: 10px;
}

.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    color: #2e294e;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.categories-list a:hover {
    background: #d4ac0d;
    color: #fff;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    color: #2e294e;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #d4ac0d;
}

.sidebar-button {
    background-color: #d4ac0d;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.sidebar-button:hover {
    background-color: #b38a00;
}

#newsletter {
    background: linear-gradient(135deg, #2e294e 0%, #492c5a 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

#newsletter h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 2.2em;
}

#newsletter p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    background: #fff;
    color: #2e294e;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 172, 13, 0.3);
}

.newsletter-form button {
    background-color: #d4ac0d;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: #b38a00;
}

nav a.active {
    color: #d4ac0d;
    background: rgba(212, 172, 13, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
}

/* Blog Responsive Design */
@media (max-width: 900px) {
    #blog-content {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }
    
    .blog-sidebar {
        max-width: 100%;
    }
    
    .blog-post {
        padding: 25px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    #blog-content {
        padding: 20px 10px;
    }
    
    .blog-post {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .blog-post h2 {
        font-size: 1.4em;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .sidebar-widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #newsletter {
        padding: 40px 15px;
    }
    
    #newsletter h2 {
        font-size: 1.8em;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form button {
        padding: 15px 20px;
    }
}
