/* ===== ENTERPRISE HERO BANNER ===== */
/* Industrial / Government-Grade Design System */

/* --- Hero Section --- */
.hero-enterprise {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #081521;
    overflow: hidden;
    padding: calc(var(--header-height) + 80px) 0 60px;
}

/* Radial depth gradient */
.hero-enterprise::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 65% 50%, #0E2238 0%, #081521 70%);
    z-index: 0;
}

/* Subtle grid pattern overlay */
.hero-enterprise::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(130, 195, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 195, 65, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* --- Layout Grid --- */
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 5fr 1fr 6fr;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* --- Left Content --- */
.hero-left {
    animation: heroFadeUp 0.8s ease-out both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #82C341;
    margin-bottom: 24px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #82C341;
    border-radius: 1px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-headline .accent {
    color: #82C341;
}

.hero-subtext {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #8a9bb5;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-subtext strong {
    color: #c8d6e5;
    font-weight: 500;
}

/* --- CTA Buttons --- */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #04b45c;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(130, 195, 65, 0.25);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn-primary:hover {
    background: #6ea737;
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(130, 195, 65, 0.35);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: #c8d6e5;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(200, 214, 229, 0.25);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-btn-secondary:hover {
    border-color: rgba(200, 214, 229, 0.5);
    color: #ffffff;
    transform: scale(1.02);
}

/* --- Stats Row --- */
.hero-metrics {
    display: flex;
    gap: 40px;
    padding-top: 16px;
    border-top: 1px solid rgba(130, 195, 65, 0.12);
}

.hero-metric {
    text-align: left;
}

.hero-metric .value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-metric .label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #5a6f8a;
}

/* --- Right Side: Blueprint Panel --- */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFadeUp 1s ease-out 0.2s both;
}

.hero-blueprint {
    position: relative;
    width: 100%;
    max-width: 560px;
}

/* Radiant center glow */
.hero-blueprint-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(130, 195, 65, 0.25) 0%, transparent 75%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    box-shadow: inset 0 0 50px rgba(130, 195, 65, 0.1);
}

/* Building SVG styling */
.hero-blueprint svg {
    width: 100%;
    height: auto;
}

.blueprint-line {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawLine 1.2s ease-out forwards;
}

/* Service Nodes */
.service-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(8, 21, 33, 0.85);
    border: 1px solid rgba(130, 195, 65, 0.2);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c8d6e5;
    white-space: nowrap;
    animation: nodeAppear 0.6s ease-out both;
    opacity: 0;
}

.service-node::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #82C341;
    box-shadow: 0 0 8px rgba(130, 195, 65, 0.4);
    animation: dotPulse 6s ease-in-out infinite;
}

/* Connector lines */
.node-connector {
    position: absolute;
    background: rgba(130, 195, 65, 0.15);
    pointer-events: none;
}

.node-connector.horizontal {
    height: 1px;
}

.node-connector.vertical {
    width: 1px;
}

/* Node positions (desktop) */
.sn-civil {
    top: 8%;
    left: -5%;
    animation-delay: 0.4s;
}

.sn-hvac {
    top: 8%;
    right: 2%;
    animation-delay: 0.6s;
}

.sn-mep {
    top: 28%;
    left: -8%;
    animation-delay: 0.8s;
}

.sn-plumbing {
    top: 25%;
    right: -2%;
    animation-delay: 1.0s;
}

.sn-electrical {
    top: 48%;
    left: -10%;
    animation-delay: 1.2s;
}

.sn-fire {
    top: 48%;
    right: 0%;
    animation-delay: 1.4s;
}

.sn-manpower {
    bottom: 32%;
    left: -10%;
    animation-delay: 1.6s;
}

.sn-housekeeping {
    bottom: 32%;
    right: -5%;
    animation-delay: 1.8s;
}

.sn-security {
    bottom: 12%;
    left: -8%;
    animation-delay: 2.0s;
}

.sn-cctv {
    bottom: 12%;
    right: 2%;
    animation-delay: 2.2s;
}

/* --- Ambient Particles --- */
.hero-particles-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ambient-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(130, 195, 65, 0.08);
}

.ambient-dot:nth-child(1) {
    top: 15%;
    left: 10%;
    animation: ambientFloat 10s linear infinite;
}

.ambient-dot:nth-child(2) {
    top: 70%;
    left: 25%;
    animation: ambientFloat 12s linear infinite 2s;
}

.ambient-dot:nth-child(3) {
    top: 40%;
    right: 15%;
    animation: ambientFloat 9s linear infinite 4s;
}

.ambient-dot:nth-child(4) {
    top: 80%;
    right: 30%;
    animation: ambientFloat 11s linear infinite 1s;
}

.ambient-dot:nth-child(5) {
    top: 25%;
    right: 40%;
    animation: ambientFloat 8s linear infinite 3s;
}

/* --- Vertical Scan Line --- */
.hero-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(130, 195, 65, 0.06), transparent);
    z-index: 1;
    animation: scanMove 10s linear infinite;
    pointer-events: none;
}

/* ===== KEYFRAMES ===== */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

@keyframes nodeAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

@keyframes ambientFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0.06;
    }

    25% {
        transform: translate(8px, -6px);
        opacity: 0.10;
    }

    50% {
        transform: translate(-4px, 4px);
        opacity: 0.08;
    }

    75% {
        transform: translate(6px, 8px);
        opacity: 0.06;
    }

    100% {
        transform: translate(0, 0);
        opacity: 0.06;
    }
}

@keyframes scanMove {
    0% {
        left: -2px;
    }

    100% {
        left: 100%;
    }
}

/* ===== TAGLINE STRIP ===== */
.tagline-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 12px) 20px 12px;
    background: transparent;
    z-index: 3;
}

.tagline-text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #A9B4C2;
    opacity: 0;
    transform: translateY(8px);
    animation: taglineFadeIn 0.6s ease-out 0.5s forwards;
    will-change: transform, opacity;
}

.tagline-line {
    display: block;
    width: 80px;
    height: 1.5px;
    background: #82C341;
    border-radius: 2px;
    margin-top: 8px;
    transform: scaleX(0);
    transform-origin: center;
    animation:
        taglineExpand 0.8s ease-out 0.8s forwards,
        taglinePulse 6s ease-in-out 1.6s infinite;
    will-change: transform, opacity;
}

/* Ambient gradient sweep behind the line */
.tagline-sweep {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(130, 195, 65, 0.05), transparent);
    animation: taglineSweep 10s linear infinite;
    will-change: transform;
    pointer-events: none;
}

/* Tagline Keyframes */
@keyframes taglineFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes taglineExpand {
    to {
        transform: scaleX(1);
    }
}

@keyframes taglinePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes taglineSweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===== RESPONSIVE ===== */


/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
        padding: 0 24px;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .hero-metric {
        text-align: center;
    }

    .hero-blueprint {
        max-width: 420px;
        margin: 0 auto;
    }

    .service-node {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .sn-mep, .sn-civil, .sn-electrical, .sn-manpower, .sn-security, .sn-cctv {
        left: 0;
    }

    .sn-hvac, .sn-plumbing, .sn-fire, .sn-housekeeping {
        right: 0;
    }

    .tagline-line {
        width: 70px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-enterprise {
        min-height: auto;
        padding: calc(var(--header-height) + 24px) 0 40px;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .hero-subtext {
        font-size: 0.95rem;
    }

    .hero-metrics {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-metric .value {
        font-size: 1.4rem;
    }

    .hero-blueprint {
        max-width: 320px;
    }

    .hero-scanline {
        display: none;
    }

    .service-node {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .sn-civil, .sn-hvac, .sn-mep, .sn-plumbing, .sn-electrical, .sn-fire, .sn-manpower, .sn-security, .sn-housekeeping, .sn-cctv {
        left: auto;
        right: auto;
    }

    .sn-civil { top: 5%; left: 0; }
    .sn-hvac { top: 5%; right: 0; }
    .sn-mep { top: 25%; left: 0; }
    .sn-plumbing { top: 25%; right: 0; }
    .sn-electrical { top: 45%; left: 0; }
    .sn-fire { top: 45%; right: 0; }
    .sn-manpower { bottom: 25%; left: 0; }
    .sn-housekeeping { bottom: 25%; right: 0; }
    .sn-security { bottom: 5%; left: 0; }
    .sn-cctv { bottom: 5%; right: 0; }

    .tagline-strip {
        padding: calc(var(--header-height) + 8px) 16px 8px;
    }

    .tagline-text {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .tagline-line {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        justify-content: center;
    }

    .hero-metrics {
        gap: 16px;
    }

    .hero-blueprint {
        max-width: 260px;
    }
}