/* ==========================================================================
   Programs — Men page
   ========================================================================== */

.smrs-men {
    background: #fff;
    color: #141414;
}

.smrs-men-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-men-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.smrs-men-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.smrs-men-reveal.delay-1 { transition-delay: 0.1s; }
.smrs-men-reveal.delay-2 { transition-delay: 0.2s; }
.smrs-men-reveal.delay-3 { transition-delay: 0.3s; }

/* ---------- 1. Hero ---------- */

.smrs-men-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-men-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.smrs-men-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.smrs-men-hero-h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
}

.smrs-men-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;
}

/* ---------- 2. Typing paragraph ----------
   Same technique as the About page's scroll-reveal paragraph
   (blog.olivierlarose.com/tutorials/text-gradient-scroll-opacity-v2):
   no sticky/fixed positioning, each word's opacity is calculated
   continuously from the paragraph's own scroll position. See men.js. */

.smrs-men-type-wrap {
    background: #fff;
    padding: 120px 10%;
    display: flex;
    justify-content: center;
}

.smrs-men-type-text {
    max-width: 900px;
    text-align: center;
    font-size: clamp(1.4rem, 3.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.smrs-men-type-word {
    opacity: 0.15;
    color: #141414;
}

/* ---------- 3. Two tiles, side by side ----------
   Previously a 3-tile scroll-driven pin (2 front tiles sliding apart
   to reveal a 3rd "How a gathering works" tile behind them). That
   3rd tile was removed per client request, and with only 2 tiles
   left the slide-apart choreography no longer made sense, so this is
   now a plain static side-by-side layout - no pin, no JS. */

.smrs-men-split-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #101010;
    padding: 100px 32px;
}

.smrs-men-split-stage {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.smrs-men-split-tile {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}

.smrs-men-split-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.smrs-men-split-tile-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    /* Safety net: the FORMAT tile now holds a heading + 5-item list
       + closing paragraph, noticeably more than a single paragraph.
       If that ever ends up taller than the tile's fixed desktop
       height, this lets it scroll internally instead of silently
       clipping the way the plain-paragraph version did before. */
    overflow-y: auto;
}

.smrs-men-split-tag {
    display: inline-block;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.smrs-men-split-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
}

.smrs-men-split-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.smrs-men-split-list li {
    color: #fff;
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 10px;
}

.smrs-men-split-list li strong {
    font-weight: 700;
}

.smrs-men-split-tile-content p {
    color: #fff;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

/* ---------- 4. Outcomes — 3 hover tiles ---------- */

.smrs-men-outcomes {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 32px;
}

.smrs-men-heading {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 700;
    margin: 0 0 40px;
    text-align: center;
}

.smrs-outcomes3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.smrs-outcome3-tile {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 280px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #F5F3EE;
}

.smrs-outcome3-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-outcome3-tile:hover .smrs-outcome3-bg {
    opacity: 1;
    transform: scale(1);
}

.smrs-outcome3-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.smrs-outcome3-title {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    transition: color 0.4s ease;
}

.smrs-outcome3-text {
    position: relative;
    z-index: 1;
    font-size: 13.5px;
    line-height: 1.5;
    color: #55534E;
    margin: 0;
    transition: color 0.4s ease;
}

.smrs-outcome3-tile:hover .smrs-outcome3-title {
    color: #fff;
}
.smrs-outcome3-tile:hover .smrs-outcome3-text {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- 5. FAQ — video background ---------- */

.smrs-men-faq {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    padding: 100px 32px;
    overflow: hidden;
}

.smrs-men-faq-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Black shade so white text stays readable over the video */
.smrs-men-faq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1;
}

.smrs-men-faq-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.smrs-men-faq .smrs-men-heading {
    color: #fff;
}

.smrs-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.smrs-faq-question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.smrs-faq-question-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
}

.smrs-faq-question-icon::before,
.smrs-faq-question-icon::after {
    content: "";
    position: absolute;
    background: #fff;
    transition: transform 0.3s ease;
}

.smrs-faq-question-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.smrs-faq-question-icon::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.smrs-faq-question[aria-expanded="true"] .smrs-faq-question-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.smrs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.smrs-faq-question[aria-expanded="true"] + .smrs-faq-answer {
    max-height: 240px;
}

.smrs-faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px;
}

/* ---------- 6. Current Locations ---------- */

.smrs-men-locations {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 32px;
    text-align: center;
}

.smrs-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 44px;
}

.smrs-location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smrs-location-icon {
    width: 40px;
    height: 40px;
    color: var(--smrs-dark-green, #0C4143);
    margin-bottom: 14px;
}

.smrs-location-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.smrs-location-detail {
    color: #6B6B68;
    font-size: 14px;
    margin: 0 0 10px;
}

.smrs-location-status {
    display: inline-block;
    background: rgba(61, 220, 132, 0.12);
    color: #1a7a44;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

.smrs-locations-note {
    color: #6B6B68;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
    max-width: 480px;
    margin: 44px auto 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .smrs-outcomes3-grid,
    .smrs-locations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .smrs-men-split-wrap {
        padding: 60px 20px;
    }
    .smrs-men-split-stage {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .smrs-men-split-tile {
        min-height: 320px;
    }
    .smrs-men-split-tile-content {
        padding: 24px;
    }
    .smrs-men-split-tile-content p {
        font-size: 14px;
    }
    .smrs-men-split-title {
        font-size: 17px;
    }
    .smrs-men-split-list li {
        font-size: 13.5px;
    }
}
/* ==========================================================================
   Men RSVP form - hand-coded, matches the Sons page registration
   form's established pattern (dark green section, pill-bordered
   transparent inputs, cream submit button).
   ========================================================================== */

.smrs-men-form-section {
    background: var(--smrs-dark-green, #0C4143);
    padding: 90px 32px;
}

.smrs-men-form-inner {
    max-width: 640px;
    margin: 0 auto;
}

.smrs-men-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 registration form while it's paused (see
   $smrs_men_registration_open in functions.php) - same pattern as
   .smrs-sons-form-closed in sons.css. */
.smrs-men-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-men-form-closed p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.smrs-men-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.smrs-men-form .full-width {
    grid-column: 1 / -1;
}

.smrs-men-form label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.smrs-men-form input,
.smrs-men-form select,
.smrs-men-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-men-form select option {
    color: #141414;
}

.smrs-men-form input::placeholder,
.smrs-men-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.smrs-men-form input:focus,
.smrs-men-form select:focus,
.smrs-men-form textarea:focus {
    outline: none;
    border-color: #fff;
}

.smrs-men-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-men-form-submit:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .smrs-men-form {
        grid-template-columns: 1fr;
    }
}