/*
Theme Name: BDM Redesign
Theme URI: https://staging.bibledavids.org
Author: Bible Davids Ministries
Description: Custom redesign theme for Bible Davids Ministries.
Version: 1.0
Text Domain: bdm-redesign
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #fff;
}

a {
    color: inherit;
}

/* Header */

.bdm-site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bdm-header-inner {
    width: min(1280px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.bdm-logo a {
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

.bdm-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.bdm-nav a {
    text-decoration: none;
    font-size: 14px;
}

/* Hero */

.bdm-test-hero {
    min-height: 680px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 30px;

    background:
        linear-gradient(
            rgba(7, 20, 50, 0.55),
            rgba(7, 20, 50, 0.75)
        ),
        url('https://bibledavids.org/wp-content/uploads/2024/09/apostle-closeShot-crowd.jpg');

    background-size: cover;
    background-position: center;
}

.bdm-test-hero-inner {
    max-width: 1000px;
    text-align: center;
    color: #fff;
}

.bdm-eyebrow {
    margin-bottom: 22px;
    letter-spacing: 5px;
    font-size: 14px;
    font-weight: 700;
}

.bdm-test-hero h1 {
    margin: 0;

    font-family: Georgia, serif;
    font-size: clamp(56px, 8vw, 110px);
    line-height: 0.92;
    font-weight: 400;
}

.bdm-test-hero h1 span {
    display: block;
}

.bdm-test-hero-inner > p:not(.bdm-eyebrow) {
    margin-top: 30px;
    font-size: 18px;
}

.bdm-btn {
    display: inline-block;
    margin-top: 34px;
    padding: 15px 30px;

    background: #fff;
    color: #111;

    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* Footer */

.bdm-site-footer {
    background: #111827;
    color: #fff;
    padding: 36px 20px;
}

.bdm-footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

/* Mobile */

@media (max-width: 768px) {
    .bdm-header-inner {
        min-height: 72px;
    }

    .bdm-nav {
        display: none;
    }

    .bdm-test-hero {
        min-height: 560px;
        padding: 70px 20px;
    }

    .bdm-test-hero h1 {
        font-size: clamp(44px, 14vw, 68px);
    }
}




/* ==========================================
   HOMEPAGE HERO — REVERSE FIRST SLIDE
   Text LEFT | Apostle image RIGHT
========================================== */

/* Move the Apostle image to the right */
.bdm-hero-slider .bdm-vision-slide .bdm-vision-person {
    left: auto !important;
    right: 3% !important;
    transform: none !important;
    width: %;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.bdm-hero-slider .bdm-vision-slide .bdm-vision-person img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
}

/* Move heading, description and button to the left */
.bdm-hero-slider .bdm-vision-slide .bdm-vision-content {
    position: relative;
    left: auto !important;
    right: auto !important;
    margin-left: 7% !important;
    margin-right: auto !important;
    width: 53%;
    max-width: 760px;
    text-align: left;
    z-index: 3;
}

/* Keep the title within the text column */
.bdm-hero-slider .bdm-vision-slide .bdm-vision-title {
    max-width: 100%;
}

/* Keep the decorative word behind the content */
.bdm-hero-slider .bdm-vision-slide .bdm-vision-ghost-word {
    z-index: 0;
    pointer-events: none;
}

/* Tablet */
@media (max-width: 1024px) {
    .bdm-hero-slider .bdm-vision-slide .bdm-vision-content {
        margin-left: 5% !important;
        width: 55%;
    }

    .bdm-hero-slider .bdm-vision-slide .bdm-vision-person {
        right: 0 !important;
        width: 44%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bdm-hero-slider .bdm-vision-slide .bdm-vision-content {
        margin-left: 6% !important;
        margin-right: 6% !important;
        width: 88%;
        max-width: none;
    }

    .bdm-hero-slider .bdm-vision-slide .bdm-vision-person {
        right: 0 !important;
        width: 72%;
        opacity: 0.35;
        z-index: 1;
    }

    .bdm-hero-slider .bdm-vision-slide .bdm-vision-content {
        z-index: 3;
    }
}


/* =====================================================
   BDM HOMEPAGE HERO — DESKTOP + MOBILE REFINEMENT
   Vision slide only, except slider arrow controls
===================================================== */

/* DESKTOP: Apostle RIGHT, content LEFT */

.bdm-hero-slider .bdm-vision-slide .bdm-vision-content {
    position: relative;
    left: auto !important;
    right: auto !important;
    width: 53%;
    max-width: 720px;
    margin-left: 7% !important;
    margin-right: auto !important;
    text-align: left;
    z-index: 4;
}

.bdm-hero-slider .bdm-vision-slide .bdm-vision-person {
    left: auto !important;
    right: 2% !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 44%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}

.bdm-hero-slider .bdm-vision-slide .bdm-vision-person img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    opacity: 1;
}

.bdm-hero-slider .bdm-vision-slide .bdm-vision-title {
    max-width: 100%;
}

.bdm-hero-slider .bdm-vision-slide .bdm-vision-ghost-word {
    z-index: 0;
    pointer-events: none;
}

/* SLIDER ARROWS: ensure they remain visible */

.bdm-hero-slider .bdm-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #211b1d;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.bdm-hero-slider .bdm-slider-prev {
    left: 15px;
}

.bdm-hero-slider .bdm-slider-next {
    right: 15px;
}

/* TABLET */

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

    .bdm-hero-slider .bdm-vision-slide .bdm-vision-content {
        width: 56%;
        margin-left: 5% !important;
    }

    .bdm-hero-slider .bdm-vision-slide .bdm-vision-person {
        width: 43%;
        right: 0 !important;
    }

    .bdm-hero-slider .bdm-vision-slide
    .bdm-vision-title-large {
        font-size: clamp(60px, 7.5vw, 105px);
    }
}

/* =====================================================
   MOBILE HOMEPAGE VISION — FULL HERO PORTRAIT AND LOWER COPY
===================================================== */

@media (max-width: 767px) {
    #bdmHeroSlider .bdm-vision-slide .bdm-vision-content {
        position: relative;
        top: auto;
        left: auto !important;
        right: auto !important;
        transform: none;
        grid-row: 2;
        align-self: end;
        width: calc(100% - 40px);
        max-width: 640px;
        margin: 0 auto !important;
        text-align: left;
        z-index: 4;
    }

    #bdmHeroSlider .bdm-vision-texture {
        z-index: 3;
        background: linear-gradient(
            180deg,
            rgba(10,10,10,0) 0%,
            rgba(10,10,10,.12) 32%,
            rgba(10,10,10,.82) 58%,
            rgba(10,10,10,.97) 100%
        );
    }

    #bdmHeroSlider .bdm-vision-content::before {
        content: none;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-hero-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: .16em;
        color: #ef3a40;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-vision-title {
        margin: 0;
        line-height: 1.08;
        color: #fff;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-vision-title-small {
        font-size: clamp(26px, 6.8vw, 40px);
        line-height: 1.12;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-vision-title-large {
        font-size: clamp(30px, 8vw, 52px);
        line-height: 1.08;
        letter-spacing: -.055em;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-vision-description {
        max-width: 100%;
        margin: 12px 0 16px;
        color: rgba(255,255,255,.86);
        font-size: 13px;
        line-height: 1.6;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-vision-person {
        position: absolute;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100%;
        height: 100%;
        margin: 0;
        justify-content: center;
        align-items: flex-end;
        opacity: 1;
        z-index: 2;
    }

    #bdmHeroSlider .bdm-vision-slide .bdm-vision-person img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center top;
    }
}
