/* primo-process.css — Nordic Tech Design System v3.2.0 */
/* Product page styles for Primo Process */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

/* ========== BASE ========== */

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Outfit', sans-serif;
}

.content-block {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
    scroll-margin-top: 150px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Section title */
.section-title {
    color: #2563eb;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5em, 3vw, 1.8em);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.25);
    font-weight: 700;
}

/* ========== BANNER BPM ========== */

.bpm-banner {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #0b1a2e 0%, #1e3a5f 50%, #1e40af 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(11, 26, 46, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.bpm-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.12) 0%, transparent 70%);
    opacity: 0.7;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.circuit-line {
    position: absolute;
    background: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}

.circuit-line.h1 { width: 35%; height: 2px; top: 15%; left: 10%; animation: pulseCircuit 4s ease-in-out infinite; }
.circuit-line.h2 { width: 25%; height: 2px; top: 45%; right: 15%; animation: pulseCircuit 5s ease-in-out infinite 1s; }
.circuit-line.h3 { width: 30%; height: 2px; bottom: 20%; left: 20%; animation: pulseCircuit 4.5s ease-in-out infinite 2s; }
.circuit-line.v1 { width: 2px; height: 25%; top: 20%; left: 25%; animation: pulseCircuit 4s ease-in-out infinite 0.5s; }
.circuit-line.v2 { width: 2px; height: 30%; top: 30%; right: 20%; animation: pulseCircuit 5s ease-in-out infinite 1.5s; }

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.9);
    animation: nodeGlow 3s ease-in-out infinite;
}

.circuit-node.n1 { top: 15%; left: 10%; animation-delay: 0s; }
.circuit-node.n2 { top: 15%; left: 45%; animation-delay: 0.5s; }
.circuit-node.n3 { top: 45%; right: 15%; animation-delay: 1s; }
.circuit-node.n4 { top: 45%; right: 40%; animation-delay: 1.5s; }
.circuit-node.n5 { bottom: 20%; left: 20%; animation-delay: 2s; }
.circuit-node.n6 { bottom: 20%; left: 50%; animation-delay: 2.5s; }
.circuit-node.n7 { top: 20%; left: 25%; animation-delay: 0.7s; }
.circuit-node.n8 { top: 30%; right: 20%; animation-delay: 1.2s; }

@keyframes pulseCircuit {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 8px rgba(96, 165, 250, 0.6); }
    50%      { opacity: 0.8; box-shadow: 0 0 16px rgba(96, 165, 250, 1); }
}

@keyframes nodeGlow {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 12px rgba(96, 165, 250, 0.8); }
    50%      { transform: scale(1.3); box-shadow: 0 0 22px rgba(96, 165, 250, 1), 0 0 32px rgba(96, 165, 250, 0.6); }
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
}

.banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5em, 6vw, 4.5em);
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2em, 3vw, 2em);
    font-weight: 400;
    color: #bfdbfe;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-top: 15px;
    opacity: 0.9;
}

.banner-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0%  { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* ========== INTRODUCTION ========== */

.intro-text {
    font-size: clamp(0.95em, 1.5vw, 1.05em);
    line-height: 1.8;
    color: #334155;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid #2563eb;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.definition-box {
    padding: 22px 26px;
    margin: 20px 0;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.definition-box h4 {
    color: #0f172a;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
}

.definition-box ul {
    margin-top: 10px;
}

.questions {
    padding: 25px;
    margin: 20px 0;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.questions h3 {
    color: #2563eb;
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
    margin-bottom: 15px;
}

.questions ul li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1em;
    color: #334155;
}

.questions ul li:before {
    content: "?";
    position: absolute;
    left: 5px;
    color: #f59e0b;
    font-size: 1.2em;
    font-weight: 700;
    width: 22px;
    height: 22px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 22px;
    text-align: center;
}

/* ========== SOLUTION ========== */

.paradigm-box {
    padding: 20px 28px;
    margin: 20px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.paradigm-box p {
    font-size: clamp(1.05em, 1.75vw, 1.15em);
    color: #0f172a;
    font-weight: 600;
    line-height: 1.6;
}

.vision-section {
    padding: 20px 24px;
    margin-bottom: 18px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.vision-section ul li {
    font-size: 1.05em;
    line-height: 1.6;
    color: #334155;
}

.vision-section ul li:before {
    content: "\2192";
    color: #2563eb;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.benefit-card {
    background: #ffffff;
    padding: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
}

.benefit-card h4 {
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ========== SHOWCASE ========== */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 0 auto 30px auto;
    max-width: 1200px;
}

.showcase-item {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
}

.showcase-item:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.showcase-item-full {
    grid-column: 1 / -1;
}

.item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.item-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-radius: 10px;
    text-align: center;
    line-height: 35px;
    margin-right: 12px;
    font-weight: bold;
    color: white;
}

/* ========== BPMN CONTAINER ========== */

.bpmn-container {
    position: relative;
    height: 450px;
    padding: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.5));
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

/* ========== IFRAME CONTAINER ========== */

.form-invitation {
    text-align: center;
    font-size: 1.1em;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.iframe-container {
    width: 100%;
    min-height: 1200px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.iframe-container iframe {
    display: block;
    width: 100%;
    min-height: 1200px;
}

/* ========== INTEGRATION CONTAINER ========== */

.integration-container {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.5));
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.server-central {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: flash-glow 2s ease-in-out infinite;
}

@keyframes flash-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.6); transform: translate(-50%, -50%) scale(1); }
    50%      { box-shadow: 0 0 60px rgba(96, 165, 250, 1), 0 0 80px rgba(37, 99, 235, 0.6); transform: translate(-50%, -50%) scale(1.05); }
}

.server-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
    text-align: center;
    color: white;
}

.server-icon { font-size: 1.8rem; }

.integration-node {
    position: absolute;
    width: 90px;
    height: 70px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(37, 99, 235, 0.15));
    border: 2px solid #60a5fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float-node 3s ease-in-out infinite;
    padding: 8px;
}

.node-icon { font-size: 1.5rem; margin-bottom: 4px; }

.node-label {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
    color: white !important;
}

@keyframes float-node {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}

.node-1 { top: 10%; left: 15%; animation-delay: 0s; }
.node-2 { top: 10%; right: 15%; animation-delay: 0.5s; }
.node-3 { bottom: 10%; left: 15%; animation-delay: 1s; }
.node-4 { bottom: 10%; right: 15%; animation-delay: 1.5s; }

/* ========== DASHBOARD ========== */

.analytics-dashboard { width: 100%; }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.chart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1e40af;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.pie-chart  { width: 100%; max-width: 180px; height: auto; margin: 0 auto; display: block; }
.bar-chart,
.line-chart { width: 100%; max-width: 100%; height: auto; margin: 0 auto; display: block; }

.chart-legend {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #334155;
}

.legend-color {
    width: 18px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

@media (max-width: 768px) {
    .charts-grid { grid-template-columns: 1fr; }

    .showcase-item-analytics {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
    }

    .chart-card { padding: 12px; }
}

/* ========== HIGHLIGHT BOX ========== */

.highlight-box {
    background: linear-gradient(135deg, #0b1a2e 0%, #1e3a5f 100%);
    backdrop-filter: blur(10px);
    padding: 18px 28px;
    border-radius: 14px;
    margin: 30px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 4px 20px rgba(11, 26, 46, 0.25);
}

.highlight-box-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1em, 1.8vw, 1.2em);
    font-weight: 700;
    text-align: center;
    white-space: normal;
    max-width: 90%;
    padding: 0 10px;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .highlight-box-text {
        background: linear-gradient(110deg, #bfdbfe 0%, #ffffff 50%, #bfdbfe 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.highlight-box-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(96, 165, 250, 0.08) 20%,
        rgba(96, 165, 250, 0.18) 40%,
        rgba(96, 165, 250, 0.25) 50%,
        rgba(96, 165, 250, 0.18) 60%,
        rgba(96, 165, 250, 0.08) 80%,
        transparent 100%
    );
    animation: electricBanner 4s ease-in-out infinite;
    transform: skewX(-15deg);
    filter: blur(2px);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.3), 0 0 30px rgba(96, 165, 250, 0.2);
}

@keyframes electricBanner {
    0%   { left: -100%; }
    100% { left: 120%; }
}

.highlight-box-text {
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.2);
}

/* ========== NAVIGATION BUTTONS ========== */

.navigation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(37, 99, 235, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ========== PORTAL LINK — Nordic Tech ========== */

.nav-portal-link {
    background: #2563eb !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3) !important;
}

.nav-portal-link:hover {
    background: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5) !important;
}

.nav-menu a.nav-portal-link {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    text-shadow: none !important;
    border-bottom: none !important;
    animation: none !important;
}

.nav-menu a.nav-portal-link:hover {
    background: #3b82f6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.btn-text-mobile { display: none; }
.btn-text-full   { display: inline; }

/* ========== FORM INVITATION (showcase) ========== */

.form-invitation {
    text-align: center;
    margin: 30px auto;
    padding: 25px 40px;
    background: linear-gradient(135deg, #0b1a2e 0%, #1e3a5f 100%);
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 4px 20px rgba(11, 26, 46, 0.25);
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.form-invitation::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(96, 165, 250, 0.06) 50%, transparent 70%);
    animation: shimmerMove 3s infinite;
    pointer-events: none;
}

.form-invitation .shimmer-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(11, 26, 46, 0.35);
    -webkit-text-fill-color: #ffffff;
}

@keyframes shimmerMove {
    0%   { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(50%) translateY(50%) rotate(360deg); }
}

/* ========== MODAL (override global) ========== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 26, 46, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active { display: flex; }

.modal {
    background: white;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal h2 {
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    padding-bottom: 12px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.form-group label.required:after {
    content: " *";
    color: #dc2626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    font-size: 0.95em;
    font-family: 'Inter', Arial, sans-serif;
    color: #334155;
    background: #f8fafc;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-group input.error,
.form-group textarea.error { border-color: #dc2626; }

.error-message {
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 5px;
    min-height: 18px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', Arial, sans-serif;
}

.send-btn { background: #2563eb; color: white; }
.send-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cancel-btn {
    background: #f8fafc;
    color: #1e293b;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
}

.cancel-btn:hover { background: #eff6ff; }

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

@media (max-width: 768px) {
    .intro-text   { padding: 15px 18px; font-size: 0.95em; }
    .definition-box,
    .questions     { padding: 18px; }
    .highlight-box { padding: 20px; font-size: 1em; }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .navigation-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .bpm-banner { height: 300px; }
    .banner-content { padding: 20px; }
    .circuit-line.h1, .circuit-line.h2, .circuit-line.h3 { width: 40%; }
    .circuit-line.v1, .circuit-line.v2 { height: 35%; }

    .showcase-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }

    .form-invitation { padding: 20px 25px; margin: 20px auto; }
    .form-invitation .shimmer-text { font-size: 1em; }

    .nav-menu a {
        font-size: 0.65em;
        padding: 4px 7px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-menu a.nav-portal-link {
        padding: 4px 8px !important;
        font-size: 0.65em !important;
    }

    .btn-text-full   { display: none !important; }
    .btn-text-mobile { display: inline !important; font-size: 1.3em; }
    .language-selector { width: 60px; }
    .btn-contact { font-size: 0.8em; padding: 5px 8px; min-width: auto; width: 100%; }
}

@media (max-width: 480px) {
    .bpm-banner { height: 250px; }
    .banner-subtitle { margin-top: 10px; }
    .nav-menu a { font-size: 0.55em; padding: 2px 4px; }
    .nav-menu a.nav-portal-link { padding: 3px 6px !important; font-size: 0.6em !important; }
    .language-selector { width: 55px; }
    .btn-contact { font-size: 0.75em; padding: 4px 6px; }
}

/* ========== SVG CHART OVERRIDES ========== */

.chart-card text,
.chart-card tspan,
.chart-card svg text,
.chart-card svg tspan {
    fill: #1e40af !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}

.chart-card svg path.domain,
.chart-card svg line {
    stroke: rgba(30, 64, 175, 0.3) !important;
    fill: none !important;
}

.chart-card .tick line,
.chart-card svg .tick line {
    stroke: rgba(30, 64, 175, 0.2) !important;
}

.chart-card .tick text,
.chart-card svg .tick text {
    fill: #1e40af !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.chart-card .legend text,
.chart-card svg .legend text,
.chart-card svg text[text-anchor] {
    fill: #1e40af !important;
    font-weight: 500 !important;
}

.chart-card .bar-label,
.chart-card svg .bar-value,
.chart-card svg text.value {
    fill: #1e40af !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
}

.chart-card svg text.center-text,
.chart-card svg text.donut-label {
    fill: #1e40af !important;
    font-weight: 700 !important;
}
