/* ==========================================================================
   STREAMERRBIL - PREMIUM STATIC CSS DESIGN SYSTEM
   Clean, modern tech support style. Professional neutral tones with trustworthy blue.
   ========================================================================== */

/* No external font imports — system font stack used for offline/hosting compatibility */

:root {
    /* Color Palette */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    
    --bg-body: #F9FAFB;
    --bg-card: #FFFFFF;
    
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;
    
    --phone-color: #059669;
    --phone-hover: #047857;
    --phone-light: #ECFDF5;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { margin-bottom: 1rem; }

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-white {
    background-color: var(--bg-card);
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-phone {
    background-color: var(--phone-color);
    color: white !important;
    font-size: 1.125rem;
    padding: 0.875rem 1.75rem;
    box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
    border-radius: 50px;
}

.btn-phone:hover {
    background-color: var(--phone-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.05em;
}

.logo-icon { font-size: 1.75rem; }
.text-primary { color: var(--primary); }

.main-nav {
    display: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.header-cta {
    display: none;
    align-items: center;
    gap: 1rem;
}

.cta-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (min-width: 1024px) {
    .main-nav, .header-cta { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* Mobile Nav Active */
.main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #E2E8F0;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-muted);
    flex-grow: 1;
}

.card-link {
    margin-top: 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Platform Cards Specific */
.platform-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.platform-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #4b5563;
}

/* Article Content */
.page-header {
    background: var(--bg-card);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.article-content {
    font-size: 1.125rem;
    color: #374151;
}

.article-content h2 {
    margin-top: 3rem;
    color: #111827;
}

.article-content h3 {
    margin-top: 2rem;
    color: #1F2937;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-hero-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    width: 100%;
}

/* Ad Placeholder */
.ad-placeholder {
    background: #F3F4F6;
    border: 2px dashed #D1D5DB;
    color: #9CA3AF;
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Support Callout Box */
.support-box {
    background: var(--phone-light);
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin: 4rem 0;
}

.support-box h3 {
    color: #065F46;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #111827;
    color: #D1D5DB;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 0;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-phone {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #34D399;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
    text-align: center;
}

.footer-bottom strong {
    color: white;
}

.copyright {
    margin-top: 1rem;
    color: #6B7280;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--phone-color);
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.5);
    z-index: 999;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-call-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--phone-hover);
}

.float-icon {
    font-size: 1.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-call-btn {
        display: none !important; /* sticky-mobile-cta handles mobile; prevent overlap */
    }
    .hero h1 {
        font-size: 2rem;
    }
    /* Tighten article page layout on mobile */
    .page-header {
        padding: 1.5rem 0;
    }
    .page-header h1 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    .article-container {
        padding: 1.25rem 1rem 2rem;
    }
    .article-hero-img {
        display: none; /* Wide banner is useless on mobile; brand hero replaces it */
    }
    .article-content {
        font-size: 1rem;
    }
    .article-content h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
    }
    .article-content h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }
    .support-box {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    .btn-phone {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ==========================================================================
   BRAND MOBILE HERO
   Direct-response ad/hero shown ONLY on mobile, above page content.
   Hidden on desktop — zero desktop impact.
   ========================================================================== */

.brand-mobile-hero {
    display: none;
}

@media (max-width: 767px) {
    .brand-mobile-hero {
        display: block;
        padding: 2rem 1.25rem 1.75rem;
        text-align: center;
    }
}

.bmh-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 auto 1.25rem;
    letter-spacing: -1px;
}

.bmh-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.bmh-headline {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.6rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.bmh-sub {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

.bmh-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 0.75rem;
}

.bmh-cta:hover {
    transform: scale(1.02);
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

.bmh-trust {
    font-size: 0.68rem;
    opacity: 0.55;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

/* Brand themes */
.brand-mobile-hero--hulu {
    background: linear-gradient(150deg, #1a2230 0%, #272c34 100%);
}
.brand-mobile-hero--hulu .bmh-logo { background: #1CE783; color: #111; }
.brand-mobile-hero--hulu .bmh-cta { color: #1a2230; }

.brand-mobile-hero--disney {
    background: linear-gradient(150deg, #000d5c 0%, #1a3eba 100%);
}
.brand-mobile-hero--disney .bmh-logo { background: #fff; color: #113CCF; }
.brand-mobile-hero--disney .bmh-cta { color: #000d5c; }

.brand-mobile-hero--max {
    background: linear-gradient(150deg, #050523 0%, #002be7 100%);
}
.brand-mobile-hero--max .bmh-logo {
    background: #00CCF8; color: #050523;
    font-size: 1.2rem; letter-spacing: -2px;
}
.brand-mobile-hero--max .bmh-cta { color: #050523; }

.brand-mobile-hero--peacock {
    background: linear-gradient(150deg, #000814 0%, #00408a 100%);
}
.brand-mobile-hero--peacock .bmh-logo { background: #0085FF; color: #fff; }
.brand-mobile-hero--peacock .bmh-cta { color: #000814; }

.brand-mobile-hero--paramount {
    background: linear-gradient(150deg, #000819 0%, #0046cc 100%);
}
.brand-mobile-hero--paramount .bmh-logo {
    background: linear-gradient(135deg, #0064FF, #00BFFF);
    color: #fff; font-size: 1.4rem;
}
.brand-mobile-hero--paramount .bmh-cta { color: #000819; }

/* ==========================================================================
   STICKY MOBILE CALL BUTTON
   Injected via tracking-placeholders.js — shown only on mobile screens
   ========================================================================== */

.sticky-mobile-cta {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--phone-green, #059669);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.sticky-mobile-cta:hover,
.sticky-mobile-cta:active {
    background: #047857;
    color: #fff;
    text-decoration: none;
}

.sticky-mobile-cta__icon {
    font-size: 1.25rem;
}

.sticky-mobile-cta__text {
    line-height: 1;
}

/* Show only on mobile — keep desktop unaffected */
@media (max-width: 767px) {
    .sticky-mobile-cta {
        display: flex;
    }
    /* Add bottom padding to body so last content isn't hidden behind the bar */
    body {
        padding-bottom: 68px;
    }
}
