/* --- Base Styles --- */
:root {
    /* Colors derived from the attached image */
    --primary-color: #3785E0;     /* A slightly deeper blue from the phone */
    --secondary-color: #1F3F6D;   /* Darker blue for headings */
    --accent-green: #5FC6A4;      /* Green from the hammock/money bags */
    --accent-yellow: #FECD31;     /* Yellow from the coins/dollar signs */
    --background-light: #E0F2F7;  /* Light blue background */
    --background-white: #ffffff;
    --text-color: #4A4A4A;        /* Dark grey for general text */
    --light-text-color: #6A6A6A;  /* Lighter grey for notes/subtitles */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light); /* Light blue background */
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padded {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 1.1em;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.5;
    color: var(--light-text-color);
}

.text-white {
    color: var(--background-white);
}

.bg-light-gray { /* Renamed for consistency with new background-light */
    background-color: var(--background-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* --- Header & Navigation --- */
header {
    background: var(--background-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
}

/* UPDATED: Increased logo height */
.logo-image {
    height: 100px;
    width: auto;
}

.logo-text {
    display: none; /* Hide the text as per instructions */
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li {
    margin-left: 25px;
    white-space: nowrap;
}

.nav-links a:not(.cta-button) {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color) !important;
    color: var(--background-white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color) !important; /* Slightly darker blue on hover */
    transform: translateY(-2px);
}

/* New hamburger menu styles (initially hidden) */
#menu-toggle {
    display: none;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
}

.hamburger-icon .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation to 'X' */
#menu-toggle:checked ~ .hamburger-icon .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .hamburger-icon .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked ~ .hamburger-icon .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--background-white);
    position: relative;
    
    /* Background gradient matching image light/dark blues */
    background: linear-gradient(135deg, rgba(55, 133, 224, 0.85), rgba(31, 63, 109, 0.85)), 
                url('/images/hero.jpg') no-repeat center center/cover; /* Placeholder for depth */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-content u {
    text-decoration-color: var(--accent-yellow); /* Yellow underline for emphasis */
}

/* --- Two-Column Layout --- */
.two-column-layout .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.column-text {
    flex: 1;
}

/* UPDATED: Increased min-height for larger images */
.column-image {
    flex: 1;
    min-height: 500px; /* Increased from 400px */
    display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%;
}

.reverse-columns {
    flex-direction: row-reverse;
}

/* --- How It Works Section --- */
.step-with-image {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px; 
    justify-content: center;
    align-items: center; 
    width: 100%;
}

.step-with-image .step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.step-with-image .note {
    font-style: italic;
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 15px;
}

/* Set the default flex direction for proper layout */
.step-with-image {
    flex-direction: row;
}

.step-with-image.reverse-order {
    flex-direction: row-reverse;
}

/* UPDATED: Increased min-height for larger images in steps and removed extra space */
.step-image {
    flex: 1;
    height: 400px; /* Changed from min-height to fixed height for consistent spacing */
    background-image: url('/images/steps-sprite.png'); /* The sprite image you provided */
    background-repeat: no-repeat;
    background-size: 200% 200%; /* The image is divided into 2x2 grid logically */
    border-radius: 8px; /* Soften edges */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    vertical-align: middle;
    align-content: center;
}

.how-it-works-image-1 { /* Top-left quadrant */
    background-position: 0% 0%; 
        display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%;
}

.how-it-works-image-2 { /* Top-right quadrant */
    background-position: 100% 0%;
        display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%;
}

.how-it-works-image-3 { /* Bottom-left quadrant */
    background-position: 0% 100%;
        display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%;
}

.how-it-works-image-4 { /* Bottom-right quadrant */
    background-position: 100% 100%;
        display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%;
}

/* --- Feature Grid (Our Advantage) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* UPDATED: Increased size of small images */
.small-image {
    width: 80px; /* Increased from 60px */
    height: 80px; /* Increased from 60px */
    border-radius: 50%;
    margin: 0 auto 15px;
    background-color: var(--primary-color); /* Use a primary color for small image placeholders */
}

/* NEW: Styles for the large feature images */
.large-feature-image {
    width: 100%; /* Make the image container span the full width of the card */
    height: 200px; /* Fixed height for consistency, adjust as needed */
    background-color: var(--background-light); /* Placeholder background */
    border-radius: 8px; /* Match card border-radius */
    margin-bottom: 25px; /* Space between image and title */
    display: flex; /* For centering the image if it's smaller */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures image doesn't spill out */
}

.large-feature-image img {
    width: 100%; /* Make the image fill its container */
    height: 100%; /* Make the image fill its container */
    object-fit: cover; /* Ensures the image covers the area without distortion, cropping if necessary */
    border-radius: 8px; /* Match container border-radius */
}


/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: var(--background-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.faq-question {
    margin: 0;
    position: relative;
    padding-right: 30px;
    font-size: 1.1em;
    color: var(--secondary-color);
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    margin-top: 10px;
    padding-left: 0; /* Removed indent for cleaner look */
    color: var(--text-color);
}

/* --- CTA Section --- */
.cta-button-large {
    display: inline-block;
    padding: 20px 40px;
    color: var(--background-white);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.cta-button-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #010776; /* Slightly darker green on hover */
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color); /* Dark blue footer */
    color: var(--background-white);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9em;
}

/* --- Animations & Placeholders --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-text {
    animation: fadeIn 0.2s ease-out;
}

.animate-button {
    animation: slideInUp 0.6s ease-out;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.4s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in[data-animation-order] {
    transition-delay: calc(var(--animation-order) * 0.1s);
}

/* Generic placeholder image for other sections, still matching theme */
.placeholder-image {
    background-color: #CFE8F0; /* A soft blue placeholder */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* --- Professional List Styling --- */
.professional-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin-top: 20px;
}

.professional-list li {
    position: relative;
    padding-left: 30px; /* Space for custom bullet */
    margin-bottom: 10px;
    line-height: 1.4;
}

.professional-list li::before {
    content: '✓'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--accent-green); /* Green checkmark */
    font-weight: bold;
    font-size: 1.2em;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-image {
        height: 60px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background-white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
    }

    #menu-toggle:checked ~ .nav-links {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    .hamburger-icon {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .two-column-layout .container, 
    .step-with-image, 
    .step-with-image.reverse-order {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .column-image, .step-image {
        min-height: 250px;
        height: 250px; /* Added height for mobile view */
        width: 100%;
    }

    .step-with-image .step-content {
        order: 2;
    }

    .step-with-image .step-image {
        order: 1;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .feature-grid, .testimonial-grid {
        gap: 20px;
    }

    .section-title {
        font-size: 2em;
    }

    .subtitle {
        margin-bottom: 30px;
    }

    .cta-button-large {
        font-size: 1.2em;
        padding: 15px 30px;
    }
}