/*==========================================================
ENTITY ENTERPRISES
Premium Architectural Hero Styles
==========================================================*/

.hero {
    position: relative;
    min-height: 100vh;
    background: #FAFBFD;
    overflow: hidden; /* Prevent horizontal scrollbars and clip-path issues */
    padding: 0;
}

/* Background blueprint grid overlay (increased visibility/opacity) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 59, 140, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 59, 140, 0.055) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.hero-left {
    padding: 120px 80px 180px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    position: relative;
}

.hero-tag {
    align-self: flex-start;
    color: #0D3B8C;
    font-weight: 700;
    letter-spacing: .15em;
    font-size: .8rem;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.8rem, 4vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
    color: #081C3A;
    margin: 0 0 24px;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5F6B7A;
    max-width: 460px;
    margin: 0 0 32px;
}

.hero-buttons {
    margin-bottom: 40px;
}

.hero-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #0D3B8C;
    text-decoration: none;
    border-bottom: 2px solid #0D3B8C;
    padding-bottom: 4px;
    letter-spacing: .08em;
    transition: gap .3s;
}

.hero-explore-link:hover {
    gap: 14px;
}

/* Floating Blueprint Formulas */
.blueprint-formulas {
    position: absolute;
    right: 15%;
    top: 24%;
    z-index: 3;
    pointer-events: none;
}

/* Floating Large Blueprint Protractor/Schematic */
.blueprint-schematic-wrapper {
    position: absolute;
    right: 8%;
    top: 48%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    z-index: 1;
    pointer-events: none;
}

.blueprint-schematic {
    width: 100%;
    height: 100%;
    display: block;
}

.schematic-annotations {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: .68rem;
    color: #0D3B8C;
    opacity: .45;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* Bottom-Left Elevation Drawing */
.blueprint-elevation {
    position: absolute;
    left: 60px;
    bottom: 130px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.elevation-label {
    margin-top: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: .65rem;
    color: #0D3B8C;
    opacity: .4;
    letter-spacing: .12em;
    line-height: 1.3;
}

/* Hero Right Side - Diagonal Masked Image */
.hero-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 58vw; /* Span slightly into the left side */
    height: 100%;
    z-index: 2;
    overflow: hidden;
    /* Clear navigation links by starting the slope at 75% of viewport width (approx. 57% of container) */
    clip-path: polygon(57% 0%, 100% 0%, 100% 100%, 5% 100%);
    background: #f1f5f9;
}

.hero-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}

.hero-right:hover img {
    transform: scale(1.02);
}

/* Floating Stats Overlay Banner */
.hero-stats-overlay {
    position: absolute;
    bottom: 30px;
    left: 80px;
    width: calc(100% - 160px);
    max-width: 1280px;
    background: #081C3A;
    border-radius: 16px;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(8, 28, 58, 0.18);
}

.hero-stat-col {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.hero-stat-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 20px;
    padding-right: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    stroke: #94A3B8;
}

.stat-text h3,
.stat-text .stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px;
    line-height: 1.1;
}

.stat-text span {
    font-size: .72rem;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: .08em;
    font-weight: 600;
    display: block;
}

/*==========================================================
CSS ANIMATIONS (floating, spinning)
==========================================================*/

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-8px) translateX(4px); }
}

@keyframes floatSlowAlt {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(6px) translateX(-4px); }
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-element {
    animation: floatSlow 8s ease-in-out infinite;
}

.spinning-element {
    animation: spinSlow 50s linear infinite;
}

/*==========================================================
RESPONSIVE STYLING FOR HERO
==========================================================*/

@media (max-width: 1400px) {
    .hero-left {
        padding-left: 60px;
    }
    .blueprint-elevation {
        left: 60px;
    }
    .hero-stats-overlay {
        left: 60px;
        width: calc(100% - 120px);
    }
    .blueprint-formulas {
        right: 12%;
    }
    .blueprint-schematic-wrapper {
        right: 4%;
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 1200px) {
    .hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-left {
        padding: 140px 40px 100px;
    }
    
    .hero-right {
        position: relative;
        width: 100%;
        height: 520px;
        clip-path: none; /* Disable diagonal clip on stacked view */
    }
    
    .blueprint-formulas,
    .blueprint-schematic-wrapper,
    .blueprint-elevation {
        display: none; /* Hide floating drafting sketches on smaller screens */
    }
    
    .hero-stats-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 40px 24px;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hero-stat-col {
        flex: 1 1 40%;
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
    }
}

@media (max-width: 768px) {
    .hero-left {
        padding: 120px 24px 60px;
    }
    
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
        letter-spacing: -1px;
    }
    
    .hero-right {
        height: 380px;
    }
    
    .hero-stat-col {
        flex: 1 1 100%;
    }
}