/* =============================================================
   Thank-You Page 2026 — California Clean Air Day
   Pages: 25383 (EN) / 28482 (ES)
   ============================================================= */

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

/* ── Full-width layout — break out of GP content container ────── */
.page-template-template_thank_you .site-content {
    display: block !important;
}

.page-template-template_thank_you .main-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Hide page header/title that GP adds */
.page-template-template_thank_you .page-header,
.page-template-template_thank_you .entry-header {
    display: none;
}

/* ── Hide TheGem social icons injected into the page title block ── */
.page-title-block .socials,
.page-title-block .socials.inline-inside {
    display: none !important;
}

/* ── Section reset ──────────────────────────────────────────── */
.ty-hero,
.ty-actions,
.ty-share,
.ty-resources {
    box-sizing: border-box;
    font-family: var(--ty-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
}

.ty-hero *,
.ty-actions *,
.ty-share *,
.ty-resources * {
    box-sizing: border-box;
}

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

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

.ty-section-title--light {
    color: var(--ty-white);
}

/* ── Shared button base ─────────────────────────────────────── */
.ty-btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--ty-font);
    text-decoration: none;
    border-radius: var(--ty-radius);
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
    text-align: center;
}

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

/* Primary gold button — matches homepage CTA style */
.ty-btn--gold {
    background: var(--ty-gold);
    color: var(--ty-blue);
    border-color: var(--ty-gold);
    font-weight: 700;
}

.ty-btn--gold:hover {
    background: #B8922E;
    border-color: #B8922E;
    opacity: 1;
}

/* Outline variant for copy link (on dark bg) */
.ty-btn--copy {
    background: transparent;
    color: var(--ty-white);
    border-color: var(--ty-white);
}

.ty-btn--copy:hover {
    background: var(--ty-white);
    color: var(--ty-blue);
    opacity: 1;
}

/* =============================================================
   SECTION 1: Hero
   ============================================================= */
.ty-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://www.cleanairday.org/wp-content/uploads/2024/07/skybackground.jpg') center center / cover no-repeat;
    padding: 120px 24px;
    text-align: center;
}

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

.ty-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.ty-hero__check {
    font-size: 56px;
    color: var(--ty-gold);
    line-height: 1;
    margin-bottom: 14px;
}

.ty-hero__heading {
    color: var(--ty-white);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.ty-hero__count {
    color: var(--ty-gold);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.ty-hero__sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    margin: 0;
}

/* =============================================================
   SECTION 2: Pledged Actions
   ============================================================= */
.ty-actions {
    background-color: var(--ty-off-white);
    padding: 96px 0;
}

.ty-actions__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 640px;
}

.ty-actions__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ty-gray-light);
    font-size: 16px;
    color: #222;
}

.ty-actions__item:last-child {
    border-bottom: none;
}

.ty-actions__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--ty-teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

/* =============================================================
   SECTION 3: Share
   ============================================================= */
.ty-share {
    background-color: var(--ty-blue);
    padding: 112px 0;
    text-align: center;
}

.ty-share__sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    margin: 0 auto 32px;
    max-width: 520px;
}

.ty-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* =============================================================
   SECTION 4: Next Steps
   ============================================================= */
.ty-resources {
    padding: 96px 0;
    background-color: var(--ty-white);
    text-align: center;
}

.ty-resources__text {
    font-size: 17px;
    color: var(--ty-gray);
    margin: 0 0 28px;
}

.ty-resources__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 600px) {
    .ty-hero {
        padding: 56px 16px;
    }

    .ty-hero__heading {
        font-size: 28px;
    }

    .ty-hero__count {
        font-size: 17px;
    }

    .ty-section-title {
        font-size: 21px;
    }

    .ty-share__buttons,
    .ty-resources__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ty-btn {
        width: 100%;
    }
}
