/* ==========================================================================
   NUDGE — MEET THE RANGERS PAGE STYLES
   Extends the base design system in styles.css & legacy-sections.css.
   All color/font tokens are inherited from :root in styles.css.
   ========================================================================== */


/* ==========================================================================
   RANGERS NAVBAR
   ========================================================================== */
.rangers-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(9, 15, 38, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.rangers-nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rangers-nav-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    padding: 6px 0;
}

.rangers-nav-back:hover {
    color: var(--color-white);
}

.rangers-nav-back .back-arrow {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.rangers-nav-back:hover .back-arrow {
    transform: translateX(-3px);
}

.rangers-nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
}

/* Sticky ranger nav pills */
.rangers-pill-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.ranger-pill {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ranger-pill:hover,
.ranger-pill.active {
    color: var(--color-gold);
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.08);
}


/* ==========================================================================
   HERO SECTION — Subtle, minimal
   ========================================================================== */
.rangers-hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    padding-top: 80px;
}

.rangers-hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 720px;
    width: 90%;
    padding: 60px 40px 40px;
    animation: island-appear 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rangers-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    opacity: 0.8;
    margin-bottom: 22px;
}

.rangers-eyebrow::before,
.rangers-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(255, 107, 53, 0.5);
}

.rangers-hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: 20px;
}

.rangers-hero-subtitle {
    font-size: 17px;
    color: var(--color-text-white-70);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 32px;
}

/* Decorative trio indicator */
.rangers-trio {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    opacity: 0.5;
}

.trio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
}

.trio-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, rgba(255,107,53,0.6), transparent);
}

/* Scroll cue */
.rangers-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    animation: scroll-cue-bounce 2.2s ease-in-out infinite;
    pointer-events: none;
}

.rangers-scroll-cue span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.rangers-scroll-cue .cue-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scroll-cue-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Hero ambient glow */
.rangers-hero-glow {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(255, 80, 30, 0.18) 0%,
        rgba(255, 80, 30, 0.06) 55%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
}


/* ==========================================================================
   RANGER SECTIONS — Large editorial blocks
   ========================================================================== */
.ranger-section {
    position: relative;
    width: 100%;
    padding: 130px 8% 140px;
    background-color: transparent;
    overflow: hidden;
}

/* Cream-trigger sections get dark text automatically via body class */
.ranger-section.ranger-dark {
    /* Dark navy background — inherits global bg */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranger-section.ranger-light {
    /* Sits on the cream ghost layer — needs dark text */
    border-top: 1px solid rgba(26, 18, 8, 0.07);
    border-bottom: 1px solid rgba(26, 18, 8, 0.07);
}

.ranger-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 80px;
    align-items: start;
}

/* ── Left column: Number + tag ── */
.ranger-left-col {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.ranger-number {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(100px, 14vw, 160px);
    font-style: italic;
    font-weight: 700;
    line-height: 0.85;
    color: var(--color-gold);
    opacity: 0.18;
    letter-spacing: -6px;
    display: block;
    /* Shifts slightly to the left for a bleed effect */
    margin-left: -8px;
    margin-bottom: 24px;
    user-select: none;
    transition: opacity 0.4s ease;
}

.ranger-section:hover .ranger-number {
    opacity: 0.28;
}

/* Dark sections: white number ghost */
.ranger-dark .ranger-number {
    color: var(--color-white);
    opacity: 0.08;
}

.ranger-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-gold);
    display: block;
    opacity: 0.85;
}

.ranger-tag-line {
    width: 32px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 2px;
    margin-top: 4px;
}

/* ── Right column: Content ── */
.ranger-right-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ranger-headline {
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 32px;
}

/* Light sections — dark text */
.ranger-light .ranger-headline {
    color: var(--color-text-dark);
}

/* Dark sections — white text */
.ranger-dark .ranger-headline {
    color: var(--color-white);
}

/* Body paragraphs */
.ranger-body {
    font-size: 17px;
    line-height: 1.85;
    max-width: 620px;
    margin-bottom: 24px;
}

.ranger-light .ranger-body {
    color: rgba(26, 18, 8, 0.70);
}

.ranger-dark .ranger-body {
    color: var(--color-text-white-70);
}

/* Highlighted text spans */
.rh {
    /* Ranger Highlight */
    font-weight: 700;
    color: var(--color-gold);
}

.ranger-light .rh {
    color: #C85A1A; /* Deeper coral on cream for contrast */
}

.ranger-dark .rh {
    color: #FF7A45; /* Bright coral on dark */
}

/* Pull-quote style first sentence */
.ranger-pull {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 36px;
    letter-spacing: -0.3px;
}

.ranger-light .ranger-pull {
    color: var(--color-text-dark);
}

.ranger-dark .ranger-pull {
    color: var(--color-white);
}

/* Decorative separator between paragraphs */
.ranger-para-sep {
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(255, 107, 53, 0.35);
    margin: 28px 0;
    border-radius: 2px;
}

/* ── "Back to index" link at bottom of each section ── */
.ranger-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold);
    text-decoration: none;
    opacity: 0.75;
    letter-spacing: 0.3px;
    transition: opacity 0.25s ease, gap 0.25s ease;
}

.ranger-back-link:hover {
    opacity: 1;
    gap: 12px;
}

/* ==========================================================================
   DECORATIVE DIVIDERS BETWEEN RANGER SECTIONS
   ========================================================================== */
.ranger-divider {
    position: relative;
    width: 100%;
    height: 1px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranger-divider-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 107, 53, 0.25) 30%,
        rgba(255, 107, 53, 0.25) 70%,
        transparent 100%
    );
}

.ranger-divider-icon {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: var(--color-gold);
    opacity: 0.45;
    background: transparent;
    padding: 0 16px;
    line-height: 1;
}


/* ==========================================================================
   "KNOW MORE" BUTTON — used in index.html feature blocks
   ========================================================================== */
.btn-know-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 24px;
    border: none;
    background: var(--color-white);
    color: var(--color-navy-dark);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-know-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-know-more:hover {
    color: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

.btn-know-more:hover::before {
    opacity: 1;
}

.btn-know-more .arrow {
    font-size: 14px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.btn-know-more:hover .arrow {
    transform: translateX(3px);
}


/* ==========================================================================
   SCROLL REVEAL — same pattern as main site
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }


/* ==========================================================================
   HIGHLIGHT FLASH — fires when deep-linking to a section
   ========================================================================== */
@keyframes ranger-flash {
    0%   { box-shadow: inset 0 0 0 3px rgba(255, 107, 53, 0); }
    25%  { box-shadow: inset 0 0 0 3px rgba(255, 107, 53, 0.35); }
    100% { box-shadow: inset 0 0 0 3px rgba(255, 107, 53, 0); }
}

.ranger-section.flash-highlight {
    animation: ranger-flash 1.8s ease forwards;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .ranger-section-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ranger-left-col {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .ranger-number {
        font-size: 72px;
        opacity: 0.2;
        margin-bottom: 0;
    }

    .rangers-pill-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .rangers-hero-section {
        min-height: 50vh;
        padding-top: 90px;
    }

    .rangers-hero-inner {
        padding: 40px 24px 30px;
    }

    .ranger-section {
        padding: 80px 20px 90px;
    }

    .ranger-section-inner {
        gap: 24px;
    }

    .ranger-number {
        font-size: 56px;
    }

    .ranger-headline {
        font-size: clamp(26px, 7vw, 38px);
    }

    .ranger-body {
        font-size: 16px;
    }

    .ranger-pull {
        font-size: clamp(18px, 5vw, 24px);
    }
}

@media (max-width: 480px) {
    .rangers-nav-back span:last-child {
        display: none;
    }

    .rangers-hero-title {
        letter-spacing: -1.5px;
    }
    
    .rangers-hero-inner {
        padding: 30px 16px 20px;
    }
    
    .ranger-section {
        padding: 60px 20px;
    }
    
    .ranger-number {
        font-size: 48px !important;
    }

    /* Mobile Typography Scale Overrides */
    .rangers-hero-title {
        font-size: 28px !important;
        letter-spacing: -1px;
    }
    .rangers-hero-subtitle {
        font-size: 14px !important;
    }
    .ranger-headline {
        font-size: 22px !important;
        letter-spacing: -0.8px;
    }
    .ranger-pull {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    .ranger-body {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================================================
   FINAL CTA SECTION (Cream background overrides)
   ========================================================================== */
#final.cream-trigger .final-h {
    color: var(--color-text-dark);
}

#final.cream-trigger .final-sub {
    color: rgba(26, 18, 8, 0.7);
}

#final.cream-trigger .final-logo {
    filter: invert(1);
}

#final.cream-trigger .final-bloom {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0) 60%);
}

#final.cream-trigger .capture {
    background: rgba(26, 18, 8, 0.04);
    border-color: rgba(26, 18, 8, 0.12);
}

#final.cream-trigger .capture input {
    color: #1A1208;
}

#final.cream-trigger .capture input::placeholder {
    color: rgba(26, 18, 8, 0.45);
}
