/* =================================
   MOBILE STYLES - NO GSAP
   ================================= */

/* Hide landscape warning by default */
.landscape-warning {
    display: none;
}

/* Hide mobile menu elements on desktop */
.mobile-on {
    display: none;
}

.menu-toggle,
.mobile-menu-overlay {
    display: none !important;
}

/* Override any Bootstrap/Desktop styles */
@media (max-width: 767px) {

    /* Show mobile menu elements */
    .menu-toggle {
        display: flex !important;
    }

    .mobile-menu-overlay {
        display: block !important;
    }

    body .vertical-align {
        position: relative;
        top: 0%;
        transform: translateY(0%);
    }

    /* Force html and body to allow fixed positioning */
    html, body {
        position: relative !important;
        overflow-x: hidden !important;
    }

    /* =================================
       DISABLE HORIZONTAL SCROLL ON MOBILE
       ================================= */

    .horizontal-scroll-wrapper {
        overflow: visible !important;
        position: static !important;
    }

    .horizontal-scroll-sections {
        display: block !important;
        flex-wrap: wrap !important;
        height: auto !important;
        transform: none !important;
    }

    .horizontal-section {
        min-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
    }

    /* =================================
       NAVBAR MOBILE
       ================================= */

    header {
        position: relative !important;
        z-index: 9999 !important;
    }

    .navbar,
    .brent-tabsbar,
    .fixed-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
    }

    .brent-tabsbar {
        background: #191919 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
        padding: 0 !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        transform: none !important;
    }

    .brent-tabsbar .container {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .brent-logo {
        font-size: 16px !important;
        padding: 0 15px !important;
        height: 70px !important;
        display: flex !important;
        align-items: center;
        position: relative;
        z-index: 10001 !important;
    }

    /* Custom Hamburger Menu Toggle */
    .menu-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001 !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    .menu-toggle:focus {
        outline: none;
    }

    .hamburger-line {
        width: 28px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    /* Active state - X animation */
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none !important;
    }

    /* Mobile Menu Fullscreen Overlay */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #191919 !important;
        overflow-y: auto !important;
        z-index: 9998 !important;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mobile-menu-overlay.show {
        transform: translateX(0);
    }

    .mobile-menu-content {
        padding: 100px 30px 30px;
        width: 100%;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .mobile-menu-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
    }

    .mobile-menu-link {
        display: block;
        width: 100%;
        padding: 25px 0;
        font-size: 20px;
        letter-spacing: .1em;
        text-align: left;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:active {
        padding-left: 15px;
        color: #00D97E;
    }

    /* Body padding for fixed navbar */
    body {
        padding-top: 70px;
    }

    /* =================================
       HERO SECTION MOBILE
       ================================= */

    #init--hero--effect {
        padding: 60px 0 !important;
        min-height: calc(100vh - 70px) !important;
        display: flex;
        align-items: center;
    }
    .mobile-on{display: block !important;}
    .mobile-off{display: none !important;}
    #init--hero--effect .Brent-hero {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        margin-bottom: 40px;
        display: none;
    }

    #init--hero--effect .Brent-hero img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    #init--hero--effect h1 {
        font-size: 48px !important;
        line-height: 1.2 !important;
        transform: none !important;
        margin-bottom: 30px !important;
    }

    #init--hero--effect p {
        font-size: 16px !important;
        line-height: 1.8 !important;
        transform: none !important;
        opacity: 1 !important;
    }

     

    #init--hero--effect .col-md-6 {
        width: 100%;
    }

    /* =================================
       SECTION 2 - KINGS CHURCH MOBILE
       ================================= */

    #section--2 {
        padding: 80px 0 !important;
    }

    #section--2 .video__content {
        margin-bottom: 40px;
        width: 100%;
    }

    #section--2 video{
        width: 200% !important;
    }
    #section--2 img {
        width: 100%;
        height: auto;
    }

    #section--2 h2 {
        font-size: 36px !important;
        line-height: 1.2 !important;
        margin-bottom: 30px !important;
    }

    #section--2 .paragraph p {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    /* =================================
       SECTION 3 - SPEAKING REQUESTS MOBILE
       ================================= */

    #section--3 {
        padding: 80px 0 !important;
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center !important;
    }

    #section--3 .bg-cover {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        filter: brightness(0.6);
    }

    #section--3 .container {
        position: relative;
        z-index: 2;
    }

    #section--3 h3 {
        font-size: 32px !important;
        margin-bottom: 25px !important;
    }

    #section--3 p {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    /* =================================
       SECTION 4 - LATEST SERMON MOBILE
       ================================= */
    .mobile-xs-on{display: block !important;}
    #section--4 {
        padding: 80px 0 !important;
        min-height: auto !important;
    }

    #section--4 .latest--sermon--pic1,
    #section--4 .latest--sermon--pic2 {
        display: none !important;
    }
    .mb-xs-40{margin-bottom: 40px !important;}
        .lineblack:before,
    #section--4 .lineblack:before {
        display: none !important;
    }

    #section--4 h3 {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }

    #section--4 h4 {
        font-size: 20px !important;
    }

    #section--4 p {
        font-size: 14px !important;
    }

    #section--4 .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px;
    }

    /* =================================
       SECTION 5 - WATCH MORE MOBILE
       ================================= */

    #section--5 {
        padding: 80px 0 !important;
    }

    #section--5 .titles {
        flex-direction: column !important;
        gap: 20px;
        align-items: flex-start !important;
    }

    #section--5 h3 {
        font-size: 28px !important;
    }

    #section--5 .latest--sermon--list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        list-style: none;
        padding: 0;
    }

    #section--5 .latest--sermon--list li {
        width: 100%;
    }

    #section--5 .latest--sermon--list img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* =================================
       SECTION 6 - PODCAST MOBILE
       ================================= */

    #section--6 {
        padding: 80px 0 120px !important;
        min-height: 100vh !important;
        align-items: center !important;
    }

    #section--6 .podcast--1,
    #section--6 .podcast--2 {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        object-fit: cover;
        margin-bottom: 40px;
        left: 0 !important;
        bottom: auto !important;
    }

    #section--6 .podcast--2 {
        display: none;
    }

    #section--6 h5 {
        font-size: 14px !important;
    }

    #section--6 h2 {
        font-size: 36px !important;
        line-height: 1.2 !important;
        margin-bottom: 30px !important;
    }

    #section--6 .mb-120 {
        margin-bottom: 40px !important;
    }

    #section--6 .row {
        flex-direction: column;
    }

    #section--6 .col-md-7,
    #section--6 .col-md-4 {
        width: 100%;
    }

    /* =================================
       BUTTONS MOBILE
       ================================= */

    .btn {
        padding: 15px 30px !important;
        font-size: 12px !important;
        width: 100%;
        max-width: 300px;
        text-align: center;
        display: inline-block;
    }

    .btn-large {
        padding: 18px 35px !important;
        font-size: 13px !important;
    }

    /* =================================
       FOOTER MOBILE
       ================================= */

    .footer-brent {
        padding: 60px 0 40px !important;
    }

    .footer-brent__top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brent__brand,
    .footer-brent__follow {
        width: 100%;
        text-align: center;
    }

    .footer-brent__name {
        font-size: 32px !important;
    }

    .footer-brent__follow-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-brent__follow-links a {
        font-size: 12px !important;
    }

    .footer-brent__bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-brent__copy,
    .footer-brent__credit {
        width: 100%;
        font-size: 11px !important;
        text-align: center !important;
    }

    /* =================================
       MODAL MOBILE
       ================================= */

    .speaker-modal-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        padding: 80px 20px 40px !important;
    }

    .speaker-modal-title {
        font-size: 24px !important;
    }

    .speaker-modal-subtitle {
        font-size: 14px !important;
    }

    .form-section {
        margin-bottom: 30px !important;
    }

    .section-title {
        font-size: 16px !important;
    }

    .form-control {
        font-size: 14px !important;
        padding: 12px !important;
    }

    textarea.form-control {
        min-height: 120px !important;
    }

    .btn-submit {
        font-size: 14px !important;
        padding: 15px 40px !important;
        width: 100%;
    }

    /* =================================
       TYPOGRAPHY MOBILE
       ================================= */

    h1 {
        font-size: 42px !important;
    }

    h2 {
        font-size: 32px !important;
    }

    h3 {
        font-size: 24px !important;
    }

    h4 {
        font-size: 20px !important;
    }

    h5 {
        font-size: 16px !important;
    }

    p {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    /* =================================
       UTILITIES MOBILE
       ================================= */

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .vertical-align {
        display: block !important;
    }

    .height-100 {
        height: auto !important;
        min-height: auto !important;
    }

    .section-mod {
        padding: 60px 0 !important;
    }

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }

}

/* =================================
   MOBILE LANDSCAPE WARNING
   Show image overlay when mobile is in landscape mode
   ================================= */

@media only screen
  and (max-width: 767px)
  and (orientation: landscape) {

    .landscape-warning {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #000 !important;
        z-index: 99999 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .landscape-warning-content {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .landscape-warning-content img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }

    /* Hide everything else when landscape warning is shown */
    body {
        overflow: hidden !important;
    }

}

