/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-dark: #104F55;
    --primary-medium: #32746D;
    --primary-light: #9EC5AB;
    --text-dark: #1a1a1a;
    --text-light: #f8f8f8;
    --background-light: #fdfdfd;
    --background-dark: #111;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition-speed: 0.4s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
}

section 
{
    overflow-x: hidden;
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.bg-light { background-color: #f4f8f7; }
.bg-dark { background-color: var(--primary-dark); }
.bg-primary-medium { background-color: var(--primary-medium); }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #555;
}

.light-text { color: var(--text-light); }
.light-text.section-intro { color: rgba(255,255,255,0.8); }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-medium);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--primary-light);
}
.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary-medium);
}
.btn-light:hover {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.main-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 700;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}
.main-nav a {
    text-decoration: none;
    color: var(--primary-medium);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-dark);
    transition: width var(--transition-speed) ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}
.nav-toggle { display: none; } /* For mobile */

/* --- HERO SECTION --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/main-bg.webp') no-repeat center center/cover;
    animation: zoom-in-out 20s infinite;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 79, 85, 0.7), rgba(50, 116, 109, 0.5));
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
}

@keyframes zoom-in-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- PHILOSOPHY SECTION --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.philosophy-image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.philosophy-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(16, 79, 85, 0.1);
}
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.service-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- PROCESS SECTION --- */
.process-timeline {
    position: relative;
    margin-top: 50px;
}
.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.process-step:nth-child(even) {
    direction: rtl; /* Reverses the grid order */
}
.process-step:nth-child(even) .process-content {
    direction: ltr; /* Resets text direction */
}
.process-image img {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.process-content {
    position: relative;
}
.process-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-light);
    position: absolute;
    top: -50px;
    left: -20px;
    z-index: -1;
    opacity: 0.5;
}
.process-step:nth-child(even) .process-number {
    left: auto;
    right: -20px;
}
.process-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
    margin-top: 50px;
}
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}
.gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 2 / 4; grid-row: 2 / 3; }
.gallery-item:nth-child(4) { grid-column: 4 / 5; grid-row: 1 / 3; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease, filter 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* --- TESTIMONIALS SECTION --- */
#testimonials {
    position: relative;
    overflow: hidden;
    background-color: #f4f8f7;
}
.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/testi-bg.webp') no-repeat center center/cover;
    filter: blur(5px);
    z-index: 1;
}
#testimonials .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}
.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--primary-dark);
    margin-bottom: 30px;
}
.testimonial-author {
    font-style: normal;
    font-weight: 500;
    color: var(--primary-medium);
}

/* --- CTA SECTION --- */
#cta {
    background-image: linear-gradient(45deg, var(--primary-dark), var(--primary-medium));
}

/* --- WEDDINGS PAGE STYLES --- */

/* --- Page Hero --- */
#page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}
#page-hero .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: zoom-in-out 20s infinite; /* Re-using hero animation */
}
#page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 79, 85, 0.7), rgba(50, 116, 109, 0.5));
}
#page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
#page-hero .hero-title {
    font-size: 3.5rem;
}

/* --- Featured Wedding Sections --- */
.featured-wedding {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}
.wedding-image-showcase {
    position: relative;
    height: 600px;
}
.wedding-image-showcase .primary-image {
    width: 80%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.wedding-image-showcase .secondary-image {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 45%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 5px solid var(--background-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.featured-wedding.reverse-layout {
    grid-template-areas: "story image";
}
.featured-wedding.reverse-layout .wedding-story {
    grid-area: story;
}
.featured-wedding.reverse-layout .wedding-image-showcase {
    grid-area: image;
}
.featured-wedding.reverse-layout .secondary-image {
    right: auto;
    left: 0;
    bottom: -40px;
}

.wedding-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.wedding-story h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.wedding-story p {
    line-height: 1.8;
}

/* --- Portfolio Gallery Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    margin-top: 50px;
}
.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.p-item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.p-item-2 { grid-column: 2 / 4; grid-row: 1 / 3; }
.p-item-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
/* The 4th item (.p-item-4) naturally flows into the last available spot */


/* --- Details Section --- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.detail-card {
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.detail-card:hover {
    border-color: var(--primary-light);
    background-color: #f4f8f7;
}
.detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* --- Wedding CTA Section --- */
#wedding-cta {
    background: var(--primary-dark) url('images/wedding-cta.webp') no-repeat center center/cover; 
    background-blend-mode: overlay;
    position: relative;
}
#wedding-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(16, 79, 85, 0.8);
}
#wedding-cta .container {
    position: relative;
    z-index: 2;
}


/* --- RESPONSIVE ADJUSTMENTS for Weddings Page --- */
@media(max-width: 1024px) {
    .featured-wedding, .featured-wedding.reverse-layout {
        grid-template-columns: 1fr;
        grid-template-areas: unset;
        gap: 40px;
    }
    .featured-wedding .wedding-story, 
    .featured-wedding.reverse-layout .wedding-story {
        grid-area: unset;
    }
     .featured-wedding .wedding-image-showcase, 
    .featured-wedding.reverse-layout .wedding-image-showcase {
        grid-area: unset;
        order: -1; /* Make image appear first on mobile */
        height: 500px;
    }
}

@media(max-width: 768px) {
    #page-hero .hero-title { font-size: 2.8rem; margin-top: 3rem; }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .p-item-1, .p-item-2, .p-item-3, .p-item-4 {
        grid-column: auto;
        grid-row: auto;
        height: 300px;
    }
    
    .wedding-image-showcase { height: 400px; }
    .wedding-image-showcase .secondary-image {
        width: 40%;
        bottom: -20px;
    }
}

/* --- VENUES PAGE STYLES --- */

/* --- Venues Hero --- */
.venues-hero .hero-bg-image {
}

/* --- Venue Philosophy --- */
/* --- DYNAMIC VENUE PHILOSOPHY SECTION (NEW GEOMETRY) --- */

.philosophy-content-split-dynamic {
    position: relative;
    display: grid;
    /* Using a 12-column grid for flexible, overlapping positioning */
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    min-height: 550px; /* Provides space for positioning */
}

.philosophy-text-block {
    /* Place the text in the first 7 columns */
    grid-column: 1 / 8;
    grid-row: 1 / 2; /* Ensure it stays in the first row */
    position: relative; /* Needed for the pseudo-element and z-index */
    z-index: 2; /* Ensure text block is on top of the image */
    padding: 40px;
}

/* This is the decorative background panel behind the text */
.philosophy-text-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(158, 197, 171, 0.2); /* Using --primary-light with transparency */
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    z-index: -1; /* Place it behind the text content but in front of the image cluster */
}

.philosophy-image-cluster {
    /* Place the image cluster from column 7 to the end, creating the overlap */
    grid-column: 7 / 13;
    grid-row: 1 / 2;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.philosophy-image-cluster .image-large {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 90%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.philosophy-image-cluster .image-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    height: 55%;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 6px solid var(--background-light); /* Creates a nice "pop" effect */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- Responsive Adjustments for New Geometry --- */

/* For Tablet screens */
@media (max-width: 1024px) {
    .philosophy-text-block {
        grid-column: 1 / 9;
    }
    .philosophy-image-cluster {
        grid-column: 6 / 13;
    }
}

/* For Mobile screens */
@media (max-width: 768px) {
    .philosophy-content-split-dynamic {
        /* Stack the elements instead of using the complex grid */
        display: flex;
        flex-direction: column;
        gap: 40px;
        min-height: auto;
    }

    .philosophy-image-cluster {
        /* Reset grid positioning */
        grid-column: auto;
        grid-row: auto;
        
        /* Make it the first element visually */
        order: -1;
        
        /* Use a simple relative layout for the two images */
        position: relative;
        height: 500px; /* Give it a fixed height */
    }

    .philosophy-image-cluster .image-large {
        /* Position images within the new container size */
        position: absolute;
        width: 75%;
        height: 85%;
    }

    .philosophy-image-cluster .image-small {
        width: 50%;
        height: 60%;
    }

    .philosophy-text-block {
        /* Reset grid positioning */
        grid-column: auto;
        grid-row: auto;
        padding: 30px;
    }
}

/* --- Venue Explorer --- */
.venue-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.venue-type-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    border: 1px solid #e8e8e8;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.venue-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(16, 79, 85, 0.08);
}
.venue-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.venue-type-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Featured Venue Spotlight --- */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    color: var(--text-light);
}
.parallax-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(16, 79, 85, 0.75);
}
.featured-venue-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    padding: 50px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}
.venue-spotlight-tag {
    display: inline-block;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.featured-venue-content .section-title {
    margin-bottom: 25px;
}
.venue-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    font-weight: 500;
}

/* --- Venue Gallery Carousel --- */
#venue-gallery .container {
    max-width: 100%;
    padding: 0;
}
#venue-gallery .container .text-center {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.venue-carousel-wrapper {
    margin-top: 50px;
}
.venue-carousel {
    display: flex;
    gap: 20px;
    padding: 0 5vw 20px 5vw; 
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-medium) #e0e0e0;
}
.venue-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.carousel-item {
    flex: 0 0 30%; /* Each item takes 30% of the viewport width */
    min-width: 350px;
    height: 500px;
    scroll-snap-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.carousel-item:hover img {
    transform: scale(1.05);
}

/* --- Scouting Process Section --- */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.process-step-card {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary-light);
}
.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #e0e0e0;
    z-index: 1;
}
.process-step-card h3 {
    position: relative;
    z-index: 2;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.process-step-card p {
    position: relative;
    z-index: 2;
}

/* --- Responsive for Venues Page --- */
@media(max-width: 1024px) {
    .philosophy-content-split {
        grid-template-columns: 1fr;
    }
    .carousel-item {
        flex-basis: 40%;
    }
}

@media(max-width: 768px) {
    .venue-features {
        flex-direction: column;
        gap: 15px;
    }
    .carousel-item {
        flex-basis: 80%;
        min-width: unset;
    }
    .venue-carousel {
        padding: 0 10vw;
    }
}

/* --- SERVICES PAGE STYLES --- */

/* --- Services Hero --- */
.services-hero .hero-bg-image {
}

/* --- Core Services (Accordion) --- */
.core-services-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
/* .services-accordion .section-title {
    margin-bottom: 30px;
}
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}
.accordion-header {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.accordion-header::-webkit-details-marker { display: none; } 
.accordion-header::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-medium);
    transition: transform 0.3s ease;
} */
/* .accordion-item[open] .accordion-header::after {
    transform: rotate(45deg);
}
.accordion-item[open] .accordion-header {
    color: var(--primary-medium);
} */
/* .accordion-content {
    padding-top: 20px;
    line-height: 1.8; 

}
*/
.services-image img {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

/* --- What We Handle Section --- */
.handle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.handle-item {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
}
.handle-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    border-radius: 50%;
}
.handle-item h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

/* --- A La Carte Services --- */
.a-la-carte-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.a-la-carte-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.a-la-carte-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.a-la-carte-image img:first-child {
    margin-top: -30px;
}
.a-la-carte-image img:last-child {
    margin-top: 30px;
}
.a-la-carte-list {
    list-style: none;
    margin-top: 20px;
}
.a-la-carte-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.a-la-carte-list li::before {
    content: '✔';
    color: var(--primary-medium);
    position: absolute;
    left: 0;
}

/* --- Planning Journey (Timeline) --- */
.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 20px 0;
}
.journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-light);
}
.journey-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.journey-step::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--background-light);
    border: 3px solid var(--primary-medium);
}
.journey-step:nth-child(odd) {
    left: 0;
    text-align: right;
}
.journey-step:nth-child(even) {
    left: 50%;
}
.journey-step:nth-child(odd)::after {
    right: -8px;
}
.journey-step:nth-child(even)::after {
    left: -8px;
}
.journey-step h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

/* --- Service Comparison Table --- */
.table-wrapper {
    overflow-x: auto;
    margin-top: 50px;
}
.comparison-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    text-align: center;
}
.comparison-table th, .comparison-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #e0e0e0;
}
.comparison-table th {
    background-color: #f4f8f7;
    font-family: var(--font-heading);
    color: var(--primary-dark);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table td {
    color: #555;
}
.comparison-table td:not(:first-child) {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-medium);
}
.comparison-table td:not(:first-child) {
    font-family: sans-serif;
}
.comparison-table .icon-cross {
    color: #ccc;
}


/* --- RESPONSIVE for Services Page --- */
@media (max-width: 1024px) {
    .core-services-layout, .a-la-carte-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-image { order: -1; }
    .a-la-carte-image {
        grid-template-columns: 1fr;
    }
    .a-la-carte-image img:first-child, .a-la-carte-image img:last-child {
        margin-top: 0;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .journey-timeline::before {
        left: 8px;
    }
    .journey-step {
        width: 100%;
        padding-left: 50px;
        left: 0 !important;
        text-align: left !important;
    }
    .journey-step::after {
        left: 0 !important;
    }
}



.vetting-layout-dynamic {
    position: relative; /* Establishes the positioning context for children and pseudo-elements */
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10-column grid for flexible placement */
    align-items: center;
    min-height: 600px;
}

/* This ::before pseudo-element creates the decorative background frame */
.vetting-layout-dynamic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 90%; 
    background-color: #f4f8f7; /* Uses the established light background color */
    border-radius: var(--border-radius);
    z-index: 5; /* Sits below the text and image */
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.vetting-text-wrapper {
    /* Position the text block on the left side of the grid */
    grid-column: 2 / 7;
    grid-row: 1 / 2;
    position: relative; /* To ensure it sits on top of the frame */
    z-index: 6;
    padding: 40px; /* Give the text some breathing room */
}

.vetting-image-wrapper {
    /* Position the image block on the right, overlapping the text's grid space */
    grid-column: 6 / 11;
    grid-row: 1 / 2;
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures the image respects the border-radius */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* This makes the image "break out" of the frame for a dynamic effect */
    margin-top: -40px;
}

.vetting-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Responsive Adjustments for the New Geometry --- */

/* For tablets */
@media (max-width: 1024px) {
    .vetting-layout-dynamic {
        min-height: 500px;
    }
    .vetting-text-wrapper {
        grid-column: 1 / 7;
        padding: 30px;
    }
    .vetting-image-wrapper {
        grid-column: 6 / 11;
    }
}

/* For mobile */
@media (max-width: 768px) {
    .vetting-layout-dynamic {
        /* Switch to a simple vertical layout */
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }

    /* Hide the decorative frame on mobile for a cleaner look */
    .vetting-layout-dynamic::before {
        display: none;
    }

    .vetting-image-wrapper {
        /* Reset grid positioning and margins */
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        width: 100%; /* Take full width */
    }

    .vetting-text-wrapper {
        /* Reset grid positioning and add a background for separation */
        grid-column: auto;
        grid-row: auto;
        background-color: #f4f8f7; /* Use the frame's color as a background */
        margin: 0;
        padding: 40px 30px; /* Adjust padding for mobile */
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

/* --- Partner Categories (Tabs) --- */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tab-button {
    padding: 12px 25px;
    border: 1px solid var(--primary-light);
    background-color: transparent;
    color: var(--primary-medium);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tab-button:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}
.tab-button.active {
    background-color: var(--primary-medium);
    color: var(--text-light);
    border-color: var(--primary-medium);
}
.tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
}
.tab-panel.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}
.tab-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.tab-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Collaboration Spotlight --- */
.collaboration-layout {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.collaboration-layout img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.collaboration-layout .section-title {
    margin-bottom: 15px;
}

/* --- Partnership Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-medium);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-light);
}
.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}
.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Partner Testimonials --- */
.partner-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.p-testimonial-card {
    background: #f4f8f7;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}
.p-testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.p-testimonial-card blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}
.p-testimonial-card cite {
    font-weight: 500;
    font-style: normal;
    color: var(--primary-dark);
}

/* --- RESPONSIVE for Partners Page --- */
@media (max-width: 1024px) {
    .vetting-layout {
        grid-template-columns: 1fr;
    }
    .vetting-image { order: -1; }
    .partner-testimonial-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .tab-panel {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .tab-panel img {
        margin-bottom: 20px;
    }
}

/* --- PRICING PAGE STYLES --- */
/* --- Pricing Philosophy --- */
.pricing-philosophy-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.philosophy-image-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* --- Core Packages --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}
.pricing-card {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(16, 79, 85, 0.1);
}
.pricing-card.popular {
    position: relative;
    border-color: var(--primary-medium);
    border-width: 2px;
    transform: scale(1.05);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-medium);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}
.package-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
}
.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 10px 0;
}
.package-for {
    color: #666;
    margin-bottom: 30px;
    min-height: 60px;
}
.package-features {
    list-style: none;
    margin-bottom: 30px;
}
.package-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}
.package-features li::before {
    content: '✓';
    color: var(--primary-medium);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Investment in Details Gallery --- */
.details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 400px;
    gap: 20px;
    margin-top: 50px;
}
.details-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.details-gallery-grid img:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}
/* You need to add more images to create a more complex grid, e.g.:
.details-gallery-grid img:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
.details-gallery-grid img:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 3; }
Adjust grid-template-rows accordingly */


/* --- Cost Factors --- */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.factor-card {
    text-align: center;
    padding: 30px;
}
.factor-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}
.factor-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* --- FAQ --- */
.faq-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}
.faq-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* --- Responsive for Pricing Page --- */
@media (max-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-grid {
        align-items: stretch;
    }
    .pricing-philosophy-layout, .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .philosophy-image-content { order: -1; }
    .details-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .details-gallery-grid img:nth-child(2) {
        grid-column: auto;
    }
}
@media (max-width: 768px) {
    .package-price { font-size: 2rem; }
    .details-gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* --- FOOTER --- */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-column h3, .footer-column h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--primary-light);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-speed) ease;
}
.footer-column a:hover {
    color: var(--text-light);
}
.footer-column p {
    color: rgba(255,255,255,0.7);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* --- ANIMATIONS ON SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }
.zoom-in { transform: scale(0.9); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .philosophy-grid, .process-step, .process-step:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .process-step:nth-child(even) .process-content { direction: ltr; }
    .process-image { margin-bottom: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section-padding { padding: 80px 0; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 4rem;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; gap: 30px; text-align: center; }
    .main-nav a { font-size: 1.2rem; }

    .nav-toggle {
        display: block;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--primary-dark);
        position: relative;
        transition: background-color 0.3s ease;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--primary-dark);
        transition: transform 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .nav-toggle.active .hamburger { background-color: transparent; }
    .nav-toggle.active .hamburger::before { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        height: 300px;
    }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}


/* --- LEGAL & POLICY PAGES --- */

.legal-hero {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    margin-top: 80px; /* Adjust based on your header height */
}

.legal-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.legal-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content li {
    line-height: 1.8;
    color: #333;
}

.legal-content ul {
    list-style-position: outside;
    padding-left: 20px;
    margin: 20px 0;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary-medium);
    text-decoration: underline;
}

.legal-content .btn {
    margin-top: 20px;
}

/* Responsive adjustment for the hero */
@media (max-width: 768px) {
    .legal-hero {
        margin-top: 70px; /* Adjust for smaller header */
        padding: 60px 0;
    }
    .legal-hero h1 {
        font-size: 2.5rem;
    }
}

/* --- THANK YOU PAGE STYLES --- */

.thank-you-page {
    background-color: #f4f8f7; /* Using our established light background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: var(--font-body);
}

.thank-you-main {
    width: 100%;
}

.thank-you-box {
    background-color: #fff;
    padding: 50px 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-box h1 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.thank-you-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.thank-you-box .btn {
    margin-top: 10px;
}

/* --- SVG Checkmark Animation --- */
.checkmark-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.checkmark-svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--primary-medium); /* On-brand color */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--primary-medium);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--primary-light);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px var(--primary-light);
    }
}

/* Responsive for Thank You Page */
@media (max-width: 768px) {
    .thank-you-box {
        padding: 40px 30px;
    }
    .thank-you-box h1 {
        font-size: 1.8rem;
    }
}


/* --- DETAILS SLIDER STYLES --- */

.details-slider-container {
    position: relative;
    max-width: 800px; /* Control the max width of the slider */
    margin: 50px auto 0;
}

.details-slider-wrapper {
    overflow: hidden; /* This is crucial for hiding the other slides */
    border-radius: var(--border-radius);
}

.details-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
}

.details-slider-slide {
    flex: 0 0 100%; /* Each slide takes up 100% of the wrapper's width */
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px; /* Adds a little space if needed */
}

/* We reuse the .detail-card styles from the main stylesheet, so no need to restyle it. */
/* The styles below are for the navigation elements. */

/* --- Slider Navigation Arrows --- */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.slider-nav:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-nav svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-medium);
}

.slider-prev {
    left: -22px;
}

.slider-next {
    right: -22px;
}

.slider-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

/* --- Slider Pagination Dots --- */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-medium);
    transform: scale(1.2);
}

/* --- Responsive Adjustments for Slider --- */
@media (max-width: 900px) {
    .slider-nav {
        background-color: rgba(255, 255, 255, 0.9);
    }
    .slider-prev {
        left: 10px;
    }
    .slider-next {
        right: 10px;
    }
}

/* --- TABS COMPONENT STYLES --- */

.process-tabs-container {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Side-by-side layout: 1 part for nav, 3 for content */
    gap: 50px;
    margin-top: 50px;
    min-height: 400px; /* Ensures consistent height */
}

/* --- Tab Navigation/List --- */
.process-tab-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
}

.process-tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 15px;
    border: none;
    background-color: transparent;
    border-left: 3px solid transparent; /* Inactive state border */
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.process-tab-button:hover {
    background-color: rgba(158, 197, 171, 0.2); /* Light transparent background on hover */
}

.process-tab-button.active {
    border-left-color: var(--primary-dark);
    color: var(--primary-dark);
    background-color: #fff;
}

.tab-step-number {
    font-size: 2rem;
    color: var(--primary-light);
    font-weight: 700;
}

.process-tab-button.active .tab-step-number {
    color: var(--primary-medium);
}

/* --- Tab Content Panels --- */
.process-tab-panels {
    position: relative;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.process-tab-panel {
    /* Hide all panels by default */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Fade Transition */
    transition: opacity 0.4s ease, visibility 0.4s ease;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 40px;
}

.process-tab-panel.active {
    /* Show the active panel */
    opacity: 1;
    visibility: visible;
    position: relative; /* Take up space in the document flow */
}

.panel-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.panel-content p {
    line-height: 1.8;
}

.panel-image img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* --- Responsive Adjustments for Tabs --- */
@media (max-width: 900px) {
    .process-tabs-container {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 30px;
    }
    .process-tab-list {
        flex-direction: row; /* Horizontal buttons on mobile */
        justify-content: space-between;
        border-bottom: 1px solid #e0e0e0;
    }
    .process-tab-button {
        flex-direction: column;
        border-left: none;
        border-bottom: 3px solid transparent; /* Use bottom border for active state */
        font-size: 1rem;
        padding: 10px 5px;
    }
    .process-tab-button.active {
        border-bottom-color: var(--primary-dark);
        background-color: transparent;
    }
}

@media (max-width: 768px) {
    .process-tab-panel {
        grid-template-columns: 1fr; /* Stack content inside panels on smaller screens */
    }
    .panel-image {
        order: -1; /* Image appears on top */
        margin-bottom: 20px;
    }
}


.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s ease;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header:hover { color: var(--primary-medium); }

.accordion-header::after {
    content: '+';
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-medium);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- State changes are now controlled by a class, not the [open] attribute --- */
.accordion-item.is-open > .accordion-header {
    color: var(--primary-medium);
}

.accordion-item.is-open > .accordion-header::after {
    transform: rotate(45deg);
}

/* --- The Animation Styles --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content > p {
    padding-bottom: 25px;
    line-height: 1.8;
}

#services-cta
{
    background-color: #104F55;
}

/* --- VERTICAL SLIDER STYLES --- */

.v-slider-container {
    position: relative;
    max-width: 800px; /* Constrain the width for better readability */
    margin: 50px auto 0;
    padding: 0 60px; /* Make space for side navigation arrows */
}

.v-slider-wrapper {
    height: 380px; /* The fixed height of our viewport */
    overflow: hidden; /* This is crucial - it hides the other slides */
    background-color: #f4f8f7; /* Match the original card background */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.v-slider-track {
    /* A smooth transition for the vertical movement */
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.v-slider-slide {
    width: 100%;
    height: 380px; /* Each slide must match the wrapper's height */
    box-sizing: border-box;
    
    /* Center the testimonial card within the slide area */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px; /* Give the card some breathing room */
}

/* We can reuse the original .p-testimonial-card styles. */
/* Just ensure they look good inside the slider. */
.p-testimonial-card {
    background: transparent; /* Remove background as the wrapper has it */
    padding: 0;
    width: 100%;
}

/* --- Navigation & Pagination --- */
.v-slider-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid var(--primary-light);
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.v-slider-nav:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-medium);
}
.v-slider-nav svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-medium);
}

.v-slider-prev { top: -25px; } /* Position halfway outside the top */
.v-slider-next { bottom: -25px; } /* Position halfway outside the bottom */

.v-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.v-slider-pagination {
    position: absolute;
    bottom: 20px;
    right: -40px;
    font-family: var(--font-heading);
    color: var(--primary-light);
    font-size: 1.5rem;
}

.v-slider-pagination .current-slide-num {
    color: var(--primary-dark);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .v-slider-container {
        padding: 60px 0; /* Move padding to top/bottom for nav arrows */
    }
    .v-slider-nav {
        left: auto;
        transform: none;
    }
    .v-slider-prev { top: 0; left: 0; }
    .v-slider-next { top: 0; right: 0; }
    .v-slider-pagination {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

@media (max-width: 768px) {
    .v-slider-wrapper, .v-slider-slide {
        height: 420px; /* Allow more height on mobile for text */
    }
    .v-slider-slide {
        padding: 20px;
    }
}


/* --- REDESIGNED TESTIMONIALS PAGE GEOMETRY --- */

/* --- 1. Featured Story Sections (New) --- */
.testimonial-story {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 30px;
}
.testimonial-story__image-wrapper {
    grid-column: 1 / 6; /* Takes up first 5 columns */
    position: relative;
    padding-top: 20px;
}
.testimonial-story__image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    z-index: 1;
}
.testimonial-story__image-wrapper img {
    position: relative;
    z-index: 2;
    display: block;
    width: 90%;
    margin-left: auto; /* Aligns to the right */
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.testimonial-story__content-wrapper {
    grid-column: 6 / 13; /* Overlaps and takes remaining columns */
    background: #fff;
    padding: 40px 40px 40px 60px; /* Extra left padding for overlap space */
    border-radius: var(--border-radius);
    margin-left: -10%; /* Pulls the content block over the image */
    position: relative;
    z-index: 3;
}
/* Reversed Layout */
.testimonial-story--reverse .testimonial-story__image-wrapper { grid-column: 8 / 13; }
.testimonial-story--reverse .testimonial-story__image-wrapper img { margin-left: 0; }
.testimonial-story--reverse .testimonial-story__image-frame { left: auto; right: 0; }
.testimonial-story--reverse .testimonial-story__content-wrapper { 
    grid-column: 1 / 8;
    margin-left: 0;
    margin-right: -10%;
    padding: 40px 60px 40px 40px;
}

/* --- 2. Impact by the Numbers (New) --- */
.impact-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    background: #f4f8f7;
    padding: 60px;
    border-radius: var(--border-radius);
}
.impact-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.impact-card { padding: 0; border: none; } /* Resetting old styles */
.impact-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-medium);
    line-height: 1;
}
.impact-text { font-size: 1.1rem; color: #555; margin-top: 10px; }

/* --- 3. Video Testimonials (New) --- */
.video-showcase {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 450px;
    gap: 30px;
}
.video-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    color: var(--text-light);
}
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .video-thumbnail { transform: scale(1.05); }
.video-card__overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    z-index: 1;
}
.video-card__content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}
.play-button { /* Reset and style */
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 60px; height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.play-button::after {
    content: ''; position: absolute; top: 50%; left: 53%;
    transform: translate(-50%, -50%); width: 0; height: 0;
    border-top: 10px solid transparent; border-bottom: 10px solid transparent;
    border-left: 16px solid var(--primary-dark);
}
.video-card:hover .play-button { transform: scale(1.1); }
.video-card h3 { margin: 0; font-size: 1.4rem; }
.video-card.small .video-card__content { flex-direction: column; text-align: center; justify-content: center; }

/* --- 4. Gallery of Smiles (New) --- */
.smiles-showcase {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    align-items: center;
    gap: 50px;
}
.smiles-showcase__text { text-align: left; }
.smiles-showcase__grid {
    display: grid;
    height: 500px;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.smile-item {
    border-radius: var(--border-radius);
    overflow: hidden;
}
.smile-item img { width: 100%; height: 100%; object-fit: cover; }
.smiles-showcase__grid .smile-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.smiles-showcase__grid .smile-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1 / 2; }
.smiles-showcase__grid .smile-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.smiles-showcase__grid .smile-item:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }


/* --- RESPONSIVE ADJUSTMENTS FOR REDESIGNED SECTIONS --- */
@media (max-width: 1024px) {
    .testimonial-story, .testimonial-story--reverse {
        grid-template-columns: 1fr;
    }
    .testimonial-story__content-wrapper, .testimonial-story--reverse .testimonial-story__content-wrapper {
        grid-column: auto;
        margin: 0;
        padding: 40px;
    }
    .testimonial-story__image-wrapper, .testimonial-story--reverse .testimonial-story__image-wrapper {
        grid-column: auto;
        grid-row: 1; /* Image always on top */
        max-width: 500px;
        margin: 0 auto;
    }
    .testimonial-story--reverse .testimonial-story__content-wrapper { margin-top: -50px; }
    .testimonial-story:not(.testimonial-story--reverse) .testimonial-story__content-wrapper { margin-top: -50px; }

    .impact-showcase { grid-template-columns: 1fr; text-align: center; }
    .video-showcase { grid-template-columns: 1fr; grid-template-rows: 400px 300px; }
    .smiles-showcase { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .impact-showcase__grid { grid-template-columns: 1fr; gap: 40px; }
    .smiles-showcase__grid { height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
    .smiles-showcase__grid .smile-item { height: 300px; }
    .smiles-showcase__grid .smile-item:nth-child(1), .smile-item:nth-child(2), .smile-item:nth-child(3), .smile-item:nth-child(4) {
        grid-column: auto; grid-row: auto;
    }
}

#pricing-cta
{
    background-color: #32746D;
}

/* --- ICON TABS COMPONENT STYLES --- */

.icon-tabs-container {
    max-width: 900px;
    margin: 50px auto 0;
}

/* --- Tab Navigation (The Icons) --- */
.icon-tab-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.icon-tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: none;
    background-color: transparent;
    border-radius: var(--border-radius);
    width: 150px; /* Give buttons a consistent width */
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-tab-button::after {
    content: '';
    position: absolute;
    bottom: -21px; /* Aligns with the border-bottom of the list */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    transform: scaleX(0); /* Hide by default */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.icon-tab-button img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.icon-tab-button:hover img,
.icon-tab-button.active img {
    transform: scale(1.1);
}

.icon-tab-button.active {
    color: var(--primary-dark);
}

.icon-tab-button.active::after {
    transform: scaleX(1); /* Reveal the active indicator bar */
}


/* --- Tab Content Panels --- */
.icon-tab-panels {
    position: relative;
    min-height: 250px; /* Give the container a consistent minimum height */
}

.icon-tab-panel {
    /* Hide all panels by default */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    /* Fade Transition */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.icon-tab-panel.active {
    /* Show the active panel */
    opacity: 1;
    visibility: visible;
    position: relative; /* Take up space in the document flow */
}

.icon-tab-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
}

.icon-tab-panel p {
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .icon-tab-list {
        gap: 10px;
    }
    .icon-tab-button {
        width: 120px;
        padding: 15px 10px;
    }
    .icon-tab-button img {
        width: 50px;
        height: 50px;
    }
    .icon-tab-button span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .icon-tab-list {
        flex-direction: column;
        border-bottom: none;
    }
    .icon-tab-button {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    .icon-tab-button::after {
        /* Use a side-border indicator on very small screens */
        left: -1px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: 100%;
        transform: scaleY(0);
    }
    .icon-tab-button.active::after {
        transform: scaleY(1);
    }
}