/* ==========================================================================
   CRITICAL.CSS - Above-the-fold Styles (Hero Section)
   ========================================================================== */

/* HERO & SEARCH */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 3.5rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Abstract background shape */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255,255,255,0.03);
    transform: rotate(25deg);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Search Bar - High Visibility */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 1.75rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-size: 1.1rem;
    font-family: inherit;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    transform: scale(1.01);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* QUICK JUMP PILLS */
.quick-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pill-link {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.pill-link:hover {
    background: white;
    color: var(--primary-blue);
}

/* FOCUS MODE EXIT BUTTON */
.focus-exit-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.focus-exit-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

body.focus-mode .focus-exit-btn {
    display: flex;
}

/* SCROLL PROGRESS INDICATOR */
.scroll-progress {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    z-index: 799;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.scroll-progress.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: var(--surface-white);
    stroke: var(--border-subtle);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-main);
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 3rem;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .quick-nav {
        display: none;
    }
}
