/*
Theme Name: Sales Ruby Theme
Theme URI: https://salesruby.com/
Author: Sales Ruby
Description: Custom AFRES 2026 Theme
Version: 1.6.12
*/

/* --- RESET & BASICS --- */
:root {
    --primary-color: #001a5c;
    --accent-color: #0EA5E9;
    --dark-bg: #020617;
    --light-bg: #f0f9ff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --white: #ffffff;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Merriweather', serif;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

/* CRITICAL FIX: Prevent horizontal scroll */
html { 
    overflow-x: hidden; 
    width: 100%; 
    max-width: 100vw;
}

body { 
    font-family: var(--font-sans); 
    color: var(--text-main); 
    background: var(--white); 
    line-height: 1.6; 
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-serif); 
    font-weight: 700; 
    line-height: 1.2; 
    margin: 0 0 1rem 0; 
    color: var(--text-main); 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.3s ease; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

p { 
    margin-bottom: 1.5rem; 
}

/* --- UTILITIES --- */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    box-sizing: border-box;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.relative { position: relative; }

.section-py { 
    padding-top: 2rem; 
    padding-bottom: 2rem; 
}

@media(min-width: 768px) { 
    .section-py { 
        padding-top: 3rem; 
        padding-bottom: 3rem; 
    } 
}

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0.75rem 1.5rem; 
    border-radius: 0.5rem; 
    font-weight: 600; 
    cursor: pointer; 
    line-height: 1; 
    white-space: nowrap;
}

.btn-primary { 
    background: var(--primary-color); 
    color: var(--white); 
}

.btn-primary:hover { 
    background: var(--accent-color); 
    transform: translateY(-2px); 
}

.btn-outline { 
    border: 1px solid #e2e8f0; 
    color: var(--text-main); 
    background: var(--white); 
}

.btn-outline:hover { 
    background: #f8fafc; 
}

.btn-text-only { 
    background: transparent; 
    padding: 0; 
}

/* --- HEADER --- */
.top-bar { 
    background: #f0f9ff; 
    border-bottom: 1px solid #e0f2fe; 
    padding: 0.5rem 0; 
    font-size: 0.85rem; 
    color: var(--primary-color); 
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}

.main-nav { 
    position: sticky; 
    top: 0; 
    z-index: 999; 
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    overflow-x: hidden;
}

.nav-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.75rem 0; 
    height: auto; 
    min-height: 70px;
}

/* LOGO FIXES */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%;
}

.site-logo { 
    flex-shrink: 0;
    line-height: 0;
}

.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-logo img, .custom-logo { 
    max-height: 50px; 
    width: auto; 
    object-fit: contain; 
}

.site-title-tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.site-title-tagline a {
    font-size: 1.3rem; 
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.site-title-tagline p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
    font-weight: 500;
    color: var(--text-muted);
}

/* Menu */
.desktop-menu { 
    display: none; 
    gap: 2rem; 
    font-size: 0.9rem; 
    font-weight: 500; 
    align-items: center; 
}

.desktop-menu ul { 
    display: flex; 
    gap: 2rem; 
    margin: 0; 
}

.desktop-menu li { 
    position: relative; 
}

.desktop-menu a:hover { 
    color: var(--primary-color); 
}

.mobile-toggle { 
    display: block; 
    border: none; 
    background: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--primary-color); 
    padding: 0.5rem; 
}

@media(min-width: 992px) {
    .desktop-menu { display: flex; }
    .mobile-toggle { display: none; }
}

/* Mobile Dropdown */
.mobile-menu-wrap { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: white; 
    border-top: 1px solid #eee; 
    padding: 1.5rem; 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    z-index: 99; 
}

.mobile-menu-wrap.active { 
    display: block; 
}

.mobile-menu-wrap ul { 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
}

.mobile-menu-wrap li { 
    border-bottom: 1px solid #f1f5f9; 
}

.mobile-menu-wrap a { 
    display: block; 
    padding: 1rem 0; 
    font-weight: 600; 
    color: var(--text-main); 
}

/* --- HERO SECTION --- */
.hero-section { 
    min-height: auto; 
    display: flex; 
    align-items: center; 
    padding: 2rem 0; 
    position: relative; 
    overflow: hidden;
    width: 100%;
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    align-items: center; 
    width: 100%;
}

@media(min-width: 1024px) { 
    .hero-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 4rem; 
    } 
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.4rem 0.8rem; 
    background: #eff6ff; 
    color: var(--primary-color); 
    border: 1px solid #dbeafe; 
    border-radius: 999px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
    width: fit-content;
}

.hero-title { 
    font-size: 2.5rem; 
    line-height: 1.1; 
    margin-bottom: 1.25rem; 
    font-family: var(--font-serif);
}

@media(min-width: 768px) { 
    .hero-title { 
        font-size: 3.5rem; 
    } 
}

.hero-video-wrap { 
    position: relative; 
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 1rem; 
    overflow: hidden; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
    border: 1px solid #f1f5f9; 
    background: #000;
    width: 100%;
    max-width: 100%;
}

.hero-video-wrap iframe { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
}

/* Blobs */
.blob { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    opacity: 0.5; 
    z-index: -1; 
    pointer-events: none; 
}

.blob-1 { 
    top: -10%; 
    right: -10%; 
    width: 500px; 
    height: 500px; 
    background: #dbeafe; 
}

.blob-2 { 
    bottom: -10%; 
    left: -10%; 
    width: 400px; 
    height: 400px; 
    background: #cffafe; 
}

/* --- COUNTDOWN --- */
.countdown-section { 
    background: var(--primary-color); 
    color: white; 
    padding: 1rem 0;
    width: 100%;
    overflow-x: hidden;
}

.countdown-container { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    align-items: center; 
    text-align: center; 
}

@media(min-width: 768px) { 
    .countdown-container { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    } 
}

.countdown-grid { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
}

.countdown-item { 
    text-align: center; 
    min-width: 60px; 
}

.countdown-item .num { 
    display: block; 
    font-size: 1.75rem; 
    font-weight: 700; 
    font-family: monospace; 
    line-height: 1; 
}

.countdown-item .label { 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    color: #67e8f9; 
    letter-spacing: 1px; 
    margin-top: 4px; 
}

/* --- SECTIONS --- */
.section-tag { 
    color: var(--accent-color); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 1rem; 
}

/* Speakers */
.speakers-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.5rem; 
}

.speaker-card { 
    position: relative; 
    border-radius: 1rem; 
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); 
}

.speaker-img-wrap { 
    padding-bottom: 100%; 
    position: relative; 
    background: #e2e8f0; 
}

.speaker-img-wrap img { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.speaker-info { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 1rem; 
    background: linear-gradient(to top, rgba(2,6,23,0.9), transparent); 
    color: white; 
}

/* Stories */
.stories-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
}

@media(min-width: 768px) { 
    .stories-grid { 
        grid-template-columns: 1fr 1fr; 
    } 
}

.story-card { 
    border-radius: 1rem; 
    overflow: hidden; 
    border: 1px solid #f1f5f9; 
    background: #f8fafc; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
}

.story-video { 
    position: relative; 
    padding-bottom: 56.25%; 
    background: black; 
    width: 100%;
}

.story-video iframe { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
}

.story-meta { 
    padding: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.story-avatar { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    background: #e0f2fe; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    color: var(--primary-color); 
    font-size: 1.2rem; 
    flex-shrink: 0; 
}

/* Target Audience */
.target-section { 
    background: var(--light-bg); 
}

.target-grid { 
    display: grid; 
    gap: 3rem; 
}

@media(min-width: 1024px) { 
    .target-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 5rem; 
    } 
}

.target-item { 
    display: flex; 
    gap: 1rem; 
    background: white; 
    padding: 1.5rem; 
    border-radius: 1rem; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 1rem; 
    align-items: flex-start; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.target-icon { 
    background: #eff6ff; 
    padding: 0.75rem; 
    border-radius: 0.5rem; 
    color: var(--primary-color); 
    flex-shrink: 0; 
}

.host-box { 
    margin-top: 2rem; 
    border-top: 1px solid #cbd5e1; 
    padding-top: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.host-img { 
    width: 64px; 
    height: 64px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--accent-color); 
}

/* Webinar */
.webinar-card { 
    background: white; 
    padding: 2rem; 
    border-radius: 1.5rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
}

.webinar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 1.5rem; 
}

.webinar-tag { 
    background: #eff6ff; 
    color: var(--primary-color); 
    padding: 0.25rem 0.75rem; 
    border-radius: 999px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.webinar-date { 
    text-align: right; 
}

.date-big { 
    display: block; 
    font-size: 2rem; 
    font-weight: 700; 
    line-height: 1; 
    color: var(--primary-color); 
}

.date-small { 
    display: block; 
    color: var(--accent-color); 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.check-list li { 
    display: flex; 
    gap: 0.75rem; 
    margin-bottom: 0.75rem; 
    font-size: 0.95rem; 
    align-items: flex-start; 
}

/* Trusted Logos */
.trusted-logos { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 3rem; 
}

.trusted-logos img { 
    height: 60px; 
    width: auto; 
    object-fit: contain; 
}

/* Pricing */
.pricing-grid { 
    display: grid; 
    gap: 2rem; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.pricing-card { 
    padding: 2rem; 
    border-radius: 1.5rem; 
    background: white; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    flex-direction: column; 
}

.pricing-card.featured { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    transform: scale(1.02); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
    z-index: 2; 
    position: relative; 
}

.pricing-card.featured .price-sub, 
.pricing-card.featured .btn-outline { 
    color: #93c5fd; 
    border-color: rgba(255,255,255,0.2); 
}

.pricing-card.featured .btn-outline { 
    background: transparent; 
    color: white !important; 
    border: 1px solid white; 
    opacity: 1; 
    text-decoration: none; 
}

.pricing-card.featured .btn-outline:hover { 
    background: rgba(255,255,255,0.1); 
    color: white !important; 
}

.price-main { 
    font-size: 2.5rem; 
    font-weight: 700; 
    display: block; 
}

.pricing-features { 
    margin: 2rem 0; 
    flex-grow: 1; 
}

.pricing-features li { 
    margin-bottom: 0.75rem; 
    display: flex; 
    gap: 0.75rem; 
    font-size: 0.9rem; 
}

/* FAQ & Form */
.faq-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

@media(min-width: 1024px) { 
    .faq-grid { 
        grid-template-columns: 1fr 1fr; 
    } 
}

.faq-item { 
    background: #f8fafc; 
    border: 1px solid #f1f5f9; 
    padding: 1.5rem; 
    border-radius: 1rem; 
}

.faq-q { 
    display: flex; 
    gap: 0.75rem; 
    font-weight: 700; 
    align-items: center; 
    margin-bottom: 0.5rem; 
    color: var(--primary-color); 
}

.form-box { 
    background: var(--primary-color); 
    padding: 2rem 0; 
}

.form-container { 
    background: white; 
    border-radius: 1.5rem; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    max-width: 1000px; 
    margin: 0 auto; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
}

@media(min-width: 768px) { 
    .form-container { 
        flex-direction: row; 
    } 
}

.form-main { 
    padding: 2rem; 
    flex: 2; 
}

.form-sidebar { 
    background: #f8fafc; 
    padding: 2rem; 
    flex: 1; 
    border-left: 1px solid #f1f5f9; 
}

.contact-list li { 
    display: flex; 
    gap: 1rem; 
    margin-bottom: 1.5rem; 
}

.contact-label { 
    display: block; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: #94a3b8; 
    font-weight: 700; 
}

/* Footer */
.site-footer { 
    padding: 2rem 0; 
    background: white; 
    border-top: 1px solid #e2e8f0; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    width: 100%; 
    overflow-x: hidden; 
}

.footer-flex { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    align-items: center; 
    text-align: center; 
    width: 100%; 
    padding: 0; 
}

@media(min-width: 768px) { 
    .footer-flex { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    } 
    .footer-flex > div { 
        text-align: left; 
    }
}

.footer-logo img, 
.footer-logo .custom-logo { 
    max-height: 40px; 
    width: auto; 
    display: inline-block; 
}

.footer-nav a { 
    display: inline-block; 
    margin: 0 0.5rem; 
}

.social-links { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
}

/* --- MOBILE OPTIMIZATION --- */
@media screen and (max-width: 767px) {
    /* Force proper containment */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Container fix */
    .container { 
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
    }
    
    .section-py { 
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
    
    /* Top bar */
    .top-bar {
        padding: 0.5rem 1rem;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Header & Logo */
    .nav-inner { 
        min-height: 60px;
        padding: 0.5rem 0;
    }
    
    .site-branding { 
        max-width: 70%; 
        gap: 0.5rem; 
    }
    
    .site-logo img { 
        max-height: 40px !important; 
    }
    
    .site-title-tagline a { 
        font-size: 1rem !important; 
        line-height: 1.1; 
    }
    
    .site-title-tagline p { 
        font-size: 0.65rem !important; 
        line-height: 1.2; 
        margin-top: 2px; 
    }
    
    /* Hero section */
    .hero-section { 
        padding: 1.5rem 0 2rem; 
    }
    
    .hero-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
        text-align: center; 
    }
    
    .hero-content { 
        align-items: center; 
    }
    
    .hero-tag { 
        margin: 0 auto 1rem auto; 
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .hero-title { 
        font-size: 1.75rem !important; 
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .flex.gap-4 { 
        justify-content: center; 
        flex-direction: column; 
        width: 100%; 
        gap: 0.75rem;
    }
    
    .hero-content .btn { 
        width: 100%; 
        max-width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Countdown */
    .countdown-section {
        padding: 1rem 0;
    }
    
    .countdown-container { 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        gap: 1rem;
        padding: 0 !important;
    }
    
    .countdown-grid { 
        justify-content: center; 
        width: 100%;
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-item .num { 
        font-size: 1.5rem; 
    }
    
    .countdown-item .label { 
        font-size: 0.6rem; 
    }

    /* Grids */
    .speakers-grid, 
    .stories-grid, 
    .pricing-grid, 
    .target-grid, 
    .faq-grid { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem;
    }

    /* Speaker cards */
    .speaker-img-wrap { 
        padding-bottom: 100%; 
    }
    
    .speaker-info { 
        padding: 0.75rem; 
    }
    
    .speaker-info h3 { 
        font-size: 0.95rem; 
    }

    /* Typography */
    h2 { 
        font-size: 1.75rem !important; 
    }
    
    h3 { 
        font-size: 1.25rem !important; 
    }

    /* Webinar card */
    .webinar-card { 
        padding: 1.5rem; 
    }

    /* Form */
    .form-container { 
        flex-direction: column; 
    }
    
    .form-main, 
    .form-sidebar { 
        padding: 1.5rem; 
    }

    /* Footer */
    .site-footer { 
        padding: 2rem 1rem; 
    }
    
    .footer-flex { 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center; 
        align-items: center;
    }
    
    .footer-brand { 
        flex-direction: column; 
        align-items: center; 
        gap: 0.75rem; 
    }
    
    .footer-nav a { 
        display: block; 
        margin: 0.5rem 0; 
    }

    /*