/* --- Global Styles & Variables --- */
:root {
    --blush-pink: #FFE4E1; /* Misty Rose - Soft Blush */
    --ivory: #FFF8F7;      /* Near White/Ivory */
    --dove-grey: #EAE0E0;   /* Light Grey - Dove Grey */
    --gold: #DAA520;       /* Goldenrod - Subtle Gold */
    --dark-gold: #B8860B;  /* Darker Gold for accents/hover */
    --charcoal: #363636;    /* Dark Grey for text */
    --white: #ffffff;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--charcoal);
    line-height: 1.7;
    background-color: var(--ivory);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; line-height: 1.2; color: var(--white);}
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; position: relative; padding-bottom: 10px; }

/* Simple gold underline for H2 */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}


p {
    margin-bottom: 1rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    color: var(--white);
    transform: translateY(-2px); /* Subtle lift */
}

/* --- Header --- */
/* --- Header --- */
header {
    background-color: rgba(255, 248, 247, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ensure the direct container uses align-items */
header nav.container { /* Or header .container if nav is inside */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center logo and nav list */
}

/* Style the nav list itself */
header nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* ADD or ENSURE this line exists */
    margin: 0; /* Ensure no default margins interfere */
    padding: 0; /* Ensure no default padding interferes */
}

header nav ul li {
    margin-left: 25px;
    /* Remove display:flex from li if added previously, alignment is handled by ul */
}

/* Keep other header styles... */

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--charcoal);
    text-decoration: none;
}

.logo:hover {
    color: var(--charcoal); /* Keep logo color consistent */
}


header nav ul li a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: bold;
    padding-bottom: 5px;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after { /* Add active class styling if needed */
    width: 100%;
}

/* --- Hero Section --- */
/* --- Hero Section Styles --- */
#hero {
    /* height: 100vh; */ /* Keep if you want full viewport height */
    min-height: 70vh; /* Use min-height for flexibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative; /* Crucial for absolute positioning inside */
    overflow: hidden; /* Hide parts of slides outside the container */
    padding-top: 80px; /* Adjust if needed based on header height */
    padding-bottom: 40px;
}

/* Slideshow container */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind overlay and content */
}

/* Individual slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect (1 second) */
    z-index: 1; /* Base slide z-index */
}

/* Active slide (visible) */
.hero-slide.active {
    opacity: 1;
    z-index: 2; /* Active slide slightly above others */
}

/* Dark Overlay - Positioned between slides and content */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity (0.4 = 40% black) */
    z-index: 3; /* Above slideshow, below content */
}

/* Hero Content - Positioned on top */
.hero-content {
    position: relative; /* Position relative to the #hero container */
    z-index: 4; /* Highest z-index to be on top */
    max-width: 800px; /* Limit content width if needed */
}

/* Ensure heading and text colors are suitable for overlay */
.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    /* text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Optional: subtle text shadow */
}

.hero-content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    /* text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Optional: subtle text shadow */
}


/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 10px;
}

.service-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--dove-grey);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.15); /* Subtle gold shadow */
}

.service-icon {
    color: var(--gold);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-gold);
}

/* --- Testimonials Section --- */
/* --- Find the existing #testimonials section styles in style.css --- */
/* --- Modify/Add the following rules: --- */

#testimonials {
    background-color: var(--blush-pink);
    /* Ensure the section itself doesn't clip overflow if controls are slightly outside */
    overflow: hidden; /* Optional: Change to visible if arrows MUST be outside container bounds */
}

/* Add relative positioning and padding to the main Swiper container */
.testimonials-slider {
    position: relative;
    padding-left: 50px;  /* Space for prev arrow */
    padding-right: 50px; /* Space for next arrow */
    padding-bottom: 50px; /* Space for pagination dots */
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    /* Remove margin if padding on container handles spacing */
    /* margin: 10px; */
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 3px solid var(--gold);
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--charcoal);
    font-size: 1.05rem;
    flex-grow: 1;
}

.testimonial-card .bride-name {
    font-weight: bold;
    color: var(--dark-gold);
    margin-top: auto;
    margin-bottom: 0;
}

/* Swiper Customization - UPDATED POSITIONS */

/* Swiper Customization - UPDATED POSITIONS */

/* Pagination Dots - REVISED CENTERING */
.swiper-pagination {
    position: absolute;    /* Keep position relative to .testimonials-slider */
    bottom: 15px;         /* Distance from the bottom edge of the padded container */
    left: 0;              /* Align container to the left edge */
    width: 100%;          /* Make pagination container span the full width */
    text-align: center;   /* Center the inline bullets within the container */
    z-index: 10;
    /* transform: translateX(-50%); */ /* REMOVE or comment out this line */
    /* width: auto; */              /* REMOVE or comment out this line */
}

/* Ensure bullets are treated as inline elements for text-align */
.swiper-pagination-bullet {
    background-color: var(--gold);
    opacity: 0.5;
    margin: 0 5px !important; /* Horizontal spacing */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    display: inline-block;    /* Make bullets behave like inline elements */
    vertical-align: middle; /* Align nicely if they happen to wrap */
}

.swiper-pagination-bullet-active {
    background-color: var(--dark-gold);
    opacity: 1;
}

/* Navigation Arrows (Keep previous positioning) */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: var(--gold);
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 10;
    --swiper-navigation-size: 22px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--dark-gold);
}

.swiper-button-prev {
    left: 5px;
}

.swiper-button-next {
    right: 5px;
}

/* Hide arrows on smaller screens if they feel too cluttered (Optional) */
@media (max-width: 576px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Hide arrows on very small screens */
    }
    /* Adjust padding if arrows are hidden */
    .testimonials-slider {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* --- Gallery Section --- */
.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--dove-grey);
    color: var(--charcoal);
    padding: 8px 18px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.5s ease;
    position: relative; /* For potential overlay later */
}
.gallery-item.hide {
    display: none; /* Simple hide/show */
    /* Or for animation: */
    /* opacity: 0;
    transform: scale(0.9);
    pointer-events: none; */
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Booking Section --- */
.booking-section {
     background: linear-gradient(to bottom, var(--ivory), var(--blush-pink));
}

#booking-form {
    max-width: 600px;
    margin: 20px auto 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--charcoal);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dove-grey);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize only */
    min-height: 100px;
}

#booking-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}


/* --- Footer --- */
footer {
    background-color: var(--dove-grey);
    color: var(--charcoal);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px; /* Give some space before footer */
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--charcoal);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
     #countdown span { min-width: 50px; }
    #countdown span span { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap; /* Allow nav items to wrap */
    }
    header nav ul li {
        margin: 5px 10px; /* Adjust spacing */
    }
    .hero-content p { font-size: 1rem; }
    #hero { height: auto; min-height: 70vh; padding-bottom: 40px; } /* Adjust hero height */
    .section-padding { padding: 40px 0; }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
     #booking-form { padding: 20px; }
     #countdown { flex-wrap: wrap; gap: 10px; }
     #countdown span { min-width: 45px; padding: 8px; }
     #countdown span span { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .btn { padding: 10px 20px; font-size: 0.8rem; }
    header nav ul li { margin: 5px; } /* Reduce nav spacing further */
    .filter-btn { padding: 6px 12px; font-size: 0.9rem;}
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    #countdown { gap: 8px; }
    #countdown span { min-width: 40px; padding: 5px;}
    #countdown span span { font-size: 1.1rem; }
    #countdown span:last-child { font-size: 0.6rem;}
}

/* --- Header --- */
header {
    background-color: rgba(255, 248, 247, 0.9); /* Or your desired background */
    padding: 15px 0;
    position: fixed; /* Essential for staying at the top and transform */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* ADD THIS TRANSITION for smooth sliding */
    transition: transform 0.4s ease-in-out;
    /* Ensure transform doesn't get overridden by other rules */
    transform: translateY(0); /* Default state - visible */
}

/* ADD THIS RULE for the hidden state */
header.header-hidden {
    transform: translateY(-100%); /* Move header up by its full height */
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}