/* =====================================================
   Wilderness First Aid Landing Page — wfa.css
   Extends styles.css; do not import standalone.
   Theme: Southern Utah / Mountain Biking
   ===================================================== */

/* --------------------------------------------------
   Override CSS variables for the WFA page.
   Scoped to .wfa-page so main site is unaffected.
   -------------------------------------------------- */
.wfa-page {
    --primary:        #8B2500;   /* Canyon rust — Moab red dirt */
    --primary-mid:    #B83200;   /* Bright rust */
    --primary-light:  #D4651E;   /* Burnt orange */
    --dark:           #1A0800;   /* Deep canyon shadow */
    --text-dark:      #2A0E00;
    --text-mid:       #6B3A20;
    --bg-light:       #FDF5EE;   /* Warm sandstone */
    --bg-accent:      #F5E8D8;   /* Sandy terracotta */
    --border:         #E0C4A8;   /* Sandstone border */
    --shadow:         rgba(139, 37, 0, 0.12);
    --shadow-strong:  rgba(139, 37, 0, 0.24);
}

/* --------------------------------------------------
   Hero — MTB / Canyon theme
   -------------------------------------------------- */
.wfa-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.wfa-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(26, 8, 0, 0.72) 0%,
            rgba(80, 20, 0, 0.55) 50%,
            rgba(120, 50, 0, 0.35) 100%
        ),
        url('images/Mountain Biking.png') center center / cover no-repeat;
    z-index: 0;
}

.wfa-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding-top: 260px;
    padding-bottom: 80px;
}

/* Warm the hero badge to feel canyon-like */
.wfa-page .hero-badge {
    background: rgba(212, 101, 30, 0.18);
    border-color: rgba(212, 101, 30, 0.38);
}

.wfa-page .badge-check {
    color: #F4A622;
}

/* --------------------------------------------------
   Navbar — warm rust tint on scroll, with light links
   -------------------------------------------------- */
.wfa-navbar.scrolled {
    background: rgba(26, 8, 0, 0.97);
    border-bottom: 1px solid rgba(180, 70, 10, 0.25);
}

/* styles.css sets scrolled nav links to var(--text-dark) which is now dark brown —
   override to light so they're visible on the near-black WFA scrolled navbar */
.wfa-navbar.scrolled .nav-links a {
    color: rgba(255, 237, 218, 0.85);
}

.wfa-navbar.scrolled .nav-links a:hover,
.wfa-navbar.scrolled .nav-links a.active {
    color: var(--gold);
}

.wfa-navbar.scrolled .hamburger span {
    background: rgba(255, 237, 218, 0.85);
}

/* Fix section-label pill background — styles.css hardcodes a green rgba
   that doesn't respond to our CSS variable overrides */
.wfa-page .section-label {
    background: rgba(139, 37, 0, 0.12);
}

/* --------------------------------------------------
   Utah Law Alert Bar — deep canyon rust
   -------------------------------------------------- */
.wfa-alert-bar {
    background: #6B1500;
    padding: 20px 0;
}

.wfa-alert-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wfa-alert-bar i {
    font-size: 1.5rem;
    color: #F4A622;
    flex-shrink: 0;
}

.wfa-alert-bar p {
    flex: 1;
    color: rgba(255, 237, 218, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    min-width: 240px;
}

.wfa-alert-bar strong {
    color: #F4A622;
}

/* --------------------------------------------------
   Canyon Accent Stripe
   Divides sections with a Southern Utah color band
   -------------------------------------------------- */
.wfa-canyon-stripe {
    height: 5px;
    background: linear-gradient(
        90deg,
        #6B1500 0%,
        #B83200 20%,
        #D4651E 42%,
        #F4A622 50%,
        #D4651E 58%,
        #B83200 80%,
        #6B1500 100%
    );
}

/* --------------------------------------------------
   Why WFA — Scenarios Grid
   -------------------------------------------------- */
.wfa-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wfa-scenario {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}

.wfa-scenario:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px var(--shadow-strong);
    border-color: var(--primary-light);
}

.wfa-scenario-icon {
    width: 52px;
    height: 52px;
    background: rgba(139, 37, 0, 0.10);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.wfa-scenario:hover .wfa-scenario-icon {
    background: var(--primary);
    color: var(--white);
}

.wfa-scenario h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.wfa-scenario p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* --------------------------------------------------
   Course Details Grid — dark canyon section
   section-dark now uses --primary = #8B2500
   -------------------------------------------------- */
.wfa-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wfa-detail-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.wfa-detail-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(244, 166, 34, 0.35);
}

.wfa-detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 16px 0 10px;
}

.wfa-detail-card p {
    font-size: 0.88rem;
    color: rgba(255, 237, 218, 0.72);
    line-height: 1.7;
}

/* Icon color in dark (canyon) section */
.wfa-page .section-dark .feature-icon {
    background: rgba(244, 166, 34, 0.15);
    color: #F4A622;
}

.wfa-page .section-dark .feature-icon:hover {
    background: #F4A622;
    color: var(--dark);
}

/* --------------------------------------------------
   Who Attends — Audience Cards
   section-accent uses --bg-accent = #F5E8D8 (sandy)
   -------------------------------------------------- */
.wfa-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wfa-audience-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}

.wfa-audience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px var(--shadow-strong);
    border-color: transparent;
}

.wfa-audience-card--featured {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(244, 166, 34, 0.18);
}

.wfa-audience-card--featured:hover {
    border-color: var(--gold-dark);
}

.wfa-audience-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--gold);
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 100px;
}

.wfa-audience-icon {
    width: 56px;
    height: 56px;
    background: rgba(139, 37, 0, 0.10);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.wfa-audience-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.wfa-audience-card > p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* --------------------------------------------------
   Instructor Section
   -------------------------------------------------- */
.wfa-instructor-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

.wfa-instructor-photo {
    text-align: center;
}

.wfa-instructor-bio p {
    color: var(--text-mid);
    margin-bottom: 18px;
    line-height: 1.8;
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 1100px) {
    .wfa-scenarios-grid  { grid-template-columns: repeat(2, 1fr); }
    .wfa-details-grid    { grid-template-columns: repeat(2, 1fr); }
    .wfa-audience-grid   { grid-template-columns: 1fr; }
    .wfa-instructor-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .wfa-hero-content { padding-top: 200px; }
    .wfa-scenarios-grid { grid-template-columns: 1fr; }
    .wfa-details-grid   { grid-template-columns: 1fr; }
    .wfa-alert-inner    { flex-direction: column; text-align: center; }
    .wfa-alert-inner .btn { width: 100%; justify-content: center; }
}
