/* =====================================================
   Medivent International — Main Stylesheet
   Colors: Purple #772c84 | Blue #45aaff | Dark #0d1e35
   ===================================================== */

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

:root {
    --purple:      #772c84;
    --purple-dark: #0d1e35;
    --purple-mid:  #5a1f6b;
    --blue:        #45aaff;
    --blue-bright: #269cff;
    --body-bg:     #efefef;
    --text:        #333;
    --text-light:  #666;
    --white:       #ffffff;
    --border:      #d6d6d6;
    --dark-nav:    #222d3f;
    --gold:        #f0ad4e;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--body-bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img { height: 54px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--purple); }

.btn-register {
    background: var(--purple);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.btn-register:hover { background: var(--purple-mid); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* ── HERO SLIDESHOW ─────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--dark-nav);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-caption {
    max-width: 560px;
    background: rgba(20, 12, 24, 0.72);
    padding: 36px 40px 40px;
    color: var(--white);
    backdrop-filter: blur(2px);
}

.hero-t1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-t2 {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.88;
    margin-bottom: 12px;
}

.hero-divider {
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin-bottom: 12px;
}

.hero-t3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 13px;
    opacity: 0.82;
    line-height: 1.6;
    margin-bottom: 22px;
}

.hero-btn {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.hero-btn:hover {
    background: var(--white);
    color: var(--purple);
}

/* Prev/Next arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.slider-dot.active {
    background: var(--white);
    border-color: var(--white);
}

/* Slide-in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-slide.active .hero-caption {
    animation: fadeInUp 0.7s ease 0.2s both;
}

@media (max-width: 900px) {
    .hero-slider { height: 420px; }
    .hero-t1 { font-size: 24px; }
    .hero-caption { padding: 24px 28px 28px; max-width: 100%; }
}

@media (max-width: 600px) {
    .hero-slider { height: 360px; }
    .hero-t1 { font-size: 20px; }
    .hero-caption { padding: 20px 20px 24px; }
    .hero-t3 { font-size: 16px; }
    .slider-arrow { display: none; }
}

/* ── QUICK LINKS BAR ────────────────────────────── */
.quick-links-bar {
    background: var(--blue);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-align: center;
    color: var(--white);
    border-right: 1px solid rgba(255,255,255,0.25);
    transition: background 0.2s;
    min-height: 80px;
}

.quick-link-item:last-child { border-right: none; }
.quick-link-item:hover { background: var(--blue-bright); }

.quick-link-item strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.quick-link-item span {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

/* ── HERO / EVENT INTRO ─────────────────────────── */
.event-intro {
    background: var(--white);
    padding: 60px 0 50px;
}

.event-intro-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.event-intro h1 {
    font-size: 38px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.event-intro .subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.event-intro .description {
    color: var(--text);
    margin-bottom: 16px;
}

/* Event info sidebar (purple card) */
.event-info-card {
    background: var(--purple);
    color: var(--white);
    border-radius: 4px;
    padding: 30px 28px;
}

.info-group {
    margin-bottom: 24px;
}

.info-group:last-child { margin-bottom: 0; }

.info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.info-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.info-sub {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.btn-register-lg {
    display: block;
    background: var(--white);
    color: var(--purple);
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 24px;
    transition: opacity 0.2s;
}

.btn-register-lg:hover { opacity: 0.9; }

/* ── SECTION GENERIC ────────────────────────────── */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.section-divider {
    width: 50px;
    height: 4px;
    background: var(--purple);
    margin-bottom: 36px;
}

/* ── SPEAKERS ────────────────────────────────────── */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.speaker-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.speaker-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.speaker-info {
    padding: 16px 12px;
}

.speaker-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.speaker-title {
    font-size: 12px;
    color: var(--purple);
    font-weight: 500;
}

.speaker-specialty {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

.speaker-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 48px;
}

.speaker-bio {
    display: none;
    padding: 14px 14px 16px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.65;
    text-align: left;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.speaker-card.bio-open .speaker-bio {
    display: block;
}

.speaker-card { cursor: pointer; }

.speaker-card::after {
    content: '+ bio';
    display: block;
    font-size: 10px;
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0 10px;
    text-align: center;
    transition: color 0.2s;
}

.speaker-card.bio-open::after { content: '− close'; color: var(--text-light); }

/* ── PRICING ─────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.pricing-card {
    background: var(--white);
    border-radius: 4px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid var(--blue);
}

.pricing-category {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 900;
    color: var(--purple);
    line-height: 1;
}

.pricing-currency {
    font-size: 20px;
    vertical-align: super;
    font-weight: 500;
}

.pricing-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

.pricing-includes {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

.btn-primary {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 32px;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--purple-mid); }

.text-center { text-align: center; }

/* ── SPONSORS ─────────────────────────────────────── */
.sponsor-tier-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.sponsor-tier-gold .sponsor-tier-title { color: var(--gold); }

.sponsors-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.sponsor-badge {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    min-width: 100px;
    text-align: center;
}

.sponsor-tier-gold .sponsor-badge {
    border-color: var(--gold);
    color: #a07000;
}

/* ── CONTACT ──────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 14px;
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--purple); }

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 13px 32px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover { background: var(--purple-mid); }

.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    background: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-text strong { display: block; font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-info-text a { color: var(--text); }
.contact-info-text a:hover { color: var(--purple); }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
    background: var(--purple-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 16px; filter: invert(1) hue-rotate(180deg); }

.footer-tagline {
    font-style: italic;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; }

.site-footer h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.site-footer ul li {
    margin-bottom: 8px;
}

.site-footer ul li a,
.site-footer p a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    transition: color 0.2s;
}

.site-footer ul li a:hover,
.site-footer p a:hover { color: var(--white); }

.site-footer p { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }

/* ── BADGE / HIGHLIGHT ────────────────────────────── */
.badge {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ── REGISTER SECTION ─────────────────────────────── */
.register-section {
    background: var(--purple);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.register-section h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.register-section p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--purple);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.btn-white:hover { opacity: 0.9; }

/* ── ALERT / FLASH ────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── MOBILE MENU TOGGLE ───────────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET (≤ 960px) ─────────────────────────────── */
@media (max-width: 960px) {
    /* Header */
    .header-inner { height: 68px; }
    .logo img { height: 44px; }

    /* Quick links: 2×2 grid */
    .quick-links-bar { grid-template-columns: repeat(2, 1fr); }
    .quick-link-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
    .quick-link-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.2); }
    .quick-link-item:nth-last-child(-n+2) { border-bottom: none; }

    /* Hero */
    .hero-slider  { height: 440px; }
    .hero-t1      { font-size: 26px; }
    .hero-caption { padding: 28px 32px 32px; max-width: 480px; }

    /* Event intro: stack sidebar below content */
    .event-intro-inner { grid-template-columns: 1fr; }
    .event-info-card   { max-width: 420px; }
    .event-intro h1    { font-size: 28px; }

    /* Speakers: 2 columns */
    .speakers-grid { grid-template-columns: repeat(2, 1fr); }

    /* Pricing: 2 columns */
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact: stack */
    .contact-grid { grid-template-columns: 1fr; }

    /* Footer: 2 columns */
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* Register section */
    .register-section h2 { font-size: 26px; }
}

/* ── MOBILE (≤ 640px) ─────────────────────────────── */
@media (max-width: 640px) {
    /* Navigation: hamburger */
    .mobile-menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: fixed;
        top: 68px;
        left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 0;
        overflow-y: auto;
        z-index: 200;
        border-top: 2px solid var(--purple);
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }
    .main-nav.open { display: flex; }

    .main-nav .nav-link {
        width: 100%;
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border);
    }
    .main-nav .btn-register {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        border-radius: 4px;
        padding: 14px;
    }

    /* Header */
    .header-inner { height: 60px; }
    .logo img { height: 38px; }

    /* Hero */
    .hero-slider  { height: 320px; }
    .hero-caption { padding: 18px 18px 22px; max-width: 100%; }
    .hero-t1      { font-size: 18px; }
    .hero-t2      { font-size: 13px; }
    .hero-t3      { font-size: 15px; }
    .hero-desc    { display: none; }
    .slider-arrow { display: none; }

    /* Quick links: 2×2, more compact */
    .quick-links-bar      { grid-template-columns: repeat(2, 1fr); }
    .quick-link-item      { min-height: 64px; padding: 12px 8px; }
    .quick-link-item strong { font-size: 11px; }
    .quick-link-item span   { font-size: 10px; }

    /* Event intro */
    .event-intro         { padding: 36px 0 32px; }
    .event-intro h1      { font-size: 22px; }
    .event-info-card     { max-width: 100%; }

    /* Speakers: 2 columns on small screens */
    .speakers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .speaker-name  { font-size: 13px; }

    /* Pricing: 1 column on tiny screens */
    .pricing-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pricing-price { font-size: 32px; }
    .pricing-card  { padding: 20px 12px; }

    /* Footer: single column */
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-logo  { height: 38px; }

    /* Sections */
    .section          { padding: 40px 0; }
    .section-title    { font-size: 20px; }
    .register-section { padding: 40px 0; }
    .register-section h2 { font-size: 22px; }
    .register-section p  { font-size: 14px; }
    .btn-white        { padding: 12px 28px; font-size: 14px; }

    /* Contact */
    .contact-grid { gap: 24px; }
}

/* ── VERY SMALL (≤ 380px) ─────────────────────────── */
@media (max-width: 380px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .speakers-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 280px; }
}
