@charset "UTF-8";

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.1);
}

.blue {
    color: var(--primary) !important;
}

/* WOW.js Visibility Fix for Tabs */
.tabcontent.active .wow {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sticky Tab Navigation */
.tab-sticky-wrapper,
.si-tab-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 70px !important;
    /* Adjusted for scrolled header height */
    z-index: 999 !important;
    /* Above normal content but below mobile menu triggers if needed */
    background: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Layering Fix */
.modal {
    z-index: 11000 !important;
}

.modal-backdrop {
    z-index: 10990 !important;
}

html {
    height: auto !important;
    min-height: 100% !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #020617 !important;
}

main {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0;
}

section {
    flex-shrink: 0;
}

/* Ensure content sections expand to fill viewport when content is short */
section.bg-slate-50,
section#section {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

footer {
    margin-top: auto !important;
}

/* ===== RASTECH Common UI (Nav & Footer) ===== */

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none !important;
}

ul,
li {
    list-style: none;
}

/* Global Container Width Expansion */
.container,
#mainNav .container {
    max-width: 1536px !important;
}

/* Navigation Structure */
#mainNav {
    height: 96px;
    transition: all 0.5s ease;
    border-bottom: none !important;
}

#mainNav.scrolled {
    height: 70px;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: none !important;
}

#mainNav.scrolled ~ .gnb-dropdown {
    top: 70px !important;
}

#mainNav:hover,
#mainNav.dropdown-open {
    background: rgba(2, 6, 23, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: none !important;
}

#mainNav ul li {
    min-height: 50px;
}

.gnb-trigger {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}

.gnb-trigger::before {
    display: block;
    content: attr(data-text);
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* 
.gnb-trigger:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.gnb-trigger:hover:after,
.gnb-trigger.gnb-open:after {
    width: 100%;
} */

.gnb-trigger.gnb-open {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Mega Dropdown Panel - All at once */
.gnb-dropdown {
    display: none;
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    border-top: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000 !important;
    padding: 50px 0;
    transition: all 0.3s ease;
}

.gnb-dropdown.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.gnb-dropdown .drop-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.gnb-dropdown .drop-col {
    flex: 1;
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    opacity: 0.3;
    /* Default dimmed */
}

.gnb-dropdown .drop-col:last-child {
    border-right: none;
}

.gnb-dropdown .drop-col.active {
    opacity: 1;
    /* Highlighted */
    transform: translateY(-5px);
}

.gnb-dropdown .drop-col-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #3b82f6;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.gnb-dropdown .drop-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    padding: 6px 0;
    display: block;
    transition: all 0.2s;
}

.gnb-dropdown .drop-col.active ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.gnb-dropdown .drop-col ul li a:hover {
    color: #3b82f6 !important;
    padding-left: 10px;
}

/* ===== Unified Mobile Menu & GNB Design System ===== */

/* Hamburger Toggler Button */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger-lines {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-lines .line {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                width 0.3s ease;
}

.navbar-toggler.active .line1 {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler.active .line2 {
    opacity: 0;
    width: 0;
}

.navbar-toggler.active .line3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Glassmorphic Backdrop Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.open {
    display: block;
    opacity: 1;
}

/* Modern Full-Screen Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 28, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 70px; /* Space for floating navbar */
    transition: all 0.5s ease;
    opacity: 0;
    display: none;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

/* Mobile Drawer Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-menu-logo {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.mobile-menu-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.mobile-menu-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Mobile GNB List */
.mobile-menu ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-menu ul li a.gnb-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1.2rem;
    font-weight: 500; /* Flat, sleek font styling */
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-direction: row;
}

.mobile-menu ul li a.gnb-trigger:hover,
.mobile-menu ul li a.gnb-trigger.gnb-open {
    color: #3b82f6 !important;
    padding-left: 28px;
    background: rgba(59, 130, 246, 0.04);
}

/* Trendy Minimalist Micro-Chevron SVG Icon */
.menu-arrow {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 3px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, color 0.3s;
    transform: rotate(90deg);
}

.gnb-trigger.gnb-open .menu-arrow {
    transform: rotate(270deg);
    opacity: 1;
    color: #3b82f6;
}

/* Responsive GNB Layout Controls */
@media (max-width: 991px) {
    #mainNav {
        height: 70px !important; /* Standardize mobile header height */
        padding: 0 20px !important;
        z-index: 10002 !important; /* Float above mobile drawer */
        background: rgba(2, 6, 23, 0.98) !important; /* Fixed dark background */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        transition: none !important;
    }

    #mainNav .navbar-brand:active,
    #mainNav .navbar-brand:focus,
    #mainNav .navbar-toggler:active,
    #mainNav .navbar-toggler:focus,
    #mainNav .logo-link:active,
    #mainNav .logo-link:focus,
    .logo-link:active,
    .logo-link:focus {
        transform: none !important;
        scale: 1 !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    #mainNav .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    #mainNav.scrolled {
        background: rgba(2, 6, 23, 0.98) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    #mainNav .navbar-toggler,
    .navbar-toggler {
        display: flex !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        padding: 8px !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10002 !important;
        width: 40px !important;
        height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        right: auto !important; /* Overwrite desktop styles */
        outline: none !important;
        box-shadow: none !important;
    }

    #mainNav .navbar-toggler:focus,
    .navbar-toggler:focus,
    #mainNav .navbar-toggler:active,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
    }

    #mainNav .hidden.md\:flex {
        display: none !important;
    }

    #mainNav.menu-open {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
    }

    .gnb-dropdown {
        position: static !important;
        display: none;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        animation: none !important;
    }

    .gnb-dropdown.open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    .gnb-dropdown .drop-inner {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    .gnb-dropdown .drop-col {
        display: none;
        border: none !important;
        padding: 0 !important;
        opacity: 1 !important; /* Force full opacity on mobile */
        transform: none !important; /* Reset desktop transform */
        background: transparent !important;
        background-color: transparent !important;
    }

    .gnb-dropdown .drop-col.mobile-show {
        display: block;
        opacity: 1 !important;
        transform: none !important;
    }

    .gnb-dropdown .drop-col-title {
        display: none !important; /* Hide redundant bold column title */
    }

    .gnb-dropdown .drop-col ul {
        padding: 6px 0 14px 0 !important;
        margin: 0 !important;
        border-left: 2px solid rgba(59, 130, 246, 0.4);
        margin-left: 24px !important;
        border-radius: 0;
        background: transparent !important;
        background-color: transparent !important;
    }

    .gnb-dropdown .drop-col ul li {
        border-bottom: none !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    .gnb-dropdown .drop-col ul li a {
        font-size: 14px !important;
        font-weight: 500 !important; /* Sleek but clear legibility */
        padding: 10px 24px !important;
        color: #ffffff !important; /* Crisp white submenu text */
        opacity: 1 !important; /* Ensure fully visible text */
        letter-spacing: 0 !important;
        text-transform: none !important;
        display: block;
        transition: all 0.25s ease;
        background: transparent !important;
        background-color: transparent !important;
    }

    .gnb-dropdown .drop-col ul li a:hover {
        color: #3b82f6 !important;
        padding-left: 30px !important;
        background: transparent !important;
        background-color: transparent !important; /* No background color overlay */
    }
}

/* ==========================================
   Centralized Subpage Layout Design System 
   ========================================== */

/* 1. Bullet Row Lists */
.row_list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

.row_list li::before {
    content: "•";
    position: absolute;
    left: -4px;
    color: #3b82f6;
    font-weight: bold;
}

/* 2. Unified Responsive Card Container */
.sub-card,
.product-card,
.factory-card,
.agv-card,
.si-card,
.comm-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

@media (min-width: 768px) {

    .sub-card,
    .product-card,
    .factory-card,
    .agv-card,
    .si-card,
    .comm-card {
        padding: 40px;
    }
}

/* 3. Sticky Tab Bar & Responsive Navigation */
.tab-container,
.si-tab-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tab-container::-webkit-scrollbar,
.si-tab-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {

    .tab-container,
    .si-tab-container {
        justify-content: center;
        gap: 1.5rem;
    }
}

.tab-item,
.si-tab-item {
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 12px;
}

.tab-item.active,
.si-tab-item.active {
    color: #3b82f6;
    background: #eff6ff;
}

@media (max-width: 767px) {
    .tab-sticky-wrapper,
    .si-tab-sticky {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }

    .tab-container,
    .si-tab-container {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px 10px !important;
        padding: 12px 8px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin !important;
    }

    .tab-container::-webkit-scrollbar,
    .si-tab-container::-webkit-scrollbar {
        display: block !important;
        width: 4px !important;
    }

    .tab-container::-webkit-scrollbar-thumb,
    .si-tab-container::-webkit-scrollbar-thumb {
        background: rgba(156, 163, 175, 0.3) !important;
        border-radius: 10px !important;
    }

    .tab-container::-webkit-scrollbar-track,
    .si-tab-container::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .tab-item,
    .si-tab-item {
        font-size: 13px !important;
        padding: 8px 10px !important;
        border-radius: 30px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #475569 !important;
        margin: 0 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex: 1 1 calc(50% - 5px) !important;
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: keep-all !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 38px !important;
    }

    .tab-item.active,
    .si-tab-item.active {
        background: #3b82f6 !important;
        color: #ffffff !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    }
}

/* ========================================
   Mobile Typography Scale-Down
   Targets Tailwind text-* classes that 
   don't have sm:/md: responsive prefixes
   ======================================== */
@media (max-width: 767px) {

    /* Section / Page Title (text-4xl → ~text-2xl) */
    .text-4xl {
        font-size: 1.5rem !important;    /* 24px */
        line-height: 1.3 !important;
    }

    /* Product / Section Sub-title (text-3xl → ~text-xl) */
    .text-3xl {
        font-size: 1.25rem !important;   /* 20px */
        line-height: 1.35 !important;
    }

    /* Card Heading (text-2xl → text-lg) */
    .text-2xl {
        font-size: 1.1rem !important;    /* ~17.5px */
        line-height: 1.4 !important;
    }

    /* Section Label / Card Sub-heading (text-xl → text-base) */
    .text-xl {
        font-size: 1rem !important;      /* 16px */
        line-height: 1.45 !important;
    }

    /* Body paragraph / list text (text-lg → text-sm+) */
    .text-lg {
        font-size: 0.9375rem !important; /* 15px */
        line-height: 1.6 !important;
    }

    /* Bullet list text in row_list */
    .row_list li {
        font-size: 0.9rem !important;    /* 14.4px */
        margin-bottom: 0.5rem !important;
    }

    /* Spec table cells */
    .spec-table th,
    .spec-table td {
        font-size: 0.875rem !important;  /* 14px */
        padding: 10px 12px !important;
    }

    /* Card padding reduction on mobile */
    .sub-card,
    .product-card,
    .factory-card,
    .agv-card,
    .si-card,
    .comm-card {
        padding: 18px !important;
    }

    /* Subheader banner height on mobile */
    header.subheader {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }

    /* ── Spacing utility scale-down ───────────────────────
       Tailwind classes used without sm:/md: prefixes
       are compressed to keep mobile screens tidy.
    ─────────────────────────────────────────────────────── */

    /* Section vertical padding  py-16 (4rem) → 2.5rem */
    .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .pt-16 { padding-top: 2.5rem !important; }
    .pb-16 { padding-bottom: 2.5rem !important; }

    /* Large block bottom margin  mb-20 (5rem) → 2rem */
    .mb-20 { margin-bottom: 2rem !important; }

    /* Tab wrapper / section intro bottom margin  mb-16 (4rem) → 1.5rem */
    .mb-16 { margin-bottom: 1.5rem !important; }

    /* Section intro text block  mb-12 (3rem) → 1.25rem */
    .mb-12 { margin-bottom: 1.25rem !important; }

    /* Product name / tab name row  mb-10 (2.5rem) → 1rem */
    .mb-10 { margin-bottom: 1rem !important; }

    /* Card sub-section gap  mb-8 (2rem) → 0.875rem */
    .mb-8  { margin-bottom: 0.875rem !important; }

    /* Heading bottom gap  mb-6 (1.5rem) → 0.75rem */
    .mb-6  { margin-bottom: 0.75rem !important; }

    /* Tight heading gap  mb-4 (1rem) → 0.5rem */
    .mb-4  { margin-bottom: 0.5rem !important; }

    /* Inline card padding  p-10 (2.5rem) → 1.25rem */
    .p-10  { padding: 1.25rem !important; }

    /* Grid gap  gap-6 (1.5rem) → 0.875rem */
    .gap-6 { gap: 0.875rem !important; }
    .gap-4 { gap: 0.75rem !important; }

    /* Container horizontal padding */
    .container { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* 4. Unified Specifications Table (sub2) */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.spec-table th,
.spec-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.spec-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    width: 30%;
}