/**
 * Power Choosers - Public Website Stylesheet
 * Shared styles across all public-facing pages (index, about, services, resources, schedule, etc.)
 * Version: 2025.1 - MAXIMUM TRANSPARENCY
 */

/* ===========================
   CSS VARIABLES (DESIGN TOKENS)
   =========================== */
:root {
    /* Brand Colors */
    --brand-blue: #0b1b45;
    --brand-orange: #f59e0b;
    --brand-orange-hover: #d97706;
    --brand-orange-light: #fbbf24;

    /* Text Colors */
    --text: #0f172a;
    --muted: #475569;

    /* Background & UI */
    --card: #ffffff;
    --border: #e5e7eb;

    /* Shadows - Enhanced for more depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .15);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, .20);
    --glow-orange: 0 0 24px rgba(245, 158, 11, .4);
    --glow-blue: 0 0 20px rgba(11, 27, 69, .25);

    /* Border Radius */
    --radius: 14px;
    --radius-lg: 20px;
    --radius-button: 12px;

    /* Layout */
    --container: 1400px;

    /* Transitions */
    --transition: all .3s cubic-bezier(.4, .0, .2, 1);
    --transition-fast: all .2s cubic-bezier(.4, .0, .2, 1);
}

/* ===========================
   GLOBAL RESETS
   =========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

section {
    scroll-margin-top: 80px;
}

/* ===========================
   HEADER & NAVIGATION - MAXIMUM TRANSPARENCY
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    /* Initial state - moderate transparency */
    background: rgba(255, 255, 255, .80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, .5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: var(--transition);
}

/* EXTREME transparency and blur when scrolled - 50% opacity = VERY see-through */
.site-header.scrolled {
    background: rgba(255, 255, 255, .50);
    backdrop-filter: blur(40px) saturate(260%);
    -webkit-backdrop-filter: blur(40px) saturate(260%);
    box-shadow: 0 16px 64px rgba(0, 0, 0, .22);
    border-bottom-color: rgba(229, 231, 235, .7);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-fast);
}

.brand:hover {
    opacity: 0.85;
}

.brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.brand-name {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 20px;
    color: var(--brand-blue);
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.menu-toggle {
    display: none;
}

/* ===========================
   BUTTONS - IMPROVED DESIGN
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-button);
    border: 2px solid transparent;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button - Enhanced with gradient and glow */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-hover) 100%);
    color: #0a0f1f;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-orange), 0 8px 24px rgba(245, 158, 11, .45);
    background: linear-gradient(135deg, var(--brand-orange-light) 0%, var(--brand-orange) 100%);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Outline Button - Enhanced with better hover states */
.btn-outline {
    border-color: rgba(45, 58, 92, .3);
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--brand-blue);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    background: linear-gradient(135deg, rgba(245, 158, 11, .12) 0%, rgba(245, 158, 11, .06) 100%);
    color: var(--brand-orange);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .15);
    transform: translateY(-1px);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

/* Disabled state */
.btn:disabled,
.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover,
.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */
@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
        width: 100%;
        max-width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--border);
        background: rgba(255, 255, 255, .9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 10px;
        padding: 8px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        transition: var(--transition-fast);
        box-shadow: var(--shadow-sm);
    }

    .menu-toggle:hover {
        background: rgba(245, 158, 11, .1);
        border-color: var(--brand-orange);
    }

    .menu-toggle:active {
        transform: scale(0.95);
    }

    .nav {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 8px;
        /* Enhanced blur for mobile menu */
        background: rgba(255, 255, 255, .95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        width: 100%;
        /* Enhanced shadow for mobile menu */
        box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        max-width: 100%;
    }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

/* Add .scrolled class via JavaScript when page scrolls */