/* ========================================================= */
/*  FAMILY PAGE — Typography-Forward Editorial Design          */
/*  Design Language: Mayflower Hills Baptist Church            */
/*  Fonts: desire (display), Merriweather (body serif),        */
/*         Open Sans (utility), Constantia (body alt)          */
/*  Palette: #191A13 (charcoal), #F2F1EA (cream),             */
/*           #a20000 (accent red), #fff                        */
/* ========================================================= */

@import url("../fonts/fonts.css");

@font-face {
    font-family: 'desire';
    src: url('../fonts/desire.eot');
    src: url('../fonts/desire.woff2') format('woff2'),
        url('../fonts/desire.woff') format('woff'),
        url('../fonts/desire.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ---- RESET SCOPE ---- */
.fam-page *,
.fam-page *::before,
.fam-page *::after {
    box-sizing: border-box;
}

.fam-page {
    overflow-x: hidden;
}

/* ---- PLUGIN OVERRIDES ---- */
.fam-page a.rtBibleRef,
.fam-page a.rtBibleRef:hover,
.fam-page a.rtBibleRef:visited {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.fam-page .lbsLink,
.fam-page sup.lbsBibleRef,
.fam-page img[src*="LibronixLink"],
.fam-page [class*="reftagger"],
.fam-page [id*="reftagger"] {
    display: none !important;
}


/* ---- ANIMATION BASE ---- */
.fam-intro__lead,
.fam-intro__body,
.fam-responsibility__col,
.fam-scripture__header,
.fam-scripture__body,
.fam-verse,
.fam-priesthood__header,
.fam-priesthood__body {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fam-intro__lead.fam-visible,
.fam-intro__body.fam-visible,
.fam-responsibility__col.fam-visible,
.fam-scripture__header.fam-visible,
.fam-scripture__body.fam-visible,
.fam-verse.fam-visible,
.fam-priesthood__header.fam-visible,
.fam-priesthood__body.fam-visible {
    opacity: 1;
    transform: translateY(0);
}

.fam-intro__body {
    transition-delay: 0.15s;
}

.fam-responsibility__col:nth-child(2) {
    transition-delay: 0.2s;
}


/* ========================================================= */
/*  HERO                                                       */
/* ========================================================= */

.fam-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fam-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    background-color: #000;
    overflow: hidden;
    z-index: 0;
}

.fam-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fam-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(25, 26, 19, 0.55) 0%,
            rgba(25, 26, 19, 0.40) 40%,
            rgba(25, 26, 19, 0.70) 100%);
    z-index: 1;
}

.fam-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: opacity, transform;
}

.fam-hero__eyebrow {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    animation: famFadeIn 1s ease-out 0.3s both;
}

.fam-hero__title,
.fam-page .fam-hero h1 {
    font-family: 'desire', serif !important;
    font-size: clamp(3rem, 7.5vw, 6rem) !important;
    font-weight: normal !important;
    color: #fff !important;
    line-height: 1.05 !important;
    margin: 0 0 30px 0 !important;
    letter-spacing: -1px !important;
    animation: famFadeIn 1s ease-out 0.5s both;
}

.fam-hero__title-accent {
    color: #a20000;
    font-size: 1.1em;
}

.fam-hero__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    color: #fff !important;
    transition: opacity 0.3s ease;
    text-decoration: none !important;
    z-index: 10;
    padding: 10px;
    animation: famFadeIn 1s ease-out 1s both;
}

.fam-hero__scroll svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    color: #fff !important;
    stroke: #fff !important;
}

.fam-hero__scroll:hover {
    opacity: 0.7;
}

@keyframes famFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================================= */
/*  INTRO — OPENING PHILOSOPHY                                */
/* ========================================================= */

.fam-intro {
    background-color: #F2F1EA;
    padding: 120px 0 110px 0;
    position: relative;
}

.fam-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #a20000, transparent);
}

.fam-intro__inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.fam-intro__statement {
    position: relative;
    top: 0;
    text-align: center;
}

.fam-intro__heading {
    font-family: 'desire', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: normal;
    color: #191A13;
    line-height: 1.1;
    margin: 0 0 25px 0;
}

.fam-intro__divider {
    width: 60px;
    height: 2px;
    background: #a20000;
    margin: 0 auto;
}

.fam-intro__aside {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin: 0 0 26px 0;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.fam-intro__body p {
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.85;
    margin: 0 0 26px 0;
    letter-spacing: normal;
}

.fam-intro__body p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #191A13;
}


/* ========================================================= */
/*  VINE & TRELLIS PULL QUOTE                                  */
/* ========================================================= */

.fam-vine {
    position: relative;
    background-color: #000;
    padding: 160px 0;
    overflow: hidden;
}

.fam-vine__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.fam-vine__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 26, 19, 0.78);
    z-index: 1;
}

.fam-vine__inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.fam-vine blockquote {
    margin: 0;
    padding: 0;
}

.fam-vine blockquote p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-weight: 300;
    color: #fff !important;
    line-height: 1.85;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.015em;
}

.fam-vine blockquote p em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
}


/* ========================================================= */
/*  PARENTAL RESPONSIBILITY                                    */
/* ========================================================= */

.fam-responsibility {
    background-color: #fff;
    padding: 120px 0;
    position: relative;
}

.fam-responsibility__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.fam-responsibility__header {
    text-align: center;
    margin-bottom: 70px;
}

.fam-responsibility__eyebrow {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a20000;
    display: block;
    margin-bottom: 18px;
}

.fam-responsibility__title {
    font-family: 'desire', serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: normal;
    color: #191A13;
    margin: 0 0 24px 0;
    line-height: 1.1;
}

.fam-responsibility__divider {
    width: 60px;
    height: 2px;
    background: #a20000;
    margin: 0 auto;
}

.fam-responsibility__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.fam-responsibility__col p {
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.85;
    margin: 0 0 26px 0;
}

.fam-responsibility__col p:last-child {
    margin-bottom: 0;
}

.fam-responsibility__col em {
    color: #555;
}

/* Highlighted column for Singles */
.fam-responsibility__col--highlight {
    background: #F2F1EA;
    padding: 45px 40px;
    position: relative;
}

.fam-responsibility__col--highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #a20000;
    opacity: 1;
}

.fam-responsibility__col--highlight h3 {
    font-family: 'desire', serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: #191A13;
    margin: 0 0 20px 0;
    line-height: 1.1;
}


/* ========================================================= */
/*  WHY? — DRAMATIC TRANSITION SECTION                         */
/* ========================================================= */

.fam-why {
    position: relative;
    background-color: #000;
    padding: 140px 0;
    overflow: hidden;
    text-align: center;
}

.fam-why::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #a20000, transparent);
    z-index: 3;
}

.fam-why__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.fam-why__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 26, 19, 0.72);
    z-index: 1;
}

.fam-why__inner {
    position: relative;
    z-index: 2;
}

.fam-why__title {
    font-family: 'desire', serif !important;
    font-size: clamp(6rem, 18vw, 14rem) !important;
    font-weight: normal !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1 !important;
    letter-spacing: -3px !important;
    opacity: 0.9;
}


/* ========================================================= */
/*  SCRIPTURE SUFFICIENCY                                      */
/* ========================================================= */

.fam-scripture {
    background-color: #F2F1EA;
    padding: 120px 0 100px 0;
    position: relative;
}

.fam-scripture__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.fam-scripture__header {
    text-align: center;
    margin-bottom: 60px;
}

.fam-scripture__eyebrow {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a20000;
    display: block;
    margin-bottom: 18px;
}

.fam-scripture__title {
    font-family: 'desire', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: normal;
    color: #191A13;
    margin: 0 0 24px 0;
    line-height: 1.15;
}

.fam-scripture__divider {
    width: 60px;
    height: 2px;
    background: #a20000;
    margin: 0 auto;
}

.fam-scripture__body p {
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.85;
    margin: 0 0 26px 0;
}

.fam-scripture__body p:last-child {
    margin-bottom: 0;
}

.fam-scripture__body strong {
    color: #191A13;
    font-weight: 700;
}


/* ========================================================= */
/*  SCRIPTURE VERSE GALLERY                                    */
/* ========================================================= */

.fam-verses {
    background-color: #fff;
    padding: 100px 0 120px 0;
}

.fam-verses__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.fam-verses__preface {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #999;
    text-align: center;
    margin: 0 0 60px 0;
}

.fam-verses__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Individual verse card */
.fam-verse {
    margin: 0;
    padding: 40px 36px;
    background: #fafaf7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.fam-verse:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.fam-verse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #a20000;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fam-verse:hover::before {
    transform: scaleY(1);
}

.fam-verse cite {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a20000;
    font-style: normal;
    margin-bottom: 18px;
}

.fam-verse p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    font-weight: 300;
    color: #2a2a2a;
    line-height: 1.85;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.01em;
}

.fam-verse__note {
    display: block;
    margin-top: 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    font-style: normal;
    letter-spacing: 0.01em;
}




/* ========================================================= */
/*  PRIESTHOOD & FAMILY                                        */
/* ========================================================= */

.fam-priesthood {
    background-color: #F2F1EA;
    padding: 120px 0;
    position: relative;
}

.fam-priesthood__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.fam-priesthood__header {
    text-align: center;
    margin-bottom: 60px;
}

.fam-priesthood__eyebrow {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a20000;
    display: block;
    margin-bottom: 18px;
}

.fam-priesthood__title {
    font-family: 'desire', serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: normal;
    color: #191A13;
    margin: 0 0 24px 0;
    line-height: 1.15;
}

.fam-priesthood__divider {
    width: 60px;
    height: 2px;
    background: #a20000;
    margin: 0 auto;
}

.fam-priesthood__body p {
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.85;
    margin: 0 0 26px 0;
}

.fam-priesthood__body p:last-child {
    margin-bottom: 0;
}

.fam-priesthood__lead {
    font-size: 1.2rem !important;
    color: #191A13 !important;
}

.fam-priesthood__lead em {
    color: #a20000;
    font-style: italic;
}

.fam-priesthood__body strong {
    color: #191A13;
    font-weight: 700;
}

/* Closing verse pair */
.fam-priesthood__closing-verses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

/* Closing verse variant */
.fam-verse--closing {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 36px 32px;
}

.fam-verse--closing p {
    font-size: 0.95rem;
}


/* ========================================================= */
/*  RESPONSIVE BREAKPOINTS                                    */
/* ========================================================= */

/* ---- TABLET (1024px) ---- */
@media (max-width: 1024px) {
    .fam-responsibility__columns {
        gap: 50px;
    }

    .fam-verses__grid {
        gap: 24px;
    }
}


/* ---- MOBILE (768px) ---- */
@media (max-width: 768px) {

    .fam-hero__title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }

    .fam-intro {
        padding: 80px 0 70px 0;
    }

    .fam-intro__inner {
        padding: 0 25px;
        gap: 40px;
    }

    .fam-vine {
        padding: 100px 0;
    }

    .fam-vine__inner {
        padding: 0 25px;
    }

    .fam-responsibility {
        padding: 80px 0;
    }

    .fam-responsibility__inner {
        padding: 0 25px;
    }

    .fam-responsibility__columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fam-responsibility__header {
        margin-bottom: 50px;
    }

    .fam-why {
        padding: 100px 0;
    }

    .fam-scripture {
        padding: 80px 0 70px 0;
    }

    .fam-scripture__inner {
        padding: 0 25px;
    }

    .fam-verses {
        padding: 70px 0 80px 0;
    }

    .fam-verses__inner {
        padding: 0 20px;
    }

    .fam-verses__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fam-verse {
        padding: 30px 25px;
    }

    .fam-priesthood {
        padding: 80px 0;
    }

    .fam-priesthood__inner {
        padding: 0 25px;
    }

    .fam-priesthood__closing-verses {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fam-hero__scroll svg {
        width: 36px;
        height: 36px;
    }
}


/* ---- SMALL MOBILE (480px) ---- */
@media (max-width: 480px) {

    .fam-hero__eyebrow {
        font-size: 0.65rem;
    }

    .fam-hero__title {
        font-size: 2.6rem !important;
    }



    .fam-responsibility__title,
    .fam-scripture__title {
        font-size: 2.2rem;
    }

    .fam-priesthood__title {
        font-size: 1.8rem;
    }

    .fam-why__title {
        font-size: 5rem !important;
    }

    .fam-responsibility__col--highlight {
        padding: 30px 25px;
    }

    .fam-vine blockquote p {
        font-size: 1.1rem;
    }

    .fam-verse p {
        font-size: 0.95rem;
    }

    .fam-verse--featured p {
        font-size: 1rem;
    }
}