/* --- Fonts & Base Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* --- CSS Variables for Easy Customization --- */
:root {
    --primary-color: #d8969f;
    --secondary-color: #c07d85;
    --text-color: #4a4a4a;
    --heading-color: #333333;
    --background-light: #fcf8f5;
    --background-dark: #f8f8f8;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--heading-color);
    letter-spacing: 1px;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2em;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- Main Header --- */
.main-header {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 10px 0;
    transition: all 0.4s ease-in-out;
}

.logo-and-slogan-container {
    margin-bottom: 15px;
}

.brand-logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slogan {
    font-size: 1em;
    font-weight: 300;
    color: #555;
    margin: 0;
    padding: 0 10px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

.main-nav {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 300;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Mobile Navigation & Sidebar --- */
.nav-toggle {
    display: block;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 200;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.nav-toggle .bar:nth-child(1) { top: calc(50% - 6px); }
.nav-toggle .bar:nth-child(3) { top: calc(50% + 6px); }

.nav-toggle.open .bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); top: 50%; }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); top: 50%; }

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 150;
    transition: right 0.4s ease-in-out;
    padding-top: 80px;
}

.sidebar.open {
    right: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sidebar li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
    background-color: #f8f8f8;
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 0;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    overflow: hidden;
    background: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 15px;
    max-width: 800px;
    animation: bounce 2s infinite ease-in-out;
}

.hero-content h2 {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: 10px;
    color: #222;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1em;
    max-width: 700px;
    margin: 0 auto 20px auto;
    color: #444;
}

.call-to-action {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out, box-shadow 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.call-to-action:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Product Info Section --- */
#product-info {
    padding: 60px 0;
    background-color: var(--background-dark);
    text-align: center;
    background-image: linear-gradient(to bottom, #f8f8f8, #eef0f2);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.info-card h3 {
    font-size: 1.8em;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-card p, .info-card li {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.benefit-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.benefit-list li::before {
    content: '✅';
    margin-right: 10px;
}

.warning {
    color: #e57373;
    font-style: italic;
    font-weight: 500;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* --- Products Section --- */
#products {
    padding: 60px 0;
    text-align: center;
    background-color: #fdf6f3;
}

.product-grid {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.product-card {
    background-color: var(--white);
    padding: 40px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.product-card img {
    width: 80%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.product-card p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    max-width: 500px;
}

.product-card .price {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0 20px;
    letter-spacing: 1px;
}

.product-card .whatsapp-button {
    padding: 15px 30px;
    font-size: 1em;
}

/* --- Before & After Section --- */
#before-after {
    padding: 60px 0;
    text-align: center;
    background-color: #fefdfb;
}

.intro-text {
    font-size: 1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.before-after-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.before-after-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after-pair:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    overflow: hidden;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.image-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(216, 150, 159, 0.9);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* --- Testimonials Section --- */
#testimonials {
    text-align: center;
    padding: 60px 0;
    background-color: #fcebeb;
    border-top: 1px solid #f0e0e0;
    border-bottom: 1px solid #f0e0e0;
    position: relative;
    z-index: 1;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.client-testimony {
    position: relative;
    height: 300px; /* Increased height to accommodate the long text */
    max-width: 700px; /* Increased max-width for better readability */
    width: 100%;
    padding: 25px;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-quote {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
}

.client-quote.active {
    opacity: 1;
}

.client-testimony h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* --- Our Story Section --- */
#our-story {
    padding: 60px 0;
    background-color: var(--white);
}

.owner-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}

.owner-photo {
    width: 280px;
    height: 320px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.bio-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-content p {
    margin-bottom: 0;
    text-align: left;
}

.bio-content .author {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    text-align: right;
    font-style: italic;
}

/* --- FAQ Section --- */
#faq {
    background-color: #fcebeb;
    padding: 60px 0;
    background-image: url('images/image_7cddb8.png');
    background-repeat: repeat;
    background-size: 40px 40px;
    position: relative;
    z-index: 1;
}

#faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid #f0d0d0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px var(--shadow-medium);
    transform: translateY(-3px);
}

details {
    padding: 15px;
}

summary {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

summary::-webkit-details-marker,
summary::marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

details p {
    font-size: 1em;
    line-height: 1.6;
    margin-top: 10px;
    color: #555;
    padding-left: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* --- Contact & Footer --- */
#contact {
    padding: 60px 0;
    background-color: var(--background-dark);
}

#contact .intro-text {
    font-size: 1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.contact-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
}

.call-to-action-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.whatsapp-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    color: #888;
}

.social-links a {
    color: #888;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.social-links .fab {
    font-size: 1.8em;
}

/* --- Banking Details Section (Modal-like pop-up) --- */
.banking-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease-in-out;
}

.banking-section.hidden {
    display: none;
    opacity: 0;
}

.banking-image-container {
    max-width: 90%;
    max-height: 90%;
    padding: 15px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-medium);
    cursor: pointer;
}

.banking-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.banking-note {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
}

/* --- Animation CSS (for on-scroll reveals) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Ons Dag se Program Specific Styles --- */
.wedding-program-section {
    background-color: var(--background-light);
    background-image: none; /* Remove background pattern if a new background is used */
    padding: 60px 0;
    text-align: center;
}

.program-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.program-subheading {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 40px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.program-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.program-card-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.program-card-event {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
}

/* --- Desktop-Specific Adjustments (min-width: 769px) --- */
@media (min-width: 769px) {
    .container {
        padding: 0 50px;
    }
    
    section {
        padding: 120px 0;
    }

    .section-title {
        font-size: 3em;
        margin-bottom: 60px;
    }

    .brand-logo {
        width: 200px;
    }

    .slogan {
        font-size: 1.8em;
    }

    /* Hide the hamburger menu on desktop */
    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        border-top: 1px solid #f0f0f0;
        padding-top: 10px;
    }
    .main-nav ul {
        gap: 30px;
        display: flex;
    }
    
    .hero-section {
        height: 70vh;
    }

    .hero-content h2 {
        font-size: 3.8em;
    }
    
    .hero-content p {
        font-size: 1.3em;
    }
    
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        display: grid;
        gap: 30px;
    }

    .info-card h3 {
        min-height: 60px;
    }
    
    .owner-bio {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 50px;
    }

    .owner-photo {
        min-width: 350px;
        height: 400px;
    }
    
    .bio-content {
        flex-direction: column;
        flex: 1;
    }

    .bio-content .author {
        text-align: right;
    }
    
    .testimonial-grid {
        gap: 50px;
        flex-direction: row;
    }
    
    .before-after-grid {
    /* This gap controls the space between pairs (the top pair and the bottom pair) */
    gap: 40px; 
}

.before-after-pair {
    flex-direction: row;
    width: 100%;
    max-width: 800px;
    /* 👇 ADDED: Gap between the 'before' image-wrapper and the 'after' image-wrapper */
    gap: 20px; 
    /* The .before-after-pair container needs to be display: flex or display: grid 
       for 'gap' to work. Ensure this is defined elsewhere in your code. */
}

.before-after-pair .image-wrapper {
    /* Each image wrapper now only needs to fill the remaining space */
    width: calc(50% - 10px); /* Adjusting width to account for the 20px gap */
    padding-bottom: 0;
    height: 450px; 
}

.before-image, .after-image {
    height: 100%;
    /* Added object-fit for better presentation as images are constrained */
    object-fit: cover; 
}
    .product-grid {
        flex-direction: row;
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .product-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 50px;
        gap: 50px;
        width: auto;
    }

    .product-card img {
        width: 40%;
        max-width: 350px;
        margin: 0;
    }

    .product-content {
        align-items: flex-start;
    }

    .product-card h4,
    .product-card p,
    .product-card .price {
        text-align: left;
        width: 100%;
    }

    .contact-card {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .contact-item i {
        margin-right: 15px;
    }

    .call-to-action-wrapper {
        width: 100%;
        text-align: center;
        margin-top: 40px;
    }

    .contact-item p {
        margin: 0;
    }
}