/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #1b5e20;
    --green-700: #2e7d32;
    --green-500: #4caf50;
    --green-100: #e8f5e9;
    --green-50: #f1f8e9;
    --dark: #111;
    --text: #333;
    --text-light: #666;
    --bg: #fafcfa;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    transition: padding var(--transition);
}

.navbar.scrolled .nav-inner {
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--green-900);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo img {
    height: 38px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-700);
    transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--green-700);
}

.nav-cta {
    background: var(--green-700);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--green-900);
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(76, 175, 80, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 45% at 85% 70%, rgba(2, 136, 209, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 70% 15%, rgba(255, 109, 0, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 45% 40% at 25% 20%, rgba(179, 229, 252, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 35% 30% at 90% 5%, rgba(49, 27, 146, 0.06) 0%, transparent 70%),
        url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(0.5deg); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 300px at 20% 60%, rgba(76, 175, 80, 0.1) 0%, transparent 100%),
        radial-gradient(circle 250px at 75% 30%, rgba(0, 150, 136, 0.08) 0%, transparent 100%);
    animation: bgFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes bgFloat {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.tagline {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--green-700);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 20px;
    border: 1.5px solid var(--green-500);
    border-radius: 30px;
    background: rgba(232, 245, 233, 0.6);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--green-900);
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.pill {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green-700);
    background: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(46, 125, 50, 0.25);
    backdrop-filter: blur(4px);
    transition: all var(--transition);
}

.pill:hover {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.25);
}

.btn-primary:hover {
    background: var(--green-900);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--green-700);
    border: 1.5px solid var(--green-700);
}

.btn-outline:hover {
    background: var(--green-100);
    transform: translateY(-2px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--green-700), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== REVEAL ANIMATION (Hero - one-time) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.38s; }
.reveal-delay-4 { transition-delay: 0.52s; }

/* Repeating section animations */
.anim {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== SECTIONS SHARED ===== */
.section {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--green-700);
    font-weight: 600;
    margin-bottom: 12px;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.section-about {
    background: var(--white);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.cap-card {
    background: var(--bg);
    border: 1px solid rgba(46, 125, 50, 0.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--green-700);
    transition: height 0.4s ease;
}

.cap-card:hover::before {
    height: 100%;
}

.cap-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 125, 50, 0.15);
}

.cap-card-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green-500);
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.cap-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.cap-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.about-cta {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.about-cta p {
    font-size: 1.05rem;
    color: var(--text-light);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== CORPORATE SECTION ===== */
.section-corporate {
    background: linear-gradient(180deg, var(--green-50) 0%, var(--bg) 100%);
}

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

.corp-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.corp-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.corp-item-address {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--green-100), var(--white));
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.corp-item-address .corp-value {
    font-style: normal;
    line-height: 1.5;
}

.corp-icon {
    width: 44px;
    height: 44px;
    background: var(--green-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}

.corp-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.corp-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    font-weight: 600;
}

.corp-value {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    font-style: normal;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 28px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    color: #888;
    font-size: 0.82rem;
}

.footer-made {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.82rem;
}

.heart-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== CHAT FAB ===== */
.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--green-700);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.35);
    transition: all var(--transition);
    font-family: inherit;
}

.chat-fab:hover {
    background: var(--green-900);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 28px rgba(46, 125, 50, 0.4);
}

.chat-fab svg { flex-shrink: 0; }

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 380px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.14);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: chatOpen 0.3s ease-out;
}

@keyframes chatOpen {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    padding: 2px;
}

.chat-head-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.chat-head-sub {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 1px;
}

.chat-head-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.chat-head-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chat-messages {
    height: 320px;
    padding: 20px 16px;
    overflow-y: auto;
    background: #f7faf7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 82%;
    font-size: 0.86rem;
    line-height: 1.55;
    animation: msgSlide 0.3s ease-out;
}

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

.msg.bot {
    background: var(--white);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.msg.user {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 14px;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: 1.5px solid #e8e8e8;
    padding: 12px 16px;
    border-radius: 24px;
    outline: none;
    font-size: 0.86rem;
    font-family: inherit;
    background: #f8f8f8;
    transition: all var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.chat-input-area input:disabled {
    background: #f0f0f0;
    color: #aaa;
}

.chat-input-area button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--green-700);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.chat-input-area button:hover {
    background: var(--green-900);
    transform: scale(1.06);
}

.chat-input-area button:disabled {
    background: #ddd;
    cursor: default;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .corp-grid {
        grid-template-columns: 1fr;
    }

    .corp-item-address {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-pills {
        gap: 8px;
    }

    .pill {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .section {
        padding: 70px 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .corp-item-address {
        grid-column: auto;
    }

    .chat-widget {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 80px;
        border-radius: 16px;
    }

    .chat-fab span {
        display: none;
    }

    .chat-fab {
        padding: 15px;
        border-radius: 50%;
    }
}
