/* ============================================================================

   members.css - sections unique to maranatha-members.html

   Shared pieces (hero, buttons, steps, FAQ) live in css/style.css.

   ========================================================================= */



/* ======= 02 ANSWER CAPSULE ======= */





.heart-copy h2 { margin: 0 0 20px;  }

.heart-copy p { margin: 0 0 26px; font-size: 16px; line-height: 1.85; color: #5a655f; }

.heart-copy p strong { font-weight: 700; color: var(--brand-primary); }



/* cross-fading photo stack */

.mstage {

  position: relative;

  border-radius: 0;

  overflow: hidden;

  min-height: 420px;

  height: 100%;

}

.mstage .mslide {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  opacity: 0;

  animation: msFade 12s ease-in-out infinite;

}

.mstage .mslide:nth-of-type(2) { animation-delay: 6s; }

@keyframes msFade {

  0%, 42%   { opacity: 1; }

  50%, 100% { opacity: 0; }

}

.mstage .ms-scrim {

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, rgba(9, 32, 27, .1) 40%, rgba(9, 32, 27, .88) 100%);

}

.mstage .ms-body {

  position: absolute;

  left: 26px;

  right: 26px;

  bottom: 24px;

  color: var(--text-light);

}

.mstage .ms-kicker {

  font-size: 18px;

  font-weight: 800;

  letter-spacing: 1.8px;

  text-transform: uppercase;

  color: var(--brand-mint);

  margin-bottom: 10px;

  font-family: "Covered By Your Grace", cursive;

}

.mstage .ms-note {

    /* font-size: 18px; */

    color: rgba(255, 255, 255, .88);

    font-weight: 600;

}



/* three small figures under the copy */

.heart-figures {

  display: flex;

  flex-wrap: wrap;

  gap: 34px;

  padding: 24px 0;

  border-top: 1px solid #e6e6e2;

  border-bottom: 1px solid #e6e6e2;

  margin-bottom: 26px;

}

.heart-figures .hf-value {

  font-size: 30px;

  font-weight: 800;

  color: var(--brand-primary);

  line-height: 1;

}

.heart-figures .hf-label {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  color: #8a938e;

  margin-top: 6px;

}



/* ======= 03 WHAT MEMBERSHIP MEANS ======= */

.means-section { background: var(--surface-alt); }



.mflip-grid { --bs-gutter-x: 22px; --bs-gutter-y: 22px; }

.mflip { perspective: 1400px; height: 360px; }

.mflip-inner {

  position: relative;

  width: 100%;

  height: 100%;

  transition: transform .85s cubic-bezier(.4, .1, .2, 1);

  transform-style: preserve-3d;

}

.mflip:hover .mflip-inner,

.mflip:focus-within .mflip-inner { transform: rotateY(180deg); }

.mface {

  position: absolute;

  inset: 0;

  -webkit-backface-visibility: hidden;

  backface-visibility: hidden;

  border-radius: 16px;

  overflow: hidden;

}

.mface > img {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

}

.mface .mface-scrim {

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, rgba(9, 32, 27, .12) 30%, rgba(9, 32, 27, .85) 100%);

}

.mface-body {

  position: absolute;

  inset: 0;

  padding: 28px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-end;

  text-align: center;

  gap: 10px;

}

.mface-body h4 { margin: 0; font-weight: 700; color: var(--text-light); }

.mface-body .mface-hint {
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--brand-mint);
}

.mback {

  transform: rotateY(180deg);

  background: var(--brand-primary);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 40px 30px;

}

.mback .mback-rule { width: 46px; height: 2px; background: var(--brand-accent); margin-bottom: 18px; }

.mback h4 { margin: 0 0 14px;  font-weight: 700; color: var(--text-light); }

.mback p { margin: 0; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .9); }



.means-note {

  max-width: 860px;

  margin: 44px auto 0;

  text-align: center;

  color: #6b6b6b;

}



/* ======= 04 HOW TO BECOME A MEMBER ======= */

.become-section {

  background: var(--surface);

  scroll-margin-top: 110px;

}

.msteps {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 28px;

  position: relative;

  margin: 8px 0 44px;

}

.msteps::before {

  content: "";

  position: absolute;

  top: 36px;

  left: 12%;

  right: 12%;

  height: 1px;

  background: #d7e2dc;

  pointer-events: none;

}

.mstep {

  position: relative;

  text-align: center;

  z-index: 1;

  height: auto;

  overflow: visible;

}

.mstep .mstep-ico {

  position: relative;

  width: 72px;

  height: 72px;

  margin: 0 auto 18px;

  border-radius: 50%;

  background: var(--brand-primary);

  color: var(--text-light);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 26px;

  box-shadow: 0 0 0 8px var(--surface);

  transition: transform .45s var(--ease-out), background-color .45s ease;

}

.mstep:hover .mstep-ico {

  transform: translateY(-4px);

  background: var(--brand-accent);

}

.mstep .mstep-n {

  position: absolute;

  top: -2px;

  right: -2px;

  left: auto;

  width: 24px;

  height: 24px;

  border-radius: 50%;

  background: var(--brand-accent);

  color: var(--text-light);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 12px;

  font-weight: 800;

  line-height: 1;

  box-shadow: 0 0 0 3px var(--surface);

}

.mstep h3 {

  margin: 0 0 10px;

  font-size: 22px;

  line-height: 1.35;

  font-weight: 700;

  color: var(--brand-ink);

  min-height: 50px;

}

.mstep p {

  margin: 0 auto;

  max-width: 280px;

  line-height: 1.65;

  color: #6b6b6b;

  min-height: 0;

}



/* ======= 05 MEMBER PORTAL ======= */

.portal-section {

  background: var(--brand-deep);

  position: relative;

  overflow: hidden;

}

.portal-section .portal-watermark {

    position: absolute;

    right: 0;

    top: 50%;

    width: 50%;

    height: 100%;

    opacity: .06;

    pointer-events: none;

    transform: translate(-50%, -50%);

    left: 50%;

}

.portal-section .container { position: relative; }

.portal-copy h2 { margin: 0 0 20px;  color: var(--text-light) !important; letter-spacing: -.4px; font-size: 40px; line-height: 1.14; }

.portal-copy > p { margin: 0 0 26px; font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, .85); }



.portal-card {

    background: rgb(255 255 255);

    border: 1px solid rgba(255, 255, 255, .16);

    border-radius: 18px;

    padding: 38px 36px;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    max-width: 600px;

    margin-left: auto;

}

.portal-card .pc-ico {

  width: 62px;

  height: 62px;

  border-radius: 50%;

  background: #105640;

  color: var(--brand-deep);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 24px;

  min-width: 62px;

}

.portal-card p {

    font-size: 13px;

    color: var(--text-body);

    margin: 16px 0px 0px;

}

.portal-card label {

  display: block;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  color: #000;

  margin-bottom: 8px;

}

.portal-card input {

    width: 100%;

    border: 1px solid rgb(18, 59, 46);

    background: rgba(255, 255, 255, .9);

    border-radius: 10px;

    padding: 14px 16px;

    color: #000000;

    font-family: "Montserrat", sans-serif;

    font-size: 15px;

    margin-bottom: 16px;

}

.portal-card input:focus {

    outline: none !important;

    box-shadow: none !important;

    border: 1px solid rgb(18, 59, .46) !important;

}

.portal-card input::placeholder { color: rgb(18, 59, .46) !important; }

.portal-card .pc-help {

    margin: 16px 0 0;

    color: var(--text-body);

}

.portal-card .pc-help a {

    color: #F2953F;

    font-weight: 700;

    text-decoration: none;

}

.portal-card .pc-help a:hover { color: var(--brand-accent); }



/* shown when the portal has no backend wired up yet */

.portal-notice {

  margin-top: 16px;

  background: rgba(242, 149, 63, .16);

  border: 1px solid var(--brand-accent);

  border-radius: 10px;

  padding: 14px 16px;

  font-size: 14px;

  line-height: 1.6;

  color: var(--text-light);

}

.portal-notice a {

    color: #f2953f;

    text-decoration: underline;

    font-weight: 700;

}



/* ======= 06 OTHER WAYS TO SUPPORT ======= */

.support-section { background: var(--surface); }

.support-grid { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }

.msup {

  background: var(--surface-alt);

  border-radius: 14px;

  padding: 36px 32px;

  height: 100%;

  display: flex;

  flex-direction: column;

  transition: transform .45s var(--ease-out), box-shadow .45s ease, background-color .45s ease;

}

.msup:hover {

  transform: translateY(-6px);

  background: var(--surface);

  box-shadow: 0 22px 46px rgba(9, 32, 27, .14);

}

.msup .msup-ico {

  width: 62px;

  height: 62px;

  border-radius: 50%;

  background: var(--brand-primary);

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 22px;

}

.msup .msup-ico img { width: 32px; height: 32px; }

.msup h3 { margin: 0 0 12px; font-weight: 700; color: var(--brand-ink); }

.msup p { margin: 0 0 22px; color: #6b6b6b; }

.msup .exploremore { margin-top: auto; }

.msup .exploremore a { padding: 10px 26px; font-size: 14px; }



/* ============================================================================

   RESPONSIVE

   ========================================================================= */



@media(min-width: 992px) and (max-width: 1199px) {

  .mflip { height: 330px; }

  .portal-card { padding: 30px 26px; }

  .msteps { gap: 24px 16px; }

  .mstep h3 { font-size: 16px; }

}



/* ==========================================================================

   BELOW 992px - TOUCH LAYOUT

   The membership flip cards are hover-only on desktop, so below this width

   they stop flipping and show both faces stacked.

   ========================================================================= */

@media(max-width: 991px) {

  .mflip { height: auto; perspective: none; }

  .mflip-inner { transform: none !important; transform-style: flat; height: auto; }

  .mface {

    position: relative;

    inset: auto;

    backface-visibility: visible;

    -webkit-backface-visibility: visible;

  }

  .mface:not(.mback) { height: 220px; border-radius: 16px 16px 0 0; }

  .mface-body .mface-hint { display: none; }   /* nothing to hover for */

  .mback { transform: none; border-radius: 0 0 16px 16px; padding: 28px 24px; position: relative; }



  .mstage { min-height: 320px; margin-bottom: 0px; margin-top: 50px; }

  .portal-card { margin-top: 32px; }

  .msteps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }

  .msteps::before { display: none; }

  .mstep p { max-width: 320px; }

}



@media(min-width: 768px) and (max-width: 991px) {

  .portal-copy h2 { font-size: 34px; }

  .heart-copy h2 {

    margin: 0 0 10px;

}

}



@media(min-width: 568px) and (max-width: 767px) {

  .heart-block { padding: 56px 0 64px; }

  .heart-copy h2 { font-size: 27px; }

  .heart-figures { gap: 24px; }

  .mstage { min-height: 280px; }

  .means-section { padding: 60px 0; }

  .become-section { padding: 60px 0; }

  .msteps { grid-template-columns: 1fr; gap: 28px; }

  .mstep {

    display: grid;

    grid-template-columns: 64px 1fr;

    grid-template-rows: auto auto;

    column-gap: 18px;

    text-align: left;

    align-items: start;

  }

  .mstep .mstep-ico {

    grid-row: 1 / 3;

    width: 64px;

    height: 64px;

    margin: 0;

    font-size: 24px;

    box-shadow: 0 0 0 6px var(--surface);

  }

  .mstep h3 { font-size: 18px; margin: 4px 0 8px; min-height: 0; }

  .mstep p { max-width: none; margin: 0; }

  .portal-section { padding: 60px 0; }

  .portal-copy h2 { font-size: 30px; }

  .portal-card { padding: 30px 24px; }

  .support-section { padding: 60px 0; }

  .msup { padding: 30px 24px; }

}



@media(min-width: 320px) and (max-width: 567px) {

  .heart-block { padding: 48px 0 56px; }

  .heart-copy h2 { font-size: 24px; }

  .heart-copy p { font-size: 15px; }

  .heart-figures { gap: 20px; padding: 20px 0; }

  .heart-figures .hf-value { font-size: 25px; }

  .mstage { min-height: 240px; }

  .mstage .ms-body { left: 18px; right: 18px; bottom: 18px; }

  .means-section { padding: 52px 0; }

  .mface:not(.mback) { height: 190px; }

  .mface-body h3 { font-size: 20px; }

  .mback { padding: 24px 20px; }

  .become-section { padding: 52px 0; }

  .msteps { grid-template-columns: 1fr; gap: 22px; }

  .mstep {

    display: grid;

    grid-template-columns: 56px 1fr;

    grid-template-rows: auto auto;

    column-gap: 16px;

    text-align: left;

    align-items: start;

  }

  .mstep .mstep-ico {

    grid-row: 1 / 3;

    width: 56px;

    height: 56px;

    margin: 0;

    font-size: 22px;

    box-shadow: 0 0 0 6px var(--surface);

  }

  .mstep h3 { font-size: 16px; margin: 2px 0 6px; min-height: 0; }

  .mstep p { max-width: none; margin: 0; }

  .portal-section { padding: 52px 0; }

  .portal-copy h2 { font-size: 26px; margin: 0 0 10px; }

  .portal-card { padding: 26px 20px; }

  .support-section { padding: 52px 0; }

  .msup { padding: 26px 20px; }

  .msup h3 { font-size: 19px; }

}



@media (prefers-reduced-motion: reduce) {

  /* show one photo rather than leaving the stack mid-fade */

  .mstage .mslide { animation: none; opacity: 0; }

  .mstage .mslide:first-of-type { opacity: 1; }

  .mflip-inner, .mstep .mstep-ico, .msup { transition: none; }

}



/* ---- heart section: photo overlays, positioned as in the mockup ---- */



/* glass "Membership / SINCE 1936" card sits top-RIGHT over the photo

   (the shared .labor-day rule pins it top-left for the summer page) */

.mstage .labor-day {

  left: auto;

  right: 26px;

  top: 28px;

  border-radius: 16px;

}



/* green "TIME, TALENTS, TREASURE" box over the photo, bottom-left.

   It had no positioning here at all - .ss-badge is only placed under

   .sum-stage - so it was flowing statically inside the stage. */

.mstage .ss-badge {

  position: absolute;

  left: 26px;

  bottom: 104px;

  width: 186px;

  background: rgba(14, 85, 63, .94);

  color: var(--text-light);

  border-radius: 16px;

  padding: 16px 18px;

  box-shadow: 0 18px 40px rgba(9, 32, 27, .3);

  text-align: left;

}

.mstage .ss-badge .sb-big {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--brand-mint);
    margin-bottom: 6px;
    line-height: 1.4;
}

.mstage .ss-badge .sb-sub p {

  display: flex;

  align-items: baseline;

  gap: 8px;

  margin: 0;

  line-height: 1.35;

}

.mstage .ss-badge .sb-n {

  flex: none;

  font-size: 28px;

  font-weight: 800;

  color: #ffffff;

  line-height: 1;

}

.mstage .ss-badge .sb-t {

  font-size: 11.5px;

  line-height: 1.35;

  font-weight: 600;

  color: #cfe0d8;

}



/* ---- "members give in three ways" + Time / Talents / Treasure ---- */

.member-ways {

  margin-top: 26px;

  padding-top: 20px;

  border-top: 1px solid #e7ece8;

  max-width: 520px;

}

.member-ways .mw-note {

  margin: 0 0 14px;

  max-width: 460px;

  line-height: 1.7;

color: #5a655f;

}

.member-ways .mw-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  align-items: center;

}

.member-ways .mw-item {

  font-size: 22px;

  font-weight: 700;

  color: var(--brand-primary);

  line-height: 1.4;

}

.member-ways .mw-tag {

  display: inline-block;

  vertical-align: middle;

  margin-left: 4px;

  background: #eaf1ec;

  color: #0E553F;

  border-radius: 999px;

  padding: 4px 10px;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .6px;

}

.member-ways .mw-tag.give { background: #fdf0e2; color: #C46F1B; }



@media (max-width: 991px) {

  .mstage .labor-day { right: 16px; top: 16px; }

  .mstage .ss-badge { left: 16px; bottom: 92px; width: 168px; }

}

@media (max-width: 575px) {

  .member-ways .mw-grid { grid-template-columns: 1fr; gap: 10px; }

  .member-ways .mw-item { font-size: 19px; }

  .mstage .ss-badge { display: none; }

}

