/*
Theme Name: PFLAG Stanwood-Camano
Description: Custom theme for the PFLAG Stanwood-Camano blog and events calendar, matching the main site's brand.
Author: Pro Media Management
Version: 1.0
*/

/* =========================================================
   PFLAG Stanwood-Camano — Brand Stylesheet
   Fonts: New Title (headlines), Source Sans 3 (body/longer headlines),
          Dela Gothic One (specialty subheads)
   Palette: Teal #135358 / White #FFFFFF / Coral #FD7B70 /
            Yellow #FDC942 / Lavender #EADAE3 / Plum #824760
   ========================================================= */

:root {
    /* Primary palette */
    --pflag-teal: #135358;
    --pflag-white: #FFFFFF;
    --pflag-coral: #FD7B70;
    --pflag-yellow: #FDC942;
    --pflag-lavender: #EADAE3;
    --pflag-plum: #824760;

    /* Secondary (pastel) palette — use sparingly, accents only */
    --pflag-pastel-red: #FFF5F4;
    --pflag-pastel-yellow: #FFE9B4;
    --pflag-pastel-blue: #CEF5FE;
    --pflag-pastel-green: #CCFEC9;

    /* Functional aliases */
    --bg-color: var(--pflag-white);
    --text-color: #2A2A2A;
    --footer-color: var(--pflag-teal);
    --accent-text-color: var(--pflag-plum);
    --link-color: var(--pflag-teal);
    --link-hover-color: var(--pflag-coral);

    --font-headline: 'New Title', Impact, sans-serif;
    --font-body: 'Source Sans 3', Arial, sans-serif;
    --font-subhead: 'Dela Gothic One', Calibri, sans-serif;

    --phone-breakpoint: 767px;
    --tablet-breakpoint: 1024px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-headline);
    color: var(--pflag-teal);
    line-height: 1.25;
    letter-spacing: 0.03em;
    margin-top: 0;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.85rem;
}

/* Per PFLAG brand guide: New Title is for SHORT headlines only (~10 words max).
   Longer sentences should read as body copy in Source Sans, not display type. */
.lead-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--pflag-plum);
    line-height: 1.4;
    letter-spacing: normal;
}

p {
    margin: 0 0 1em;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   HEADER / NAV
   ========================= */

header {
    position: sticky;
    top: 0;
    z-index: 999;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

    padding: 0.75rem 3vw;

    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--pflag-lavender);
}

#header-logo-div a {
    display: flex;
    align-items: center;
    height: 3.75em;
    transition: transform 0.25s ease;
}

#header-logo-div a:hover {
    transform: scale(1.04);
}

#header-logo-div img {
    height: 100%;
    width: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    justify-content: center;
}

.nav-link-container {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.nav-link-container:hover {
    background-color: var(--pflag-pastel-blue);
}

.nav-link-container a {
    color: var(--pflag-teal);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link-container a:hover {
    color: var(--pflag-coral);
}

.nav-link-container#current-page {
    background-color: var(--pflag-teal);
}

.nav-link-container#current-page a {
    color: var(--pflag-white);
}

.nav-link-container#current-page:hover {
    background-color: var(--pflag-teal);
}

#header-right-div {
    min-width: 1px;
}

@media screen and (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav {
        justify-content: center;
    }
}

/* =========================
   MAIN / GENERIC SECTIONS
   ========================= */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3vw 3rem;
}

main > h1 {
    text-align: center;
    margin: 2rem 0 1rem;
}

section {
    padding: 2rem 0;
}

/* =========================
   HOMEPAGE BANNER
   ========================= */

#banner {
    margin-top: 1rem;
}

#banner-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
}

#banner-top img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

#banner-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

#banner-bottom h1 {
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 767px) {
    #banner-top {
        grid-template-columns: 1fr;
    }

    #banner-top img {
        height: 200px;
    }

    #banner-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0.5rem;
}

.submit-button-secondary {
    background-color: transparent;
    color: var(--pflag-teal);
    border: 2px solid var(--pflag-teal);
}

.submit-button-secondary:hover {
    background-color: var(--pflag-teal);
    color: var(--pflag-white);
}

/* =========================
   HERO SECTION
   ========================= */

.hero {
    background: linear-gradient(135deg, var(--pflag-teal) 0%, #1a6b71 100%);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.hero-headline {
    color: var(--pflag-white);
    font-size: 3.25rem;
    margin-bottom: 0.75rem;
}

.hero-subhead {
    color: var(--pflag-pastel-blue);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-weight: 400;
}

.hero .hero-cta .submit-button-secondary {
    color: var(--pflag-white);
    border-color: var(--pflag-white);
}

.hero .hero-cta .submit-button-secondary:hover {
    background-color: var(--pflag-white);
    color: var(--pflag-teal);
}

.photo-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.photo-band img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

@media screen and (max-width: 767px) {
    .hero {
        padding: 2.5rem 1.25rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .photo-band {
        grid-template-columns: 1fr;
    }

    .photo-band img {
        height: 200px;
    }
}

/* =========================
   CRISIS SUPPORT BLOCK
   ========================= */

.crisis {
    background-color: var(--pflag-pastel-red);
    border: 2px solid var(--pflag-coral);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.crisis h1 {
    color: var(--pflag-plum);
    font-size: 1.75rem;
}

.crisis-text {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.crisis-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.crisis-contact h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--pflag-teal);
    margin-bottom: 0.35rem;
}

.crisis-contact .w-6 {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--pflag-coral);
}

.crisis-contact span {
    font-size: 1.2rem;
}

.crisis-contact span a {
    font-weight: 700;
}

/* =========================
   ABOUT / INTRO BLOCKS
   ========================= */

.about {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    color: var(--pflag-plum);
}

/* =========================
   HISTORY / EVENT ENTRIES
   ========================= */

.history {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.history-entry {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--pflag-pastel-blue);
    border-radius: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.history-entry:hover {
    box-shadow: 0 8px 24px rgba(19, 83, 88, 0.15);
    transform: translateY(-2px);
}

.history-entry-left,
.history-entry-right {
    flex: 1 1 45%;
}

.history-entry-left img,
.history-entry-right img {
    width: 100%;
    height: 340px;
    object-fit: contain;
    background-color: var(--pflag-white);
    border-radius: 8px;
}

.history-entry-right strong {
    color: var(--pflag-teal);
    font-size: 1.05rem;
}

@media screen and (max-width: 767px) {
    .history-entry {
        flex-direction: column;
    }

    .history-entry-left,
    .history-entry-right {
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .history-entry-left img,
    .history-entry-right img {
        height: 220px;
    }
}

.events-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pflag-lavender);
}

.events-cta p {
    font-weight: 600;
    color: var(--pflag-plum);
    margin-bottom: 1rem;
}

.events-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.events-news-card {
    background-color: var(--pflag-pastel-blue);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.events-news-card:hover {
    box-shadow: 0 8px 24px rgba(19, 83, 88, 0.15);
    transform: translateY(-3px);
}

.events-news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.events-news-card p {
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.events-news-card .post-date {
    font-size: 0.85rem;
    color: var(--pflag-plum);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

@media screen and (max-width: 767px) {
    .events-news-grid {
        grid-template-columns: 1fr;
    }
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* With 14 sponsors, the last row has 2 items — center them under
   columns 2 and 3 instead of leaving them flush-left. If the total
   sponsor count changes, this may need adjusting to match the new
   remainder. */
.sponsor-card:nth-last-child(2):nth-child(4n+1) {
    grid-column: 2;
}

.sponsor-card:last-child {
    grid-column: 3;
}

@media screen and (max-width: 1024px) {
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-card:nth-last-child(2):nth-child(4n+1),
    .sponsor-card:last-child {
        grid-column: auto;
    }
}

@media screen and (max-width: 600px) {
    .sponsor-grid {
        grid-template-columns: 1fr;
    }
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--pflag-white);
    border: 1px solid var(--pflag-lavender);
    border-radius: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.sponsor-card:hover {
    box-shadow: 0 8px 24px rgba(19, 83, 88, 0.15);
    transform: translateY(-3px);
    border-color: var(--pflag-coral);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.sponsor-card-text {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
}

.sponsor-card-name {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    color: var(--pflag-teal);
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.sponsor-card-name-caption {
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.sponsor-card-desc {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.4;
}

/* =========================
   DONATE PAGE — ECWID WIDGET WRAPPER
   ========================= */

.donate-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: start;
}

.donate-product-card {
    background-color: var(--pflag-white);
    border: 2px solid var(--pflag-lavender);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.donate-product-card:hover {
    box-shadow: 0 8px 24px rgba(19, 83, 88, 0.15);
    transform: translateY(-3px);
    border-color: var(--pflag-coral);
}

.donate-product-blurb {
    font-size: 0.9rem;
    color: var(--pflag-plum);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 2.7rem;
}

.donate-box {
    background-color: var(--pflag-pastel-yellow);
    border: 2px solid var(--pflag-yellow);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.donate-box h2 {
    margin-bottom: 0.75rem;
}

.donate-box p {
    max-width: 600px;
    margin: 0 auto 1.25rem;
}

.donate-box form {
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 1024px) {
    .donate-products-grid {
        grid-template-columns: 1fr;
    }
}

.membership-benefits {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.membership-benefits > li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--pflag-lavender);
}

.membership-benefits > li:last-child {
    border-bottom: none;
}

.membership-benefits > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: var(--pflag-coral);
}

.membership-benefits-sublist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
}

.membership-benefits-sublist li {
    font-size: 0.9rem;
    color: var(--pflag-plum);
    font-weight: 600;
    padding-left: 1.1rem;
    position: relative;
}

.membership-benefits-sublist li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--pflag-coral);
}

@media screen and (max-width: 767px) {
    .membership-benefits-sublist {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CONTACT PAGE
   ========================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-info strong {
    color: var(--pflag-teal);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form label {
    font-weight: 700;
    color: var(--pflag-teal);
    margin-top: 0.75rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.contact-form textarea {
    resize: vertical;
    font-family: var(--font-body);
}

.contact-form button {
    margin-top: 1.5rem;
    align-self: flex-start;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-alert-success {
    background-color: var(--pflag-pastel-green);
    color: var(--pflag-teal);
    border: 1px solid var(--pflag-teal);
}

.form-alert-error {
    background-color: var(--pflag-pastel-red);
    color: var(--pflag-plum);
    border: 1px solid var(--pflag-coral);
    font-weight: 400;
}

@media screen and (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form button {
        align-self: stretch;
    }
}

/* =========================
   BOARD MEMBER LIST (available for future use)
   ========================= */

.board-member-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.board-member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--pflag-pastel-yellow);
    border-radius: 12px;
    padding: 1.5rem;
}

.board-member-left img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--pflag-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.board-member-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--pflag-lavender);
    border: 4px solid var(--pflag-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-member-placeholder svg {
    width: 70px;
    height: 70px;
    color: var(--pflag-plum);
    opacity: 0.5;
}

.board-member-name h1 {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.board-member-name h2 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--pflag-coral);
    margin-top: 0.15rem;
}

@media screen and (max-width: 767px) {
    .board-member {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   RESOURCES PAGE
   ========================= */

.resources-list h2 {
    margin-top: 2.5rem;
    border-bottom: 3px solid var(--pflag-yellow);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.resources-list-section {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource {
    background-color: var(--pflag-white);
    border: 1px solid var(--pflag-lavender);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    transition: border-color 0.2s ease;
}

.resource:hover {
    border-color: var(--pflag-coral);
}

.resource-description {
    flex: 1 1 60%;
}

.resource-description a {
    font-weight: 700;
}

.resource-contact {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    margin-left: auto;
}

.resource-contact-method {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.resource-contact-note {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.75;
    text-align: right;
}

.resource-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--pflag-pastel-red);
    color: var(--pflag-plum);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--pflag-coral);
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.resource-contact-link:hover {
    background-color: var(--pflag-coral);
    color: var(--pflag-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.resource-contact-link .w-6 {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--pflag-coral);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.resource-contact-link:hover .w-6 {
    color: var(--pflag-white);
}

/* =========================
   BUTTONS / FORMS
   ========================= */

.submit-button,
input[type="submit"],
button {
    font-family: var(--font-body);
    font-weight: 700;
    background-color: var(--pflag-coral);
    color: var(--pflag-white);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.submit-button:hover,
input[type="submit"]:hover,
button:hover {
    background-color: var(--pflag-plum);
    transform: translateY(-1px);
}

input[type="email"],
input[type="text"],
textarea {
    font-family: var(--font-body);
    border: 1px solid var(--pflag-lavender);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    width: 100%;
}

/* =========================
   FOOTER
   ========================= */

footer {
    background-color: var(--footer-color);
    color: var(--pflag-white);
    margin-top: 3rem;
    padding: 3rem 3vw 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

footer a {
    color: var(--pflag-white);
}

footer a:hover {
    color: var(--pflag-yellow);
}

#footer-contact-div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#footer-contact-div .address {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

#footer-copyright-div {
    font-size: 0.85rem;
}

#footer-copyright-div h2 {
    color: var(--pflag-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

#footer-copyright-div .asterisk {
    color: var(--pflag-yellow);
}

#footer-signup-div {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

@media screen and (max-width: 1024px) {
    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    #footer-signup-div {
        justify-content: center;
    }
}
