/* =========================================
   B2C SPECIFIC STYLES
   Focus: Warm, Approachable, Hobbyist
========================================= */

body.b2c-body {
    background-color: var(--b2c-bg);
    /* #DCD1BE Light Beige */
    color: var(--b2c-text);
    overflow-y: auto;
    /* Enable scrolling */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Typography Overrides */
h1,
h2,
h3 {
    color: #4a3c2c;
    /* Deeper brown for contrast on beige */
    font-weight: 700;
}

/* =========================================
   NAVIGATION
========================================= */
.b2c-nav {
    background-color: rgba(220, 209, 190, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.b2c-nav-squirrel {
    filter: url(#remove-white) contrast(1.1) brightness(1.02);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--b2c-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--b2c-accent);
    /* #B19870 Gold */
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--b2c-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.switch-site-btn {
    border: 2px solid var(--b2b-bg);
    /* #2F4F6F */
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-size: 0.9rem;
}

.switch-site-btn::after {
    display: none;
    /* No underline for button */
}

.switch-site-btn:hover {
    background-color: var(--b2b-bg);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--b2c-text);
    z-index: 1001;
    /* Above the active menu */
}

/* =========================================
   HERO SECTION
========================================= */
.b2c-hero {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
}

.b2c-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.b2c-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.b2c-hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #5a4b3a;
}

.cta-btn {
    display: inline-block;
    background-color: var(--b2c-accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(177, 152, 112, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(177, 152, 112, 0.5);
    background-color: #a08860;
}

/* =========================================
   3D SHOWCASE (B2C)
========================================= */

.b2c-showcase-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.showcase-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--b2c-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

.b2c-showcase-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.b2c-model-wrapper {
    width: 100%;
    height: 350px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background-color: transparent;
}

.b2c-model-selection {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.b2c-model-btn {
    background: white;
    border: 2px solid transparent;
    color: #4a3c2c;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.b2c-model-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.b2c-model-btn.active {
    background: var(--b2c-accent);
    color: white;
    border-color: var(--b2c-accent);
    box-shadow: 0 8px 20px rgba(177, 152, 112, 0.4);
}

/* =========================================
   SERVICES GRID (B2C specifically)
========================================= */
.b2c-services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.b2c-services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background-color: white;
}

.icon-wrap {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #f0e9dd;
    height: 140px;
    width: 140px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-wrap img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.05rem;
    color: #555;
}

/* =========================================
   FOOTER
========================================= */
.b2c-footer {
    background-color: #cebfab;
    /* Slightly darker than bg to separate */
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.b2c-footer h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.b2c-footer p {
    margin-bottom: 2rem;
}

.terms-link {
    margin-top: 3rem;
    font-size: 0.9rem;
}

.terms-link a {
    color: #776a59;
    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);
    }
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeUpIn 0.8s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile)
========================================= */
@media screen and (max-width: 900px) {

    /* Slide in Menu styling */
    .nav-links {
        position: fixed;
        right: -100%;
        /* Start completely hidden */
        top: 82px;
        height: calc(100vh - 82px);
        width: 250px;
        background-color: var(--b2c-bg);
        /* Opaque background */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
        display: flex;
        /* Override previous display:none if any */
    }

    .nav-links.mobile-active {
        right: 0;
        /* Slide in */
    }

    /* Change link direction and size inside the mobile menu */
    .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Overlay to darken background when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
        /* Just below the nav links */
        pointer-events: auto;
        /* Allow clicking the overlay to close */
    }

    .b2c-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .b2c-hero h1 {
        font-size: 2.5rem;
    }

    .b2c-hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }
}

/* =========================================
   CONTACT MODAL
========================================= */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 60, 44, 0.6);
    align-items: center;
    justify-content: center;
}

.contact-modal.show {
    display: flex;
    animation: fadeUpInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-content {
    background-color: #fffaf0;
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(74, 60, 44, 0.15);
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--b2c-accent);
}

.modal-content p {
    margin-bottom: 2rem;
    color: #665c50;
    font-size: 1.1rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #baa27c;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #4a3c2c;
    transform: rotate(90deg);
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@keyframes fadeUpInModal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}