/* ==========================================================================
   Programs — Facilitators page
   ========================================================================== */

.smrs-facil {
    background: #fff;
    color: #141414;
}

.smrs-facil-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--smrs-dark-green, #0C4143);
    margin-bottom: 16px;
}

.smrs-facil-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.smrs-facil-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.smrs-facil-reveal.delay-1 { transition-delay: 0.1s; }
.smrs-facil-reveal.delay-2 { transition-delay: 0.2s; }

/* ---------- 1. Hero — home-style, with a second headline and an
   Apply pill that reveals Camp / Healing Hearts on hover ---------- */

.smrs-facil-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 100vh;
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.smrs-facil-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.smrs-facil-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smrs-facil-hero-h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
}

.smrs-facil-hero-h2 {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Apply pill + hover sub-pills — hover-reveal, with a click/tap
   fallback for touch. Plain, normal-flow content sitting under the
   hero headline (not the homepage Register pill's fixed/glide
   behaviour) per client request - it scrolls away WITH the hero like
   any other hero content, rather than detaching into a fixed
   position that follows you down the page. */
.smrs-facil-apply-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smrs-facil-apply-btn {
    background: var(--smrs-cream, #F3EEE3);
    color: var(--smrs-dark-green, #0C4143);
    border: none;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.smrs-facil-apply-btn:hover {
    transform: translateY(-2px);
    background: #fff;
}

.smrs-facil-apply-sub {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--smrs-cream, #F3EEE3);
    border-radius: 999px;
    padding: 8px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

/* Invisible strip bridging the gap so moving the mouse up doesn't
   cause a flicker */
.smrs-facil-apply-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.smrs-facil-apply-wrap:hover .smrs-facil-apply-sub,
.smrs-facil-apply-wrap.is-open .smrs-facil-apply-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.smrs-facil-apply-sub a {
    display: inline-block;
    color: var(--smrs-dark-green, #0C4143);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.smrs-facil-apply-sub a:hover {
    background: var(--smrs-dark-green, #0C4143);
    color: #fff;
}

/* ---------- Text over a background image — plain, no scroll effects.
   Reused twice on this page (Camp and Healing Hearts). The "pin"
   class names are historical: nav.js still uses .smrs-facil-pin-wrap
   to make the section full-bleed. ---------- */

.smrs-facil-pin-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.smrs-facil-pin-stage {
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding: 110px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.smrs-facil-pin-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.smrs-facil-pin-text {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.55;
    padding: 0 24px;
}

/* ---------- Two hover tiles — reused twice on this page ---------- */

.smrs-facil-tiles-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 32px;
}

.smrs-facil-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.smrs-facil-tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    background: #F5F3EE;
}

.smrs-facil-tile-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.smrs-facil-tile:hover .smrs-facil-tile-bg {
    opacity: 1;
    transform: scale(1);
}

.smrs-facil-tile-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.smrs-facil-tile-content {
    position: relative;
    z-index: 1;
}

.smrs-facil-tile-content .smrs-facil-eyebrow {
    color: var(--smrs-dark-green, #0C4143);
    transition: color 0.4s ease;
}

.smrs-facil-tile:hover .smrs-facil-tile-content .smrs-facil-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.smrs-facil-tile-text {
    color: #141414;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    transition: color 0.4s ease;
}

.smrs-facil-tile:hover .smrs-facil-tile-text {
    color: #fff;
}

/* ---------- 5b. Qualities and Requirements of a Facilitator ----------
   Same checkmark-list pattern as the Expected Outcomes sections on
   the Moms/Men pages, for visual consistency with the rest of the
   site. */

.smrs-facil-heading {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.smrs-facil-qualities {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 32px;
    text-align: center;
}

.smrs-facil-qualities-intro {
    color: #55534E;
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 44px;
}

.smrs-facil-qualities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
    text-align: left;
}

.smrs-facil-quality-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.smrs-facil-quality-tick {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--smrs-dark-green, #0C4143);
    display: flex;
    align-items: center;
    justify-content: center;
}

.smrs-facil-quality-tick svg {
    width: 15px;
    height: 15px;
}

.smrs-facil-quality-text {
    font-size: 14.5px;
    line-height: 1.5;
    color: #2C2C2A;
    margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
    .smrs-facil-tiles-grid {
        grid-template-columns: 1fr;
    }
    .smrs-facil-tile {
        min-height: 300px;
        padding: 28px;
    }
    .smrs-facil-qualities-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   Facilitators Apply form - hand-coded, matches the Sons page registration
   form's established pattern (dark green section, pill-bordered
   transparent inputs, cream submit button).
   ========================================================================== */

.smrs-facil-form-section {
    background: var(--smrs-dark-green, #0C4143);
    padding: 90px 32px;
}

.smrs-facil-form-inner {
    max-width: 640px;
    margin: 0 auto;
}

.smrs-facil-form-heading {
    color: #fff;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 700;
    margin: 0 0 36px;
    text-align: center;
}

/* Shown instead of the Apply link while applications are paused (see
   $smrs_facil_apply_open in functions.php) - same pattern as
   .smrs-sons-form-closed in sons.css. */
.smrs-facil-form-closed {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    text-align: center;
}

.smrs-facil-form-closed p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Apply button under the notice box - same width as the box. */
.smrs-facil-form-closed + .smrs-facil-form-submit {
    max-width: 480px;
    margin: 20px auto 0;
}

.smrs-facil-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.smrs-facil-form .full-width {
    grid-column: 1 / -1;
}

.smrs-facil-form label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.smrs-facil-form input,
.smrs-facil-form select,
.smrs-facil-form textarea {
    width: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14.5px;
    font-family: inherit;
}

.smrs-facil-form select option {
    color: #141414;
}

.smrs-facil-form input::placeholder,
.smrs-facil-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.smrs-facil-form input:focus,
.smrs-facil-form select:focus,
.smrs-facil-form textarea:focus {
    outline: none;
    border-color: #fff;
}

.smrs-facil-form-submit {
    /* display/width/box-sizing/text-align/text-decoration added when
       this became a link to an external Google Form instead of a
       <button> inside the form's grid - see moms.css's
       .smrs-prog-form-submit for the full explanation. */
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    background: var(--smrs-cream, #F3EEE3);
    color: var(--smrs-dark-green, #0C4143);
    border: none;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.smrs-facil-form-submit:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .smrs-facil-form {
        grid-template-columns: 1fr;
    }
}