/* Color Variables */
:root {
    --color-beige: #EEE6CD;
    --color-sage: #FDF1D3;
    --color-tan: #e9d3b1;
    --color-brown: #9D5B34;
    --color-light-brown: #dd9165;
    --color-white: #fcf7eb;
}


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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Class to hide navbar when scrolling down */
.navbar--hidden {
    transform: translateY(-100%);
    background-color: transparent;
    box-shadow: none;
}

/* Optional: Add a slight background on scroll for better text visibility */
.navbar--scrolled {
    background-color: transparent;
}

.logo h1 {
    color: rgb(0, 0, 0);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: 500;
    font-size: 1.2rem;
    /* Added this line to increase font size */
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--color-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    margin-top: 0;
    /* Removed the margin-top */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
}

.hero-content {
    background-color: var(--color-tan);
    padding: 3rem;
    border-radius: 20px;
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: black;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: black;
}

.hero-image {
    flex: 1;
    height: 600px;
    background-color: var(--color-beige);
    border-radius: 20px;
    max-width: 600px;
    opacity: 0;
    /* Start hidden */
    animation: fadeIn 1s ease-out 0.1s forwards;
    /* 0.5s delay */
}

.hero-photo {
    width: 100%;
    /* Fill the container */
    height: 100%;
    /* Fill the container */
    object-fit: cover;
    /* Maintain aspect ratio */
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--color-brown);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    /* Dodane dla linku */
    display: inline-block;
    /* Dodane dla linku */
}

.cta-button:hover {
    background-color: var(--color-light-brown);
}

/* Services Section */
.services {
    min-height: 100vh;
    /* This sets minimum height to full viewport height */
    padding: 5rem 10%;
    background-color: var(--color-white);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    height: 600px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;  /* Smooth transition for any transform effects */
}

/* Specific background images for each card */
.service-card:nth-child(1) {
    background-image: url('img/private.jpg'); /* Private Sessions */
}

.service-card:nth-child(2) {
    background-image: url('img/online.jpg'); /* Online Classes */
}

.service-card:nth-child(3) {
    background-image: url('img/group-yoga.jpg');
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    transition: all 0.3s ease;  /* Smooth transition for the overlay */
}

/* Hover effect */
.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));  /* Lighter overlay on hover */
}

.service-card:hover {
    transform: scale(1.02);  /* Slightly scale up the card on hover */
}

.service-card h3 {
    position: absolute;
    top: 10px;
    /* Position from bottom */
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 2.2rem;
    padding: 1rem;
    z-index: 1;
    /* Place above the gradient overlay */
}

/* Hide the description text */
.service-card p {
    display: none;
}

/* Make all links fill the card for better clickability */
.service-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
}


/* Blog Section Styles */
.blog {
    min-height: 100vh;
    background-color: var(--color-sage);
    padding: 5rem 10%;
}

.blog h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

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

.blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: background 0.3s ease;
}

.blog-card:hover .blog-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%);
}

.blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

.blog-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Media Queries */
@media (max-width: 768px) {
    .blog {
        padding: 3rem 5%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        height: 350px;
    }
}


/* About Section */
.about {
    min-height: 100vh;
    background-color: var(--color-white);
    padding: 5rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about h2 {
    text-align: center;
    color: #333;
    font-size: 3rem;
}

.about-content {
    display: flex;
    align-items: flex-start;
    /* Change from center to allow better text flow */
    justify-content: space-between;
    /* Change from center to space-between */
    gap: 4rem;
    /* Reduce gap to allow more space for text */
    width: 100%;
    /* Ensure full width */
    max-width: 1200px;
    /* Increase max-width of container */
    margin: auto;
}





.about-photo {
    width: 100%;
    /* Fill the container */
    height: 100%;
    /* Fill the container */
    object-fit: cover;
    /* Maintain aspect ratio */
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    /* Start hidden */
    animation: fadeIn 1s ease-out 0.3s forwards;
    /* 0.3s delay */
}

.about-image {
    width: 350px;
    /* Reduce from 400px to make it smaller and move left */
    height: 400px;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    /* Change to 1 to allow natural growth */
    min-width: 700px;
    /* Set minimum width */
    font-size: 1.2rem;
}


/* Reservation Section */
.rezerwacje {
    min-height: 100vh;
    background-color: var(--color-tan);
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rezerwacje h2 {
    text-align: center;
    color: #333;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.rezerwacje-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.rezerwacje-container {
    display: flex;
    gap: 4rem;
    width: 100%;
    max-width: 1100px;
    align-items: flex-start;
}

.class-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.class-card {
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.class-card.selected {
    border-color: var(--color-brown);
    box-shadow: 0 6px 18px rgba(157, 91, 52, 0.25);
}

.class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.class-day {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-brown);
}

.class-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    background-color: var(--color-beige);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.class-date {
    font-size: 0.9rem;
    color: var(--color-brown);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.class-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.booking-form-wrapper {
    flex: 1;
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.booking-form-wrapper h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.selected-class-info {
    background-color: var(--color-beige);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.selected-class-info.has-selection {
    color: var(--color-brown);
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--color-beige);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--color-sage);
    color: #333;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--color-brown);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--color-brown);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    background-color: var(--color-light-brown);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    min-height: 1.5rem;
}

.form-message.success {
    color: #2d7a4f;
}

.form-message.error {
    color: #c0392b;
}

@media (max-width: 768px) {
    .rezerwacje {
        padding: 3rem 5%;
    }

    .rezerwacje-container {
        flex-direction: column;
        gap: 2rem;
    }

    .booking-form-wrapper {
        padding: 1.5rem;
    }
}

.contact {
    padding: 5rem 20%;
    background-color: var(--color-sage);
}

.contact h2 {
    text-align: center;
    margin-bottom: 6rem;
    color: #333;
    font-size: 3rem;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px; /* Same as castle-photo height */
}

.address {
    margin-bottom: 1rem;
}

.contact-image {
    flex: 1;
}

.castle-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.maps-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    transform: translateY(-4px); /* Move up by 5 pixels */
}

.social-icon:hover {
    transform: scale(1.1);
}

.maps-icon:hover {
    transform: translateY(-4px) scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact {
        padding: 5rem 10%;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        height: auto;
        gap: 2rem;
    }

    .contact-image {
        max-width: 100%;
    }

    .social-links {
        justify-content: flex-start;
    }
}


/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Animations: */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add this class for elements you want to animate */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    /* Start with opacity 0 */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }

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

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 2rem;
        flex: 0 0 150px;
        /* Even smaller on mobile */
    }

    .about-photo {
        height: 150px;
        /* Smaller height on mobile */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        margin-bottom: 2rem;
    }
}
/* Cookie Consent Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 1.5rem 10%;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-top: 2px solid var(--color-tan);
}

.cookie-banner__content {
    flex: 1;
    min-width: 250px;
}

.cookie-banner__title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-brown);
    margin-bottom: 0.4rem;
}

.cookie-banner__text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.cookie-banner__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-btn--accept {
    background-color: var(--color-brown);
    color: #fff;
}

.cookie-btn--accept:hover {
    background-color: var(--color-light-brown);
}

.cookie-btn--reject {
    background-color: transparent;
    color: var(--color-brown);
    border: 2px solid var(--color-brown);
}

.cookie-btn--reject:hover {
    background-color: var(--color-beige);
}
