/* ============================================
   AKATSWIRI BUILDING SOLUTIONS - CLEAN VERSION
   FLOATING HEADER + WORKING MOBILE MENU
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --primary: #0b3c5d;
    --primary-dark: #062a42;
    --secondary: #1a4c6d;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: var(--white);
    overflow-x: hidden;
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   FLOATING HEADER
   ============================================ */
.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   MOBILE MENU SYSTEM
   ============================================ */

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.menu-toggle i {
    font-size: 1.8rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Navigation Menu Container */
.nav-menu {
    position: relative;
    z-index: 40;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        max-width: 85% !important;
        height: 100vh !important;
        background: var(--white) !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
        padding: 90px 24px 30px !important;
        transition: right 0.35s ease-out !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        display: block !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(11, 60, 93, 0.05);
}

@media (max-width: 768px) {
    .nav-link {
        display: block !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #1f2937 !important;
        background: #f3f4f6 !important;
        border-radius: 12px !important;
        text-align: left !important;
        border: 1px solid #e5e7eb !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
        transform: translateX(5px) !important;
    }
}

/* Get Quote Button */
.get-quote-btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 14px rgba(11, 60, 93, 0.25) !important;
    white-space: nowrap;
}

.get-quote-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
    .get-quote-btn {
        margin-top: 20px !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
    }
}

/* Desktop Menu Override */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }

    .menu-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-menu:not(.active) {
        display: none !important;
    }
}

/* Menu Overlay - NO BLUR */
.menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Body Scroll Lock */
body.menu-open {
    overflow: hidden !important;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================
   TYPOGRAPHY & BUTTONS
   ============================================ */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.section-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   ACCENTS
   ============================================ */
.blue-accent {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem 0 1.5rem 0;
    border-radius: 2px;
}

.blue-accent-center {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 1.5rem auto;
    border-radius: 2px;
}

/* ============================================
   CARDS & STATS
   ============================================ */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    margin-top: 3rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.rounded-xl {
    border-radius: 16px;
}

.rounded-2xl {
    border-radius: 24px;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    button,
    .btn,
    [role="button"],
    .nav-link {
        min-height: 48px;
        min-width: 48px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* ============================================
   TOUCH FRIENDLY
   ============================================ */
@media (max-width: 768px) {

    button,
    .btn,
    [role="button"],
    .nav-link {
        min-height: 48px;
        min-width: 48px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        padding-top: 0 !important;
    }

    .header {
        position: relative !important;
    }
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}