:root {
    --primary-color: #0C2340;  /* Brand Navy */
    --accent-color: #8b1d1d;   /* Brand Red Crimson */
    --text-dark: #1e272e;
    --text-light: #ffffff;
    --bg-muted: rgba(245, 246, 248, 0.4); /* Smooth transparent gray tracking rule */
    --border-color: #d2d7df;
    --inter: 'Inter', sans-serif;
}

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

body {
    font-family: var(--inter);
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Notification Header Banner */
.top-banner {
    background-color: #f3f4f6;
    text-align: center;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    border-b: 1px solid var(--border-color);
    position: relative;
    z-index: 1100;
}

/* Header & Flex Navigation */
.main-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.logoimg {
    height: 80px;
    width: auto;
    border: 4px solid var(--accent-color);
    padding: 2px;
    object-contain: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

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

/* Attention-Grabbing Pulsing Contact Link */
.contact-pulse {
    animation: pulseContactColor 3s ease-in-out infinite;
}

@keyframes pulseContactColor {
    0%, 100% { color: var(--primary-color); }
    50% { color: var(--accent-color); }
}

.header-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(12,35,64,0.15);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.header-btn:hover {
    background-color: #1a365d;
}

/* Layered Hero Architecture */
.hero-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 35%, #ffffff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cncb-image-layer {
    position: absolute;
    inset: 0;
    background-image: url('images/CNCBG.png');
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

.animated-lines-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.drafting-line {
    stroke: #ffffff;
    stroke-width: 2px;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: sweepLine 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Organically Staggered Animation Tracks */
.drafting-line:nth-child(1) { animation-delay: 0s; animation-duration: 4.5s; opacity: 0.25; }
.drafting-line:nth-child(2) { animation-delay: 0.6s; animation-duration: 5.2s; opacity: 0.12; }
.drafting-line:nth-child(3) { animation-delay: 1.2s; animation-duration: 4.0s; opacity: 0.22; }
.drafting-line:nth-child(4) { animation-delay: 1.8s; animation-duration: 5.8s; opacity: 0.10; }
.drafting-line:nth-child(5) { animation-delay: 2.4s; animation-duration: 4.4s; opacity: 0.26; }
.drafting-line:nth-child(6) { animation-delay: 3.0s; animation-duration: 5.0s; opacity: 0.14; }
.drafting-line:nth-child(7) { animation-delay: 3.6s; animation-duration: 5.5s; opacity: 0.18; }
.drafting-line:nth-child(8) { animation-delay: 4.2s; animation-duration: 4.2s; opacity: 0.12; }
.drafting-line:nth-child(9) { animation-delay: 4.8s; animation-duration: 6.0s; opacity: 0.20; }
.drafting-line:nth-child(10) { animation-delay: 5.4s; animation-duration: 4.8s; opacity: 0.24; }

@keyframes sweepLine {
    0% { stroke-dashoffset: 2500; }
    70% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2500; }
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.hero-text-block {
    max-width: 650px;
    color: #ffffff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.highlight-red {
    color: #ef4444;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-slide-in {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(139,29,29,0.3);
    opacity: 0;
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Service Layout Container */
.main-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px;
}

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.accent-bar {
    width: 80px;
    height: 6px;
    background-color: var(--accent-color);
    margin: 16px auto 0 auto;
    border-radius: 3px;
}

/* Grid Matrix Layout */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

/* 100% Completely Flat Stable Card Architecture */
.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    height: 100%;
    
    /* Strict hardware containment flags */
    backface-visibility: hidden;
}


.card-top-block {
    margin-bottom: 24px;
}

.icon-frame {
    width: 70px;
    height: 70px;
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: var(--primary-color);
}

.svg-icon {
    width: 32px;
    height: 32px;
}




.card-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.testimonial-bubble {
    background-color: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-mark {
    position: absolute;
    top: -5px;
    left: 15px;
    font-size: 3rem;
    color: rgba(139, 29, 29, 0.15);
    font-family: serif;
}

.quote-text {
    font-style: italic;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 12px;
}

.quote-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.quote-author span {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-action-btn {
    display: block;
    background-color: #f1f5f9;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 14px 0;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
/* Custom Responsive Menu Controls */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.roof-bar {
    position: absolute;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* 5 Bars configuring the explicit house architecture graphic shape */
.bar-chimney { width: 4px; height: 10px; transform: translate(-10px, -15px); } 
.bar-left-slope { width: 24px; transform: translate(-9px, -8px) rotate(-38deg); } 
.bar-right-slope { width: 24px; transform: translate(9px, -8px) rotate(38deg); } 
.bar-horizontal-1 { width: 38px; transform: translateY(6px); } 
.bar-horizontal-2 { width: 38px; transform: translateY(16px); }

/* Animation active changes converting shape cleanly into an 'X' */
.menu-toggle.is-active .bar-chimney { opacity: 0; transform: translate(-10px, -25px) scale(0); }
.menu-toggle.is-active .bar-left-slope { width: 34px; transform: rotate(45deg); }
.menu-toggle.is-active .bar-right-slope { width: 34px; transform: rotate(-45deg); }
.menu-toggle.is-active .bar-horizontal-1,
.menu-toggle.is-active .bar-horizontal-2 { opacity: 0; transform: scaleX(0); }

.mobile-menu-overlay {
    display: none;
}

/* Footing Layout */
.main-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 80px 24px 48px 24px;
}

.footer-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 64px;
}

.footer-column h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
}

.meta-label {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.contact-details p, .partner-details p, .partner-anchor {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    text-decoration: none;
    margin-bottom: 8px;
}

.partner-anchor:hover {
    color: #ef4444;
}

.division-text, .email-text {
    font-size: 0.9rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
}

.footer-cta-block {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.footer-cta-block h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-cta-block p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
}

.footer-action-btn {
    display: block;
    background-color: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.footer-action-btn:hover {
    background-color: #e2e8f0;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 1px;
    margin-top: 48px;
}

/* Responsive Media Queries BREAKOUT RULES */
@media (max-width: 1024px) {
    .services-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    .logo-text {
        font-size: 1rem;
    }
    
    .mobile-menu-overlay {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 32px 24px;
        flex-direction: column;
        gap: 20px;
        z-index: 999;
    }

    .mobile-menu-overlay.show {
        display: flex;
    }

    .mobile-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        text-transform: uppercase;
    }

    .mobile-btn {
        display: block;
        background-color: var(--primary-color);
        color: #ffffff;
        text-decoration: none;
        text-align: center;
        padding: 14px 0;
        border-radius: 8px;
        font-weight: 700;
    }

    .hero-container {
        background: var(--primary-color);
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .services-grid-container {
        grid-template-columns: 1fr;
    }

    .footer-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
