/* =================================================================
   EPI GLASSMORPHISM BLUE THEME — CDRRMO Pagadian City
   Pagadian City Disaster Risk Reduction and Management Office
   ================================================================= */

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    /* Primary Blue Scale (EPI) */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;

    /* Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-sky: #0ea5e9;
    --accent-indigo: #6366f1;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --critical: #dc2626;

    /* CDRRMO Alert Levels (Bulacan-style) */
    --alert-normal: #10b981;
    --alert-alert: #f59e0b;
    --alert-alarm: #f97316;
    --alert-critical: #dc2626;

    /* Gray Scale */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Glassmorphism */
    --glass-bg: rgba(255,255,255,0.75);
    --glass-bg-dark: rgba(15,23,42,0.85);
    --glass-border: rgba(255,255,255,0.6);
    --glass-border-dark: rgba(255,255,255,0.08);
    --glass-blur: blur(16px);
    --glass-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
    --glass-shadow-dark: 0 4px 24px rgba(0,0,0,0.3);

    /* Dark Mode (Ops Center) */
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1a;
    --bg-card: #1e293b;
    --bg-card-alt: #263548;
    --bg-card-hover: #2a3f57;
    --bg-input: #1a2332;
    --bg-header: #0d1b2a;
    --text-primary-dark: #f1f5f9;
    --text-secondary-dark: #94a3b8;
    --text-muted-dark: #64748b;
    --border-dark: rgba(255,255,255,0.08);
    --border-light-dark: rgba(255,255,255,0.12);
    --border-accent: rgba(59,130,246,0.3);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(59,130,246,0.15);
    --shadow-glow-accent: 0 0 30px rgba(59,130,246,0.25);

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.5s var(--ease-out-expo);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-loading: 700;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-700); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   GLASSMORPHISM NAVIGATION
   ============================================= */
.nav-glass {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-fixed);
    background: linear-gradient(135deg, rgba(15,23,42,0.94), rgba(30,64,175,0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-seal {
    width: 2.5rem; height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-seal i { color: var(--primary-700); font-size: 1.1rem; }

.nav-brand-text { display: flex; flex-direction: column; }

.nav-brand-name {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.nav-brand-name span { color: var(--primary-300); }

.nav-brand-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 1.25rem; height: 2px;
    background: var(--primary-300);
    border-radius: 1px;
}

/* PAGASA Bell Button */
.nav-pagasa-bell {
    position: relative;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.nav-pagasa-bell:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-pagasa-bell .alert-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Mobile Navigation */
.nav-mobile-btn {
    display: flex;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(15,23,42,0.98);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu.open {
    max-height: 400px;
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-mobile-btn { display: none; }
}

/* =============================================
   HERO SECTION (EPI Blue Gradient)
   ============================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #172554 25%, #1e3a8a 50%, #1d4ed8 75%, #3b82f6 100%);
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.07);
    will-change: transform;
}

.hero-shape:nth-child(1) { width: 280px; height: 280px; top: -80px; left: -60px; opacity: 0.06; animation: shapeFloat1 18s ease-in-out infinite; }
.hero-shape:nth-child(2) { width: 120px; height: 120px; top: 20%; right: 8%; opacity: 0.08; animation: shapeFloat2 14s ease-in-out infinite reverse; }
.hero-shape:nth-child(3) { width: 60px; height: 60px; top: 60%; left: 12%; opacity: 0.07; border-radius: 8px; transform: rotate(45deg); animation: shapeFloat3 20s ease-in-out infinite; }
.hero-shape:nth-child(4) { width: 180px; height: 180px; bottom: -50px; right: -40px; opacity: 0.05; animation: shapeFloat1 22s ease-in-out infinite reverse; }
.hero-shape:nth-child(5) { width: 40px; height: 40px; top: 30%; left: 30%; opacity: 0.08; border-radius: 6px; transform: rotate(45deg); animation: shapeFloat2 16s ease-in-out infinite; }
.hero-shape:nth-child(6) { width: 90px; height: 90px; bottom: 15%; left: 5%; opacity: 0.06; animation: shapeFloat3 24s ease-in-out infinite reverse; }
.hero-shape:nth-child(7) { width: 50px; height: 50px; top: 10%; right: 25%; opacity: 0.07; border-radius: 6px; transform: rotate(45deg); animation: shapeFloat1 15s ease-in-out infinite; }
.hero-shape:nth-child(8) { width: 160px; height: 160px; bottom: 5%; right: 30%; opacity: 0.04; animation: shapeFloat2 20s ease-in-out infinite; }

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-15px, 25px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(4deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 15px) rotate(-6deg); }
    66% { transform: translate(18px, -22px) rotate(4deg); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    25% { transform: translate(15px, -30px) rotate(50deg); }
    50% { transform: translate(-20px, -10px) rotate(40deg); }
    75% { transform: translate(25px, 20px) rotate(55deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 56rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: heroTitleIn 0.9s var(--ease-out-expo) forwards;
}

.hero-pill i { color: var(--primary-300); }

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
    animation: heroTitleIn 0.9s var(--ease-out-expo) forwards;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.7);
    max-width: 38rem;
    margin: 0.75rem auto 2rem;
    line-height: 1.6;
    font-weight: 400;
    animation: heroSubtitleIn 0.9s var(--ease-out-expo) 0.15s both;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: heroCTAIn 0.9s var(--ease-out-expo) 0.3s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-800);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(29,78,216,0.3);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 40px rgba(59,130,246,0.4);
    text-decoration: none;
    color: var(--primary-800);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255,255,255,0.25);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.45);
    text-decoration: none;
    color: white;
}

@keyframes heroTitleIn { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes heroSubtitleIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes heroCTAIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: heroCTAIn 0.9s var(--ease-out-expo) 0.45s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
}

.trust-badge i { color: var(--primary-300); font-size: 0.9rem; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator i { color: rgba(255,255,255,0.4); font-size: 1.3rem; }

@keyframes scrollPulse {
    0%, 100% { opacity:0.5; transform:translateX(-50%) translateY(0); }
    50% { opacity:1; transform:translateX(-50%) translateY(5px); }
}

/* =============================================
   LIVE STATUS BAR
   ============================================= */
.live-bar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-xs);
}

.live-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

.live-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    flex-shrink: 0;
}

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.live-dot.green { background: var(--success); }
.live-dot.blue { background: var(--primary-500); }
.live-dot.orange { background: var(--warning); }
.live-dot.red { background: var(--danger); }

@keyframes livePulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.live-value { font-weight: 600; color: var(--gray-800); }

/* =============================================
   SECTION COMPONENTS
   ============================================= */
.section-center { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.section-label i { font-size: 0.65rem; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-desc {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 36rem;
    margin: 0.75rem auto 0;
}

/* =============================================
   FEATURES SECTION (Blue tint)
   ============================================= */
.features-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, #f8faff 0%, #eff6ff 50%, #f8faff 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.06), transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Glassmorphic Feature Card */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.95);
    border-color: rgba(59,130,246,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.fi-blue { background: linear-gradient(135deg, var(--primary-500), var(--primary-700)); color: white; }
.fi-sky { background: linear-gradient(135deg, var(--accent-sky), #0284c7); color: white; }
.fi-cyan { background: linear-gradient(135deg, var(--accent-cyan), #0891b2); color: white; }
.fi-green { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.fi-amber { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.fi-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.fi-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary-500);
}

/* =============================================
   STATS SECTION (Blue gradient)
   ============================================= */
.stats-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #1d4ed8);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 60%; height: 200%;
    border: 2px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -40%; right: -15%;
    width: 50%; height: 180%;
    border: 2px solid rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card { text-align: center; padding: 1.5rem; }

.stat-value {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-300);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

/* =============================================
   EMERGENCY STRIP
   ============================================= */
.emergency-strip {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 0.75rem 1.5rem;
    overflow: hidden;
}

.emergency-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.emergency-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-label i { animation: alertPulse 2s ease-in-out infinite; }

.emergency-numbers {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.emergency-num {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.emergency-num:hover { color: white; text-decoration: none; }
.emergency-num i { font-size: 0.7rem; opacity: 0.7; }
.emergency-num strong { font-weight: 700; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.5);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand h3 span { color: var(--primary-400); }

.footer-brand p {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-400); text-decoration: none; }

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.75rem;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-loading);
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary-400);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-shape { display: none; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 767px) {
    .hero { min-height: 80vh; padding: 5rem 1rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1rem; }
    .emergency-inner { gap: 1rem; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .btn-hero-primary, .btn-hero-secondary { padding: 0.875rem 1.5rem; font-size: 0.85rem; }
    .trust-badges { gap: 0.75rem; }
    .trust-badge { font-size: 0.7rem; padding: 0.4rem 0.75rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
