/* ============================================
   JMV Conference Page Styles
   Design System: Accessible & Ethical
   Typography: Lexend / Source Sans 3
   Colors: #1E40AF primary, #22C55E CTA
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --jmv-primary: #1E40AF;
    --jmv-primary-dark: #1E3A8A;
    --jmv-primary-light: #3B82F6;
    --jmv-cta: #22C55E;
    --jmv-cta-hover: #16A34A;
    --jmv-bg: #EFF6FF;
    --jmv-bg-alt: #DBEAFE;
    --jmv-text: #1E293B;
    --jmv-text-muted: #475569;
    --jmv-white: #FFFFFF;
    --jmv-border: #CBD5E1;
    --jmv-error: #DC2626;
    --jmv-success: #16A34A;
    --jmv-radius: 8px;
    --jmv-radius-lg: 12px;
    --jmv-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --jmv-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --jmv-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --jmv-font-heading: 'Lexend', sans-serif;
    --jmv-font-body: 'Source Sans 3', sans-serif;
    --jmv-transition: 200ms ease;
    --jmv-container: 1200px;
}

/* --- Reset & Base --- */
.jmv-conference-page,
.jmv-conference-page *,
.jmv-conference-page *::before,
.jmv-conference-page *::after {
    box-sizing: border-box;
}

.jmv-conference-page {
    margin: 0;
    padding: 0;
    font-family: var(--jmv-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--jmv-text);
    background: var(--jmv-bg);
    -webkit-font-smoothing: antialiased;
}

/* Override theme wrapper styles */
.jmv-conference-page #qodef-page-wrapper,
.jmv-conference-page #qodef-page-outer,
.jmv-conference-page #qodef-page-inner {
    display: none !important;
}

/* --- Skip Link --- */
.jmv-skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--jmv-primary);
    color: var(--jmv-white);
    padding: 8px 16px;
    border-radius: var(--jmv-radius);
    z-index: 1000;
    font-weight: 600;
    text-decoration: none;
}
.jmv-skip-link:focus {
    top: 16px;
}

/* --- Container --- */
.jmv-container {
    width: 100%;
    max-width: var(--jmv-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.jmv-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--jmv-border);
    transition: box-shadow var(--jmv-transition);
}
.jmv-navbar--scrolled {
    box-shadow: var(--jmv-shadow-md);
}
.jmv-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.jmv-navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.jmv-navbar__logo-img {
    height: 44px;
    width: auto;
}
.jmv-navbar__logo-text {
    font-family: var(--jmv-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jmv-primary-dark);
}
.jmv-navbar__links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.jmv-navbar__link {
    font-family: var(--jmv-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jmv-text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--jmv-radius);
    transition: color var(--jmv-transition), background var(--jmv-transition);
    cursor: pointer;
    white-space: nowrap;
}
.jmv-navbar__link:hover,
.jmv-navbar__link:focus-visible {
    color: var(--jmv-primary);
    background: var(--jmv-bg);
}
.jmv-navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language toggle */
.jmv-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-family: var(--jmv-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jmv-primary);
    background: var(--jmv-bg);
    border: 2px solid var(--jmv-primary);
    border-radius: var(--jmv-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--jmv-transition);
}
.jmv-lang-toggle:hover,
.jmv-lang-toggle:focus-visible {
    background: var(--jmv-primary);
    color: var(--jmv-white);
}

/* Burger */
.jmv-navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}
.jmv-navbar__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--jmv-text);
    border-radius: 2px;
    transition: transform var(--jmv-transition), opacity var(--jmv-transition);
}
.jmv-navbar__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.jmv-navbar__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.jmv-navbar__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.jmv-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--jmv-primary-dark) 0%, var(--jmv-primary) 50%, var(--jmv-primary-light) 100%);
    overflow: hidden;
    padding-top: 72px;
}
.jmv-hero__overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>') repeat;
    background-size: 100px 100px;
}
.jmv-hero__content {
    position: relative;
    text-align: center;
    padding: 80px 24px;
    color: var(--jmv-white);
}
.jmv-hero__date {
    font-family: var(--jmv-font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 16px;
}
.jmv-hero__title {
    font-family: var(--jmv-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.jmv-hero__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 0 40px;
}
.jmv-hero__cta {
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* --- Buttons --- */
.jmv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--jmv-font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--jmv-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--jmv-transition);
    min-height: 44px;
}
.jmv-btn:focus-visible {
    outline: 3px solid var(--jmv-primary-light);
    outline-offset: 2px;
}
.jmv-btn--primary {
    background: var(--jmv-cta);
    color: var(--jmv-white);
}
.jmv-btn--primary:hover {
    background: var(--jmv-cta-hover);
    transform: translateY(-1px);
    box-shadow: var(--jmv-shadow-md);
}

/* --- Sections --- */
.jmv-section {
    padding: 80px 0;
}
.jmv-section--alt {
    background: var(--jmv-white);
}
.jmv-section__title {
    font-family: var(--jmv-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--jmv-primary-dark);
    text-align: center;
    margin: 0 0 16px;
}
.jmv-section__subtitle {
    font-size: 1.1rem;
    color: var(--jmv-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}
.jmv-placeholder {
    text-align: center;
    color: var(--jmv-text-muted);
    font-style: italic;
    padding: 40px 0;
}

/* --- About --- */
.jmv-about__content {
    max-width: 800px;
    margin: 32px auto 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--jmv-text);
}
.jmv-about__content p {
    margin: 0 0 16px;
}

/* --- Agenda --- */
.jmv-agenda__timeline {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 32px;
}
.jmv-agenda__timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--jmv-primary-light);
    opacity: 0.3;
}
.jmv-agenda__item {
    position: relative;
    padding: 0 0 32px 24px;
}
.jmv-agenda__item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--jmv-primary);
    border: 3px solid var(--jmv-bg);
}
.jmv-agenda__time {
    font-family: var(--jmv-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jmv-primary);
    margin-bottom: 4px;
}
.jmv-agenda__session-title {
    font-family: var(--jmv-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--jmv-text);
    margin: 0 0 4px;
}
.jmv-agenda__speaker {
    font-size: 0.95rem;
    color: var(--jmv-text-muted);
    margin: 0 0 4px;
}
.jmv-agenda__desc {
    font-size: 0.95rem;
    color: var(--jmv-text-muted);
    margin: 0;
}

/* --- Panelists --- */
.jmv-panelists__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.jmv-panelist-card {
    background: var(--jmv-white);
    border-radius: var(--jmv-radius-lg);
    box-shadow: var(--jmv-shadow);
    overflow: hidden;
    text-align: center;
    transition: box-shadow var(--jmv-transition), transform var(--jmv-transition);
}
.jmv-panelist-card:hover {
    box-shadow: var(--jmv-shadow-lg);
    transform: translateY(-2px);
}
.jmv-panelist-card__photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--jmv-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}
.jmv-panelist-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jmv-panelist-card__photo--placeholder {
    color: var(--jmv-primary-light);
}
.jmv-panelist-card__name {
    font-family: var(--jmv-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jmv-text);
    margin: 20px 20px 4px;
}
.jmv-panelist-card__role {
    font-size: 0.9rem;
    color: var(--jmv-primary);
    font-weight: 500;
    margin: 0 20px 8px;
}
.jmv-panelist-card__bio {
    font-size: 0.9rem;
    color: var(--jmv-text-muted);
    margin: 0 20px 20px;
    line-height: 1.5;
}

/* --- News --- */
.jmv-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.jmv-news-card {
    background: var(--jmv-bg);
    border-radius: var(--jmv-radius-lg);
    overflow: hidden;
    box-shadow: var(--jmv-shadow);
    transition: box-shadow var(--jmv-transition), transform var(--jmv-transition);
}
.jmv-news-card:hover {
    box-shadow: var(--jmv-shadow-lg);
    transform: translateY(-2px);
}
.jmv-news-card__banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.jmv-news-card__body {
    padding: 20px;
}
.jmv-news-card__date {
    font-size: 0.85rem;
    color: var(--jmv-text-muted);
    display: block;
    margin-bottom: 8px;
}
.jmv-news-card__title {
    font-family: var(--jmv-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jmv-text);
    margin: 0 0 8px;
}
.jmv-news-card__excerpt {
    font-size: 0.95rem;
    color: var(--jmv-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Registration Form --- */
.jmv-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--jmv-white);
    border-radius: var(--jmv-radius-lg);
    padding: 40px;
    box-shadow: var(--jmv-shadow-md);
}
.jmv-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.jmv-form__group--full {
    grid-column: 1 / -1;
}
.jmv-form__label {
    display: block;
    font-family: var(--jmv-font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--jmv-text);
    margin-bottom: 6px;
}
.jmv-form__input,
.jmv-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--jmv-font-body);
    font-size: 1rem;
    color: var(--jmv-text);
    background: var(--jmv-bg);
    border: 2px solid transparent;
    border-radius: var(--jmv-radius);
    transition: border-color var(--jmv-transition), box-shadow var(--jmv-transition);
}
.jmv-form__input:focus,
.jmv-form__textarea:focus {
    outline: none;
    border-color: var(--jmv-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.jmv-form__input--error {
    border-color: var(--jmv-error) !important;
}
.jmv-form__error {
    display: block;
    font-size: 0.85rem;
    color: var(--jmv-error);
    margin-top: 4px;
    min-height: 1.2em;
}
.jmv-form__submit-wrap {
    text-align: center;
    margin-top: 28px;
}
.jmv-form__submit {
    min-width: 200px;
    padding: 14px 32px;
    font-size: 1.05rem;
}
.jmv-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.jmv-form__message {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--jmv-radius);
    text-align: center;
    font-weight: 500;
    display: none;
}
.jmv-form__message--success {
    display: block;
    background: #F0FDF4;
    color: var(--jmv-success);
    border: 1px solid #BBF7D0;
}
.jmv-form__message--error {
    display: block;
    background: #FEF2F2;
    color: var(--jmv-error);
    border: 1px solid #FECACA;
}

/* Spinner */
.jmv-spinner {
    animation: jmv-spin 1s linear infinite;
}
@keyframes jmv-spin {
    to { transform: rotate(360deg); }
}

/* --- FAQ --- */
.jmv-faq__list {
    max-width: 700px;
    margin: 40px auto 0;
}
.jmv-faq__item {
    border-bottom: 1px solid var(--jmv-border);
}
.jmv-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--jmv-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--jmv-text);
    text-align: left;
    gap: 16px;
    min-height: 44px;
}
.jmv-faq__question:hover {
    color: var(--jmv-primary);
}
.jmv-faq__question:focus-visible {
    outline: 3px solid var(--jmv-primary-light);
    outline-offset: 2px;
    border-radius: var(--jmv-radius);
}
.jmv-faq__question svg {
    flex-shrink: 0;
    transition: transform var(--jmv-transition);
}
.jmv-faq__question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.jmv-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}
.jmv-faq__answer p {
    padding: 0 0 20px;
    color: var(--jmv-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* --- Contact --- */
.jmv-contact__info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.jmv-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: var(--jmv-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--jmv-radius);
    transition: background var(--jmv-transition);
    cursor: pointer;
}
.jmv-contact__link:hover {
    background: var(--jmv-bg-alt);
}

/* --- Footer --- */
.jmv-footer {
    background: var(--jmv-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 28px 0;
    font-size: 0.9rem;
}
.jmv-footer p {
    margin: 0;
}

/* --- Sticky CTA (mobile) --- */
.jmv-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--jmv-border);
    display: none;
    transform: translateY(100%);
    transition: transform 300ms ease;
}
.jmv-sticky-cta--visible {
    transform: translateY(0);
}
.jmv-sticky-cta__btn {
    width: 100%;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .jmv-navbar__links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--jmv-white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--jmv-border);
        box-shadow: var(--jmv-shadow-md);
    }
    .jmv-navbar__links--open {
        display: flex;
    }
    .jmv-navbar__burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .jmv-section {
        padding: 56px 0;
    }
    .jmv-hero {
        min-height: 70vh;
    }
    .jmv-hero__content {
        padding: 60px 16px;
    }
    .jmv-form {
        padding: 24px;
    }
    .jmv-form__grid {
        grid-template-columns: 1fr;
    }
    .jmv-news__grid {
        grid-template-columns: 1fr;
    }
    .jmv-panelists__grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    .jmv-sticky-cta {
        display: block;
    }
}

@media (max-width: 480px) {
    .jmv-container {
        padding: 0 16px;
    }
    .jmv-hero__cta {
        width: 100%;
    }
    .jmv-contact__info {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
