/* =======================================================
   FILM HELP SQUAD - SHARED STYLES (used by new pages)
   Theme matches existing index.html (#f59e0b primary)
   ======================================================= */

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #6366f1;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f97316;
    --danger: #ef4444;
    --bg-dark: #0f1419;
    --bg-darker: #050709;
    --surface-1: rgba(30, 41, 59, 0.7);
    --surface-2: rgba(30, 41, 59, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    min-height: 100vh;
}
::selection { background: var(--primary); color: var(--bg-dark); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============== HEADER ============== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    transition: var(--transition);
}
header.scrolled {
    background: rgba(15, 20, 25, 0.95);
    box-shadow: var(--shadow-md);
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--text-primary);
    flex-shrink: 0;
}
.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.highlight {
    color: var(--primary);
    font-weight: 600;
}
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}
.nav-links a.active::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
}
.nav-links a.ai-link.active {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}
.nav-links a.ai-link.active::before { display: none; }
.nav-links a.ai-link {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.nav-links a.ai-link::after {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 800;
}
.nav-links a.live-demo {
    color: var(--success);
    font-weight: 600;
}

.cta-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}
.btn-secondary {
    background: var(--surface-1);
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ============== PAGE HERO ============== */
.page-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.12), transparent 50%);
    pointer-events: none;
}
.page-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.page-hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* ============== SECTION ============== */
section { padding: 4rem 0; }
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.section-header h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ============== CARDS ============== */
.card {
    background: var(--surface-1);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: var(--shadow-lg);
}
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============== FOOTER ============== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer-section a {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-tertiary);
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer-section a:hover { color: var(--primary); padding-left: 4px; }
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-1);
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0;
}
.social-links a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-3px);
    padding-left: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}
.footer-bottom .legal-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-bottom .legal-links a {
    color: var(--text-tertiary);
}
.footer-bottom .legal-links a:hover { color: var(--primary); }

/* ============== CUSTOMER CHAT ============== */
.chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.chat-trigger::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--success);
    border: 3px solid var(--bg-dark);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}
.chat-trigger:hover { transform: scale(1.1) rotate(-5deg); }

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 560px;
    max-height: calc(100vh - 140px);
    background: var(--bg-dark);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chat-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}
.chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bg-dark);
}
.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}
.chat-header .status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.chat-header .status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.chat-close {
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.chat-close:hover { background: rgba(255,255,255,0.35); }

.chat-tabs {
    display: flex;
    background: var(--surface-2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.chat-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.chat-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
}
.chat-msg {
    display: flex;
    gap: 0.5rem;
    max-width: 85%;
    animation: fadeInMsg 0.3s ease-out;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}
.chat-msg.user .avatar {
    background: var(--gradient-secondary);
}
.chat-msg .bubble {
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: var(--surface-1);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-msg.bot .bubble { border-top-left-radius: 4px; }
.chat-msg.user .bubble {
    background: var(--gradient-primary);
    color: #fff;
    border-top-right-radius: 4px;
}
.chat-msg .bubble a { color: var(--primary); text-decoration: underline; }
.chat-msg.user .bubble a { color: #fff; }
.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 0.5rem;
    flex-shrink: 0;
}
.chat-quick-replies button {
    background: var(--surface-1);
    color: var(--primary);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}
.chat-quick-replies button:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem;
    background: var(--surface-2);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    background: var(--surface-1);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.chat-input:focus {
    border-color: var(--primary);
    background: var(--surface-1);
}
.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 0.7rem 1rem;
    background: var(--surface-1);
    border-radius: 14px;
    border-top-left-radius: 4px;
    width: fit-content;
}
.chat-typing span {
    width: 7px;
    height: 7px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}
.chat-form {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow-y: auto;
}
.chat-form label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.chat-form input,
.chat-form select,
.chat-form textarea {
    background: var(--surface-1);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.chat-form input:focus,
.chat-form select:focus,
.chat-form textarea:focus { border-color: var(--primary); }
.chat-form textarea { resize: vertical; min-height: 80px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(245, 158, 11, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        align-items: stretch;
    }
    .nav-links.active { max-height: 600px; }
    .nav-links a {
        padding: 0.85rem 2rem;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .mobile-menu-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-nav .btn-sm:first-child { display: none; }
    .chat-window { right: 12px; bottom: 90px; }
    .chat-trigger { right: 16px; bottom: 16px; }
}

/* ============== UTILITIES ============== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
