/**
 * ═══════════════════════════════════════════════════════════════════════════
 * OPERATIO FORTIS - INDUSTRIAL RESILIENCE (B2B MASTER)
 * High-End "Ambient Steel" Aesthetic
 * Palette: Ambient Gradient (#3A3A3A -> #0F1115), Deep Cobalt (#0047AB)
 * ═══════════════════════════════════════════════════════════════════════════
 */

:root {
    --b2b-bg-dark: #0F1115;
    --b2b-bg-light: #3A3A3A;

    --b2b-surface-glass: rgba(45, 45, 45, 0.6);
    --b2b-border-light: rgba(255, 255, 255, 0.1);

    --b2b-accent: #0047AB;
    --b2b-accent-glow: rgba(0, 71, 171, 0.4);

    --b2b-text-main: #FFFFFF;
    /* Pure White */
    --b2b-text-muted: #E1E4E8;
    /* Vapor Grey */

    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEIGHTY UI ANIMATIONS (B2B)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pulse 'Heartbeat' Effect */
@keyframes systemPulse {

    0%,
    90% {
        filter: brightness(100%);
    }

    50% {
        filter: brightness(120%) drop-shadow(0 0 5px var(--b2b-accent));
    }

    100% {
        filter: brightness(100%);
    }
}

.b2b-pulse {
    animation: systemPulse 4s infinite ease-in-out;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE STYLES & ATMOSPHERE
   ═══════════════════════════════════════════════════════════════════════════ */

.b2b-page {
    background-color: var(--b2b-bg-dark);
    /* Ambient Light Gradient: Light source from top center */
    background-image:
        radial-gradient(circle at 50% 0%, var(--b2b-bg-light) 0%, var(--b2b-bg-dark) 80%);
    background-attachment: fixed;
    color: var(--b2b-text-main);
    overflow-x: hidden;
    font-family: var(--font-body);
    position: relative;
}

/* Grain / Noise Overlay using pure CSS (pseudo-element) if possible, 
   or a base64 tiny noise pattern. For cleanliness, we simulate "Materiality" 
   via a subtle pattern overlay, but standard CSS gradients are smoother.
   We'll use a very subtle noise simulation. */
.b2b-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opactiy='1'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.nav--b2b {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--section-padding-x);
    z-index: 100;
    background: transparent;
    border-bottom: none;
}

.nav--b2b .nav__logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.nav--b2b .nav__back {
    color: var(--b2b-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav--b2b .nav__back:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.b2b-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Transparent bg allows body gradient to show */
    background: transparent;
}

.b2b-hero__parallax-bg {
    position: absolute;
    inset: -100px;
    z-index: -1;
    will-change: transform;

    /* DARK LUXURY: Matching Private Page Aesthetic */
    background-image: url('infrastructure-night-generated.webp');
    background-size: cover;
    background-position: center;

    /* Very dark image like private page */
    opacity: 0.5;

    /* Subtle enhancement */
    filter: contrast(1.1) brightness(0.8) saturate(0.9);
}

/* Dual Overlay System - Like Private Page */
.b2b-hero__parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, var(--color-obsidian-slate) 70%),
        linear-gradient(180deg, rgba(15, 17, 21, 0.3) 0%, rgba(15, 17, 21, 0.85) 100%);
    z-index: 1;
}

/* Deprecated img tag style - keeping reset just in case */
.b2b-hero__image {
    display: none;
}

/* New overlay to smoothen the image into the gradient */
.b2b-hero__overlay {
    /* Overlay is now integrated into background-image */
    display: none;
}

.b2b-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: var(--space-8);
}

/* Cobalt Line - Decorative (matching private page style) */
.b2b-hero__accent-line {
    width: 60px;
    height: 1px;
    background: var(--b2b-accent);
    margin: 0 auto var(--space-8);
    opacity: 0.6;
}

.b2b-hero__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--b2b-accent);
    margin-bottom: var(--space-6);
    opacity: 0.8;
}

.b2b-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--b2b-text-main);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    /* LUXURY: Soft black shadow for perfect readability */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.b2b-hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--b2b-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
    max-width: 60ch;
    margin-inline: auto;
}

/* CTA Button - LUXURY: Matte Sapphire with Silver Edge */
.btn-b2b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-10);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;

    /* Matte Sapphire with Silver Light Edge on Top */
    background: linear-gradient(to bottom,
            rgba(225, 228, 232, 0.1) 0%,
            rgba(0, 40, 100, 0.9) 1%,
            var(--sapphire-deep) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid var(--steel-polished);
    border-width: 2px 1px 1px 1px;

    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 40, 100, 0.3);
}

.btn-b2b:hover {
    background: var(--sapphire-deep);
    box-shadow: 0 0 30px var(--sapphire-glow), 0 8px 25px rgba(0, 40, 100, 0.5);
    transform: translateY(-2px);
    border-color: var(--steel-polished);
}

/* Scroll Indicator */
.b2b-hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--b2b-text-muted);
    animation: floatDown 3s ease-in-out infinite;
}

.b2b-hero__scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}

@keyframes floatDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION (GLASS BENTO GRID)
   ═══════════════════════════════════════════════════════════════════════════ */

.b2b-services {
    padding: var(--space-32) var(--section-padding-x);
    background: transparent;
    /* Show body gradient */
}

.b2b-services__container {
    max-width: 1200px;
    margin: 0 auto;
}

.b2b-services__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-20);
    will-change: transform;
}

.b2b-services__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--b2b-text-main);
    margin-bottom: var(--space-6);
}

.b2b-services__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--b2b-text-muted);
    line-height: var(--leading-relaxed);
}

/* Grid */
.b2b-services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.b2b-card {
    position: relative;
    padding: var(--space-10);

    /* GLASSMORPHISM */
    background: var(--b2b-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Light Edge */
    border: 1px solid var(--b2b-border-light);

    will-change: transform;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.38, 0.9);
}

/* Technical Accent Glow on Hover */
.b2b-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        /* Deep depth shadow */
        0 0 30px var(--b2b-accent-glow);
    /* Cobalt Glow breathing behind */
}

.b2b-card__icon {
    color: var(--b2b-accent);
    margin-bottom: var(--space-6);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 71, 171, 0.5));
}

.b2b-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--b2b-text-main);
    margin-bottom: var(--space-4);
}

.b2b-card__description {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--b2b-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARALLAX SECTION (QUOTE)
   ═══════════════════════════════════════════════════════════════════════════ */

.b2b-parallax-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.b2b-parallax-section__bg {
    position: absolute;
    inset: -150px;
    z-index: -1;
    will-change: transform;
}

.b2b-parallax-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
}

.b2b-parallax-section__overlay {
    position: absolute;
    inset: 0;
    /* Soft blend into dark */
    background: linear-gradient(180deg, var(--b2b-bg-dark) 0%, transparent 30%, transparent 70%, var(--b2b-bg-dark) 100%);
}

.b2b-parallax-section__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-8);
}

.b2b-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--b2b-text-main);
    line-height: var(--leading-relaxed);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.b2b-contact {
    padding: var(--space-32) var(--section-padding-x);
    background: linear-gradient(to top, var(--b2b-bg-dark), rgba(0, 0, 0, 0));
    /* Fade out */
}

.b2b-contact__container {
    max-width: 900px;
    margin: 0 auto;
}

.b2b-contact__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.b2b-contact__accent {
    width: 40px;
    height: 2px;
    background: var(--b2b-accent);
    margin: 0 auto var(--space-6);
    box-shadow: 0 0 10px var(--b2b-accent);
}

.b2b-contact__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--b2b-text-main);
    margin-bottom: var(--space-4);
}

.b2b-contact__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--b2b-text-muted);
    max-width: 50ch;
    margin: 0 auto;
}

.b2b-contact__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

/* Info */
.b2b-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.b2b-info-item {
    padding: var(--space-5);
    border-left: 2px solid var(--b2b-accent);
    /* Glassy background for info items */
    background: rgba(45, 45, 45, 0.3);
    backdrop-filter: blur(5px);
}

.b2b-info-item__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--b2b-accent);
    margin-bottom: var(--space-2);
    text-shadow: 0 0 5px rgba(0, 71, 171, 0.4);
}

.b2b-info-item__value {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--b2b-text-main);
}

/* Form - Layout Fix */
.b2b-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
}

.form-group label {
    display: block;
    /* Force new line */
    color: var(--b2b-text-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    /* Force full width */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--b2b-border-light);
    color: var(--b2b-text-main);
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--b2b-accent);
    background: rgba(0, 71, 171, 0.05);
    /* Slight blue tint */
    box-shadow: 0 0 15px rgba(0, 71, 171, 0.1);
    outline: none;
}

/* Button & Privacy Note Alignment */
.b2b-form .btn-b2b {
    width: 100%;
    /* Full width button */
    justify-content: center;
    margin-top: var(--space-4);
}

.form-privacy-note {
    text-align: center;
    margin-top: var(--space-2);
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .b2b-hero {
        min-height: 600px;
    }

    .b2b-hero__content {
        max-width: 90%;
    }

    .b2b-services {
        padding: var(--space-24) var(--section-padding-x);
    }

    .b2b-contact__content {
        gap: var(--space-10);
    }
}

@media (max-width: 768px) {
    .b2b-hero {
        height: auto;
        min-height: 500px;
        padding: var(--space-24) var(--space-4);
    }

    .b2b-hero__content {
        max-width: 100%;
        padding: var(--space-6);
    }

    .b2b-services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .b2b-card {
        padding: var(--space-8);
    }

    .b2b-contact__content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .b2b-parallax-section {
        height: auto;
        min-height: 300px;
    }

    .b2b-services {
        padding: var(--space-16) var(--space-4);
    }

    .b2b-contact {
        padding: var(--space-16) var(--space-4);
    }

    .nav--b2b {
        padding: var(--space-4) var(--space-4);
    }

    .nav--b2b .nav__logo img {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 640px) {
    .b2b-hero {
        min-height: 400px;
        padding: var(--space-16) var(--space-3);
    }

    .b2b-hero__content {
        padding: var(--space-4);
    }

    .b2b-card {
        padding: var(--space-6);
    }

    .btn-b2b {
        padding: var(--space-4) var(--space-8);
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .b2b-parallax-section {
        min-height: 250px;
    }

    .b2b-parallax-section__content {
        padding: var(--space-4);
    }
}