/* =============================================================
   ALPHA LAMBDA — HOME PAGE STYLES  v2.0
   All new sections prefixed hp- to avoid collisions.
   Enqueued only on the front page via functions.php.
   ============================================================= */


/* ══════════════════════════════════════════════════════════════
   WHO WE ARE
══════════════════════════════════════════════════════════════ */

.hp-wwa-section {
    background: var(--kream);
    padding: 6rem 0;
    border-bottom: 1px solid var(--kream-dark);
}

.hp-wwa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hp-wwa-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-wwa-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    color: var(--krimson-dark);
    line-height: 1.1;
    margin: 0.4rem 0 1.2rem;
    letter-spacing: -0.01em;
}

.hp-wwa-body p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--grey-dark);
    margin: 0 0 1rem;
}

.hp-wwa-body p:last-child { margin-bottom: 0; }

/* Reel */
.hp-reel-wrap { position: relative; }

.hp-reel {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--krimson-dark);
    box-shadow: 0 20px 60px rgba(122,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
}

.hp-reel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hp-reel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hp-reel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hp-reel-slide img,
.hp-reel-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.hp-reel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(241,241,231,0.85);
}

.hp-reel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(122,0,0,0.75);
    color: var(--kream);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-reel-arrow:hover {
    background: var(--krimson);
    transform: translateY(-50%) scale(1.08);
}

.hp-reel-prev { left: 12px; }
.hp-reel-next { right: 12px; }

.hp-reel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hp-reel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(241,241,231,0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hp-reel-dot.active {
    background: var(--kream);
    transform: scale(1.3);
}

.hp-reel-placeholder {
    aspect-ratio: 4 / 3;
    background: var(--kream-dark);
    border: 2px dashed var(--kream-darker);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}

.hp-reel-placeholder-glyph {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--krimson);
    opacity: 0.3;
}

.hp-reel-placeholder p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--grey-mid);
    line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════
   CORE VALUES
══════════════════════════════════════════════════════════════ */

.hp-values-section {
    background: var(--krimson-dark);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: var(--kream);
}

.hp-values-section p,
.hp-values-section h2,
.hp-values-section h3,
.hp-values-section span:not(.label-text){
    color: inherit;
}

.hp-values-bg-text {
    position: absolute;
    right: -0.05em;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(14rem, 22vw, 22rem);
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

.hp-values-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--kream);
    margin: 0.4rem 0 3rem;
    letter-spacing: -0.01em;
}

.hp-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: rgba(241,241,231,0.08);
    border: 1.5px solid rgba(241,241,231,0.08);
}

/* Scroll-reveal base state */
.hp-value-card {
    background: var(--krimson-dark);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.55s ease calc(var(--card-delay, 0s)),
        transform 0.55s ease calc(var(--card-delay, 0s)),
        background 0.2s;
}

.hp-value-card.revealed {
    opacity: 1;
    transform: none;
}

.hp-value-card:hover { background: rgba(122,0,0,0.55); }

.hp-value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--kream);
    transition: height 0.35s ease;
}

.hp-value-card:hover::before { height: 100%; }

.hp-value-icon {
    color: rgba(241,241,231,0.5);
    margin-bottom: 1.25rem;
    transition: color 0.2s;
}

.hp-value-card:hover .hp-value-icon { color: var(--kream); }

.hp-value-num {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(241,241,231,0.2);
    margin-bottom: 0.5rem;
}

.hp-value-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kream);
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}

.hp-value-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(241,241,231,0.6);
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   NEWS & UPDATES
══════════════════════════════════════════════════════════════ */

.hp-news-section {
    background: var(--grey-light);
    padding: 6rem 0;
    border-bottom: 1px solid var(--kream-dark);
}

.hp-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
}

.hp-news-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--krimson-dark);
    margin: 0.3rem 0 0;
}

.hp-news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--kream-dark);
    border: 1px solid var(--kream-dark);
    border-radius: 4px;
    overflow: hidden;
}

/* Featured */
.hp-news-featured {
    background: var(--kream);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hp-news-featured.revealed {
    opacity: 1;
    transform: none;
}

.hp-news-featured-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.hp-news-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hp-news-featured:hover .hp-news-featured-img { transform: scale(1.03); }

.hp-news-thumb-fallback {
    width: 100%;
    height: 100%;
    background: var(--krimson-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-news-thumb-fallback span {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(241,241,231,0.2);
}

.hp-news-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(122,0,0,0.08));
    pointer-events: none;
}

.hp-news-featured-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-news-date {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--krimson);
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.hp-news-featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    color: var(--krimson-dark);
    margin: 0 0 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.hp-news-featured-title a,
.hp-news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.hp-news-featured-title a:hover,
.hp-news-card-title a:hover { color: var(--krimson); }

.hp-news-excerpt {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--grey-dark);
    margin: 0 0 1.25rem;
    flex: 1;
}

.hp-news-excerpt--sm {
    font-size: 0.875rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-news-readmore {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--krimson);
    text-decoration: none;
    transition: letter-spacing 0.2s;
}

.hp-news-readmore:hover { letter-spacing: 0.16em; }

/* Secondary cards */
.hp-news-secondary {
    display: flex;
    flex-direction: column;
}

.hp-news-card {
    background: var(--kream);
    flex: 1;
    display: flex;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s, background 0.2s;
}

.hp-news-card.revealed {
    opacity: 1;
    transform: none;
}

.hp-news-card:not(:last-child) { border-bottom: 2px solid var(--kream-dark); }
.hp-news-card:hover { background: var(--grey-light); }

.hp-news-card-accent {
    width: 3px;
    flex-shrink: 0;
    background: var(--krimson);
    opacity: 0;
    transition: opacity 0.2s;
}

.hp-news-card:hover .hp-news-card-accent { opacity: 1; }

.hp-news-card-body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hp-news-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--krimson-dark);
    margin: 0;
    line-height: 1.3;
}


/* ══════════════════════════════════════════════════════════════
   CAMPAIGN TRACKER
══════════════════════════════════════════════════════════════ */

.hp-campaign-section {
    background: var(--krimson-dark) !important;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: var(--kream);
}

/* Override any theme globals that reset p/h/span colors inside this section */
.hp-campaign-section p,
.hp-campaign-section h2,
.hp-campaign-section h3 {
    color: inherit;
}

.hp-campaign-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Two-column: left = heading+cane+stats, right = donors */
.hp-campaign-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hp-campaign-left {}

.hp-campaign-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 700;
    color: var(--kream);
    margin: 0.4rem 0 0.6rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    /* prevent long campaign names from overflowing */
    word-break: break-word;
    overflow-wrap: break-word;
}

.hp-campaign-thankyou {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(241,241,231,0.55);
    line-height: 1.6;
    max-width: 420px;
}

/* Cane + stats side by side */
.hp-tracker-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Big cane — constrained so it doesn't bust the column */
.hp-cane-wrap {
    flex-shrink: 0;
}

.candy-svg {
    width: clamp(140px, 19vw, 20vw);
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
    margin-top: -6vw;
}

/* Stats column */
.tracker-stats {
    flex: 1;
    min-width: 0;
}

.tracker-stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

.tracker-stat-block--goal { opacity: 1; }

.tracker-stat-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(241,241,231,0.45);
}

.tracker-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.tracker-green         { color: #5cb85c; }
.tracker-crimson-light { color: rgba(241,241,231,0.85); }
.tracker-goal-label    { color: rgba(241,241,231,1); }
.tracker-goal-value    {
    color: rgba(241,241,231,1);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.tracker-stat-divider {
    height: 1px;
    background: rgba(241,241,231,0.1);
    margin: 0.5rem 0 1rem;
}

.tracker-raised-display {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(241,241,231,0.1);
}

.tracker-raised-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(241,241,231,0.4);
    margin-bottom: 0.3rem;
}

.tracker-raised-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 700;
    color: var(--kream);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Right column: donor list */
.hp-campaign-right { padding-top: 0.25rem; }

.hp-donor-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kream);
    margin: 0 0 0.25rem;
}

.hp-donor-legend {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(241,241,231,0.35);
    margin: 0 0 1.25rem;
}

.hp-donor-legend strong { color: rgba(241,241,231,0.6); }

.hp-donor-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(241,241,231,0.08);
    border-radius: 4px;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(241,241,231,0.15) transparent;
}

.hp-donor-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(241,241,231,0.06);
    border-right: 1px solid rgba(241,241,231,0.06);
    transition: background 0.15s;
}

.hp-donor-row:hover { background: rgba(241,241,231,0.04); }

.hp-donor-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(241,241,231,0.55);
    line-height: 1.2;
}

.hp-donor-line {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: rgba(241,241,231,0.28);
    text-transform: uppercase;
}

.hp-donor-fulfilled .hp-donor-name { color: var(--kream); font-weight: 700; }
.hp-donor-fulfilled .hp-donor-line { color: rgba(241,241,231,0.55); }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hp-values-grid    { grid-template-columns: repeat(2, 1fr); }
    .hp-campaign-inner { gap: 2.5rem; }
    .candy-svg         { width: clamp(120px, 12vw, 180px); }
}

@media (max-width: 860px) {
    .hp-wwa-grid       { grid-template-columns: 1fr; gap: 3rem; }
    .hp-news-layout    { grid-template-columns: 1fr; }
    .hp-news-header    { flex-direction: column; align-items: flex-start; }
    .hp-campaign-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hp-donor-list     { grid-template-columns: 1fr; max-height: 320px; }
    .candy-svg         { width: clamp(120px, 28vw, 180px); }
}

@media (max-width: 600px) {
    .hp-wwa-section,
    .hp-values-section,
    .hp-news-section,
    .hp-campaign-section { padding: 4rem 0; }

    .hp-values-grid  { grid-template-columns: 1fr; gap: 1.5px; }
    .hp-news-layout  { border-radius: 0; }
    .hp-tracker-row  { gap: 1.25rem; }
    .candy-svg       { width: clamp(100px, 24vw, 140px); }
}