/* ======== 1. ROOT VARIABLES & RESET ======== */
:root {
    --primary-color: #34D399; /* A modern, wellness green */
    --primary-dark: #069668;
    --secondary-color: #F59E0B; /* A warm, energetic gold */
    --dark-color: #111827; /* Near-black for text */
    --body-color: #374151; /* Softer gray for body text */
    --light-color: #F9FAFB; /* Off-white background */
    --white-color: #FFFFFF;
    --border-color: #E5E7EB;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1140px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--body-color);
    background-color: var(--white-color);
    overflow-x: hidden; /* Prevent horizontal scroll from AOS */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ======== 2. UTILITY & CONTAINER ======== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    margin-bottom: 0.5rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--body-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-image {
    text-align: center;
}
.section-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.bg-dark .section-header p,
.bg-dark h2 {
    color: var(--light-color);
}
.bg-dark .form-group label {
    color: var(--light-color);
}

.grid {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-col-gap { 
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
        color: var(--white-color);

}
.btn-secondary {
    background-color: var(--white-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ======== 3. HEADER & NAVIGATION ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 40px; /* Adjust height as needed */
    width: auto;
}
.nav-menu ul {
    display: flex;
    gap: 2rem;
}
.nav-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--body-color);
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: var(--primary-color);
}
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1001; /* Above mobile menu */
}
.nav-toggle i {
    transition: transform 0.3s ease;
}
.nav-toggle.active i {
    transform: rotate(90deg);
}

.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white-color);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-nav.active {
    transform: translateX(0);
}
.mobile-nav ul {
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}
.mobile-nav .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ======== 4. HERO SECTION ======== */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6); /* Dark overlay */
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white-color);
    /* Gradient text effect */
    background: linear-gradient(90deg, var(--white-color), #c3fcf1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content .subtitle {
    font-size: 1.25rem;
    color: #E5E7EB; /* Lighter text for video */
    margin: 1.5rem 0 2.5rem;
}
.hero-content .highlight {
    color: var(--primary-color);
    font-weight: 600;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ======== 5. TRUSTED BY SECTION ======== */
.trusted-by {
    padding: 3rem 0;
    background-color: var(--light-color);
}
.trusted-by .container {
    text-align: center;
}
.trusted-by p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--body-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.logos img {
    height: 30px; /* Adjust height */
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}
.logos img:hover {
    filter: grayscale(0%) opacity(1);
}

/* ======== 6. WHY PARTNER (CARDS) ======== */
.card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-color), var(--white-color));
    border-radius: 50%;
    line-height: 1;
}

/* ======== 7. HOW IT WORKS (STEPS) ======== */
.steps-container {
    position: relative;
    padding-left: 2rem; /* Space for timeline */
}
/* Timeline bar */
.steps-container::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 28px;
    width: 3px;
    background: linear-gradient(var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    z-index: 1;
}
.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}
.step:last-child {
    margin-bottom: 0;
}
.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
    background: var(--white-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}
.step-content {
    padding-top: 0.5rem;
}
.step-content h3 {
    margin-bottom: 0.25rem;
}

/* ======== 8. FEATURES / MARKETING SECTION (REDESIGNED) ======== */
.feature-row {
    margin-bottom: 5rem;
}
.feature-row:last-child {
    margin-bottom: 0;
}
.features-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Increased spacing */
}
.feature-list li {
    font-size: 1.125rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem; /* Increased spacing */
}
.feature-list i {
    color: var(--primary-color);
    font-size: 1.75rem; /* Bigger icon */
    margin-top: 5px;
}
.feature-list h4 {
    margin-bottom: 0.25rem;
}
.feature-list p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ======== 9. SVG WAVE DIVIDER ======== */
.wave-divider {
    line-height: 0; /* Removes space below SVG */
    background-color: var(--white-color); /* Match section above */
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px; /* Adjust height */
}
.wave-shape-fill {
    fill: var(--dark-color); /* Match section below */
}

/* ======== 10. FORMS ======== */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}
.bg-dark .form-container {
    background: #1F2937; /* Darker than body, lighter than bg */
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--white-color);
}
.bg-dark .form-group input[type="text"],
.bg-dark .form-group input[type="email"],
.bg-dark .form-group input[type="tel"],
.bg-dark .form-group textarea {
    background-color: #374151;
    border-color: #4B5563;
    color: var(--white-color);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
}
.text-center { text-align: center; }

/* Form response messages */
.form-message {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    display: none; /* Hidden by default */
}
.form-message.success {
    background-color: #D1FAE5;
    color: #065F46;
    display: block;
}
.form-message.error {
    background-color: #FEE2E2;
    color: #991B1B;
    display: block;
}
.btn-submit:disabled {
    background-color: var(--body-color);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ======== 11. FOOTER ======== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}
.footer-logo {
    margin-bottom: 1.5rem;
}
.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes PNG logo white */
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-social a {
    color: var(--light-color);
    font-size: 1.25rem;
    transition: color 0.3s;
}
.footer-social a:hover {
    color: var(--primary-color);
}
.footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #9CA3AF; /* Lighter gray */
}
.footer p a {
    color: #E5E7EB;
    text-decoration: underline;
}
.footer p a:hover {
    color: var(--primary-color);
}

/* ======== 12. MODAL (POP-UP) ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    /* Modal animation */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--body-color);
    background: none;
    border: none;
    cursor: pointer;
}
.modal-content h3 {
    margin-bottom: 0.5rem;
}
.modal-content p {
    margin-bottom: 2rem;
}
.modal-content .btn {
    width: 100%;
}

/* ======== 13. RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2-col-gap { grid-template-columns: 1fr; }
    .features-content { padding-left: 0; }
    
    #how .section-image {
        grid-row: 1; /* Move image to top in "How it Works" */
        margin-bottom: 3rem;
    }
    
    /* New feature row stacking */
    .feature-row .section-image {
        grid-row: 1;
    }
    .feature-row .features-content {
        margin-top: 2rem;
    }
    .feature-row {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .nav-menu, .nav-actions { display: none; }
    .nav-toggle { display: block; }
    
    .hero { padding-top: 8rem; padding-bottom: 6rem; min-height: 70vh;}
    .hero-actions { flex-direction: column; gap: 0.75rem; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .grid-2-col-gap { gap: 2rem; }

    .logos { gap: 2rem 1.5rem; }
    .logos img { height: 24px; }

    .steps-container { padding-left: 0; }
    .steps-container::before { left: 18px; top: 10px; bottom: 10px; }
    .step-number { width: 40px; height: 40px; font-size: 1rem; border-width: 2px; }
    .step { gap: 1rem; }
    
    .feature-list { gap: 1.5rem; }
    .feature-list li { gap: 1rem; }
    .feature-list i { font-size: 1.5rem; }
}
