/* 
===============================================================
MOORE INFRASTRUCTURE | 2030 DESIGN SYSTEM (DEFINITIVE)
Theme: Monolithic Luxury / Industrial Dark Mode
===============================================================
*/

:root {
    /* COLORS */
    --c-dark: #050505;
    --c-charcoal: #0F1115;
    --c-steel: #2A2E35;
    --c-border: #333842;
    
    --c-white: #FFFFFF;
    --c-gray: #B0B6C1;
    --c-light-gray: #E8EAF0;
    
    --c-blue: #0044FF;      /* High voltage blue */
    --c-cyan: #00D4FF;      /* Electric cyan for accents */
    
    /* TYPOGRAPHY */
    --font-main: 'Prompt', sans-serif;
    
    /* SPACING */
    --container-max: 1600px;
    --gutter: clamp(1.5rem, 4vw, 3rem);
    
    /* EASING */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--c-dark);
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--c-dark);
    color: var(--c-light-gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* UTILITY CLASSES */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

/* Prevent any image-based layout shift */
img {
    max-width: 100%;
    display: block;
}

/* ===============================================================
   TYPOGRAPHY
   =============================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 9rem);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--c-white);
    margin-bottom: 2rem;
}

/* Fix deprecated H1 in section warning */
section h1 {
    font-size: inherit;
}

.text-stroke {
    -webkit-text-stroke: 2px var(--c-white);
    color: transparent;
    transition: all 0.5s ease;
}

.text-blue {
    color: var(--c-blue);
}

.section-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 3rem;
    color: var(--c-white);
}

p {
    line-height: 1.6;
    font-weight: 300;
    color: #B0B6C1;
}

/* ===============================================================
   BUTTONS (MAGNETIC & GLOW)
   =============================================================== */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-magnetic.primary {
    background: var(--c-blue);
    border-color: var(--c-blue);
    color: var(--c-white);
    box-shadow: 0 0 20px rgba(0, 68, 255, 0.4);
}

.btn-magnetic.primary:hover {
    box-shadow: 0 0 40px rgba(0, 68, 255, 0.6);
    transform: scale(1.02);
}

.btn-magnetic.secondary {
    background: transparent;
    color: var(--c-white);
}

.btn-magnetic.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--c-white);
}

.btn-magnetic.full-width {
    width: 100%;
}

/* ===============================================================
   HEADER (GLASS & MINIMAL)
   =============================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 32px;
    width: auto;
    aspect-ratio: 1258 / 331;
}

.nav-desktop ul {
    display: flex;
    gap: 3rem;
}

/* Dropdown Navigation */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 240px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out-expo);
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--c-charcoal);
    font-weight: 500;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-dropdown-item:hover {
    background: rgba(0, 68, 255, 0.08);
    padding-left: 1.75rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: var(--c-charcoal);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    margin-top: 1rem;
    border-radius: 4px;
}

.nav-mobile.active {
    display: block;
    max-height: 500px;
    padding: 1rem 0;
    border: 1px solid rgba(0,0,0,0.08);
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-link-mobile {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--c-charcoal);
    transition: all 0.2s;
}

.nav-link-mobile:hover {
    background: rgba(0, 68, 255, 0.08);
    padding-left: 2rem;
}

/* Phone Display - Desktop vs Mobile */
.phone-display-desktop {
    display: none !important;
}

.btn-call-mobile {
    display: none !important;
}

/* Final CTA Section */
.cta-bg-logo {
    opacity: 0.08;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
    color: var(--c-charcoal);
}

.nav-link:hover { opacity: 1; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-blue);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after { width: 100%; }

/* ===============================================================
   HERO SECTION (THE MONOLITH)
   =============================================================== */
.hero-monolith {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 0;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    transform: none;
    transition: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(110%);
    aspect-ratio: 2064 / 1129;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(5,5,5,0.3) 0%,
        rgba(5,5,5,0.7) 50%,
        rgba(5,5,5,0.9) 100%
    );
    z-index: 1;
}

/* Grid Lines Overlay */
.grid-lines { display: none; }

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 0;
    padding-top: 12vh;
    padding-bottom: 8vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-white);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--c-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--c-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.line-wrap {
    display: block;
    overflow: hidden;
}

.word-reveal {
    display: block;
    transform: none;
    opacity: 1;
    animation: none;
}

.line-wrap:nth-child(1) .word-reveal { }
.line-wrap:nth-child(2) .word-reveal { }
.line-wrap:nth-child(3) .word-reveal { }
.line-wrap:nth-child(4) .word-reveal { }

@keyframes revealUp {
    to { transform: translateY(0); opacity: 1; }
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-desc {
    max-width: 450px;
    font-size: 1.25rem;
    color: #CCC;
    opacity: 1;
    animation: none;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    opacity: 1;
    animation: none;
}


/* ===============================================================
   SECTION 2: SERVICES DECK (THE EXPANDING GRID)
   =============================================================== */
.section-services-deck {
    padding: 8rem 0;
    background: var(--c-dark);
    overflow: hidden;
}

.deck-grid {
    display: flex;
    height: 70vh;
    min-height: 600px;
    gap: 1rem;
    width: 100%;
}

.deck-card {
    position: relative;
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s var(--ease-out-expo);
    border: 1px solid rgba(255,255,255,0.05);
}

.deck-card:hover {
    flex: 3;
    border-color: var(--c-blue);
}

.deck-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.6s ease;
    z-index: 0;
    aspect-ratio: 2064 / 1129;
}

.deck-card:hover .deck-bg {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1.05);
}

.deck-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}

.deck-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
}

.deck-num {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    position: absolute;
    top: -3rem;
    left: 0;
    transition: all 0.4s ease;
    line-height: 1;
}

.deck-card:hover .deck-num {
    color: var(--c-blue);
    transform: translateY(-10px);
}

.deck-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 0.5rem;
    transform-origin: left;
    transition: all 0.4s ease;
    white-space: nowrap;
}

/* Vertical text for collapsed state on desktop */
@media (min-width: 900px) {
    .deck-title {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        margin: 0;
    }

    .deck-card:hover .deck-title {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        position: relative;
        bottom: auto;
        left: auto;
    }
}

.deck-desc {
    font-size: 0.9rem;
    color: #CCC;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-height: 0;
    overflow: hidden;
}

.deck-card:hover .deck-desc {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    margin-top: 1rem;
}

/* ===============================================================
   INSPECTION OFFER (THE BLUEPRINT)
   =============================================================== */
.section-inspection {
    padding: 8rem 0;
    background: var(--c-dark);
    position: relative;
    overflow: hidden;
}

.inspection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.blueprint-card {
    background: #00102b;
    border: 1px solid var(--c-blue);
    padding: 3rem;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 68, 255, 0.1);
}

.blueprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 68, 255, 0.3);
    padding-bottom: 1rem;
}

.blueprint-title {
    color: var(--c-cyan);
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-white);
}

.blueprint-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #E0E2E6;
}

.blueprint-list li::before {
    content: '■';
    color: var(--c-blue);
    font-size: 0.8rem;
}

/* ===============================================================
   SECTION 4: THE STATS (WHY US REDESIGNED)
   =============================================================== */
.section-stats {
    padding: 10rem 0;
    background: var(--c-charcoal);
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stats-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%) brightness(0.4);
    transform: scale(1.1); /* Subtle zoom for cinematic feel */
    aspect-ratio: 2064 / 1129;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 17, 21, 0.95), rgba(15, 17, 21, 0.7));
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0; /* Remove gap for borders */
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}

.stat-item {
    position: relative;
    padding: 4rem 2rem;
    border-right: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255,255,255,0.03);
}

.stat-val {
    font-size: 5rem;
    font-weight: 700;
    color: var(--c-blue);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 0 30px rgba(0, 68, 255, 0.2);
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-white);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.05em;
}

.stat-desc {
    font-size: 1rem;
    color: #CCC;
    max-width: 300px;
    line-height: 1.5;
}

/* ===============================================================
   SECTION 5: PROCESS BLUEPRINT
   =============================================================== */
.section-process-v2 {
    padding: 10rem 0;
    background: #08090C;
}

.process-diagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4rem;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.process-node {
    padding: 3rem 2rem;
    border-right: 1px solid var(--c-border);
    position: relative;
    transition: all 0.4s ease;
}

.process-node:last-child { border-right: none; }

.process-node:hover {
    background: rgba(255,255,255,0.02);
}

.node-marker {
    width: 12px;
    height: 12px;
    background: var(--c-dark);
    border: 2px solid var(--c-blue);
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-node:hover .node-marker {
    background: var(--c-blue);
    box-shadow: 0 0 15px var(--c-blue);
}

.node-step {
    font-size: 0.8rem;
    color: var(--c-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.node-title {
    font-size: 1.5rem;
    color: var(--c-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.node-desc {
    font-size: 0.9rem;
    color: var(--c-gray);
}


/* ===============================================================
   PAGE: SOLUTIONS (THE SPEC SHEET)
   =============================================================== */
.page-header {
    padding: 15rem 0 6rem;
    background: var(--c-dark);
    border-bottom: 1px solid var(--c-border);
}

.page-intro {
    padding: 6rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.solution-specs {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 10rem;
}

.spec-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--c-charcoal);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: var(--c-blue);
    transform: translateY(-5px);
}

.spec-media {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.spec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.5s ease;
}

.spec-card:hover .spec-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.spec-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--c-border);
}

.spec-type {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.spec-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    line-height: 1;
}

.spec-desc {
    font-size: 1rem;
    color: #CCC;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.spec-details {
    display: grid;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.spec-list-title {
    font-size: 0.8rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-white);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.spec-list li::before {
    content: '■';
    font-size: 0.6rem;
    color: var(--c-blue);
}

/* ===============================================================
   APPROACH SECTION (REFINED)
   =============================================================== */
.section-approach {
    padding: 10rem 0;
    background: var(--c-charcoal);
    border-top: 1px solid var(--c-border);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.approach-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.approach-item:hover {
    border-color: var(--c-blue);
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.approach-num {
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.approach-item:hover .approach-num {
    color: rgba(0, 68, 255, 0.1);
    transform: scale(1.1);
}

.approach-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.approach-title::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--c-blue);
    display: inline-block;
}

.approach-desc {
    font-size: 1rem;
    color: #CCC;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ===============================================================
   FOOTER
   =============================================================== */
.site-footer {
    background: var(--c-charcoal);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--c-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand h2 {
    color: var(--c-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Force footer logo to white */
.footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--c-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--c-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* ===============================================================
   MODAL (PREMIUM OVERLAY)
   =============================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-container {
    position: relative;
    z-index: 2;
    background: var(--c-charcoal);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--c-gray);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--c-white); }

.modal-content {
    overflow-y: auto;
    padding: 0;
    max-height: 90vh;
    /* Hide Scrollbar (Premium Feel) */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--c-border);
    background: #0a0a0a;
}

.modal-tab {
    flex: 1;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--c-gray);
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.modal-tab:hover { color: var(--c-white); background: rgba(255,255,255,0.02); }

.modal-tab.active {
    color: var(--c-blue);
    border-bottom-color: var(--c-blue);
    background: var(--c-charcoal);
}

/* Panels */
.modal-panel {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

.modal-panel.active { display: block; }

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--c-white);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--c-gray);
}

/* Form Styles */
.form-group { margin-bottom: 1.5rem; }

.form-group-row {
    display: flex;
    gap: 1rem;
}
.form-group-row .form-group { flex: 1; }

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--c-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.form-input, .form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    color: var(--c-white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--c-blue);
    background: rgba(0, 68, 255, 0.05);
}

/* Fix for Select Options (Dark Mode) */
.form-select option {
    background-color: var(--c-charcoal);
    color: var(--c-white);
    padding: 10px;
}
/* Force browser to render dark native controls */
.form-select {
    color-scheme: dark; 
}

.form-section-divider {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--c-blue);
    font-weight: 700;
    margin: 2rem 0 1rem;
    border-top: 1px solid var(--c-border);
    padding-top: 1rem;
}

/* Checkboxes & Radios */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-light-gray);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input, .radio-label input { display: none; }

.checkbox-custom, .radio-custom {
    width: 18px;
    height: 18px;
    border: 1px solid var(--c-gray);
    border-radius: 3px;
    position: relative;
    transition: all 0.2s;
}

.radio-custom { border-radius: 50%; }

.checkbox-label input:checked + .checkbox-custom,
.radio-label input:checked + .radio-custom {
    background: var(--c-blue);
    border-color: var(--c-blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .inspection-grid { 
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Better mobile styling for blueprint card */
    .blueprint-card {
        padding: 2rem 1.5rem;
    }
    
    .blueprint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .blueprint-title {
        font-size: 0.75rem;
    }
    
    .price-tag {
        font-size: 2rem;
    }
    
    .blueprint-list li {
        font-size: 0.9rem;
    }
    
    /* Inspection section padding */
    .section-inspection {
        padding: 6rem 0;
    }
    
    .hero-title { font-size: 2.6rem; }
    
    .deck-grid { flex-direction: column; height: auto; }
    .deck-card { height: 220px; flex: none; }
    .deck-card:hover { height: 220px; flex: none; }
    .deck-title { writing-mode: horizontal-tb; transform: none; position: relative; bottom: auto; left: auto; }
    /* Force full color on mobile */
    .deck-bg { filter: grayscale(0%) brightness(0.9); }
    
    .process-diagram { grid-template-columns: 1fr; border: none; }
    .process-node { border-right: none; border-left: 1px solid var(--c-border); }
    .node-marker { top: 2rem; left: -6px; }
    
    .stats-grid { grid-template-columns: 1fr; border-bottom: none; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 3rem 0; }
    
    /* Solutions Page */
    .page-header { padding: 6rem 0 3rem; }
    .section-approach { padding: 6rem 0; }
    .hero-title { font-size: 2.6rem; }
    .spec-card { grid-template-columns: 1fr; }
    .spec-content { border-left: none; border-top: 1px solid var(--c-border); padding: 3rem 2rem; }
    .spec-media { height: 300px; min-height: auto; }
    .spec-img { filter: grayscale(0%) brightness(0.9); } /* Force color on mobile */
    
    /* Hide desktop nav, show hamburger */
    .nav-desktop { display: none !important; }
    .hamburger-menu { display: flex !important; }
    .header-inner { justify-content: space-between; }
    
    /* Hide ALL CTA buttons on mobile header */
    .header-cta {
        display: none !important;
    }
    
    /* Hide Email Us button on mobile in final CTA */
    .btn-cta-email {
        display: none !important;
    }
    
    /* Make background logo more visible on mobile */
    .cta-bg-logo {
        opacity: 0.12 !important;
        width: 500px !important;
    }
    
    /* Footer Stacked on Mobile */
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 3rem; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .footer-brand a { display: block; margin-bottom: 1rem; width: auto; }
    .footer-nav ul { flex-direction: column; gap: 1.5rem; align-items: center; }
    
    /* Modal Mobile */
    .modal-container { width: 95%; max-height: 95vh; }
    .form-group-row { flex-direction: column; gap: 0; }
    .checkbox-grid { grid-template-columns: 1fr; }
}

/* Desktop-only styles */
@media (min-width: 901px) {
    /* Show phone number, hide call button */
    .phone-display-desktop {
        display: inline-block !important;
    }
    .btn-call-mobile {
        display: none !important;
    }
    .nav-mobile {
        display: none !important;
    }
}
