/* --- THEME VARIABLES --- */
:root {
    --bg-body: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --brand-green: #014D33;
    --brand-green-hover: #003B26;
    --border-light: #eaeaea;
    
    /* LAYOUT & SPACING */
    --container-width: 1240px;
    --section-spacing: 70px;
    --header-height: 90px;
    
    --radius: 8px;
    --font-main: 'Outfit', sans-serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    font-family: var(--font-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; transition: 0.3s var(--ease-out); cursor: pointer; }
img { width: 100%; display: block; height: auto; border-radius: var(--radius); }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; color: var(--text-main); margin-bottom: 0.75rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; }
.highlight { color: var(--brand-green); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-60 { margin-top: 50px; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px;
    font-weight: 500; font-size: 1rem;
    border-radius: var(--radius); transition: all 0.4s var(--ease-out);
    cursor: pointer; border: 1px solid transparent; white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(-1px); }

.btn-primary { background-color: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.btn-primary:hover { background-color: var(--brand-green-hover); }

.btn-outline { background: transparent; border-color: #e0e0e0; color: var(--text-main); }
.btn-outline:hover { border-color: var(--brand-green); color: var(--brand-green); background: #fff; }

.btn-group { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 25px; }

/* --- CURTAIN LOADING SCREEN --- */
.curtain-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}
.curtain-screen.slide-up { transform: translateY(-100%); }

.startup-content { text-align: center; width: 200px; }
.startup-logo { width: 100px; margin: 0 auto 20px auto; animation: pulse 2s infinite; }
.loading-bar { width: 100%; height: 4px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; }
.loading-progress { width: 0%; height: 100%; background: var(--brand-green); animation: loadProgress 1.2s ease-in-out forwards; }
@keyframes loadProgress { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }

/* --- LAYOUT UTILS --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-spacing) 0; }
.pt-0 { padding-top: 58px; } 
.bg-light { background-color: var(--bg-secondary); }

/* --- HEADER (Fixed & Premium) --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1100; /* Stays above the mobile menu overlay */
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent; transition: 0.4s var(--ease-out);
    height: var(--header-height);
    display: flex; align-items: center;
}
.header.scrolled { 
    border-bottom: 1px solid var(--border-light); 
    background: rgba(255, 255, 255, 0.98); 
    height: 80px; 
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { height: 95px; width: auto; transition: 0.3s; }
.header.scrolled .logo img { height: 78px; }

/* Desktop Navigation */
.nav-list { display: flex; gap: 40px; align-items: center; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-main); position: relative; padding: 10px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--brand-green); transition: 0.3s var(--ease-out); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
    position: absolute; top: 100%; left: -20px; width: 280px;
    background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: var(--radius); padding: 10px; opacity: 0; visibility: hidden;
    transform: translateY(15px); transition: 0.3s var(--ease-out); display: flex; flex-direction: column; gap: 5px;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { padding: 10px 15px; font-size: 0.9rem; color: var(--text-muted); border-radius: 4px; }
.nav-dropdown a:hover { background: var(--bg-secondary); color: var(--brand-green); padding-left: 18px; }

/* --- MOBILE MENU UI (FIXED) --- */
.menu-toggle { 
    display: none; background: none; border: none; cursor: pointer; 
    width: 30px; height: 20px; position: relative; 
    z-index: 1101; /* Highest layer - Always clickable */
}
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text-main); position: absolute; left: 0; transition: 0.3s; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* Overlay sits UNDER the header but ON TOP of content */
.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #ffffff; 
    z-index: 1000; /* Below Header (1100), Above Content */
    padding: 120px 30px 40px; /* Top padding clears the fixed header */
    transform: translateX(100%); transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav-overlay.active { transform: translateX(0); }

.mobile-link { 
    font-size: 1.4rem; color: var(--text-main); font-weight: 600; 
    padding: 15px 0; border-bottom: 1px solid var(--border-light); 
    display: block; width: 100%; text-align: left;
}
.mobile-link:hover { color: var(--brand-green); padding-left: 10px; }

/* --- HERO SECTION --- */
.hero { 
    padding-top: 160px; 
    padding-bottom: 80px; 
    min-height: 85vh; 
    display: flex; 
    align-items: center; 
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--brand-green); background: rgba(1, 77, 51, 0.08); padding: 6px 12px; border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.image-wrapper { overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.image-wrapper img { transition: transform 1.5s var(--ease-out); width: 100%; }
.hero:hover .image-wrapper img { transform: scale(1.05); }

/* --- FEATURES GRID --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { padding: 30px; border-radius: var(--radius); transition: 0.3s; border: 1px solid transparent; }
.feature-card:hover { background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-color: var(--border-light); transform: translateY(-5px); }
.feature-icon { color: var(--brand-green); margin-bottom: 20px; background: var(--bg-secondary); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; }
.feature-card:hover .feature-icon { background: var(--brand-green); color: #fff; transform: scale(1.1); }

/* --- ABOUT & SERVICES --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 40px;
}
.service-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); transition: 0.4s var(--ease-out); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.service-card-image { height: 240px; overflow: hidden; }
.service-card-image img { height: 100%; width: 100%; object-fit: cover; transition: 0.6s var(--ease-out); }
.service-card:hover .service-card-image img { transform: scale(1.1); }
.service-card-content { padding: 30px; flex-grow: 1; position: relative; z-index: 1; background: #fff; }

/* --- CTA SECTION --- */
.cta-section { padding-bottom: 100px; background: linear-gradient(to bottom, #fff 50%, #f9f9f9 50%); }
.cta-card-premium {
    background-color: #ffffff; border-left: 5px solid var(--brand-green);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0,0,0,0.05);
    border-radius: 12px; padding: 80px; display: flex; justify-content: space-between; align-items: center; gap: 60px;
    position: relative; overflow: hidden;
}
.cta-content { flex: 1; max-width: 550px; position: relative; z-index: 2; }
.cta-eyebrow { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-green); font-weight: 600; margin-bottom: 15px; display: block; }
.cta-card-premium h2 { color: #1a1a1a; font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -0.02em; }
.cta-actions { display: flex; flex-direction: column; gap: 15px; min-width: 240px; z-index: 2; }
.cta-actions .btn-primary { width: 100%; justify-content: center; background-color: var(--brand-green) !important; color: #fff !important; }

/* --- FOOTER --- */
.footer-clean { background-color: #f8f9fa; border-top: 1px solid #eaeaea; padding: 80px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 60px; margin-bottom: 50px; }
.footer-logo { height: 90px; width: auto; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a { width: 40px; height: 40px; background: #fff; border: 1px solid #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-main); font-weight: bold; transition: 0.3s; }
.footer-socials a:hover { background: var(--brand-green); color: #fff; border-color: var(--brand-green); transform: translateY(-3px); }
.footer-links h5, .footer-contact h5 { font-size: 1rem; font-weight: 600; color: var(--brand-green); margin-bottom: 25px; text-transform: uppercase; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a:hover { color: var(--brand-green); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #e0e0e0; padding-top: 30px; text-align: center; color: #999; font-size: 0.85rem; }

/* --- WHATSAPP FIXED BUTTON --- */
.whatsapp-float { 
    position: fixed; bottom: 20px; right: 20px; z-index: 2000; 
    opacity: 1 !important; visibility: visible !important; transform: none !important;
}
.whatsapp-float a {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    background: #25d366; /* Official WhatsApp Green */
    border-radius: 50%; color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transition: all 1s var(--ease-out); }
.fade-up { transform: translateY(40px); }
.reveal.active.fade-up { opacity: 1; transform: translateY(0); }
.fade-bottom { transform: translateY(20px); }
.reveal.active.fade-bottom { opacity: 1; transform: translateY(0); }
.fade-left { transform: translateX(40px); }
.reveal.active.fade-left { opacity: 1; transform: translateX(0); }
.zoom-in { transform: scale(0.95); }
.reveal.active.zoom-in { opacity: 1; transform: scale(1); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- MEDIA QUERIES (MOBILE OPTIMIZATION) --- */
@media (max-width: 1024px) {
    /* Navigation */
    .desktop-nav, .desktop-only { display: none; }
    .menu-toggle { display: block; }
    
    /* Layout */
    .hero-inner, .about-grid, .cta-card-premium, .footer-grid, .content-grid { 
        grid-template-columns: 1fr; gap: 40px; 
    }
    
    /* Grid Resets */
    .features-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    
    /* Hero Adjustments - Text First */
    .hero { 
        padding-top: 130px; /* Reduced so text is higher */
        text-align: center; 
        min-height: auto;
    }
    
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.1rem; }
    
    /* REORDERED: Text is natural order (0), Image goes after */
    .hero-image { order: 0; margin-top: 30px; margin-bottom: 0; } 
    .content-image { order: -1; } /* Content pages keep image first if preferred, or remove this to match home */
    
    /* Buttons */
    .btn-group { justify-content: center; }
    .cta-actions { width: 100%; flex-direction: row; }
    
    /* CTA Card */
    .cta-card-premium { flex-direction: column; align-items: flex-start; padding: 40px 25px; }
}

@media (max-width: 600px) {
    .cta-actions { flex-direction: column; }
    .footer-grid { gap: 40px; }
    
    /* Ensure form inputs don't zoom on iPhone */
    input, textarea { font-size: 16px; } 
    
    /* Adjust Header Padding */
    .header { padding: 0 10px; height: 80px; }
    
    /* Refine Hero for small screens */
    .hero { padding-top: 120px; }
    h1 { font-size: 2.5rem; }
}

/* --- MOBILE SUBMENU STYLES --- */
.mobile-dropdown-container {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
}

.mobile-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Make the main link take up space but leave room for the arrow */
.mobile-link-wrapper .mobile-link {
    border-bottom: none; /* Remove border from link itself, container has it */
    flex-grow: 1;
}

/* The Arrow Button */
.mobile-dropdown-toggle {
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.mobile-dropdown-toggle.active {
    transform: rotate(180deg); /* Rotate arrow when open */
    color: var(--brand-green);
}

/* The Submenu (Hidden by default) */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fcfcfc; /* Slightly darker background to distinguish */
    padding-left: 20px; /* Indent sub-items */
}

.mobile-submenu a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    text-decoration: none;
    font-weight: 500;
}

.mobile-submenu a:last-child {
    border-bottom: none;
}

.mobile-submenu a:hover {
    color: var(--brand-green);
    padding-left: 5px;
}