/* ==========================================================================
   Joint Master - Shared Base Styles
   All CSS custom properties are overridable per program via theme files.
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Primary palette - override in jm1-theme.css, jm2-theme.css, etc. */
    --jm-primary: #1B4965;
    --jm-primary-light: #5FA8D3;
    --jm-primary-dark: #0d2d40;
    --jm-secondary: #62B6CB;
    --jm-accent: #BEE9E8;
    --jm-accent-light: #e8f8f7;
    --jm-cta-btn: #F26419;
    --jm-cta-btn-hover: #d9530a;

    /* Neutrals */
    --jm-text-dark: #1a1a2e;
    --jm-text-body: #444;
    --jm-text-light: #666;
    --jm-text-muted: #888;
    --jm-bg-light: #f8fffe;
    --jm-bg-alt: #f0f7f6;
    --jm-border: #e2e8f0;
    --jm-white: #ffffff;

    /* Shadows */
    --jm-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --jm-shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --jm-shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

    /* Transitions */
    --jm-transition: all 0.3s ease;
    --jm-transition-fast: all 0.2s ease;

    /* Layout */
    --jm-nav-height: 72px;
    --jm-radius: 12px;
    --jm-radius-sm: 8px;
    --jm-radius-pill: 50px;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--jm-nav-height) + 20px);
}

body {
    font-family: 'Noto Sans', 'Open Sans', sans-serif;
    color: var(--jm-text-body);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: var(--jm-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--jm-text-dark);
    line-height: 1.3;
}

p { margin-bottom: 1rem; }

a {
    color: var(--jm-primary);
    transition: var(--jm-transition-fast);
}
a:hover { color: var(--jm-primary-dark); }

::selection {
    background: var(--jm-secondary);
    color: var(--jm-white);
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */
.jm-skip-link {
    position: absolute;
    top: -50px;
    left: 8px;
    background: var(--jm-primary);
    color: var(--jm-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: var(--jm-radius-sm);
    font-weight: 600;
}
.jm-skip-link:focus {
    top: 8px;
    color: var(--jm-white);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.jm-navbar {
    background: linear-gradient(135deg, var(--jm-primary) 0%, var(--jm-primary-dark) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 0.6rem 0;
    transition: var(--jm-transition);
    min-height: var(--jm-nav-height);
}

.jm-navbar.scrolled {
    padding: 0.4rem 0;
    background: var(--jm-primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.jm-brand-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.jm-brand-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--jm-white) !important;
    letter-spacing: -0.01em;
}

.jm-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--jm-radius-sm);
    transition: var(--jm-transition-fast);
}
.jm-navbar .nav-link:hover,
.jm-navbar .nav-link.active {
    color: var(--jm-white) !important;
    background: rgba(255,255,255,0.15);
}

.jm-btn-cta {
    background: var(--jm-cta-btn) !important;
    color: var(--jm-white) !important;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--jm-radius-pill);
    transition: var(--jm-transition-fast);
    text-decoration: none;
}
.jm-btn-cta:hover {
    background: var(--jm-cta-btn-hover) !important;
    color: var(--jm-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242,100,25,0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.jm-hero {
    background: linear-gradient(135deg, var(--jm-primary) 0%, var(--jm-primary-dark) 40%, #0a1628 100%);
    color: var(--jm-white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.jm-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(98,182,203,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(95,168,211,0.15) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.jm-hero-content {
    position: relative;
    z-index: 2;
}

.jm-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1.2rem;
    border-radius: var(--jm-radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jm-accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.jm-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--jm-white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.jm-hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Hero stats bar */
.jm-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.jm-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.6rem 1.2rem;
    border-radius: var(--jm-radius-sm);
}

.jm-hero-stat i {
    color: var(--jm-secondary);
    font-size: 1.1rem;
}

.jm-hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}
.jm-hero-stat-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--jm-white);
}

.jm-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.jm-hero-actions .btn-primary {
    background: var(--jm-cta-btn);
    border-color: var(--jm-cta-btn);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--jm-radius-pill);
    font-family: 'Manrope', sans-serif;
}
.jm-hero-actions .btn-primary:hover {
    background: var(--jm-cta-btn-hover);
    border-color: var(--jm-cta-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,100,25,0.3);
}

.jm-hero-actions .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--jm-radius-pill);
    font-family: 'Manrope', sans-serif;
}
.jm-hero-actions .btn-outline-light:hover {
    background: var(--jm-white);
    color: var(--jm-primary);
    transform: translateY(-2px);
}

/* EU badge in hero */
.jm-hero-eu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: var(--jm-radius-sm);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2rem;
}
.jm-hero-eu-badge img {
    height: 32px;
    width: auto;
}

/* ==========================================================================
   Generic Section Styles
   ========================================================================== */
.jm-section {
    padding: 80px 0;
}
.jm-section-alt {
    background: var(--jm-bg-alt);
}

.jm-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--jm-primary);
    margin-bottom: 0.75rem;
}

.jm-section-subtitle {
    font-size: 1.05rem;
    color: var(--jm-text-light);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Feature Cards (Overview Section)
   ========================================================================== */
.jm-feature-card {
    background: var(--jm-white);
    padding: 2rem;
    border-radius: var(--jm-radius);
    box-shadow: var(--jm-shadow-sm);
    border: 1px solid var(--jm-border);
    text-align: center;
    height: 100%;
    transition: var(--jm-transition);
}
.jm-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jm-shadow-md);
    border-color: var(--jm-accent);
}

.jm-feature-icon {
    width: 64px;
    height: 64px;
    background: var(--jm-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--jm-primary);
    font-size: 1.5rem;
    transition: var(--jm-transition);
}
.jm-feature-card:hover .jm-feature-icon {
    background: var(--jm-primary);
    color: var(--jm-white);
}

.jm-feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jm-text-dark);
    margin-bottom: 0.75rem;
}
.jm-feature-card p {
    color: var(--jm-text-light);
    font-size: 0.92rem;
    margin: 0;
}

/* ==========================================================================
   Key Facts Grid
   ========================================================================== */
.jm-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.jm-fact-card {
    background: var(--jm-white);
    padding: 1.5rem;
    border-radius: var(--jm-radius);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--jm-shadow-sm);
    transition: var(--jm-transition-fast);
}
.jm-fact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--jm-shadow-md);
}

.jm-fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--jm-accent-light);
    border-radius: 50%;
    color: var(--jm-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.jm-fact-label {
    font-size: 0.78rem;
    color: var(--jm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.jm-fact-value {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jm-text-dark);
}

/* ==========================================================================
   Curriculum Accordion
   ========================================================================== */
.jm-curriculum-accordion .accordion-item {
    border: 1px solid var(--jm-border);
    border-radius: var(--jm-radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.jm-curriculum-accordion .accordion-button {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--jm-text-dark);
    background: var(--jm-white);
    padding: 1.1rem 1.5rem;
    box-shadow: none !important;
}
.jm-curriculum-accordion .accordion-button:not(.collapsed) {
    background: var(--jm-accent-light);
    color: var(--jm-primary);
}
.jm-curriculum-accordion .accordion-button::after {
    filter: none;
}

.jm-curriculum-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    background: var(--jm-white);
}

.jm-module-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--jm-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.jm-module-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jm-module-title {
    font-weight: 600;
    color: var(--jm-text-dark);
}

.jm-module-meta {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.jm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--jm-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.jm-badge-ects {
    background: var(--jm-accent-light);
    color: var(--jm-primary);
}
.jm-badge-uni {
    background: #f0f0f5;
    color: var(--jm-text-dark);
}

/* ==========================================================================
   Partner Cards
   ========================================================================== */
.jm-partner-card {
    background: var(--jm-white);
    border-radius: var(--jm-radius);
    box-shadow: var(--jm-shadow-sm);
    border: 1px solid var(--jm-border);
    overflow: hidden;
    transition: var(--jm-transition);
}
.jm-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--jm-shadow-md);
}

.jm-partner-card-header {
    background: var(--jm-bg-alt);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.jm-partner-card-logo {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.jm-partner-card-body {
    padding: 1.25rem 1.5rem;
}

.jm-partner-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jm-text-dark);
    margin-bottom: 0.5rem;
}

.jm-partner-card-location {
    color: var(--jm-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.jm-partner-card-location i {
    color: var(--jm-cta-btn);
}

/* ==========================================================================
   Admission / Steps Timeline
   ========================================================================== */
.jm-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    counter-reset: step;
    position: relative;
}

.jm-step {
    flex: 1 1 180px;
    max-width: 220px;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.jm-step-number {
    width: 56px;
    height: 56px;
    background: var(--jm-primary);
    color: var(--jm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(27,73,101,0.25);
}

/* Connector line between steps */
.jm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 3px;
    background: var(--jm-accent);
    z-index: 1;
}

.jm-step h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jm-text-dark);
    margin-bottom: 0.4rem;
}
.jm-step p {
    font-size: 0.82rem;
    color: var(--jm-text-light);
    margin: 0;
}

/* Deadline callout */
.jm-deadline-box {
    background: linear-gradient(135deg, var(--jm-primary) 0%, var(--jm-primary-dark) 100%);
    color: var(--jm-white);
    padding: 2rem;
    border-radius: var(--jm-radius);
    text-align: center;
}
.jm-deadline-box h4 {
    color: var(--jm-white);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.jm-deadline-box .jm-deadline-date {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--jm-accent);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.jm-testimonial-card {
    background: var(--jm-white);
    padding: 2rem;
    border-radius: var(--jm-radius);
    box-shadow: var(--jm-shadow-sm);
    border: 1px solid var(--jm-border);
    height: 100%;
    position: relative;
}
.jm-testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--jm-accent);
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.jm-testimonial-text {
    font-style: italic;
    color: var(--jm-text-body);
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    line-height: 1.7;
}

.jm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.jm-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--jm-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jm-primary);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}
.jm-testimonial-name {
    font-weight: 700;
    color: var(--jm-text-dark);
    font-size: 0.9rem;
}
.jm-testimonial-origin {
    font-size: 0.8rem;
    color: var(--jm-text-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.jm-faq-accordion .accordion-item {
    border: 1px solid var(--jm-border);
    border-radius: var(--jm-radius-sm) !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.jm-faq-accordion .accordion-button {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--jm-text-dark);
    background: var(--jm-white);
    padding: 1rem 1.25rem;
}
.jm-faq-accordion .accordion-button:not(.collapsed) {
    background: var(--jm-accent-light);
    color: var(--jm-primary);
    box-shadow: none;
}

.jm-faq-accordion .accordion-body {
    font-size: 0.95rem;
    color: var(--jm-text-body);
    line-height: 1.7;
}

/* ==========================================================================
   CTA Banner (Final)
   ========================================================================== */
.jm-cta-banner {
    background: linear-gradient(135deg, var(--jm-primary) 0%, var(--jm-primary-dark) 50%, #0a1628 100%);
    color: var(--jm-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jm-cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(98,182,203,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(95,168,211,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.jm-cta-banner > * { position: relative; z-index: 2; }

.jm-cta-banner h2 {
    color: var(--jm-white);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}
.jm-cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.jm-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
}

.jm-footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jm-white);
    margin-bottom: 1rem;
}

.jm-footer-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.75rem;
}

.jm-footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.jm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.jm-footer-links li { margin-bottom: 0.4rem; }
.jm-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--jm-transition-fast);
}
.jm-footer-links a:hover {
    color: var(--jm-white);
    padding-left: 4px;
}

/* Partner logo strip in footer */
.jm-footer-partners {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.jm-partner-logo-link {
    display: inline-block;
    transition: var(--jm-transition-fast);
    opacity: 0.6;
}
.jm-partner-logo-link:hover {
    opacity: 1;
    transform: scale(1.08);
}

.jm-partner-logo-sm {
    height: 45px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* EU funding */
.jm-footer-funding {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.jm-footer-disclaimer {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

.jm-footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
}
.jm-footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.jm-footer-bottom a:hover {
    color: var(--jm-white);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.jm-btn-top {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 9999;
    display: none;
    width: 44px;
    height: 44px;
    background: var(--jm-primary);
    color: var(--jm-white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--jm-shadow-md);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--jm-transition-fast);
    align-items: center;
    justify-content: center;
}
.jm-btn-top:hover {
    background: var(--jm-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--jm-shadow-lg);
    color: var(--jm-white);
}
.jm-btn-top.show {
    display: flex;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.jm-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(26,26,46,0.97);
    color: var(--jm-white);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.jm-cookie-banner.show {
    transform: translateY(0);
}
.jm-cookie-link {
    color: var(--jm-secondary) !important;
    text-decoration: underline;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.jm-text-primary { color: var(--jm-primary) !important; }
.jm-text-accent { color: var(--jm-secondary) !important; }
.jm-bg-primary { background: var(--jm-primary) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .jm-hero {
        padding: 120px 0 70px;
        min-height: auto;
    }
    .jm-hero-stats {
        gap: 0.75rem;
    }
    .jm-hero-stat {
        padding: 0.5rem 0.8rem;
    }
    .jm-section { padding: 60px 0; }
    .jm-step:not(:last-child)::after { display: none; }
    .jm-steps { gap: 1.5rem; }
}

@media (max-width: 767px) {
    .jm-hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    .jm-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .jm-hero-stats {
        justify-content: center;
    }
    .jm-hero-actions {
        justify-content: center;
    }
    .jm-section { padding: 50px 0; }
    .jm-cta-banner { padding: 60px 0; }
    .jm-facts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .jm-facts-grid {
        grid-template-columns: 1fr;
    }
    .jm-hero-stat {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--jm-secondary);
    outline-offset: 2px;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .jm-navbar,
    .jm-btn-top,
    .jm-cookie-banner,
    .jm-cta-banner {
        display: none !important;
    }
    .jm-hero {
        background: var(--jm-white);
        color: var(--jm-text-dark);
        padding: 2rem 0;
    }
    .jm-hero-title { color: var(--jm-text-dark); }
    .jm-footer { background: var(--jm-white); color: var(--jm-text-dark); }
}
