:root {
    --color-primary: #137374;
    --color-dark-blue-0a: #0a355b;
    --color-dark-navy: #032137;
    --color-gray-text: #434343;
    --color-white: #ffffff;
    --color-cream: #fff7e9;
    --color-yellow: #fed992;
    --color-yellow-border: #fdbf49;
    --color-green: #98d29b;
    --color-teal-light: #78c6c4;
    
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--color-gray-text);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ====================================
   Layout & Typography Utils
   ==================================== */
.landing-page {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 18px;
    line-height: 35px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.h1-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 70px;
    line-height: 90px;
    color: var(--color-dark-navy);
}

.h2-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 45px;
    line-height: 55px; /* or 60px depending on section */
    color: var(--color-dark-navy);
}

.body-text-lg {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 30px;
    line-height: 45px;
    color: var(--color-gray-text);
}

.body-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--color-gray-text);
}

/* ====================================
   Header
   ==================================== */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.header-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-menu.visible {
    transform: translateY(0);
    opacity: 1;
}

.logo {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 30px;
    line-height: 45px;
    color: var(--color-dark-blue-0a);
    display: inline-flex;
    gap: 6px;
}

/* Logo Animation */
.logo-rn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-dark-blue-0a);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: rnHighlight 2s ease-in-out infinite;
}

.logo-analytics {
    display: inline-block;
    padding: 2px 0;
    color: var(--color-dark-blue-0a);
    transition: opacity 0.3s ease;
    animation: analyticsHighlight 2s ease-in-out infinite;
}

@keyframes rnHighlight {
    0%, 100% {
        background-color: transparent;
        color: var(--color-dark-blue-0a);
    }
    25%, 50% {
        background-color: var(--color-dark-blue-0a);
        color: #fff;
    }
}

@keyframes analyticsHighlight {
    0%, 50% {
        opacity: 0.6;
    }
    75%, 100% {
        opacity: 1;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-dark-navy);
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}


/* ====================================
   Hero Section
   ==================================== */
.hero-section {
    padding: 240px 100px 200px; /* Increased top padding for fixed header */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-section h1 {
    max-width: 1165px;
    margin-bottom: 60px;
}

/* Adjusting gap to be reasonable for web if 220px is too huge, 
   but user asked for explicit design follow. 
   Let's use a large noticeable gap. */

.hero-sub {
    max-width: 881px;
    margin-bottom: 90px;
}

.btn-primary {
    background: var(--color-primary);
    border-radius: 25px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 55px;
    padding: 5px 60px;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0e5859;
}


/* ====================================
   How We Work Section
   ==================================== */
.how-we-work-section {
    position: relative;
    padding: 100px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    background-color: #FED99233;
}

/* Background blob removed */

/* Left Column: Vertical Process */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* Gaps handled by spacing */
    position: relative;
}

.process-item {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
}

.process-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    z-index: 2;
}

.line {
    width: 2px;
    flex-grow: 1;
    min-height: 80px;
    margin-top: -2px; /* connect to dot */
    z-index: 1;
}

.process-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 35px;
    color: var(--color-dark-navy);
    margin-bottom: 5px;
}

.process-content p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--color-gray-text);
    max-width: 480px; /* approximate from Figma width */
}

/* Step Specific Colors */
.p-decisions .dot { background: var(--color-teal-light); }
.p-decisions .line { background: var(--color-teal-light); }

.p-data .dot { background: var(--color-primary); }
.p-data .line { background: var(--color-primary); }

.p-systems .dot { background: var(--color-green); }
.p-systems .line { background: var(--color-green); }

.p-insights .dot { background: var(--color-dark-blue-0a); }
.p-insights .line { background: var(--color-dark-blue-0a); }

.p-action .dot { background: var(--color-yellow); }
.p-action .line { display: none; } /* Last one */

/* Right Column: Text */
.how-we-work-text {
    padding-top: 100px; /* Align with visual */
}

.how-we-work-text p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 25px;
    line-height: 40px;
    color: var(--color-gray-text);
}


/* ====================================
   Services Pillars Section
   ==================================== */
.services-section {
    padding: 150px 100px;
}

.services-layout {
    display: flex;
    gap: 60px;
    margin-top: 60px;
}

.services-menu {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-tab {
    padding: 24px;
    border-radius: 25px;
    cursor: pointer;
    background: white;
    border: 1px solid transparent; /* inactive state */
    transition: all 0.3s;
}

.service-tab h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 35px;
    color: var(--color-dark-navy);
}

.service-tab.active {
    background: rgba(152, 210, 155, 0.20);
    border: 1px solid var(--color-green);
}

.service-detail-container {
    flex: 1;
}

.service-detail-card {
    border: 1px solid var(--color-green);
    border-radius: 25px;
    padding: 60px;
    background: white;
    min-height: 647px;
    display: none;
}
.service-detail-card.active { display: block; }

.service-detail-card p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 25px;
    line-height: 40px;
    color: black;
}


/* ====================================
   Proof & Impact Section
   ==================================== */
.proof-section {
    margin: 100px 50px 180px; /* Large bottom margin for card overlap space */
    padding: 120px 20px 150px; /* Big bottom padding to push background down */
    background: rgba(120, 198, 196, 0.2); /* Updated from Figma (0.2 opacity) */
    border-radius: 70px; /* Updated from Figma */
    border: 1px solid #78c6c4; /* Updated from Figma */
    text-align: center;
    position: relative;
    /* border: none; Removed */
}

/* Header Box Overlay */
.proof-header-box {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Title Border Box */
.proof-header-content {
    border: none;
    padding: 20px 80px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.proof-section .section-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary); /* Teal color for "PROOF AND IMPACT" */
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.proof-section h2 {
    margin-bottom: 0;
    font-size: 42px;
    line-height: 1.2;
    color: var(--color-dark-navy);
    font-family: var(--font-heading);
    font-weight: 800;
}

.impact-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    
    /* The Overlap Magic */
    margin-bottom: -250px; /* Pull the grid down below the section */
    position: relative;
    z-index: 10;
}

.impact-card {
    background: white;
    border: 1px solid var(--color-teal-light);
    border-radius: 20px;
    width: 220px;
    height: 380px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Soft shadow */
}

.impact-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 60px;
    line-height: 1;
    margin-bottom: 25px;
}

.impact-title-lg {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    line-height: 1.1;
    color: #78c6c4;
    margin-bottom: 20px;
}

.impact-desc {
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-dark-navy);
    font-weight: 500;
}

/* Specific Colors */
.c-teal { color: #137374; }
.c-yellow { color: #fdbf49; }
.c-green { color: #98d29b; }
.c-blue { color: #0a355b; }

.fw-800 { font-weight: 800; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .impact-grid {
        flex-wrap: wrap;
        margin-bottom: 0; /* Remove overlap on smaller screens */
    }
    .proof-section {
        margin-bottom: 50px;
        padding-bottom: 80px;
    }
    .impact-card {
        width: 45%; 
    }
}

@media (max-width: 768px) {
    .proof-header-content {
        padding: 20px 30px;
        border-width: 4px;
    }
    .t-icon {
        left: -15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .impact-card {
        width: 100%;
    }
}

.fw-800 { font-weight: 800; }

/* ====================================
   Testimonials Section
   ==================================== */
.testimonials-section {
    position: relative;
    padding: 250px 100px 150px; /* Increased top padding to account for overlapping cards from previous section */
    background: rgba(152, 210, 155, 0.20);
    min-height: 1010px; 
}

/* Grid Layout matching the Figma absolute positions approximately */
.testimonials-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 100px;
}

.test-col-left {
    display: flex;
    flex-direction: column;
    gap: 150px; /* Large vertical gap */
}
.test-col-right {
    padding-top: 100px; /* Stagger */
}

.testimonial-card {
    background: white;
    border: 1px solid var(--color-green);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.testimonial-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--color-gray-text);
    margin: 20px 0 30px;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 58px;
    height: 58px;
    background: var(--color-teal-light);
    border-radius: 50%;
}

.author-info h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 30px;
    color: var(--color-dark-navy);
}
.author-info span {
    display: block;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: var(--color-dark-navy);
}

/* ====================================
   Final CTA
   ==================================== */
.final-cta {
    padding: 200px 20px;
    text-align: center;
}

.final-cta h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 100px;
    line-height: 110px;
    color: var(--color-dark-navy);
    margin-bottom: 20px;
}

.final-cta p {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 25px;
    line-height: 60px;
    color: var(--color-dark-navy);
    margin-bottom: 50px;
}


/* ====================================
   Footer
   ==================================== */
.footer {
    background-color: var(--color-dark-blue-0a);
    padding: 30px 50px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex-shrink: 0;
}

.footer-logo {
    width: 100px;
    height: auto;
}

.footer-links-container {
    display: flex;
    gap: 25px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 90px;
}

.footer-header {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.footer-header:hover {
    opacity: 0.8;
}

.footer-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
}

.contact-value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.4;
}

.linkedin-link {
    display: inline-block;
}

.linkedin-link img {
    width: 20px;
    height: 20px;
}

.copyright {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    text-align: right;
    margin-top: 20px;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 1200px) {
    .how-we-work-section {
        grid-template-columns: 1fr;
    }
    .how-we-work-text { padding-top: 0; }
    
    .services-layout { flex-direction: column; }
    .services-menu { flex-direction: row; flex-wrap: wrap; flex: auto; }
    .service-tab { flex: 1; min-width: 200px; }
    
    .testimonials-layout { grid-template-columns: 1fr; gap: 40px; }
    .test-col-right { padding-top: 0; }
    .test-col-left { gap: 40px; }
    
    .final-cta h2 { font-size: 60px; line-height: 1.2; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-navy);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

@media (max-width: 768px) {
    .header-menu, .hero-section, .how-we-work-section, .services-section, .proof-section, .testimonials-section {
        padding: 50px 20px;
    }
    
     .header-menu {
        padding: 20px;
        justify-content: space-between;
    }

    .mobile-menu-btn { display: block; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        gap: 40px;
    }
    
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links a {
        font-size: 24px;
        color: var(--color-dark-navy);
    }
    
    .h1-title { font-size: 28px; line-height: 1.3; }
    .h2-title { font-size: 22px; line-height: 1.3; }
    .body-text-lg { font-size: 16px; line-height: 1.5; }
    
    .impact-grid { flex-direction: column; align-items: center; }
    
    .footer-content { flex-direction: column; gap: 40px; }
    
    /* Fix fixed-width elements */
    .service-tab,
    .service-content,
    .impact-item,
    .testimonial-card {
        width: 100% !important;
        max-width: 100%;
    }
    
    .services-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-tab {
        min-width: auto;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .proof-section,
    .testimonials-section,
    .final-cta {
        padding: 40px 20px;
    }
    
    .final-cta h2 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .how-we-work-title,
    .services-title,
    .proof-title,
    .test-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .footer-links-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 10px;
    }

    .footer-column {
        min-width: 0;
    }

    /* Left aligning columns */
    .footer-column:nth-child(1), 
    .footer-column:nth-child(4) {
        align-items: flex-start;
        text-align: left;
    }

    /* Center aligning columns */
    .footer-column:nth-child(2), 
    .footer-column:nth-child(5) {
        align-items: center;
        text-align: center;
    }

    /* Right aligning columns */
    .footer-column:nth-child(3) {
        align-items: flex-end;
        text-align: right;
    }
}
