/* CSS Variables - Color Palette */
:root {
    --green-primary: #7CB342;
    --green-dark: #2E5339;
    --green-deep: #1B3A2F;
    --green-light: #9CCC65;
    --green-soft: #C8E6C9;
    --green-bg: #E8F5E9;
    --cream: #F4F1E8;
    --text-dark: #2E5339;
    --text-muted: #5D6B5E;
    --white: #FFFFFF;
    --shadow-soft: rgba(46, 83, 57, 0.08);
    --shadow-medium: rgba(46, 83, 57, 0.12);
    --shadow-strong: rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 24px;
    background: rgba(27, 58, 47, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 179, 66, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    background: #2D5442;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 32px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(244, 241, 232, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav-link:hover {
    color: var(--green-light);
}

.header-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(200, 230, 201, 0.4);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: rgba(200, 230, 201, 0.15);
    border-color: var(--green-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 58, 47, 0.4) 0%,
        rgba(46, 83, 57, 0.3) 50%,
        rgba(27, 58, 47, 0.5) 100%
    );
}

.hero-accent {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(124, 179, 66, 0.12) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 60%,
            rgba(200, 230, 201, 0.08) 0%,
            transparent 50%
        );
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

.title-highlight {
    display: inline-block;
    background: rgba(244, 241, 232, 0.15); /* Semi-transparent */
    color: var(--cream); /* Light text for contrast on dark bg */
    padding: 2px 16px;
    border: 1px solid rgba(244, 241, 232, 0.3); /* Subtle border */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    border-radius: 12px;
    margin-top: 8px;
    
    /* Reset gradient text properties */
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    background-clip: border-box;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    
    box-shadow: none;
}

.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--green-soft);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.4),
        0 3px 12px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, var(--green-primary), #558B2F);
    color: var(--cream);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(124, 179, 66, 0.35);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 179, 66, 0.45);
}

.cta-button-large {
    padding: 20px 40px;
    font-size: 18px;
}

.cta-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin-top: auto;
}

.cta-button-outline:hover {
    background: var(--green-dark);
    color: var(--cream);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(200, 230, 201, 0.6);
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(4px);
}

.scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-light);
    animation: scrollDot 2s infinite;
    box-shadow: 0 0 8px rgba(156, 204, 101, 0.6);
}

/* Services Section */
.services {
    padding: 120px 24px;
    background: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Service Cards - Cartouche Style */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(46, 83, 57, 0.08);
    box-shadow: 
        0 4px 24px var(--shadow-soft),
        0 1px 3px rgba(46, 83, 57, 0.04);
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 48px rgba(46, 83, 57, 0.12),
        0 8px 24px rgba(46, 83, 57, 0.08);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green-bg), var(--green-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green-dark);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-highlights {
    list-style: none;
    margin-bottom: 28px;
    padding: 0;
}

.service-highlights li {
    font-size: 14px;
    color: var(--text-dark);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid rgba(46, 83, 57, 0.06);
}

.service-highlights li:last-child {
    border-bottom: none;
}

.service-highlights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: 600;
}

/* Publications Carousel Section */
.publications {
    padding: 100px 24px;
    background: var(--white);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px; /* Space for buttons */
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 48px 56px;
    background: var(--cream);
    border-radius: 20px;
    box-sizing: border-box;
}

.pub-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--green-bg);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.pub-badge-ongoing {
    background: var(--green-primary);
    color: var(--white);
}

.pub-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pub-source {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 16px;
}

.pub-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.pub-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pub-link:hover {
    color: var(--green-dark);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--green-dark);
    color: var(--white);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--green-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--green-primary);
}

.carousel-dot.active {
    background: var(--green-dark);
    width: 24px;
    border-radius: 4px;
}

/* Stats Strip */
.stats-strip {
    padding: 28px 24px;
    background: var(--cream);
    border-top: 1px solid rgba(46, 83, 57, 0.08);
    border-bottom: 1px solid rgba(46, 83, 57, 0.08);
}

.stats-line {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
}

.stats-line span:not(.stats-sep) {
    display: inline;
}

.stats-sep {
    display: inline;
    margin: 0 12px;
    opacity: 0.4;
}

/* Clients Section */
.clients {
    padding: 80px 24px;
    background: var(--white);
}

.clients-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 48px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 48px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: all 0.3s ease;
}

.client-logo img {
    max-height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Coming Soon Teaser */
.coming-soon-teaser {
    padding: 48px 24px;
    background: var(--cream);
    border-top: 1px solid rgba(46, 83, 57, 0.08);
}

.teaser-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.teaser-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark);
    background: var(--green-bg);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.teaser-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Final CTA Section */
.final-cta {
    padding: 120px 24px;
    background: var(--green-deep);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(124, 179, 66, 0.1) 0%,
        transparent 60%
    );
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.final-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.final-cta-text {
    font-size: 18px;
    color: var(--green-soft);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 48px 24px;
    background: var(--green-deep);
    border-top: 1px solid rgba(124, 179, 66, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--green-soft);
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-email {
    font-size: 16px;
    color: var(--green-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--cream);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDot {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 32px;
        opacity: 0;
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .carousel-container {
        padding: 0 50px;
    }

    .carousel-slide {
        padding: 40px 48px;
    }


    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 32px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 16px;
    }

    .header-cta {
        padding: 6px 14px;
        font-size: 13px;
    }

    .logo {
        height: 28px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        padding: 90px 16px 60px;
    }

    .hero-eyebrow {
        font-size: 12px;
    }

    .services {
        padding: 80px 16px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .stats-strip {
        padding: 24px 16px;
    }

    .clients {
        padding: 60px 16px;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 24px;
    }

    .client-logo {
        height: 40px;
    }

    .client-logo img {
        max-height: 40px;
    }

    .final-cta {
        padding: 80px 16px;
    }

    .footer {
        padding: 32px 16px;
    }

    .publications {
        padding: 80px 16px;
    }

    .carousel-slide {
        padding: 32px 24px;
    }

    .pub-title {
        font-size: 20px;
    }

    .carousel-container {
        padding: 0 48px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .cta-button-large {
        padding: 16px 28px;
        font-size: 16px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .stats-strip {
        padding: 20px 16px;
    }

    .stats-line {
        font-size: 13px;
    }

    .stats-sep {
        margin: 0 8px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 20px;
    }

    .client-logo {
        height: 36px;
    }

    .client-logo img {
        max-height: 36px;
    }
}

/* Image Fallback */
.logo:not([src]),
.hero-image:not([style*="background-image"]) {
    background-color: var(--green-dark);
}

.logo:not([src])::after {
    content: "Logo";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--cream);
    font-size: 10px;
}
