/* --- 1. Variables & Reset --- */
:root {
    --color-green: #B9FF66;
    --color-dark: #191A23;
    --color-grey: #F3F3F3;
    --color-white: #FFFFFF;
    
    --font-main: 'Space Grotesk', sans-serif;
    
    --border-radius: 14px;
    --border-black: 1px solid var(--color-dark);
    --shadow-card: 0px 5px 0px 0px var(--color-dark);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Utility Class for container width (matches design margins) */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* --- 2. Buttons --- */
.btn-outline {
    border: 1px solid var(--color-dark);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    transition: 0.3s;
}
.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-black {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 18px 32px;
    border-radius: var(--border-radius);
    display: inline-block;
    font-size: 1.1rem;
    transition: 0.3s;
}
.btn-black:hover {
    background-color: var(--color-green);
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
}

/* --- 3. Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 1.1rem;
}

.hamburger { display: none; } /* Hidden on Desktop */

/* --- 4. Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 80%;
}

.hero-image {
    max-width: 45%;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* --- 5. Logo Strip --- */
.logo-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    filter: grayscale(100%); /* Make logos black/white like design */
    opacity: 0.7;
    margin-bottom: 100px;
    flex-wrap: wrap;
    gap: 20px;
}
.logo-strip img {
    height: 30px; /* Adjust based on your actual images */
    object-fit: contain;
}

/* --- 6. Responsiveness (Mobile/Tablet) --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: left; /* Design keeps text left aligned generally */
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }
    .nav-links {
        display: none; /* We will add JS for mobile menu later */
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .hamburger span {
        width: 30px;
        height: 3px;
        background-color: var(--color-dark);
    }
    .logo-strip {
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem; /* Matches mobile typography screenshot */
    }
}

/* --- 7. General Section Styles --- */
.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.section-title {
    background-color: var(--color-green);
    padding: 0px 7px;
    border-radius: 7px;
    font-size: 2.5rem;
    font-weight: 500;
}

.section-desc {
    max-width: 580px;
    font-size: 1.1rem;
}

/* --- 8. Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 40px;
}

.service-card {
    border: 1px solid var(--color-dark);
    border-radius: 45px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 5px 0px 0px var(--color-dark); /* The "Hard" Shadow */
    height: 310px;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px); /* Subtle hover effect */
}

/* Background Utility Classes */
.bg-grey { background-color: var(--color-grey); }
.bg-green { background-color: var(--color-green); }
.bg-dark { background-color: var(--color-dark); }
.text-white { color: var(--color-white); }

/* Card Content Layout */
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-content h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Highlight styles for text background */
.highlight-green {
    background-color: var(--color-green);
    padding: 0 7px;
    border-radius: 7px;
}
.highlight-white {
    background-color: var(--color-white);
    padding: 0 7px;
    border-radius: 7px;
    color: var(--color-dark); /* Always black text inside white highlight */
}

/* Learn More Link & Icon */
.learn-more {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    margin-top: auto; /* Pushes link to bottom */
}

.icon-circle {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-30deg); /* Angles the arrow */
}
.icon-circle img {
    width: 18px;
    height: 18px;
}

/* Card Image */
.card-image img {
    height: 170px;
    width: auto;
    object-fit: contain;
}

/* --- 9. Services Responsiveness --- */
@media (max-width: 900px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .service-card {
        height: auto;
        padding: 30px;
        flex-direction: column; /* Stack content inside card */
        gap: 30px;
    }

    .card-content {
        align-items: center; /* Center text on mobile */
        text-align: center;
        gap: 20px;
    }
    
    .card-image img {
        height: 140px;
    }
}

/* --- 14. CTA Banner --- */
.cta-banner {
    border-radius: 45px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden; /* Keeps illustration inside curves */
}

.cta-content {
    max-width: 500px;
    z-index: 2; /* Ensures text stays above image */
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-image img {
    /* Use a negative margin or absolute positioning if needed to match design overlap, 
       but standard flex works well for responsiveness */
    height: 350px; 
    width: auto;
    object-fit: contain;
}

/* --- 15. Case Studies Card --- */
.case-study-card {
    border-radius: 45px;
    padding: 70px 60px;
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Makes dividers stretch full height */
    gap: 60px;
}

.case-item {
    flex: 1; /* Each column takes equal space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Green Link Style */
.learn-more-green {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-green);
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.learn-more-green:hover {
    opacity: 0.8;
}

/* Vertical Divider Line */
.vertical-line {
    width: 1px;
    background-color: var(--color-white);
    opacity: 0.25;
}

/* --- 16. Case Studies Responsiveness --- */
@media (max-width: 900px) {
    /* CTA Mobile */
    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
    }
    .cta-image {
        display: none; /* Often hidden on mobile, or you can move it below: */
        /* width: 100%; margin-top: 30px; display: block; */
    }

    /* Case Studies Mobile */
    .case-study-card {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        /* Replicate the slider look on mobile? 
           For simple CSS, we stack them and add borders */
    }

    .vertical-line {
        width: 100%;
        height: 1px; /* Turn vertical line into horizontal divider */
    }
}

/* --- 10. Process Accordion --- */
.process-accordion {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.accordion-item {
    background-color: var(--color-grey);
    border: 1px solid var(--color-dark);
    border-radius: 45px;
    padding: 40px 60px;
    box-shadow: 0px 5px 0px 0px var(--color-dark); /* Hard Shadow */
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Open State Style */
.accordion-item.active {
    background-color: var(--color-green);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 500;
    margin-right: 25px;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 500;
    flex-grow: 1; /* Pushes icon to the right */
    text-align: left;
}

.step-icon {
    display: flex;
    align-items: center;
}

/* Icon Toggle Logic */
.icon-minus { display: none; }
.icon-plus { display: block; }

.accordion-item.active .icon-minus { display: block; }
.accordion-item.active .icon-plus { display: none; }

/* Accordion Body (Hidden by default) */
.accordion-body {
    display: none; /* JS will toggle this */
    margin-top: 30px;
}

.accordion-item.active .accordion-body {
    display: block;
    animation: fadeIn 0.5s ease;
}

.accordion-body hr {
    border: none;
    border-top: 1px solid var(--color-dark);
    margin-bottom: 30px;
    opacity: 0.2;
}

.accordion-body p {
    font-size: 1.1rem;
}

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

/* --- 11. Process Responsiveness --- */
@media (max-width: 768px) {
    .accordion-item {
        padding: 30px;
    }
    .step-number {
        font-size: 2rem;
    }
    .step-title {
        font-size: 1.1rem;
    }
    /* Scale down the SVG icons on mobile */
    .step-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* --- 12. Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 40px;
    margin-bottom: 40px;
}

.team-card {
    border: 1px solid var(--color-dark);
    border-radius: 45px;
    padding: 40px 35px;
    box-shadow: 0px 5px 0px 0px var(--color-dark);
    display: flex;
    flex-direction: column;
}

/* Header inside Card */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.member-img {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

.member-img img {
    /* The avatar image styling */
    width: 100px;
    height: 100px;
    object-fit: cover;
    /* Optional: If using the green star shape background from design, 
       you'd need that as a background-image or wrapper. 
       For now, we just use the photo. */
}

.member-info h4 {
    font-size: 1.25rem;
    font-weight: 500;
}
.member-info p {
    font-size: 1rem;
    font-weight: 300;
}

/* LinkedIn Icon */
.linkedin-icon {
    width: 34px;
    height: 34px;
    background-color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-green); /* If using font icon */
}
/* If using an SVG image, invert colors as needed */
.linkedin-icon img {
    object-fit: cover;
}

/* Divider Line */
.team-card hr {
    border: none;
    border-top: 1px solid var(--color-dark);
    margin-bottom: 20px;
    opacity: 1; /* Fully visible line */
}

.team-bio p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer Button Alignment */
.team-footer {
    display: flex;
    justify-content: flex-end; /* Aligns button to right */
    margin-top: 40px;
}

.btn-wide {
    padding: 20px 60px; /* Makes button wider */
}

/* --- 13. Team Responsiveness --- */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    .team-footer {
        justify-content: center; /* Center button on mobile */
        width: 100%;
    }
    .btn-wide {
        width: 100%; /* Full width button on mobile */
        text-align: center;
    }
}


/* --- 17. Testimonials Section (UPDATED) --- */

/* The Black Rounded Wrapper */
.testimonials-wrapper {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: 45px;
    padding: 80px 0; /* Vertical padding inside black box */
    overflow: hidden; /* Contains the slider */
}

/* Slider Layout */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 50px;
    padding: 0 60px; /* Side padding so first card isn't flush against edge */
    
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
}
.testimonial-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
    width: 600px; 
    min-width: 600px;
    flex-shrink: 0;
    scroll-snap-align: center;
    white-space: normal;
}

/* Speech Bubble Box */
.speech-bubble {
    border: 1px solid var(--color-green);
    border-radius: 45px;
    padding: 40px;
    position: relative;
    margin-bottom: 40px;
    background-color: transparent; /* Allows black bg to show through */
}

/* The Tail */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 60px;
    width: 40px;
    height: 40px;
    background-color: var(--color-dark); /* Matches container bg */
    border-bottom: 1px solid var(--color-green);
    border-right: 1px solid var(--color-green);
    transform: rotate(45deg);
}

.speech-bubble p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-white);
}

.client-info {
    padding-left: 60px;
}
.client-info h4 { font-size: 1.2rem; font-weight: 600; }
.text-green { color: var(--color-green); }

/* --- 18. Slider Controls --- */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px; /* Wide gap like design */
    margin-top: 60px;
}

.nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.nav-arrow:hover { opacity: 0.7; }

.nav-dots {
    display: flex;
    gap: 15px;
}

/* 4-Pointed Star Shape */
.star {
    width: 14px;
    height: 14px;
    background-color: var(--color-white);
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
    /* CSS Clip-path for 4-point star */
    clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
}

.star.active {
    opacity: 1;
    background-color: var(--color-green);
    transform: scale(1.4);
}

/* --- 19. Responsiveness --- */
@media (max-width: 768px) {
    .testimonial-card {
        width: 85vw;
        min-width: 85vw;
    }
    .testimonials-wrapper {
        padding: 40px 0;
    }
    .slider-controls {
        gap: 50px;
    }
}

/* --- 20. Contact Section --- */
.contact-wrapper {
    border-radius: 45px;
    padding: 60px 100px 60px 60px; /* Extra padding right for spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden; /* Clips the image if it sticks out */
}

.contact-form {
    width: 100%;
    max-width: 556px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 1rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    padding: 18px 30px;
    border: 1px solid var(--color-dark);
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: white;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #898989;
}

/* --- Custom Radio Buttons --- */
.radio-group {
    flex-direction: row;
    gap: 35px;
    margin-bottom: 40px;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between circle and text */
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

/* Hide default browser radio button */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Circle */
.checkmark {
    height: 28px;
    width: 28px;
    background-color: white;
    border: 1px solid var(--color-dark);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

/* The Green Dot (Hidden by default) */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-green);
}

/* Show Green Dot when checked */
.radio-container input:checked ~ .checkmark::after {
    display: block;
}

/* --- Submit Button --- */
.btn-block {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* --- Contact Image --- */
.contact-image {
    position: absolute;
    right: -230px; /* Offsets it to the side like design */
    top: 50%;
    transform: translateY(-50%);
    width: 650px; /* Adjust based on your actual image size */
    pointer-events: none; /* Lets you click through it if it overlaps */
}

.contact-image img {
    width: 100%;
    height: auto;
}

/* --- 21. Contact Responsiveness --- */
@media (max-width: 900px) {
    .contact-wrapper {
        padding: 40px 30px;
        flex-direction: column;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .contact-image {
        display: none; /* Hide decorative image on mobile */
    }
}

/* --- 22. Footer Section --- */

.footer-wrapper {
    border-radius: 45px 45px 0 0; /* Rounded top corners only */
    padding: 50px 60px;
}

/* Top Row */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: 30px;
}
.footer-nav a {
    text-decoration: underline;
    font-size: 1rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}
.social-icon img {
    width: 30px;
    height: 30px;
    background-color: white; /* Circle bg */
    border-radius: 50%;
    padding: 0; /* If svgs are just icons, adjust this */
}

/* Middle Row */
.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-label {
    align-self: flex-start; /* Don't stretch */
    padding: 0 7px;
    border-radius: 7px;
    font-weight: 500;
    color: var(--color-dark); /* Black text on green */
}

.contact-info p {
    font-size: 1rem;
    font-weight: 300;
}

/* Subscribe Box */
.subscribe-box {
    background-color: #292A32; /* Slightly lighter dark */
    padding: 60px 40px;
    border-radius: 14px;
    width: 50%; /* Takes up half width */
}

.subscribe-box form {
    display: flex;
    gap: 20px;
}

.subscribe-box input {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 14px;
    padding: 18px 30px;
    color: white;
    width: 100%;
    outline: none;
}

.btn-green {
    background-color: var(--color-green);
    color: var(--color-dark);
    border: none;
    border-radius: 14px;
    padding: 18px 35px;
    font-size: 1.1rem;
    cursor: pointer;
    white-space: nowrap; /* Prevents text wrap */
    transition: 0.3s;
}
.btn-green:hover { opacity: 0.9; }

/* Bottom Row */
.footer-divider {
    border: none;
    border-top: 1px solid white;
    opacity: 0.2;
    margin-bottom: 40px;
}

.footer-bottom {
    display: flex;
    gap: 40px;
    font-size: 0.9rem;
    color: #CCCCCC;
}

.privacy-link {
    text-decoration: underline;
}

/* --- 23. Footer Responsiveness --- */
@media (max-width: 900px) {
    .footer-wrapper {
        padding: 40px 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-middle {
        flex-direction: column;
        gap: 40px;
    }
    
    .subscribe-box {
        width: 100%;
        padding: 30px;
    }
    
    .subscribe-box form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}