/* =========================================================
   Sewickley Valley YMCA: Home Page 2026 (tpl-home-page.php)
   Prefixes: yhp- (page sections)
   Mobile first. Breakpoints: 640px, 1024px.
   Hero rules ported from q1.css + home-hero.css (no need to enqueue them here).
   ========================================================= */

.yhp-page {
    overflow-x: clip;
    font-family: CachetProRegular, sans-serif;
    color: #636466;
}

/* ---------------------------------------------------------
   2. Hero: Winter & Spring Program Guide '27 video
   Base rules computed from q1.css + home-hero.css
   --------------------------------------------------------- */

.y-bg-hero-bvid-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 430px;
    overflow: hidden;
    background: #0060af;
}

.y-bg-hero-bvid-video {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
    display: block;
    width: auto;
    min-width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    transform: translateY(-50%);
}

.y-bg-hero-bvid-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.y-bg-hero-bvid-text {
    max-width: 100%;
    color: #fff;
}

.y-bg-hero-bvid-logo {
    margin: 0;
    line-height: 0;
}

.y-bg-hero-bvid-logo-image {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.y-bg-hero-bvid-cta {
    display: inline-block;
    margin-top: -0.5rem;
    margin-left: 2rem;
    padding: 10px 50px;
    border-radius: 30px;
    background: #0089d0;
    font-family: CachetProRegular, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.y-bg-hero-bvid-cta:hover,
.y-bg-hero-bvid-cta:focus {
    background: #0060af;
    color: #fff;
}

@media (min-width: 640px) {
    .y-bg-hero-bvid-logo-image {
        max-width: 420px;
    }
}

@media (min-width: 700px) {
    .y-bg-hero-bvid-wrapper {
        min-height: 800px;
        padding-top: 4rem;
        background: #eee;
    }
    .y-bg-hero-bvid-content {
        margin-top: -5rem;
    }
}

@media (min-width: 1000px) {
    .y-bg-hero-bvid-cta {
        margin-left: 8rem;
    }
}

@media (min-width: 1024px) {
    .y-bg-hero-bvid-logo-image {
        max-width: 520px;
    }
}

@media (min-width: 1360px) {
    .y-bg-hero-bvid-logo-image {
        max-width: 620px;
    }
}

/* ---------------------------------------------------------
   Shared: text link + buttons
   --------------------------------------------------------- */

.yhp-text-link {
    display: inline-block;
    margin-top: auto;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.05rem;
    color: #0060af;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.yhp-text-link:hover,
.yhp-text-link:focus {
    color: #00aeef;
}

.yhp-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #0060af;
    border-radius: 100px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.yhp-btn-solid {
    background: #0060af;
    color: #fff;
}

.yhp-btn-solid:hover,
.yhp-btn-solid:focus {
    background: #00aeef;
    border-color: #00aeef;
    color: #fff;
}

.yhp-btn-outline {
    background: transparent;
    color: #0060af;
}

.yhp-btn-outline:hover,
.yhp-btn-outline:focus {
    background: #0060af;
    color: #fff;
}

/* ---------------------------------------------------------
   3. Cyber Week promo (single linked image, full width)
   --------------------------------------------------------- */

.yhp-promo {
    background: #5c2e91;
}

.yhp-promo-link {
    display: block;
    line-height: 0;
}

.yhp-promo-link:focus-visible {
    outline: 3px solid #00aeef;
    outline-offset: -3px;
}

.yhp-promo-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   4. Program highlights (four cards)
   --------------------------------------------------------- */

.yhp-highlights {
    padding: 48px 16px;
    background: #fff;
}

.yhp-highlights-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.yhp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.yhp-card-media {
    aspect-ratio: 16 / 10;
    background: #e7e9ec;
}

.yhp-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yhp-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.yhp-card-title {
    margin: 0 0 10px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #0060af;
}

.yhp-card-text {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #636466;
}

@media (min-width: 640px) {
    .yhp-card {
        flex-direction: row;
    }
    .yhp-card-media {
        flex: 0 0 42%;
        min-height: 230px;
        aspect-ratio: auto;
    }
    .yhp-card-body {
        flex: 1 1 auto;
        padding: 28px;
    }
}

@media (min-width: 1024px) {
    .yhp-highlights {
        padding: 72px 24px;
    }
    .yhp-highlights-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ---------------------------------------------------------
   5. Together we can build a better us
   --------------------------------------------------------- */

.yhp-together {
    padding: 56px 16px;
    background: #e7e9ec;
}

.yhp-together-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.yhp-together-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.yhp-together-kicker {
    margin: 0 0 8px;
    font-family: 'CachetW05-Book', sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #5c2e91;
}

.yhp-together-heading {
    margin: 0 0 16px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.1;
    color: #0060af;
}

.yhp-together-lead {
    margin: 0 0 24px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #231f20;
}

.yhp-together-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.yhp-together-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background: #d5d8dc;
}

.yhp-together-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yhp-impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

/* Impact cards: thumbnail on top, icon overlaid top left */

.yhp-impact-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
}

.yhp-impact-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #d5d8dc;
}

.yhp-impact-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yhp-impact-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    background: #e3f4fc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    color: #0089d0;
}

.yhp-impact-icon-teal {
    background: #dff3f0;
    color: #01a490;
}

.yhp-impact-icon-purple {
    background: #f2e5f2;
    color: #92278f;
}

.yhp-impact-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 28px;
}

.yhp-impact-title {
    margin: 0 0 10px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #231f20;
}

.yhp-impact-text {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #636466;
}

.yhp-together-note {
    margin: 28px 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #636466;
}

@media (min-width: 640px) {
    .yhp-together {
        padding: 72px 24px;
    }
}

@media (min-width: 1024px) {
    .yhp-together {
        padding: 88px 24px;
        padding-bottom:0;
    }
    .yhp-together-intro {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }
    .yhp-impact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-top: 48px;
    }
}

/* ---------------------------------------------------------
   6. Email sign-up (Gravity Forms form 4)
   Input and button share one 56px height. !important is only
   used where the Gravity Forms theme sets its own control
   height, border, shadow and spacing.
   --------------------------------------------------------- */

.yhp-signup {
    padding: 56px 16px;
    background: #fff;
    text-align: center;
}

.yhp-signup-inner {
    max-width: 760px;
    margin: 0 auto;
}

.yhp-signup-heading {
    margin: 0 0 8px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.15;
    color: #0060af;
}

.yhp-signup-text {
    margin: 0 0 24px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #231f20;
}

.yhp-signup-form .gform_wrapper {
    max-width: 560px;
    margin: 0 auto !important;
}

.yhp-signup-form .gform_wrapper form,
.yhp-signup-form .gform_body {
    margin: 0 !important;
    padding: 0 !important;
}

.yhp-signup-form .gform_fields {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.yhp-signup-form .gfield {
    margin: 0 !important;
    padding: 0 !important;
}

.yhp-signup-form .gfield--type-email .gfield_label {
    display: none;
}

.yhp-signup-form .ginput_container {
    margin: 0 !important;
    padding: 0 !important;
}

.yhp-signup-form input[type="email"] {
    display: block;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 2px solid #0060af !important;
    border-radius: 100px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    font-family: CachetProRegular, sans-serif;
    font-size: 1.1rem !important;
    line-height: normal !important;
    color: #231f20;
}

.yhp-signup-form input[type="email"]::placeholder {
    color: #8a8c8f;
    opacity: 1;
}

.yhp-signup-form input[type="email"]:focus {
    border-color: #00aeef !important;
    outline: 3px solid rgba(0, 174, 239, 0.35);
    outline-offset: 2px;
}

.yhp-signup-form input[type="submit"],
.yhp-signup-form button[type="submit"] {
    display: block;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 32px !important;
    border: 0 !important;
    border-radius: 100px !important;
    background: #5c2e91 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    font-family: 'CachetW05-Bold', sans-serif !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    color: #fff !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.yhp-signup-form input[type="submit"]:hover,
.yhp-signup-form input[type="submit"]:focus,
.yhp-signup-form button[type="submit"]:hover,
.yhp-signup-form button[type="submit"]:focus {
    background: #47236f !important;
}

.yhp-signup-form .gform_footer {
    display: none;
}

.yhp-signup-form .gfield_validation_message,
.yhp-signup-form .validation_message {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-size: 0.95rem;
    text-align: left;
    color: #c02b0a;
}

@media (min-width: 640px) {
    .yhp-signup {
        padding: 72px 24px;
    }
    .yhp-signup-form .gform_fields {
        flex-direction: row;
        align-items: flex-start;
    }
    .yhp-signup-form .gfield--type-email {
        flex: 1 1 auto;
        min-width: 0;
    }
    .yhp-signup-form .gfield--type-submit {
        flex: 0 0 auto;
    }
    .yhp-signup-form input[type="submit"],
    .yhp-signup-form button[type="submit"] {
        width: auto !important;
        min-width: 170px;
    }
}


.sw-ab-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px!important;
    background:#fff;
    border: 1px solid #dcdfe3;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.sw-ab-section {
    padding: 56px 0;
    background:#e7e9ec;
}

.sw-ab-heading {
    margin: 0 0 16px;
    font-family: 'CachetW05-Medium', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: normal;
    line-height: 1.2;
    color: #006b6b;
}

.sw-ab-intro {
    max-width: 680px;
    margin: 0 0 36px;
    font-size: 1.15rem;
    line-height: 1.7;
    letter-spacing: 0.04rem;
    color: #231f20;
}

.sw-ab-page a:focus-visible {
    outline: 3px solid #00aeef;
    outline-offset: 3px;
}


.sw-ab-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.sw-ab-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-top: 8px solid #0060af;
    border-radius: 10px;
    background-color: #ffffff;
}

.sw-ab-card-green {
    border-top-color: #01a490;
}

.sw-ab-card-purple {
    border-top-color: #92278f;
}

.sw-ab-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sw-ab-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.sw-ab-card-title {
    margin: 0 0 12px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.2;
    color: #0060af;
}

.sw-ab-card-green .sw-ab-card-title {
    color: #006b6b;
}

.sw-ab-card-purple .sw-ab-card-title {
    color: #92278f;
}

.sw-ab-card-text {
    flex-grow: 1;
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.04rem;
    color: #231f20;
}

.sw-ab-card-link:link,
.sw-ab-card-link:visited {
    align-self: flex-start;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.05rem;
    color: #0060af;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sw-ab-card-link:hover {
    text-decoration: none;
}


/* Tablet
   ---------------------------------------------------------- */

@media (min-width: 640px) {

    .sw-ab-inner {
        padding: 0 32px;
    }

    .sw-ab-section {
        padding: 72px 0;
    }
}


/* Desktop
   ---------------------------------------------------------- */

@media (min-width: 1024px) {

    .sw-ab-section {
        padding: 96px 0;
    }

    .sw-ab-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

}
