@charset "UTF-8";

/* 1. GLOBAL RESET */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
    -webkit-text-size-adjust: 100%; /* Prevents iOS shrinking */
}

body {
    padding-top: 0 !important;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* 2. NAVBAR */
.navbar {
    min-height: 110px;
    z-index: 1030;
}

@media (min-width: 992px) {
    .navbar-brand {
        position: absolute;
        left: 40px; 
        top: 50%;
        transform: translateY(-50%);
    }
}

/* 3. HERO / MASTHEAD */
.masthead {
    /* 5% or 10% will bring the very top of the photo into view */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/main_photo.jpeg') no-repeat center 8%;
    
    /* Staying with the 120% zoom we liked */
    background-size: 120%; 
    
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
}

/* On mobile, we usually want to reset the zoom so the image isn't too blurry */
@media (max-width: 768px) {
    .masthead {
        background-size: cover; 
        background-position: center center;
    }
}

/* 4. CARDS & FELLOWSHIP */
.overlay-card { 
    transition: all 0.4s ease; 
    overflow: hidden; 
}

.overlay-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; 
}

.fellowship-break {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('../images/prayer_pic.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; 
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0; 
}

/* 5. MISSION TEXT - MATCHING PASTORS SECTION */
.mission-text-balanced {
    font-weight: 700;
    line-height: 1.5;
    font-size: 1.75rem; 
    margin: 0 auto;
    color: #fff;
}

/* 6. VIDEO STYLES */
.sozo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

.custom-video-container {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* 7. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .display-2 { font-size: 2.2rem; }
    .masthead { min-height: 80vh; }
    .fellowship-break { min-height: 50vh; padding: 80px 0; }
    
    .mobile-logo-img { height: 65px !important; width: auto; }
    .mobile-give-btn { font-size: 0.85rem !important; padding: 6px 16px !important; }
    
    .navbar { min-height: auto; padding-top: 1rem !important; padding-bottom: 1rem !important; }
    
    .mission-text-balanced {
        font-size: 1.3rem !important;
        line-height: 1.4;
    }
}

/* Mobile Navbar Cleanup Making the logo next the letters not above */
@media (max-width: 768px) {
    .navbar-brand img {
        /* Adjust this percentage until the logo, button, and menu fit in one row */
        height: 40px !important; 
        width: auto !important;
    }

    /* Optional: Ensure the 'Give' button doesn't have too much extra margin on mobile */
    .nav-link.btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }
}

/* Force the Social Buttons to be identical height and alignment */
.masthead .btn-outline-light {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 110px; /* Forces both buttons to be at least this tall */
}

/* Ensure the labels above the buttons are aligned at the bottom */
.masthead .flex-grow-1 {
    min-height: 40px; /* Gives the text room to be 1 or 2 lines without moving the button */
}