/* style.css - Enterprise Edition */
:root {
    /* --primary: #006616; */
    --primary: #094400;
    /* Deep Blue */
    --primary-dark: #094400;
    --accent: #F4C430;
    /* Veichi Orange */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    /* Very light grey for general sections */
    --bg-grey: #f0f2f5;
    /* DISTINCT GREY for About Section */
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-dark);
    color: #ccc;
    font-size: 13px;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a:hover {
    color: var(--white);
}

/* --- Header (Sticky) --- */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: 80px;
    transition: all 0.3s ease;
}

header.sticky {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    height: 100%;
    gap: 5px;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 0 15px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--primary);
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent) !important;
    border-bottom: 3px solid var(--accent);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.dropdown li a:hover {
    background: #f0f0f0;
    color: var(--primary);
    padding-left: 25px;
}

.btn-quote {
    background: var(--accent);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-quote:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

/* Mobile Nav Elements (Hidden on Desktop) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    height: 600px;
    background: linear-gradient(rgba(26, 26, 26, 0.6), rgba(29, 29, 29, 0.6)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    border-left: 5px solid var(--accent);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 30px;
    color: #ddd;
}

.hero-btns .btn {
    padding: 15px 35px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-right: 15px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
}

/* --- GREY ABOUT SECTION --- */
.bg-grey {
    background-color: var(--bg-grey);
    position: relative;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-label {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.about-title {
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-list {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-list li {
    position: relative;
    padding-left: 25px;
    color: var(--text-main);
    font-weight: 600;
}

.about-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: translateY(-5px);
}

/* --- Cards & Grid --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-info {
    padding: 25px;
    flex-grow: 1;
}

.product-info h3 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.product-cat {
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Services (Solution Grid) --- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.solution-card {
    border: 1px solid lightgrey;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: #e68a00;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sol-img,
.product-img {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
}

.sol-img img,
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.solution-card:hover img {
    transform: scale(1.1);
}

.sol-content {
    padding: 25px;
    flex-grow: 1;
}

.sol-content h3 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.link-arrow {
    color: #F4C430;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.link-arrow:hover {
    color: var(--primary);
    text-decoration: underline;
}

.link-arrow i {
    margin-left: 5px;
    transition: margin-left 0.2s;
}

.link-arrow:hover i {
    margin-left: 10px;
}

/* --- Stats --- */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
}

/* --- Footer --- */
footer {
    background: #111;
    color: #aaa;
    font-size: 14px;
}

.footer-top {
    padding: 70px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    background: #000;
    padding: 20px 5%;
    border-top: 1px solid #222;
    text-align: center;
}

/* --- RESPONSIVE MEDIA QUERIES (Mobile/Tablet) --- */
@media (max-width: 900px) {

    /* Hide Top Bar & Desktop Buttons */
    .top-bar,
    .desktop-only {
        display: none !important;
    }

    /* Adjust Hamburger Visibility */
    .hamburger {
        display: block;
    }

    /* Mobile Drawer Styles */
    /* Mobile Drawer Styles - UPDATED FOR SCROLLING */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh; /* Full viewport height */
        background: var(--primary);
        
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to start */
        align-items: center;
        
        transition: 0.4s ease;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        
        /* SCROLLING LOGIC */
        overflow-y: auto;  /* Allows scrolling if content is long */
        padding-top: 80px; /* Space for the Close button at top */
        padding-bottom: 50px; /* Space at bottom */
    }

    /* Class added by JS to open drawer */
    .nav-menu.active {
        right: 0;
    }

    /* Links inside drawer */
    .nav-item {
        height: auto;
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        color: var(--white);
        font-size: 1.2rem;
        height: auto;
        padding: 10px;
        border-bottom: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent) !important;
        border-bottom: none;
    }

    /* Dropdown inside drawer */
    /* Dropdown inside drawer - UPDATED */
    .dropdown {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        /* Slight background to distinguish */
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        display: none;
        /* Hidden by default */
        padding-left: 0;
    }

    /* Remove hover logic for mobile, rely on JS click */
    .nav-item:hover .dropdown {
        display: none;
    }

    /* THIS SHOWS THE MENU WHEN CLICKED (JS adds this class) */
    .nav-item.dropdown-active .dropdown {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown li a {
        color: #eee;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 0;
        font-size: 1rem;
    }

    .dropdown li a:hover {
        background: transparent;
        color: var(--accent);
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add simple toggle logic if needed, or just display block for simplicity */
    .nav-item:hover .dropdown {
        display: block;
    }

    .dropdown li a {
        color: #ccc;
        border-bottom: none;
        padding: 8px 0;
    }

    .dropdown li a:hover {
        background: transparent;
        color: var(--white);
    }

    /* Close Button */
    .close-btn {
        display: block;
    }

    /* Hero adjustments */
    .hero {
        height: 500px;
        text-align: center;
    }

    .hero-content {
        padding-left: 0;
        border-left: none;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
        /* Smaller font for mobile */
    }

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

    /* About Wrapper */
    .about-wrapper {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        /* Image on top in mobile */
        margin-bottom: 20px;
    }
}

/* Sidebar Active State Highlight (For Solution Detail Page) */
.sidebar-links a {
    display: block;
    padding: 12px 15px;
    color: #555;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-links a:hover {
    background: #f4f4f4;
    color: var(--primary);
}

.sidebar-links a.active {
    background: #fff3e0;
    color: var(--accent);
    font-weight: 700;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}