/* ============================================================
   Hvision.ma – main.css
   Global Overrides & Root Variables
   ============================================================ */

:root {
    --brand-dark:         #0f0f1a;
    --brand-light:        #1a1a2e;
    --brand-surface:      #1a1a2e;
    --brand-accent:       #f59e0b;
    --brand-accent-hover: #fbbf24;
    --brand-accent-glow:  rgba(245, 158, 11, 0.25);
    --brand-text:         #f8f9fa;
    --brand-text-secondary: #d7d9de;
    --brand-text-tertiary:  #9aa1af;
    --brand-success:      #2d6a4f;
    --brand-border:       rgba(255, 255, 255, 0.07);
    --radius-card:        8px;
    --radius-md:          6px;
    --transition-default: all 0.3s ease;
    --shadow-glow:        0 0 40px rgba(245, 158, 11, 0.12);
}

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--brand-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 158, 11, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 90%, rgba(20, 20, 43, 0.9), transparent);
    color: var(--brand-text);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.tracking-premium {
    letter-spacing: 0.05em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--brand-dark); }
::-webkit-scrollbar-thumb {
    background: var(--brand-surface);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-accent); }

/* Selection */
::selection {
    background: rgba(245, 158, 11, 0.25);
    color: #fff;
}

/* ── Utility classes ─────────────────────────────────────── */

.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--brand-border);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-gradient {
    background:
        radial-gradient(circle at 70% 0%, rgba(245, 158, 11, 0.12), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(20, 20, 43, 0.95), transparent 60%);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(245, 158, 11, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Glow divider */
.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

/* ── Toast ───────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    align-items: flex-end;
}
@media (min-width: 640px) {
    #toast-container {
        bottom: 2rem;
        right: 2rem;
        left: auto;
    }
}

/* Space for mobile bottom nav */
@media (max-width: 767px) {
    body { padding-bottom: 62px; }
}

.toast {
    pointer-events: auto;
    animation: slideInRight 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ── Glow pulse for CTA ──────────────────────────────────── */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50%       { box-shadow: 0 0 40px rgba(245, 158, 11, 0.6); }
}

.glow-pulse {
    animation: glowPulse 2.5s ease-in-out infinite;
}
