/* =========================================
   B2B SPECIFIC STYLES
   Focus: Cold, Professional, Industrial
========================================= */

body.b2b-body {
    background-color: #f8f9fa;
    /* Very light grey for main content */
    color: #1a1a1a;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    color: var(--b2b-bg);
    /* #2F4F6F Dark Blue/Grey */
    font-weight: 700;
    letter-spacing: -0.5px;
}

.decorator-line {
    width: 60px;
    height: 3px;
    background-color: var(--b2b-accent);
    /* #B19870 Gold */
    margin: 1.5rem 0 3rem 0;
}

/* =========================================
   NAVIGATION
========================================= */
.b2b-nav {
    background-color: var(--b2b-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.b2b-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b2b-nav .nav-logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.b2b-nav .nav-logo:hover {
    transform: scale(1.05);
}

.b2b-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.b2b-nav .nav-links a {
    text-decoration: none;
    color: #e0e5ea;
    /* Off-white */
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.b2b-nav .nav-links a:hover {
    color: var(--b2b-accent);
}

.b2b-nav .switch-site-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem !important;
    border-radius: 4px;
    /* Sharp corners */
}

.b2b-nav .switch-site-btn:hover {
    background-color: white;
    color: var(--b2b-bg) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 1001;
}

/* =========================================
   HERO SECTION
========================================= */
.b2b-hero {
    background-color: var(--b2b-bg);
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.b2b-hero h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.b2b-hero p {
    color: #aebacd;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--b2b-accent);
    color: white;
    margin-right: 1rem;
}

.btn-primary:hover {
    background-color: #9c845d;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

/* =========================================
   3D SHOWCASE (Replaces Tech Grid)
========================================= */
.showcase-container {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.b2b-showcase-title {
    font-size: 1.5rem;
    color: var(--b2b-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.model-viewer-wrapper {
    width: 100%;
    flex: 1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background-color: transparent;
}

.model-selection {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.model-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.model-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.model-btn.active {
    background: var(--b2b-accent);
    border-color: var(--b2b-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(177, 152, 112, 0.3);
}

/* =========================================
   SERVICES / CAPABILITIES
========================================= */
.b2b-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.b2b-card {
    background: white;
    padding: 3rem;
    border-top: 4px solid var(--b2b-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.b2b-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.card-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--b2b-accent);
    opacity: 0.5;
    margin-right: 1.5rem;
    font-family: monospace;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '→';
    color: var(--b2b-accent);
    margin-right: 1rem;
    font-weight: bold;
}

/* =========================================
   MATERIALS SECTION
========================================= */
.dark-bg {
    background-color: #223a54;
    /* Darker variant of main B2B bg */
    color: white;
}

.dark-bg h2,
.dark-bg .subtitle {
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.material-item h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.material-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--b2b-accent);
    transition: transform 0.3s ease;
}

.material-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}



/* =========================================
   FOOTER
========================================= */
.b2b-footer {
    background-color: #1a2c3f;
    /* Deepest blue/grey */
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.contact-info h2 {
    color: white;
    margin-bottom: 1rem;
}

.email-link {
    color: var(--b2b-accent);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: white;
}

.footer-links p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: right;
}

.footer-links a {
    color: white;
    text-decoration: underline;
}

/* =========================================
   ANIMATIONS
========================================= */
.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveals classes used by JS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media screen and (max-width: 900px) {

    /* Slide in Menu styling */
    .b2b-nav .nav-links {
        position: fixed;
        right: -100%;
        top: 89px;
        /* Fine-tuned offset to cleanly clear header */
        height: calc(100vh - 89px);
        width: 250px;
        background-color: var(--b2b-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.4s ease;
        z-index: 1000;
        display: flex;
    }

    .b2b-nav .nav-links.mobile-active {
        right: 0;
    }

    .b2b-nav .nav-links li {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .b2b-nav .nav-links a {
        display: block;
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Overlay to darken background */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 90;
        pointer-events: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .b2b-hero h1 {
        font-size: 2.5rem;
    }

    .b2b-hero p {
        margin: 0 auto 2.5rem auto;
    }

    .showcase-container {
        height: 400px;
        width: 100%;
    }

    .b2b-service-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links p {
        text-align: left;
    }
}

/* =========================================
   CONTACT MODAL
========================================= */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 44, 63, 0.8);
    align-items: center;
    justify-content: center;
}

.contact-modal.show {
    display: flex;
    animation: fadeInModal 0.3s ease forwards;
}

.modal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--b2b-accent);
}

.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: normal;
}

.modal-content p {
    margin-bottom: 2rem;
    color: #555;
    font-size: 1.1rem;
    max-width: 100%;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--b2b-bg);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}