/* =============================================================
   Homepage 2026 — California Clean Air Day
   Mobile-first responsive layout. BEM naming. No TheGem deps.
   ============================================================= */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    --home-blue:       #03306D;
    --home-blue-light: #567EBF;
    --home-gold:       #D4A843;
    --home-gold-dark:  #B8922E;
    --home-white:      #FFFFFF;
    --home-off-white:  #F7F8FA;
    --home-dark:       #1A1A2E;
    --home-gray:       #6B7280;
    --home-gray-light: #E5E7EB;
    --home-green:      #135200;
    --home-teal:       #006566;
    --home-radius:     8px;
    --home-max-width:  1200px;
    --home-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Reset for homepage ─────────────────────────────────────── */
.home-hero,
.home-about,
.home-tracker,
.home-pledge-cards,
.home-events,
.home-partners,
.home-sponsors,
.home-impact,
.home-footer-cta {
    box-sizing: border-box;
    font-family: var(--home-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.home-hero *, .home-about *, .home-tracker *, .home-pledge-cards *,
.home-events *, .home-partners *, .home-sponsors *, .home-impact *,
.home-footer-cta * {
    box-sizing: border-box;
}

/* ── Container ──────────────────────────────────────────────── */
.home-container {
    max-width: var(--home-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Section title ──────────────────────────────────────────── */
.home-section__title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--home-blue);
    margin: 0 0 32px;
    letter-spacing: 0.5px;
}

.home-section__title--light {
    color: var(--home-white);
}

/* ── Buttons ────────────────────────────────────────────────── */
.home-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--home-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s, transform 0.15s, opacity 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.home-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
}

.home-btn--primary {
    background-color: var(--home-gold);
    color: var(--home-dark);
}

.home-btn--primary:hover {
    background-color: var(--home-gold-dark);
    color: var(--home-dark);
}

.home-btn--secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--home-white);
    border: 2px solid var(--home-white);
}

.home-btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--home-white);
}

.home-btn--outline {
    background: transparent;
    color: var(--home-blue);
    border: 2px solid var(--home-blue);
    padding: 12px 28px;
}

.home-btn--outline:hover {
    background-color: var(--home-blue);
    color: var(--home-white);
}

.home-btn--outline-light {
    color: var(--home-white);
    border-color: var(--home-white);
}

.home-btn--outline-light:hover {
    background-color: var(--home-white);
    color: var(--home-blue);
}

.home-btn--card {
    background-color: var(--home-blue);
    color: var(--home-white);
    padding: 12px 28px;
    font-size: 14px;
}

.home-btn--card:hover {
    background-color: var(--home-blue-light);
    color: var(--home-white);
}

.home-btn--lg {
    padding: 18px 48px;
    font-size: 18px;
}

/* =============================================================
   SECTION 1: Hero
   ============================================================= */
.home-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://www.cleanairday.org/wp-content/uploads/2019/09/clean-air-day-home-bg_Moment.jpg') center center / cover no-repeat;
    padding: 60px 20px;
    text-align: center;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 48, 109, 0.75) 0%, rgba(26, 26, 46, 0.65) 100%);
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.home-hero__title {
    color: var(--home-white);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.home-hero__date {
    display: block;
    font-size: 48px;
    color: var(--home-gold);
    margin-top: 8px;
    letter-spacing: 3px;
}

.home-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 400;
    margin: 16px 0 32px;
    letter-spacing: 0.5px;
}

.home-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* =============================================================
   SECTION 2: About
   ============================================================= */
.home-about {
    padding: 64px 0;
    background-color: var(--home-white);
}

.home-about__text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--home-gray);
    text-align: center;
    line-height: 1.8;
}

.home-about__text a {
    color: var(--home-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* =============================================================
   SECTION 3: Pledge Tracker
   ============================================================= */
.home-tracker {
    padding: 72px 0;
    background-color: var(--home-blue);
    color: var(--home-white);
}

.home-tracker__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.home-tracker__stat {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--home-radius);
}

.home-tracker__stat--hero {
    background: rgba(212, 168, 67, 0.2);
    border: 2px solid var(--home-gold);
}

.home-tracker__number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--home-gold);
    line-height: 1.1;
    margin-bottom: 8px;
}

.home-tracker__stat--hero .home-tracker__number {
    font-size: 64px;
}

.home-tracker__label {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.home-tracker__context {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0 0 24px;
}

.home-tracker__cta {
    text-align: center;
}

/* =============================================================
   SECTION 4: Pledge CTA Cards
   ============================================================= */
.home-pledge-cards {
    padding: 72px 0;
    background-color: var(--home-off-white);
}

.home-pledge-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.home-card {
    background: var(--home-white);
    border-radius: 12px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--home-off-white);
    border-radius: 50%;
    margin-bottom: 20px;
}

.home-card__icon svg {
    width: 40px;
    height: 40px;
}

.home-card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--home-blue);
    margin: 0 0 12px;
}

.home-card__desc {
    font-size: 15px;
    color: var(--home-gray);
    margin: 0 0 24px;
}

/* Force pledge card columns to flex so buttons align at bottom */
.home-pledge-cards .wp-block-column {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.home-card-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* =============================================================
   SECTION 5: Events
   ============================================================= */
.home-events {
    padding: 56px 0;
    background-color: var(--home-white);
}

.home-events__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.home-events__card {
    background: var(--home-off-white);
    border-radius: var(--home-radius);
    padding: 24px;
    border-left: 4px solid var(--home-gold);
}

.home-events__date {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--home-blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.home-events__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--home-dark);
    margin: 0 0 6px;
}

.home-events__meta {
    font-size: 14px;
    color: var(--home-gray);
    margin: 0;
}

.home-events__empty {
    text-align: center;
    font-size: 17px;
    color: var(--home-gray);
    font-style: italic;
    margin: 0 0 32px;
}

.home-events__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* =============================================================
   SECTION 6: Transit Partners
   ============================================================= */
.home-partners {
    padding: 48px 0;
    background-color: var(--home-off-white);
}

.home-partners__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    margin-bottom: 24px;
}

.home-partners__item {
    padding: 10px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--home-dark);
}

.home-partners__cta {
    text-align: center;
}

/* =============================================================
   SECTION 7: Sponsors
   ============================================================= */
.home-sponsors {
    padding: 72px 0;
    background-color: var(--home-blue);
}

/* ── Sponsor carousel ──────────────────────────────────────── */
.sponsor-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.sponsor-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
}

.sponsor-carousel__slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.sponsor-carousel__card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--home-radius);
    padding: 24px 20px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: background-color 0.2s;
}

.sponsor-carousel__card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sponsor-carousel__card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sponsor-carousel__card--link:hover {
    text-decoration: none;
    color: inherit;
}

.sponsor-carousel__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.sponsor-carousel__logo img {
    max-width: 160px;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.sponsor-carousel__card:hover .sponsor-carousel__logo img {
    opacity: 1;
}

.sponsor-carousel__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-carousel__blurb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

.sponsor-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.sponsor-carousel__btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--home-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.sponsor-carousel__btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--home-white);
}

.sponsor-carousel__dots {
    display: flex;
    gap: 8px;
}

.sponsor-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.sponsor-carousel__dot--active {
    background: var(--home-gold);
}

.home-sponsors__actions {
    text-align: center;
}

/* Carousel: 1 card on mobile */
@media (max-width: 767px) {
    .sponsor-carousel__slide {
        flex: 0 0 100%;
    }
}

/* Carousel: 2 cards on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .sponsor-carousel__slide {
        flex: 0 0 50%;
    }
}

/* =============================================================
   SECTION 8: Impact
   ============================================================= */
.home-impact {
    padding: 64px 0;
    background-color: var(--home-white);
}

/* Two rows of 3 columns = 6 stat cards */
.home-impact .wp-block-columns {
    margin-bottom: 20px;
    gap: 20px;
}

/* Each column = one stat card with blue border */
.home-impact .wp-block-column {
    text-align: center;
    padding: 28px 16px;
    border: 2px solid var(--home-blue-light);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-impact .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(3, 48, 109, 0.08);
}

/* Tighten the gap between number and label */
.home-impact .wp-block-column p {
    margin-bottom: 0 !important;
}

.home-impact .wp-block-column p + br {
    display: none;
}

/* Numbers — small gap below */
.home-impact .wp-block-column p[style*="42px"] {
    margin-bottom: 6px !important;
}

/* Description labels — bolder and slightly larger */
.home-impact .wp-block-column p[style*="15px"] {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--home-dark) !important;
}

/* =============================================================
   SECTION 9: Footer CTA
   ============================================================= */
section.home-footer-cta {
    padding: 64px 0;
    background: var(--home-off-white) !important;
    text-align: center;
}

.home-footer-cta .wp-block-heading {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--home-blue) !important;
}

.home-footer-cta p.has-text-align-center {
    font-size: 18px;
    color: var(--home-gray) !important;
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Make the CTA button larger and more prominent */
.home-footer-cta .home-btn {
    padding: 16px 48px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =============================================================
   RESPONSIVE: Tablet (768px+)
   ============================================================= */
@media (min-width: 768px) {
    .home-hero {
        min-height: 560px;
        padding: 80px 40px;
    }

    .home-hero__title {
        font-size: 44px;
    }

    .home-hero__date {
        font-size: 56px;
    }

    .home-hero__subtitle {
        font-size: 22px;
    }

    .home-hero__ctas {
        flex-direction: row;
        justify-content: center;
    }

    .home-section__title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .home-tracker__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .home-tracker__stat--hero {
        grid-column: 1 / -1;
    }

    .home-pledge-cards__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-events__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-partners__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-sponsors__grid {
        grid-template-columns: repeat(3, 1fr);
    }


    .home-footer-cta .wp-block-heading {
        font-size: 40px;
    }
}

/* =============================================================
   RESPONSIVE: Desktop (1200px+)
   ============================================================= */
@media (min-width: 1200px) {
    .home-hero {
        min-height: 620px;
    }

    .home-hero__title {
        font-size: 48px;
    }

    .home-hero__date {
        font-size: 64px;
    }

    .home-tracker__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-tracker__stat--hero {
        grid-column: 1 / -1;
    }

    .home-tracker__number {
        font-size: 56px;
    }

    .home-tracker__stat--hero .home-tracker__number {
        font-size: 72px;
    }

    .home-partners__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-sponsors__grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

/* ── Override TheGem/parent theme leaks ─────────────────────── */
/* Layout resets (.site-content, .inside-article, .panel.row, .page-title-block)
   moved to gb-base.css — loaded globally for all GP pages. */

/* Remove bottom gap between last section and site footer */
body.home .inside-article {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .entry-content {
    margin-bottom: 0 !important;
}

body.home .entry-content > p:empty,
body.home .entry-content > p:last-child {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

body.home .site-main {
    margin-bottom: 0 !important;
}

/* Hide TheGem social sidebar on homepage */
body.home #page .socials-sharing,
body.home .gem-icon-style-1 {
    display: none;
}
