/* =============================================
   MOBILE MENU BUTTON
   Hidden on desktop, shown inside the
   @media breakpoint below.
   ============================================= */

#mobile-cta {
    display: none;
    padding: 0.3em 1.2em;
    font-size: 0.8em;
    font-family: 'BOLD';
    color: white;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.25s;
}

#mobile-cta:hover {
    background: var(--color-primary);
}

#mobile-menu-button-col {
    display: none;
    align-items: center;
    justify-content: center;
    flex-basis: 3em;
    font-size: 2em;
    z-index: 1100;
}

#mobile-menu-button {
    cursor: pointer;
    user-select: none;
    line-height: 1;
    transition: transform 0.3s ease;
    padding-bottom: 0.3em;
}

#mobile-menu-button.open {
    transform: rotate(90deg);
}

/* Prevent page scroll when mobile nav is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* =============================================
   #mobile-nav  –  Fullscreen overlay panel
   Built dynamically by menu.js from the desktop
   megamenu links (single source of truth).
   ============================================= */

#mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--header-height) + 1em) 1.5em 3em;
    background: linear-gradient(
        to bottom,
        rgb(6, 39, 6) 0%,
        rgb(10, 10, 10) 100%
    );
    backdrop-filter: blur(20px);
}

#mobile-nav.open {
    display: flex;
}

/* Section groups */
.mobile-nav-group {
    width: 100%;
    max-width: 400px;
    padding: 1.2em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-group h3 {
    font-family: "REGU", sans-serif;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
}

.mobile-nav-group a {
    display: block;
    padding: 0.55em 0;
    font-size: 1.15em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-group a:hover,
.mobile-nav-group a:active {
    color: var(--color-primary);
}


/* =============================================
   MOBILE BREAKPOINT — phones & small devices
   ============================================= */
@media screen and (max-width: 768px) {
    :root {
        --page-width: 90%;
        --header-height: 3em;
    }


    .sidebyside .columns {
        flex-direction: column;
        gap: 1.5em;
    }

    .sidebyside .columns img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 1em;
        object-fit: cover;
    }


    .sidebyside .columns-reverse {
        flex-direction: column-reverse;
        gap: 1.5em;
    }

    .sidebyside .columns-reverse img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 1em;
        object-fit: cover;
    }




    /* Mobile nav: hamburger left, logo absolute center, contact right */
    #main-menu-content {
        justify-content: space-between;
        padding: 0 0.8em;
    }

    #mobile-menu-button-col {
        order: 1;
        display: flex !important;
        flex-basis: auto;
        font-size: 1.5em;
    }

    #main-menu-logo-col {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex-grow: 0;
        flex-basis: auto;
        z-index: 10;
    }

    #navilogo {
        position: static;
    }

    #logo {
        height: 70%;
    }

    #main-menu-navi-items-col {
        display: none !important;
    }

    #main-menu-contact-col {
        order: 3;
        flex-basis: auto;
    }

    .main-cta-button {
        display: none;
    }

    #mobile-cta {
        display: inline-block;
        align-self: center;
    }

    /* Desktop megamenu stays hidden on mobile */
    #megamenu {
        display: none !important;
    }

    /* Hide breadcrumbs on mobile */
    .breadcrumbs {
        display: none;
    }

    /* --- Page layout adjustments --- */
    .page-content {
        margin-top: 3em;
        width: 90%;
        padding: 0 0.5em;
        margin-bottom: 750px;
    }

    #footerRoot {
        width: 100%;
        margin-left: 0;
        height: auto;
        min-height: 500px;
        padding-top: 2em;
        padding-bottom: 1em;
    }

    #footerZones {
        width: 95%;
        height: auto;
        flex-direction: column;
        gap: 1em;
    }

    #footerZone1 {
        width: 100%;
        height: auto;
        padding: 1em 0;
    }

    .bcardGizmo {
        width: 90%;
    }

    .arrows {
        font-size: 2em;
    }

    #footerZone2 {
        width: 100%;
        font-size: 1.2em;
    }

    #footerblock1 {
        flex-direction: row;
        gap: 1.5em;
        padding: 0.5em;
    }

    #companyInfo {
        width: 50%;
    }

    #companyLinks {
        width: 50%;
    }

    .footlink {
        display: block;
        padding-left: 1.5em;
        margin: 0.3em 0;
    }

    #footerblock2 {
        align-items: center;
        text-align: center;
        padding: 0.5em;
    }

    .container {
        padding: 0 0.5em;
    }

    /* PRODUCT SECTION */
    .product-list {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-card {
        max-width: 100% !important; 
    }

    .product-card h3 {
        font-size: clamp(0.5em, 7vw, 3.0em);
    }

    .product-card h4 {
        font-size: clamp(1.0em, 2.5vw, 3.2em);
    }

    .product-card img {
        padding: 1em;
        width: 90%;
        align-self: center;
    }

    .product-card-body {
        border-left: 0.2em solid var(--color-primary);
        padding: 0rem 0.5rem;
        margin: 1.5rem 0;
    }

    .product-main-topic {
        font-size: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .product-btn {
        font-size: small;
    }

    .btn-arrow {
        font-size: small;
    }

    /* HERO SPLIT */
    .hero-split {
        flex-direction: column;
        padding: 0;
        overflow: hidden;
        margin: 0 -0.5em;
    }

    .hero-text {
        flex: none;
        width: 100%;
        text-align: center;
        order: 2;
        margin-top: -2em;
        z-index: 2;
    }

    .hero-text h1 {
        text-align: center !important;
        font-size: 1.4em;
    }

    .hero-ctas {
        display: none !important;
    }

    .hero-image {
        order: 1;
        width: 150%;
        margin-left: -50%;
        mask-image: linear-gradient(to right, transparent 10%, black 40%),
                    linear-gradient(to bottom, black 70%, transparent);
        mask-composite: intersect;
        overflow: hidden;
    }

    /* SLIDER CONTROLS */
    .controls {
        top: 50%;
        transform: translateY(-50%);
    }

    .control {
        width: 2em;
        font-size: 1em;
    }

    /* HOME INDUSTRIES */
    #home-industries {
        grid-template-columns: 1fr;
    }

    /* 3D FEATURES GRID */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .card3D {
        height: 150px;
    }

    .cardFront,
    .cardBack {
        padding: 0.5em;
    }

    .cardContent {
        width: 95%;
        height: 95%;
        overflow: hidden;
    }

    .cardContent h3 {
        font-size: 0.6em;
    }

    .cardContent img {
        max-width: 60px;
    }

    .hover3D {
        transform: rotateY(-180deg) translateZ(-30px);
    }

    .cardBack .cardContent {
        padding: 0 0.8em;
    }

    .cardBack p {
        font-size: 0.45em;
        line-height: 1.2;
        padding: 0.2em 0;
    }

    .cardBack h3 {
        font-size: 0.5em;
        margin-bottom: 0.2em;
    }

    .cardFront .cardContent {
        justify-content: center;
        gap: 0.3em;
    }

    .upperBox {
        flex-grow: 0;
    }

    .cardFront::after {
        font-size: 0.7em;
    }

    .desktop-only {
        display: none !important;
    }

    /* PROMO LOGOS */
    #promo {
        height: 50px;
    }

    .logo_items img {
        height: 50px;
    }

    .logos {
        mask-image: linear-gradient(to right,
            transparent, black 50px,
            black calc(100% - 50px), transparent);
    }

    /* COMPARISON SECTION */
    .comparison-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-heading {
        order: 1;
        text-align: center;
    }

    .comparison-table {
        order: 2;
    }

    .comparison-heading h2 {
        font-size: 1.6rem;
    }

    /* TABLE MOBILE CLEANUP */
    .comparison-wrapper {
        padding: 1em 0;
    }

    .comparison-heading h2 {
        font-size: 1.3rem;
    }

    .comparison-heading p {
        font-size: 0.8rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1.8fr 1fr 1fr 1fr;
        font-size: 0.75rem;
        gap: 0.2em;
    }

    .table-header {
        padding: 0.8em 1em;
        font-size: 0.75rem;
    }

    .table-row {
        padding: 0.7em 1em;
    }

    .table-row div:first-child {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .sub-table-header {
        padding: 0.7em 1em;
        font-size: 0.72rem;
    }

    .info-icon {
        display: none;
    }

    /* FEATURE SECTION CAROUSEL */
    .feature-section {
        padding: 1.5em 0;
    }

    .feature-section-text {
        padding: 0 1em;
        margin-bottom: 1em;
    }

    .feature-section-text h2 {
        font-size: 1.2em;
    }

    .feature-section-text p {
        font-size: 0.85em;
    }

    .feature-section-track {
        gap: 0.8em;
        padding: 0 20%;
    }

    .feature-section-slide img {
        height: 220px !important;
        width: auto;
    }

    .feature-section-slide h4 {
        font-size: 0.75em;
    }

    .feature-section-slide span {
        font-size: 0.65em;
    }

    .feature-section-controls {
        margin-top: 0.8em;
    }

    /* CONTACT FORM */
    .contact-form {
        width: 100%;
        padding: 0 0.5em;
    }

    .contact-form .form-group {
        flex-direction: column;
        gap: 0.3em;
    }

    .contact-form .form-title {
        width: 100%;
    }

    .contact-form .form-fields div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* About page mobile tweaks */
    #about .team-card {
        padding: 20px;
    }

    #about .logo-carousel__track {
        padding: 28px;
    }

    #about .team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        justify-items: stretch;
    }

    #about .team-section {
        padding-left: 0;
        padding-right: 0;
    }

    #about .team-card--profile {
        display: grid;
        grid-template-columns: minmax(80px, 120px) 1fr auto;
        align-items: center;
        padding: 16px 18px 16px 24px;
        column-gap: clamp(12px, 3vw, 16px);
        border-radius: 0 14px 14px 0;
        width: 100%;
        max-width: none;
    }

    #about .team-card--profile .team-card__accent {
        display: none;
    }

    #about .team-card--profile .team-card__media {
        grid-column: 1;
        width: 100%;
        max-width: 120px;
        min-width: 80px;
        margin: 0;
    }

    #about .team-card--profile:hover .team-card__media {
        transform: scale(0.9);
    }

    #about .team-card--profile .team-card__body {
        grid-column: 2;
        gap: 8px;
    }

    #about .team-card--profile .team-card__bio {
        min-height: auto;
        font-size: 0.95rem;
    }

    #about .team-card--profile .team-card__contact {
        grid-column: 3;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: clamp(0.6rem, 2vw, 0.9rem);
        padding-left: clamp(12px, 3vw, 18px);
        border-left: 1px solid rgba(255, 255, 255, 0.25);
        margin-top: 0;
        height: 100%;
        align-self: stretch;
    }

    #about .team-card--profile .team-card__contact-btn {
        width: clamp(32px, 8vw, 40px);
        height: clamp(32px, 8vw, 40px);
    }

    #about .team-card--profile .team-card__contact-btn img {
        width: clamp(14px, 4vw, 18px);
        height: clamp(14px, 4vw, 18px);
    }

    #about .team-card--profile h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        line-height: 1.3;
    }

    #about .team-card--profile .team-card__role {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    }

    .product-intro {
        flex-direction: column;
        gap: 1.5em;
    }

    #testimonialSlider {
        height: auto;
    }

    .testimonial-card {
        align-items: center;
        text-align: center;
        width: 90%;
        gap: 0;
        padding: 0.5em;
        font-size: 0.85rem;
    }

    .testimonial-body {
        flex-direction: column;
        align-items: center;
        gap: 1.2em;
        padding: 0 1em;
    }
    
    .testimonial-avatar {
        margin-top: 1em;
        width: 18vw;
    }

     .body-right {
        width: 100%;
        align-items: center;
    }

    .testimonial-quote {
        line-height: 1.6;
        padding-left: 0.5em; 
    }

    .testimonial-quote::before {
        font-size: 3em;
    }

    .testimonial-footer {
        justify-content: center;
        margin-top: 1.2em;
    }
    .testimonial-author {
        align-items: center;
        align-self: center;
    }

    .readmore {
        gap: 1em;
        flex-direction: column;
    }

    .serviceContainer,
    .serviceContainer.flipped {
        flex-direction: column;
    }

    .serviceContainer .imageContainer {
        flex: none;
        width: 100%;
    }

   #about h1,
    #about h2,
    #about h3 {
        word-break: break-word;
    }

    #about .team-grid {
        gap: 12px;
    }

    #about .team-card--profile {
        grid-template-columns: minmax(70px, 100px) 1fr;
        grid-template-rows: auto auto;
        padding: 14px 16px 14px 20px;
        row-gap: 12px;
    }

    #about .team-card--profile .team-card__media {
        grid-column: 1;
        grid-row: 1 / 3;
        max-width: 100px;
        min-width: 70px;
    }

    #about .team-card--profile .team-card__body {
        grid-column: 2;
        grid-row: 1;
    }

    #about .team-card--profile .team-card__contact {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 0;
        padding-top: 8px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        height: auto;
        align-self: auto;
    }

    #about .team-card--profile .team-card__bio {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        font-size: 0.65rem;
    }

    .table-header {
        font-size: 0.65rem;
        padding: 0.7em 0.8em;
    }

    .table-row {
        padding: 0.6em 0.8em;
    }

    .sub-table-header {
        padding: 0.6em 0.8em;
    }

  #store .store-sliderContainer {
        padding: 2rem 2em 1em;
    }

    #store .store-slider {
        width: 100%;
        max-width: 750px;
    }

    #store .store-controls {
        width: 92%;
        left: 4%;
    }

    #store .store-featured__card-body {
        gap: 0.4rem;
    }

    #store .store-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #store .store-card__head {
        flex-direction: column;
        gap: 0.1rem;
    }

    #store .start-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    #store .start-right {
        align-items: flex-start;
    }

    #store .start-right .links-container {
        flex-wrap: wrap;
        row-gap: 0.2rem;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8em;
    }
    .partner-card {
        padding: 1em 0.8em;
    }
    .partner-card__logo {
        width: 72px;
        height: 72px;
    }
    
    /* Mobile tap state for partner cards */
    .partner-card--active .partner-card__logo {
        filter: none;
    }
    .partner-card--active .partner-card__reveal {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }


} /* end mobile breakpoint */

