/*==============================
  CSS Variables
==============================*/
:root {
    --brand-green: #8aa57f;
    --brand-beige: #d6cdb3;
    --text-dark: #1a1a1a;
}

/*==============================
  Global Reset & Typography
==============================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 .6em;
}

h2 {
    font-size: 2.25rem;
}

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

.wrap {
    width: 90%;
    max-width: 1140px;
    margin-inline: auto;
}

.wrap--text {
    width: 90%;
    max-width: 970px; /* 85% of 1140px */
    margin-inline: auto;
}

/*==============================
  Hero
==============================*/
.hero {
    background-color: var(--brand-beige);
    text-align: center;
    padding: 4rem 1rem 2rem;
    padding-right: clamp(300px, 40vw, 650px);

    /* right-floating image scales responsively */
    background-image: url("../img/hero-flowers.png");
    background-repeat: no-repeat;
    background-position: right top; /* pin top */
    /* cover full height so bottom is reached too */
    background-size: auto 100%;

    /* responsive height */
    min-height: clamp(450px, 70vh, 800px);
    display: flex;
    align-items: center;
}

.hero__inner {
    text-align: left;
    max-width: clamp(320px, 40vw, 640px);
    margin-left: 5%;
    z-index: 1;
}

.hero__logo {
    width: clamp(180px, 28vw, 380px);
    height: auto;
}

.hero__title span {
    display: block;
    font-size: clamp(2.5rem, 4vw + 1rem, 5.5rem);
    line-height: 0.9;
}

.scroll-arrow {
    display: inline-block;
    font-size: 2rem;
    margin-top: 2rem;
    color: #fff;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/*==============================
  Section Theming
==============================*/
.section { padding: 1.5rem 0; }

.section--extra-padding-top { padding-top: 2.5rem;}

.section--involved {
    background-color: var(--brand-green);
    color: #fff;
}

.section--involved h2 {
    color: #000;
}

/*==============================
  Why Grid
==============================*/
.why__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/*==============================
  Get Involved
==============================*/
#get-involved .wpforms-container .wpforms-field-row.wpforms-field-medium,
#get-involved .wpforms-container .wpforms-field-medium {
    max-width:100%;
}

#get-involved .wpforms-field-sublabel {
    color: black;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
}

#get-involved .wpforms-field-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

#get-involved .wpforms-submit {
    background-color: #f5b543;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 1rem 2rem;
}

/*==============================
  Events
==============================*/
.events__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.event {
    border: 1px solid #e7e7e7;
    padding: 1rem;
    background-color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .hero { 
        background-image: none;
        padding-right: 1rem;
    }
    .hero__logo { max-width: 120px; margin-inline: auto; }
}

@media (max-width: 900px) {
    .hero { 
        background-image: none; 
        justify-content: center; /* center inner wrapper */
        padding-right: 1rem; /* remove reserved space */
    }
    .hero__inner {
        margin-left: 0;
        text-align: center;
    }
    .hero__logo {
        margin: 0 auto; /* center logo */
    }
}

@media (max-width: 1470px) {
    .hero {
        min-height: clamp(400px, 60vh, 700px);
        background-size: auto 100%; /* ensure background spans full hero height */
    }
} 