/*
Theme Name: Akhanet Business Centre
Theme URI: https://aict.com.ng
Author: sitn
Description: Akhanet Computer Business Centre wordpress theme.
Version: 1.0
*/

/* =========================================
   1. VARIABLES & GLOBALS
   ========================================= */
:root {
    --primary: #1E7C98;
    --dark: #333;
    --light: #f4f7f8;
    --white: #ffffff;
    --whatsapp: #25D366;
    --accent: #F2994A;
}

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

body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

.container { 
    max-width: 1150px; 
    margin: auto; 
    padding: 0 20px; 
}

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

/* =========================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================= */
.hero { 
    background: linear-gradient(rgba(30,124,152,0.85), rgba(30,124,152,0.85)), url('images/hero-bg.jpg'); 
    background-size: cover; 
    background-position: center; 
    min-height: 90vh; 
    color: var(--white); 
    padding-bottom: 40px; 
}

/* Base Nav Layout */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 0; 
    flex-wrap: wrap; 
    gap: 15px; 
    position: relative; 
}

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { max-height: 80px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }

/* Main Menu */
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-menu li a { text-decoration: none; font-weight: 600; color: inherit; transition: color 0.3s ease; }
.main-menu li a:hover { color: var(--accent); }

/* Contact Buttons (Right Side) */
.nav-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.nav-phone { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.btn-nav { background: var(--white); color: var(--primary); padding: 10px 25px; text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; }
.btn-nav:hover { background: var(--accent); color: var(--white); }

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: inherit; cursor: pointer; transition: color 0.3s ease; }
.mobile-menu-toggle:hover { color: var(--accent); }

/* Inner Pages Custom Header */
.inner-header { background-color: var(--primary); padding: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.inner-header .main-menu li a { color: #ffffff; }
.inner-header .main-menu li a:hover { color: var(--accent); }
.inner-header .mobile-menu-toggle { color: #ffffff; }

/* =========================================
   3. FRONT PAGE SECTIONS
   ========================================= */
.hero-content { text-align: center; margin-top: 80px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: clamp(0.9rem, 2vw, 1.1rem); max-width: 700px; margin: 0 auto 30px; }

/* Buttons */
.btn-primary, .btn-secondary { padding: 15px 35px; text-decoration: none; border-radius: 5px; font-weight: 600; margin: 10px; display: inline-block; transition: 0.3s; }
.btn-primary { background: var(--white); color: var(--primary); }
.btn-secondary { border: 2px solid var(--white); color: var(--white); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); }

/* General Section Layout */
.services-section, .testimonials-section, .partners, .why-us, .location-section { padding: 80px 0; }
.bg-light { background: var(--light); }
.section-title { text-align: center; margin-bottom: 50px; font-size: clamp(1.8rem, 4vw, 2.2rem); }
.section-title span { display: block; font-size: 1rem; color: var(--primary); margin-top: 5px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card { background: var(--white); padding: 35px 20px; text-align: center; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--primary); }
.service-card > i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.service-card.offline > i { color: #777; }

/* Service Hover Button */
.service-hover-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 6px; padding: 10px 24px; text-decoration: none; font-weight: 600; font-size: 0.9rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.service-hover-btn i { color: inherit; }
.service-card:hover .service-hover-btn { opacity: 1; visibility: visible; transform: translateY(0); }
.service-hover-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(30, 124, 152, 0.25); }

/* Features & Spotlight */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }

.customer-spotlight { padding: 80px 0; background: var(--primary); color: var(--white); }
.spotlight-card { background: rgba(255,255,255,0.1); padding: 40px; border-radius: 20px; position: relative; }
.spotlight-badge { position: absolute; top: -15px; background: #f2994a; padding: 5px 20px; border-radius: 50px; font-weight: 600; }
.spotlight-badge i { color: var(--white); margin: 0 5px; font-size: 1.1rem; }
.spotlight-flex { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.promo-text { font-style: italic; font-size: 1.1rem; margin-bottom: 15px; font-weight: 300; }
.customer-info, .customer-image { flex: 1; min-width: 250px; }
.customer-image { text-align: center; }
.customer-image img { width: 100%; max-width: 280px; aspect-ratio: 1/1; border-radius: 15px; object-fit: cover; border: 5px solid rgba(255,255,255,0.2); margin: 0 auto; }
.btn-promo { background: white; color: var(--primary); padding: 10px 25px; text-decoration: none; border-radius: 5px; font-weight: 700; display: inline-block; margin-top: 20px; }

/* Testimonials & Partners */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 5px solid var(--primary); }
.stars { color: #f2994a; margin-bottom: 15px; }
.client-meta { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.client-meta img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.client-meta h4 { font-size: 1rem; margin-bottom: 2px; }
.client-meta span { font-size: 0.8rem; color: #777; }

.partners-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; align-items: center; }
.partner-logo img { max-width: 140px; filter: grayscale(100%); transition: 0.3s; opacity: 0.6; }
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* Contact Section Layout */
.contact-layout { display: flex; gap: 40px; flex-wrap: wrap; }
.map-container { flex: 1.5; min-width: 300px; border-radius: 15px; overflow: hidden; }
.contact-details-card { flex: 1; min-width: 300px; background: white; padding: 35px; border-radius: 15px; }
.detail-item { display: flex; gap: 15px; margin-bottom: 20px; }
.detail-item i { font-size: 1.4rem; color: var(--primary); }
.detail-item a { text-decoration: none; color: var(--primary); font-weight: 600; transition: color 0.3s ease; }
.detail-item a:hover { color: var(--accent); }
.btn-review { display: block; text-align: center; padding: 12px; border: 2px solid var(--primary); color: var(--primary); text-decoration: none; border-radius: 5px; font-weight: 600; }

/* =========================================
   4. INNER PAGES & SINGLE BLOG POST BASE
   ========================================= */
.inner-page-section { padding: 120px 0 80px; min-height: 60vh; background-color: var(--white); }
.inner-page-title { color: var(--primary); font-size: 2.5rem; text-align: center; margin-bottom: 40px; position: relative; }
.inner-page-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 15px auto 0; border-radius: 2px; }
.inner-page-content { max-width: 800px; margin: 0 auto; line-height: 1.8; color: var(--dark); font-size: 1.05rem; }
.inner-page-content p { margin-bottom: 20px; }
.inner-page-content h2, .inner-page-content h3 { color: var(--primary); margin-top: 40px; margin-bottom: 15px; }
.inner-page-content ul, .inner-page-content ol { margin-bottom: 20px; padding-left: 20px; }
.inner-page-content li { margin-bottom: 10px; }

/* Single Blog Elements */
.post-content-wrap { max-width: 800px; margin: 0 auto; }
.post-meta { text-align: center; color: #666; margin-bottom: 30px; font-size: 0.95rem; display: flex; justify-content: center; gap: 20px; }
.post-meta i { color: var(--accent); }
.post-meta a { color: #666; text-decoration: none; transition: 0.3s; }
.post-meta a:hover { color: var(--primary); }
.post-featured-image { margin-bottom: 40px; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.post-featured-image img { width: 100%; height: auto; display: block; }
/* Custom Service Call-To-Action Box */
.service-cta-box {
    background: var(--light);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--primary);
    margin-top: 50px;
}

.service-cta-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-cta-box p {
    margin-bottom: 25px;
    color: #555;
}

.service-cta-box .fa-whatsapp {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Mobile tweak for the CTA Box */
@media (max-width: 768px) {
    .service-cta-box { padding: 30px 20px; }
}

/* =========================================
   5. BLOG & SEARCH ARCHIVE GRIDS
   ========================================= */
.archive-grid, .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.archive-card, .blog-card { background: #ffffff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; }
.archive-card:hover, .blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.archive-image, .blog-image img { margin-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: none; width: 100%; object-fit: cover; }
.blog-image img { height: 200px; }

.archive-content, .blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.archive-content h2, .blog-content h3 { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.3; }
.archive-content h2 a, .blog-content h3 a { color: #333; text-decoration: none; transition: 0.3s; }
.archive-content h2 a:hover, .blog-content h3 a:hover { color: var(--primary); }

.archive-card .archive-meta { justify-content: flex-start; gap: 15px; font-size: 0.85rem; margin-bottom: 15px; }
.archive-card .inner-page-content, .blog-content p { margin-bottom: 20px; flex-grow: 1; color: #555; font-size: 0.95rem; }

.read-more { color: var(--accent); font-weight: 600; text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 5px; }
.read-more i { font-size: 0.8rem; transition: 0.3s; }
.read-more:hover { color: var(--primary); }
.read-more:hover i { transform: translateX(5px); }

/* =========================================
   6. FOOTER & FLOATING WHATSAPP
   ========================================= */
footer { background: #111; color: #777; padding: 40px 0; text-align: center; }

.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: var(--primary); /* Uses official green instead of blue to make it obvious */
    color: white; 
    padding: 12px 24px; 
    border-radius: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    font-weight: 600; 
    font-size: 1.1rem; 
    z-index: 9999; 
    box-shadow: 0 4px 15px rgba(30, 124, 152, 0.4); 
    text-decoration: none; 
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.whatsapp-float:hover { transform: translateY(-4px); background: #20b858; color: white; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

/* =========================================
   7. MOBILE & TABLET RESPONSIVENESS
   ========================================= */

/* Tablet & Mobile Menu (Under 992px) */
@media (max-width: 992px) {
    /* Show hamburger */
    .mobile-menu-toggle { display: block; }
    
    /* Reposition Contact Buttons directly under the logo and menu toggle */
    .nav-right {
        display: flex; /* Overrides the previous display: none */
        width: 100%;
        justify-content: center;
        order: 3; /* Forces it to the bottom row of the header */
        margin-top: 15px;
        padding-bottom: 10px;
    }

    /* Upgraded Mobile Dropdown Container */
    .desktop-menu-wrapper {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 15px 30px rgba(30, 124, 152, 0.15);
        padding: 10px 0;
        display: none; 
        z-index: 1000;
        border-top: 4px solid var(--accent);
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    /* Activation class handled by JavaScript */
    .desktop-menu-wrapper.active {
        display: block;
        animation: menuSlideDown 0.3s ease forwards;
    }

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

    /* Dropdown Links Layout */
    .main-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .main-menu li { border-bottom: 1px solid #f0f4f5; }
    .main-menu li:last-child { border-bottom: none; }
    
    .main-menu li a, .inner-header .main-menu li a {
        display: block;
        padding: 18px 25px;
        color: #333333 !important;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .main-menu li a:hover, .main-menu li a:active {
        background-color: var(--light);
        color: var(--primary) !important;
        padding-left: 35px;
    }
}

/* Small Phones (Under 768px) */
@media (max-width: 768px) {
    .logo img { max-height: 40px; }
    
    .hero-content { margin-top: 40px; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; padding: 0 20px; }
    .btn-primary, .btn-secondary { margin: 0; width: 100%; }
    
    .spotlight-flex { flex-direction: column-reverse; text-align: center; justify-content: center; }
    .spotlight-card { padding: 30px 20px; }
    
    .services-section, .testimonials-section, .partners, .location-section { padding: 50px 0; }
    
    /* Make hover button permanent on touch */
    .service-hover-btn { opacity: 1; visibility: visible; transform: translateY(0); margin-top: 20px; width: 100%; background: var(--light); border: 1px solid var(--primary); }
    .service-hover-btn:active { background: var(--primary); color: var(--white); transform: scale(0.98); }

    .whatsapp-float { bottom: 20px; right: 20px; padding: 10px 18px; font-size: 0.95rem; }
}