/* Professional Mobile-First Theme - Clean & Organized */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --accent-orange: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* LCARS Accents */
    --lcars-orange: #ff9900;
    --lcars-blue: #5cc8ff;
    --lcars-purple: #cc99cc;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* Status Colors */
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #2563eb;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

h1 { 
    font-size: clamp(1.75rem, 4vw, 3rem); 
    font-weight: 700; 
    margin-bottom: var(--space-md); 
}

h2 { 
    font-size: clamp(1.25rem, 3vw, 2.25rem); 
}

h3 { 
    font-size: clamp(1.125rem, 2.5vw, 1.875rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    max-width: 65ch;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    line-height: 1.6;
}

li:last-child { 
    margin-bottom: 0; 
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

section {
    padding: var(--space-xl) 0;
}

section:nth-child(even) {
    background: var(--bg-light);
}
/* ===== HEADER ===== */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1010;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    min-height: 60px;
    position: relative;
    flex-wrap: wrap;
}

/* ===== LOGO ===== */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.logo-full { 
    display: inline; 
}

.logo-short { 
    display: none; 
}

.logo::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--lcars-orange);
    border-radius: 2px;
}

/* ===== NAVIGATION TOGGLE ===== */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle.active {
    color: var(--primary-blue);
    background: var(--bg-light);
}

.nav-toggle span {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-toggle.active span {
    transform: rotate(90deg);
}
/* ===== NAVIGATION BASE ===== */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Active page underline styling */
.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--lcars-orange), var(--primary-blue));
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

/* ===== DROPDOWN BASE ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
    margin-left: var(--space-xs);
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    position: relative;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* Active dropdown link styling */
.dropdown-link.active {
    background: var(--bg-light);
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
}

.dropdown-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--lcars-orange), var(--primary-blue));
    border-radius: 0 2px 2px 0;
}
/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 1023px) {
    .header-content {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        z-index: 1001;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .logo-full {
        display: inline !important;
    }

    .logo-short {
        display: none !important;
    }

    .nav-toggle {
        order: 2;
        z-index: 1001;
        display: flex !important;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%);
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        -webkit-overflow-scrolling: touch;
        order: 3;
        width: 100%;
    }

    .main-nav.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        overflow-y: auto;
    }

    .nav-list {
        padding: var(--space-md);
    }

    .nav-item {
        border-bottom: 1px solid var(--border-light);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-md);
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* Improved Mobile Dropdown */
    .dropdown-menu {
        max-height: 0;
        background: var(--bg-section);
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-top: var(--space-xs);
    }

    .dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: var(--space-sm) 0;
        border-top: 2px solid var(--lcars-orange);
    }

    .dropdown-link {
        display: block;
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid var(--border-light);
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
        position: relative;
        transition: all 0.2s ease;
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }

    .dropdown-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: var(--lcars-orange);
        transition: width 0.2s ease;
    }

    .dropdown-link:hover::before,
    .dropdown-link:focus::before {
        width: 4px;
    }

    .dropdown-link:hover {
        padding-left: calc(var(--space-lg) + var(--space-xs));
        background: var(--bg-light);
        color: var(--primary-blue);
    }

    .dropdown-link.active {
        background: var(--bg-light);
        color: var(--primary-blue);
        font-weight: 600;
    }

    .dropdown-link.active::before {
        width: 4px;
        background: var(--primary-blue);
    }
}
/* ===== DESKTOP NAVIGATION ===== */
@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .header-content {
        justify-content: space-between;
        gap: var(--space-xl);
    }

    .main-nav {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        transform: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
        max-height: none;
        transition: none;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .nav-list {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-lg);
        width: 100%;
    }

    .nav-item {
        border: none;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-sm);
        border-radius: var(--radius-sm);
        white-space: nowrap;
        min-height: 44px;
        text-align: center;
    }

    /* Enhanced Desktop Dropdown */
    .dropdown-toggle {
        margin-left: 0;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        min-width: 220px;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 1010;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        list-style: none;
        padding: var(--space-sm) 0;
        margin: 0;
        max-height: none;
        overflow: visible;
        backdrop-filter: blur(10px);
        border-top: 3px solid var(--lcars-orange);
    }

    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid var(--lcars-orange);
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Improved hover delay for better UX */
    .dropdown {
        transition: all 0.2s ease;
    }

    .dropdown:hover .dropdown-menu {
        transition-delay: 0.1s;
    }

    .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-link {
        display: flex;
        align-items: center;
        padding: var(--space-sm) var(--space-lg);
        border-bottom: none;
        min-height: 44px;
        transition: all 0.2s ease;
        position: relative;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .dropdown-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: linear-gradient(180deg, var(--lcars-orange), var(--lcars-blue));
        transition: width 0.2s ease;
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    }

    .dropdown-link:hover::before,
    .dropdown-link:focus::before {
        width: 4px;
    }

    .dropdown-link:hover,
    .dropdown-link:focus {
        background: var(--bg-light);
        color: var(--primary-blue);
        padding-left: calc(var(--space-lg) + var(--space-xs));
    }

    .dropdown-link.active {
        background: var(--bg-light);
        color: var(--primary-blue);
        font-weight: 600;
        padding-left: calc(var(--space-lg) + var(--space-xs));
    }

    .dropdown-link.active::before {
        width: 4px;
        background: var(--primary-blue);
    }

    .dropdown-menu li:first-child .dropdown-link {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .dropdown-menu li:last-child .dropdown-link {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}
/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent-orange);
    color: white;
}

.btn-accent:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* ===== HERO SECTION ===== */
.hero {
    background: var(--bg-section);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lcars-orange), var(--lcars-blue));
    border-radius: 2px;
}
/* ===== GRID SYSTEMS ===== */
.grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.service-item {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lcars-orange), var(--lcars-blue));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.service-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--lcars-orange);
}
/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* ===== FOOTER ===== */
footer {
    background: var(--text-primary);
    color: var(--bg-light);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.footer-content p {
    color: var(--bg-light);
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--bg-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--lcars-orange);
    text-decoration: underline;
}
/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: var(--space-lg);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-width: 100vw;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-text {
    margin-bottom: var(--space-md);
}

.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cookie-btn {
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    font-family: inherit;
}

.cookie-accept {
    background: var(--primary-blue);
    color: white;
}

.cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cookie-decline {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.cookie-decline:hover {
    background: var(--bg-section);
    transform: translateY(-1px);
}

.cookie-settings {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.cookie-settings:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}
/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== ACCESSIBILITY ===== */
.focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 640px) {
    .container { 
        padding: 0 var(--space-md); 
    }

    .hero-cta { 
        flex-direction: row; 
        gap: var(--space-md); 
    }
    
    .grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
        gap: var(--space-lg); 
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-lg);
    }
    
    .cookie-consent {
        padding: var(--space-lg);
        max-width: 600px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100%);
        border-radius: var(--radius-lg);
    }
    
    .cookie-consent.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .cookie-buttons {
        flex-direction: row;
        justify-content: flex-end;
        gap: var(--space-sm);
    }
    
    .cookie-btn {
        flex: none;
        width: auto;
    }
}

@media (min-width: 768px) {
    .grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container { 
        padding: 0 var(--space-lg); 
    }
    
    .grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .services-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .cookie-consent {
        padding: var(--space-lg);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cookie-consent.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .cookie-consent {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        max-width: 400px;
        left: auto;
        right: var(--space-lg);
        transform: translateY(100%);
    }
}
/* Hide externally injected skip links */
.skip-link,
a[href="#main-content"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}
/* ===== LCARS DESIGN ELEMENTS ===== */

/* LCARS Bars - Horizontal accent lines */
.lcars-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--lcars-orange) 0%, var(--lcars-blue) 50%, var(--lcars-purple) 100%);
    border-radius: 2px;
    margin: var(--space-sm) 0;
    opacity: 0.8;
    animation: lcarsGlow 3s ease-in-out infinite alternate;
}

@keyframes lcarsGlow {
    0% { opacity: 0.6; }
    100% { opacity: 0.9; }
}

/* LCARS Headers with pill accent */
.lcars-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    position: relative;
}

.lcars-pill {
    width: 60px;
    height: 20px;
    background: linear-gradient(45deg, var(--lcars-orange), var(--lcars-blue));
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}

.lcars-pill::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 10px;
    background: var(--bg-white);
    border-radius: 5px;
    opacity: 0.3;
}

/* LCARS Panels - Content containers */
.lcars-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.lcars-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--lcars-orange) 0%, var(--lcars-blue) 50%, var(--lcars-purple) 100%);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.lcars-panel-content {
    position: relative;
    z-index: 1;
}

/* LCARS Corner accents for sections */
.hero::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--lcars-orange), transparent 70%);
    border-radius: 0 var(--radius-lg) 0 0;
    opacity: 0.6;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(-45deg, var(--lcars-blue), transparent 70%);
    border-radius: 0 0 0 var(--radius-lg);
    opacity: 0.6;
}

/* Service/Feature grids with LCARS styling */
.services-grid .service-item,
.service-features,
.capabilities-grid,
.work-principles,
.backend-qualities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.service-features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-item,
.capability-item,
.principle-item,
.quality-item {
    background: var(--bg-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--lcars-orange);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before,
.capability-item::before,
.principle-item::before,
.quality-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--lcars-blue), transparent);
    border-radius: 0 var(--radius-md) 0 var(--radius-md);
    opacity: 0.5;
}

.feature-item:hover,
.capability-item:hover,
.principle-item:hover,
.quality-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--lcars-blue);
}

.feature-item:nth-child(even),
.capability-item:nth-child(even),
.principle-item:nth-child(even),
.quality-item:nth-child(even) {
    border-left-color: var(--lcars-blue);
}

.feature-item:nth-child(3n),
.capability-item:nth-child(3n),
.principle-item:nth-child(3n),
.quality-item:nth-child(3n) {
    border-left-color: var(--lcars-purple);
}

/* CTA Buttons with LCARS styling */
.cta-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-lg);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    color: white;
}

.cta-button.secondary {
    background: linear-gradient(135deg, var(--lcars-orange), #d97706);
}

.cta-button.secondary:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Ideal for / Lists styling */
.ideal-for {
    background: var(--bg-section);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    border-left: 4px solid var(--lcars-purple);
}

.ideal-for h4 {
    color: var(--lcars-purple);
    margin-bottom: var(--space-sm);
}

/* Contact info LCARS styling enhancement */
.contact-method h4 {
    color: var(--lcars-orange);
    position: relative;
    padding-left: var(--space-sm);
}

.contact-method h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--lcars-orange);
    border-radius: 2px;
}

/* Section alternating backgrounds with subtle LCARS accents */
section:nth-child(even) {
    position: relative;
}

section:nth-child(even)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lcars-orange));
    opacity: 0.3;
}

/* Responsive LCARS adjustments */
@media (max-width: 768px) {
    .lcars-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .lcars-pill {
        width: 40px;
        height: 16px;
        border-radius: 8px;
    }
    
    .lcars-pill::after {
        width: 32px;
        height: 8px;
        border-radius: 4px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}
/* ===== MOBILE LOGO DEBUG ===== */
@media (max-width: 1023px) {
    .logo {
        background: rgba(255, 153, 0, 0.1) !important;
        border: 2px solid var(--lcars-orange) !important;
        padding: 4px 8px !important;
        margin: 4px !important;
    }
    
    .logo-full {
        color: var(--text-primary) !important;
        font-weight: 700 !important;
        font-size: 1.5rem !important;
    }
}