/*
Theme Name: MUTEGA Child
Theme URI: https://mutega.se
Template: generatepress
Author: João EmkerDias
Author URI: https://mutega.se
Description: MUTEGA AB child theme based on GeneratePress. Contains all custom site styles.
Version: 1.0.0
Updated: 2026-03-10
*/

/* =========================================
   1. WORDPRESS THEME OVERRIDES
   ========================================= */
html, body {
    background-color: #0b1220 !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    overflow-x: hidden;
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px;
}

/* Hide default theme elements */
.site-header, .site-footer, .generate-footer, .site-info {
    display: none !important; 
}

/* Reset standard WP containers */
.site, .site-content, .inside-article, .entry-content, #page, #content, .site-main {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

/* Scroll Lock (Prevents page scroll behind modal) */
body.no-scroll { overflow: hidden !important; }

/* Custom footer (used instead of WP theme footer) */
.mutega-footer {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    background: rgba(11, 18, 32, 0.6);
}

.mutega-footer-text {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #0b1220;
    --bg-darker: #070b14;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(15, 23, 42, 0.85);
    
    --primary: #66e3ff;
    --primary-dim: rgba(102, 227, 255, 0.15);
    --accent: #7c5cff;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --border: rgba(255, 255, 255, 0.12);
    --border-highlight: rgba(102, 227, 255, 0.3);

    --radius-sm: 12px;
    --radius-lg: 24px;
    --container-width: 1320px;
    --header-height: 80px;
}

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

body {
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(124, 92, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(102, 227, 255, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* =========================================
   3. NAVIGATION (FIXED BAR)
   ========================================= */
.mutega-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: var(--header-height);
    z-index: 9999;
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 32px;
}

.nav-inner {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: var(--container-width);
    margin: 0 auto; padding: 0 32px;
    position: relative;
}

.nav-logo {
    display: flex; align-items: center;
    text-decoration: none;
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a:not(.btn-nav) {
    color: var(--text-muted); text-decoration: none;
    font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }

/* Kontakt: support icon/link */
.contact-support {
    margin-top: 18px;
}

.contact-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-support-link:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.contact-support-link img {
    height: 32px;
    width: auto;
    display: block;
    opacity: 0.95;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s;
}
.btn-nav:hover { background: rgba(255, 255, 255, 0.2); }

/* WordPress/theme clash hardening: ensure nav buttons don't stick left */
.mutega-nav .nav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
}

.mutega-nav .nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px;
    margin-left: auto !important;
    width: auto !important;
    float: none !important;
    text-align: right !important;
    flex-wrap: wrap;
}

.mutega-nav .nav-links a,
.mutega-nav .btn-nav {
    float: none !important;
    white-space: nowrap;
}

/* Mobile nav (CSS-only via details element) */
.mutega-nav .nav-mobile { display: none !important; }

.nav-mobile summary {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-burger {
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.92);
    position: relative;
    display: block;
}
.nav-burger::before,
.nav-burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,0.92);
}
.nav-burger::before { top: -6px; }
.nav-burger::after { top: 6px; }

.nav-mobile-panel {
    position: absolute;
    top: calc(var(--header-height) - 8px);
    right: 0;
    width: min(92vw, 420px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    z-index: 10000;
}

.nav-mobile-panel a {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
}

.nav-mobile-panel a:not(.btn-nav) {
    color: var(--text-muted);
    font-weight: 600;
}

.nav-mobile-panel a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-mobile-panel .btn-nav {
    width: 100%;
    margin-top: 6px;
}

.nav-mobile[open] summary {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}

/* Fallback: if a theme forces left alignment, don't let the first item touch the edge */
.mutega-nav .nav-links .btn-nav:first-child {
    margin-left: 12px !important;
}

/* =========================================
   4. UTILITIES
   ========================================= */
.mutega-wrap { 
    max-width: var(--container-width); width: 100%;
    margin: 0 auto; padding: 0 32px; 
}
.mutega-section { padding: 56px 0 72px; }
.hero-section { padding-top: 160px !important; }

@media (max-width: 768px) {
    .mutega-section { padding: 44px 0 60px; }
}

.text-muted { color: var(--text-muted) !important; }
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 700; text-decoration: none;
    transition: all 0.2s ease; cursor: pointer;
    border: 1px solid transparent; font-size: 1rem; line-height: 1.2;
}
.btn-primary {
    background: var(--primary); color: #000 !important;
    box-shadow: 0 4px 20px rgba(102, 227, 255, 0.25);
}
.btn-primary:hover { 
    transform: translateY(-2px); box-shadow: 0 6px 25px rgba(102, 227, 255, 0.35); background: #fff;
}
.btn-ghost {
    background: rgba(255,255,255,0.05); color: #fff !important; border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.full-width { width: 100%; }

/* =========================================
   5. HERO & VISUALS
   ========================================= */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.kicker-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
    font-size: 0.8rem; text-transform: uppercase; font-weight: 700;
    padding: 6px 12px; border-radius: 20px;
    background: var(--primary-dim); color: var(--primary);
    border: 1px solid rgba(102, 227, 255, 0.2);
}
.hero-content h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; font-weight: 800;
}
.lead { 
    font-size: 1.2rem; color: var(--text-muted); margin-bottom: 36px; max-width: 540px; 
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.trust-metrics { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; 
    border-top: 1px solid var(--border); padding-top: 24px; 
}
.metric strong { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; }
.metric span { font-size: 1.1rem; font-weight: 700; color: #fff; }

.partner-logos {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.partner-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    white-space: nowrap;
}

.partner-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.partner-logos-row img {
    height: 38px;
    width: auto;
    opacity: 0.92;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

@media (max-width: 768px) {
    .partner-logos {
        align-items: center;
    }
    .partner-logos-row {
        justify-content: center;
    }
    .partner-logos-row img {
        height: 34px;
    }
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.abstract-card {
    width: 100%; max-width: 440px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    padding: 1px; border-radius: 24px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.5);
    transform: rotate(-2deg); transition: transform 0.5s ease;
}
.abstract-card:hover { transform: rotate(0deg) scale(1.02); }
.card-glass {
    background: var(--bg-glass); border-radius: 23px; padding: 30px;
    backdrop-filter: blur(12px);
}
.glass-header { display: flex; gap: 8px; margin-bottom: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f57; } .yellow { background: #febc2e; } .green { background: #28c840; }
.status-row { 
    color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; gap: 12px; 
    font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px;
}
/* SVG Sizing */
.check-icon svg, .icon svg { width: 20px; height: 20px; }
.check-icon { color: #28c840; font-weight: bold; background: rgba(40,200,64,0.1); padding: 2px 6px; border-radius: 4px; display:inline-flex; align-items:center;}

/* =========================================
   6. PACKAGES & CALCULATOR
   ========================================= */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 800; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-bottom: 40px;
}
@media (min-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 24px;
    display: flex; flex-direction: column; position: relative;
    transition: transform 0.2s;
}
.price-card:hover { 
    border-color: rgba(255,255,255,0.2); transform: translateY(-5px); background: rgba(255,255,255,0.06);
}
.price-card.featured {
    background: linear-gradient(180deg, rgba(102, 227, 255, 0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 40px -10px rgba(102, 227, 255, 0.15);
}
.popular-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #000; padding: 6px 16px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
}
.price-box { margin: 12px 0; display: flex; align-items: baseline; gap: 4px; }
.amount { font-size: 2.5rem; font-weight: 800; color: #fff; }
.currency { font-size: 1rem; color: var(--text-muted); }
.desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.4; min-height: 42px; }

.feature-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
    /* WordPress themes often add big left indent to ULs */
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
}
.feature-list li { 
    margin-bottom: 10px; padding-left: 20px; position: relative; color: var(--text-muted); font-size: 0.95rem; 
}
.feature-list li::before { content: "•"; color: var(--primary); position: absolute; left: 0; }
.compare-trigger { text-align: center; margin-top: 40px; }

.terms-box {
    background: rgba(255,255,255,0.03); padding: 24px; border-radius: 16px; 
    border: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted);
}
.terms-box ul { padding-left: 20px; margin: 10px 0 0; }

.package-note {
    margin: 14px auto 0;
    max-width: 980px;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --- CALCULATOR CSS --- */
.calculator-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.calculator-glass {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 24px;
    align-items: center;
}

/* Inputs */
.input-group { margin-bottom: 24px; }
.input-group:last-child { margin-bottom: 0; }

.input-group label {
    display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; font-weight: 600;
}

.calc-select, .calc-number {
    width: 100%;
    background: rgba(11, 18, 32, 0.8);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.calc-select:focus, .calc-number:focus { border-color: var(--primary); }

/* Select: custom arrow + consistent feel across browsers */
.calc-select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.75L10 12.25L14.5 7.75' stroke='rgba(255,255,255,0.75)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}
.calc-select:hover { border-color: rgba(255,255,255,0.22); }
.calc-select:focus { box-shadow: 0 0 0 3px rgba(102, 227, 255, 0.18); }

.label-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.calc-number {
    width: 92px;
    text-align: center;
    padding: 8px 10px;
    height: 38px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* Remove number spinners (cleaner UI) */
.calc-number::-webkit-outer-spin-button,
.calc-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.calc-number[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Range Slider Styling */
.calc-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    background: var(--primary); border-radius: 50%; cursor: pointer;
    box-shadow: 0 0 10px rgba(102, 227, 255, 0.5); transition: transform 0.1s;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Result Box */
.calc-result {
    text-align: center; background: rgba(255,255,255,0.03); padding: 24px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
}
.calc-label {
    display: block; color: var(--text-muted); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.total-price-box {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 70px; 
}
#total-display {
    font-size: 3.5rem; font-weight: 900;
    background: linear-gradient(90deg, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.currency-tag { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); }

/* =========================================
   7. CUSTOM LAYOUTS (SLA, Steps, Tables)
   ========================================= */
.dark-bg { 
    background: var(--bg-darker); 
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* Alternate dark section background (used to avoid back-to-back identical dark blocks) */
.dark-bg-alt {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* SLA */
.sla-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.sla-card { 
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
    min-width: 0;
    max-width: 100%;
}

/* SLA Card Titles (Kontaktvägar / Svarstider) */
.sla-card h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 900;
    letter-spacing: 0.01em;
}
/* No underline/line below the title */
.sla-card h3::after {
    content: none;
}

/* SLA typography & spacing */
#sla .sla-card p {
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* SLA: note/callout */
#sla .sla-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid var(--primary);
    background: rgba(102, 227, 255, 0.07);
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* SLA: real bullet points for the "Kan inkludera" list */
#sla .bullet-list {
    list-style: disc;
    /* WordPress themes often add large left margin/padding to ULs */
    margin-left: 0 !important;
    padding-left: 1.1em !important;
    padding-inline-start: 1.1em !important;
    list-style-position: outside;
}

#sla .bullet-list li {
    display: list-item;
    margin-bottom: 8px;
    color: var(--text-muted);
}

#sla .bullet-list li::marker {
    color: var(--primary);
}

#sla .bullet-list .contact-value {
    display: inline;
}

#sla .sla-card h4 {
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* SLA table: more readable, card-like */
#sla .simple-table {
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

#sla .simple-table th {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

#sla .simple-table td {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

#sla .simple-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.015);
}

#sla .simple-table tbody tr:hover {
    background: rgba(102, 227, 255, 0.06);
}

#sla .simple-table th:first-child,
#sla .simple-table td:first-child {
    padding-left: 14px;
}

#sla .simple-table th:last-child,
#sla .simple-table td:last-child {
    padding-right: 14px;
}

#sla .simple-table tbody tr:last-child td {
    border-bottom: none;
}

/* SLA: table scroll on small screens */
#sla .table-scroll {
    position: relative;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    max-width: 100%;
}

#sla .table-scroll .simple-table {
    min-width: 0;
}
 .contact-list-small { list-style: none; padding: 0; }
 .contact-list-small li {
     margin-bottom: 10px;
     display: flex;
     gap: 12px;
     align-items: baseline;
     color: var(--text-muted);
 }
 .contact-list-small strong {
     color: #fff;
     flex: 0 0 120px;
 }
 .contact-list-small .contact-value {
     flex: 1 1 auto;
     min-width: 0;
 }

.contact-list-small a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-list-small a:hover {
    color: var(--primary);
    border-color: rgba(102, 227, 255, 0.8);
}

/* Tables */
.simple-table, .services-table { width: 100%; border-collapse: collapse; margin-top: 10px; }

/* SLA "Svarstider" table: fix cramped spacing */
.simple-table th {
    text-align: left;
    color: var(--text-muted);
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    text-transform: uppercase;
}
.simple-table td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}
.simple-table th:first-child,
.simple-table td:first-child {
    padding-left: 0;
}
.simple-table th:last-child,
.simple-table td:last-child {
    padding-right: 0;
}
.simple-table th:not(:first-child),
.simple-table td:not(:first-child) {
    text-align: center;
}

@media (max-width: 600px) {
    .simple-table th,
    .simple-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    #sla .sla-card {
        padding: 22px;
    }

    #sla .table-scroll .simple-table { min-width: 520px; }
    #sla .simple-table th { font-size: 0.78rem; }
}

/* Services table (keep existing feel) */
.services-table th { 
    text-align: left; color: var(--text-muted); padding: 12px 0; 
    border-bottom: 1px solid var(--border); font-size: 0.9rem; text-transform: uppercase;
}
.services-table td { 
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #fff;
}
.services-list-container {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; max-width: 900px; margin: 0 auto;
}
.text-right { text-align: right !important; }
.center-btn-row { text-align: center; margin-top: 24px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px 32px; position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    transition: transform 0.2s ease;
}
.step-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.step-card.small-card { min-height: auto; padding: 24px; background: rgba(255,255,255,0.02); }
.step-nr {
    position: absolute; top: -25px; right: -10px;
    font-size: 8rem; font-weight: 900; color: rgba(255, 255, 255, 0.03);
    line-height: 1; pointer-events: none;
}
.step-card h3 { font-size: 1.4rem; margin-bottom: 12px; position: relative; z-index: 1; color: #fff; }
.step-card p { font-size: 1rem; color: var(--text-muted); position: relative; z-index: 1; }

.addons-grid { grid-template-columns: repeat(3, 1fr); }
/* Tweak for add-on cards without buttons */
.addons-grid .price-card { padding-bottom: 40px; }
.addons-grid .feature-list { margin-bottom: 0; }

/* =========================================
   8. MODAL (Dialog) - FIXED VISIBILITY & SCROLL
   ========================================= */
.mutega-dialog {
    display: none; /* Default State */

    /* Keep modal contained in viewport (mobile friendly) */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 100000;

    width: min(96vw, 1100px);
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    
    background: #131b2e;
    color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.9);
    padding: 0;
    overflow: hidden;
}

/* Open State */
.mutega-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) translateY(-20px); }
    to { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}

.mutega-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    position: fixed; inset: 0;
}

.dialog-card {
    /* Optional wrapper if needed for more layering */
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.dialog-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px; border-bottom: 1px solid var(--border);
    background: #131b2e; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Dialog: hide top-right X (close is in footer) */
.dialog-header .close-btn { display: none; }

.dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.compare-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.compare-table th {
    background: rgba(19, 27, 46, 1); position: sticky; top: 0; z-index: 5;
    padding: 18px; text-align: center; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase;
}
.compare-table td {
    padding: 14px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.compare-table td:first-child, .compare-table th:first-child { 
    text-align: left; font-weight: 700; color: #fff; position: sticky; left: 0; background: #131b2e; border-right: 1px solid var(--border); z-index: 6;
}
.compare-table th:first-child { z-index: 7; }

.compare-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
}

.compare-note .label {
    color: #fff;
    font-weight: 800;
}

.compare-note-lines {
    margin-top: 8px;
}

.compare-note-lines div {
    margin-top: 4px;
}

/* Table Icons */
.check { color: #28c840; font-weight: 900; font-size: 1.2rem; display:inline-flex; align-items:center; }
.check .icon-svg { width: 24px; height: 24px; }
.dash { color: rgba(255, 255, 255, 0.2); font-weight: 400; }
.text-white { color: #ffffff; font-weight: 600; font-size: 0.9rem; }

.mutega__modalCta { 
    padding: 24px; background: #131b2e; border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Dialog footer button: slightly smaller */
.mutega__modalCta .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .mutega-dialog { width: 96vw; height: calc(100vh - 24px); max-height: calc(100vh - 24px); }
    .dialog-header { padding: 16px; }
    .dialog-header h2 { font-size: 1.25rem; }
    .mutega__modalCta { padding: 16px; }
    
    /* Phone: make horizontal swipe obvious + ensure other columns are reachable */
    .dialog-body {
        position: relative;
        overflow-x: auto;
        overflow-y: auto;
        touch-action: pan-x pan-y;
    }
    .dialog-body::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 28px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(19, 27, 46, 0), rgba(19, 27, 46, 1));
    }

    .compare-table { min-width: 720px; }
    .compare-table th:first-child,
    .compare-table td:first-child {
        width: 58vw;
        max-width: 58vw;
        box-shadow: 10px 0 18px rgba(0, 0, 0, 0.25);
        word-break: break-word;
    }
    .compare-table th:not(:first-child),
    .compare-table td:not(:first-child) {
        min-width: 78px;
    }

    .compare-table th { padding: 12px 10px; font-size: 0.75rem; }
    .compare-table td { padding: 12px 10px; font-size: 0.9rem; }
    .compare-note { padding: 10px 12px; font-size: 0.85rem; margin-bottom: 10px; }
}

/* =========================================
   9. CONTACT
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: stretch; }
.contact-info-card { 
    background: var(--bg-card); border: 1px solid var(--border); 
    border-radius: var(--radius-lg); padding: 40px; height: 100%; 
}
.contact-list { list-style: none; padding: 0; margin: 30px 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 1.1rem; color: #fff; }
.icon { background: rgba(255,255,255,0.1); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.5); }
.icon svg { width: 20px; height: 20px; color: #fff; }

.booking-container iframe { width: 100%; height: 630px; border: none; border-radius: var(--radius-lg); background: #fff; }
.mutega-finalBox {
    background: var(--bg-card); border: 1px solid var(--border); 
    border-radius: var(--radius-lg); padding: 40px;
    background: radial-gradient(circle at 50% 0%, rgba(102,227,255,0.1), rgba(255,255,255,0.02));
}

/* =========================================
   10. RESPONSIVE
   ========================================= */
.mobile-only-cta { display: none; }
.desktop-only { display: block; }

@media (max-width: 900px) {
    /* IMPORTANT: override .mutega-nav .nav-links { display:flex !important; } */
    .mutega-nav .nav-links { display: none !important; }
    .mutega-nav .nav-mobile { display: block !important; }
    .mutega-nav { padding: 0 16px; height: 72px; }
    :root { --header-height: 72px; }
    .nav-inner { padding: 0; }
    .nav-logo img { height: 44px !important; }
    .mutega-wrap { padding: 0 20px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .kicker-group, .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .trust-metrics { grid-template-columns: 1fr; gap: 10px; }
    .sla-grid, .addons-grid, .steps-grid, .contact-grid { grid-template-columns: 1fr; }
    #sla .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }
    #sla .table-scroll .simple-table { min-width: 560px; }
    .step-card { padding: 32px; min-height: auto; }
    .desktop-only { display: none; }
    .mobile-only-cta { display: block; margin-top: 32px; }
    /* Calculator Stack on Mobile */
    .calc-grid { grid-template-columns: 1fr; gap: 24px; }
    #total-display { font-size: 2.8rem; }
}
.mutega-tooltip{
  position: relative;
  display: inline-block;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
}

.mutega-tooltip:focus{
  outline: none;
}

.mutega-tooltip__text{
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(20, 28, 45, 0.98);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
}

.mutega-tooltip__text::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(20, 28, 45, 0.98) transparent transparent transparent;
}

.mutega-tooltip:hover .mutega-tooltip__text,
.mutega-tooltip:focus .mutega-tooltip__text{
  opacity: 1;
  visibility: visible;
}

.zoho-assist-link img {
  height: 24px;
  width: auto;
  display: block;
  cursor: pointer;
}
.support-logos {
  display: flex;
  align-items: center;
  gap: 20px;              /* espaço entre logos */
}

.support-logos a {
  display: inline-flex;
  align-items: center;
}

.support-logos img {
  height: 24px;           /* ajusta conforme necessário */
  width: auto;
  display: block;
  cursor: pointer;
}

/* =========================
   Back to Top Button
   ========================= */

#backToTop{
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  z-index: 2147483647 !important;

    background:
    radial-gradient(120% 120% at 30% 20%, #3b82f6 0%, #2563eb 45%, #1e3a8a 100%);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  box-shadow:
    0 12px 30px rgba(59,130,246,.55),
    inset 0 0 0 1px rgba(255,255,255,.15);
}

#backToTop.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTop:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37,99,235,.55);
}

#backToTop svg{
  transform: translateY(-1px);
}

/* =========================
   Tooltip
   ========================= */

#backToTop::after{
  content: attr(data-tooltip);
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%) translateX(6px);

  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

#backToTop::before{
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);

  border: 6px solid transparent;
  border-left-color: #111827;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#backToTop:hover::after,
#backToTop:hover::before,
#backToTop:focus-visible::after,
#backToTop:focus-visible::before{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* =========================
   Disable tooltip on touch
   ========================= */
@media (hover: none){
  #backToTop::before,
  #backToTop::after{
    display: none;
  }
}

/* =========================
   Language Switcher base
   ========================= */
.language-switcher{
  position: relative;
  display: inline-block;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  z-index: 999999; /* mobile stacking fix */
}

.language-switcher__current{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b1220;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;

  /* mobile tap fix */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.language-switcher__current .arrow{
  font-size: 12px;
  margin-left: 2px;
}

/* =========================
   Dropdown list
   ========================= */
.language-switcher__list{
  display: none;
  position: absolute;
  right: 0;
  margin-top: 6px;
  padding: 6px 0;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  min-width: 240px;
  z-index: 1000000; /* ensure above headers */
}

.language-switcher__list li{
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switcher__list a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #ffffff;
  text-decoration: none;
}

.language-switcher__list a:hover{
  background: rgba(255,255,255,0.08);
}

.language-switcher.open .language-switcher__list{
  display: block;
}

/* Active language: hide current language from dropdown list */
.language-switcher__list a.is-active{
  display: none !important;
}

/* =========================
   Mobile-specific improvements
   ========================= */
@media (max-width: 768px){
  .language-switcher{
    position: relative;
  }

  .language-switcher__list{
    right: 0;
    left: auto;
    max-width: calc(100vw - 24px);
  }

  .language-switcher__list a{
    padding: 12px 14px; /* easier tapping */
  }
}

/* =========================
   SVG Flags (no emoji)
   ========================= */
.language-switcher .flag{
  display: inline-block;
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Swedish (default) */
.language-switcher .flag--sv{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23006AA7'/%3E%3Crect x='0' y='5' width='16' height='2' fill='%23FECC00'/%3E%3Crect x='5' y='0' width='2' height='12' fill='%23FECC00'/%3E%3C/svg%3E");
}

/* English (UK) */
.language-switcher .flag--en{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23012169'/%3E%3Cpath d='M0 0 L16 12 M16 0 L0 12' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M0 0 L16 12 M16 0 L0 12' stroke='%23C8102E' stroke-width='1'/%3E%3Crect x='6.5' width='3' height='12' fill='%23fff'/%3E%3Crect y='4.5' width='16' height='3' fill='%23fff'/%3E%3Crect x='7' width='2' height='12' fill='%23C8102E'/%3E%3Crect y='5' width='16' height='2' fill='%23C8102E'/%3E%3C/svg%3E");
}

/* Danish */
.language-switcher .flag--da{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23C60C30'/%3E%3Crect x='0' y='5' width='16' height='2' fill='%23fff'/%3E%3Crect x='5' y='0' width='2' height='12' fill='%23fff'/%3E%3C/svg%3E");
}

/* Norwegian */
.language-switcher .flag--no{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23BA0C2F'/%3E%3Crect x='0' y='4.5' width='16' height='3' fill='%23fff'/%3E%3Crect x='4.5' y='0' width='3' height='12' fill='%23fff'/%3E%3Crect x='0' y='5' width='16' height='2' fill='%2300235B'/%3E%3Crect x='5' y='0' width='2' height='12' fill='%2300235B'/%3E%3C/svg%3E");
}

/* Finnish */
.language-switcher .flag--fi{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23fff'/%3E%3Crect x='0' y='5' width='16' height='2' fill='%23003F87'/%3E%3Crect x='5' y='0' width='2' height='12' fill='%23003F87'/%3E%3C/svg%3E");
}

/* Portuguese */
.language-switcher .flag--pt{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='6.4' height='12' fill='%23006000'/%3E%3Crect x='6.4' width='9.6' height='12' fill='%23FF0000'/%3E%3Ccircle cx='6.4' cy='6' r='2.1' fill='%23FFD700'/%3E%3Crect x='5.6' y='4.2' width='1.6' height='3.6' rx='0.4' fill='%23fff'/%3E%3C/svg%3E");
}

/* French */
.language-switcher .flag--fr{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23fff'/%3E%3Crect width='5.33' height='12' fill='%230055A4'/%3E%3Crect x='10.67' width='5.33' height='12' fill='%23EF4135'/%3E%3C/svg%3E");
}

/* Spanish */
.language-switcher .flag--es{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='12' fill='%23AA151B'/%3E%3Crect y='3' width='16' height='6' fill='%23F1BF00'/%3E%3C/svg%3E");
}

/* German */
.language-switcher .flag--de{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Crect width='16' height='4' fill='%23000'/%3E%3Crect y='4' width='16' height='4' fill='%23DD0000'/%3E%3Crect y='8' width='16' height='4' fill='%23FFCE00'/%3E%3C/svg%3E");
}

/* =========================================
   MOBILE NAV: center language + spacing before Kontakt
   ========================================= */
@media (max-width: 1024px) {

  /* Make the mobile panel a clean vertical stack */
  details.nav-mobile .nav-mobile-panel{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Center the language switcher in the mobile panel */
  details.nav-mobile .nav-mobile-panel .language-switcher{
    width: max-content !important;
    margin: 10px auto 0 auto !important;  /* centered */
    align-self: center !important;
  }

  /* Ensure the button aligns nicely */
  details.nav-mobile .nav-mobile-panel .language-switcher__current{
    justify-content: center !important;
  }

  /* Add space ABOVE the Kontakt button/link */
  details.nav-mobile .nav-mobile-panel a.btn-nav{
    margin-top: 14px !important;
  }
}
/* =========================================
   MOBILE: make language dropdown visible (avoid clipping)
   ========================================= */
@media (max-width: 1024px) {

  /* Ensure nothing clips the dropdown */
  details.nav-mobile,
  details.nav-mobile .nav-mobile-panel{
    overflow: visible !important;
  }

  /* Keep the switcher centered (as before) */
  details.nav-mobile .nav-mobile-panel .language-switcher{
    position: relative !important;
    z-index: 9999 !important;
  }

  /*
    KEY FIX:
    On mobile, do NOT absolutely position the dropdown list.
    Let it flow under the button so it’s always visible/clickable.
  */
  details.nav-mobile .nav-mobile-panel .language-switcher__list{
    position: static !important;
    width: 100% !important;
    margin-top: 10px !important;
    max-height: 55vh !important;
    overflow: auto !important;
  }
}
/* =========================================
   MOBILE: language dropdown anchored to button (clean look)
   ========================================= */
@media (max-width: 1024px) {

  /* keep panel from clipping the dropdown */
  details.nav-mobile,
  details.nav-mobile .nav-mobile-panel{
    overflow: visible !important;
  }

  /* center the switcher and create an anchoring context */
  details.nav-mobile .nav-mobile-panel .language-switcher{
    position: relative !important;
    width: max-content !important;
    margin: 10px auto 0 auto !important;
    z-index: 999999 !important;
  }

  /* keep the button width consistent */
  details.nav-mobile .nav-mobile-panel .language-switcher__current{
    min-width: 190px !important; /* adjust if you want wider */
    justify-content: flex-start !important;
  }

  /* IMPORTANT: anchor the list to the button (instead of static flow) */
  details.nav-mobile .nav-mobile-panel .language-switcher__list{
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    width: min(320px, calc(100vw - 32px)) !important;
    min-width: 0 !important;

    max-height: 62vh !important;
    overflow: auto !important;

    z-index: 1000000 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.45) !important;
  }
}
/* =========================================
   MOBILE: dropdown same width as button + aligned
   ========================================= */
@media (max-width: 1024px){

  /* Fix the button width so list can match it */
  details.nav-mobile .nav-mobile-panel .language-switcher__current{
    width: 200px !important;       /* adjust: 220–260 if you prefer */
    justify-content: flex-start !important;
  }

  /* Make the dropdown match the button width and align perfectly */
  details.nav-mobile .nav-mobile-panel .language-switcher__list{
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;

    width: 100% !important;        /* match the switcher/button width */
    min-width: 0 !important;
    max-width: none !important;

    max-height: 62vh !important;
    overflow: auto !important;

    z-index: 1000000 !important;
  }
}

/* =========================================
   HARD OVERRIDE: center dropdown under button (mobile)
   ========================================= */
@media (max-width: 1024px){

  /* Use one shared width for button + dropdown */
  details.nav-mobile .nav-mobile-panel .language-switcher{
    --lsw: min(240px, calc(100vw - 64px));
    position: relative !important;
    width: max-content !important;
    margin: 12px auto 0 auto !important;
    z-index: 1000000 !important;
  }

  details.nav-mobile .nav-mobile-panel .language-switcher .language-switcher__current{
    width: var(--lsw) !important;
  }

  /* Force true centering and neutralize previous rules */
  details.nav-mobile .nav-mobile-panel .language-switcher .language-switcher__list{
    position: absolute !important;
    top: calc(100% + 8px) !important;

    left: 50% !important;
    right: auto !important;          /* important: cancels right:0 */
    bottom: auto !important;

    transform: translateX(-50%) !important;

    width: var(--lsw) !important;    /* same width as button */
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;            /* cancels any margin-left/right */
    max-height: 62vh !important;
    overflow-y: auto !important;
  }
}

