@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #D4AF37;
    /* Gold */
    --primary-dark: #B8962E;
    --secondary: #1A365D;
    /* Deep Blue */
    --accent: #2D5A27;
    /* Forest Green */
    --text-dark: #1F2937;
    --text-light: #F9FAFB;
    --bg-light: #FFFFFF;
    --bg-muted: #F3F4F6;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Playfair Display', serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 60px;
    transition: var(--transition);
}

nav.scrolled .logo-container img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--secondary);
}

.logo-text-main {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 2px;
    transition: var(--transition);
}

nav.scrolled .logo-text-main {
    color: var(--secondary);
}

.logo-text-sub {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.3) 100%), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 5%;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    background: var(--primary-dark);
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-muted);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary);
}

.card h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Pillars */
.pillars {
    background: var(--secondary);
    color: white;
    text-align: center;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pillar-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pillar-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero.png');
    background-size: cover;
    background-position: center;
    padding: 180px 10% 100px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-family: 'Outfit', sans-serif;
}

/* Programs */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.program-item:nth-child(even) {
    flex-direction: row-reverse;
}

.program-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.program-content {
    flex: 1;
}

/* Board of Directors */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.board-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.board-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.member-avatar {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.member-info h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 0.2rem;
    font-family: 'Outfit', sans-serif;
}

.member-info p {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 0.8rem;
}

.view-bio {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-bio i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.board-card:hover .view-bio i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background: #0F172A;
    color: white;
    padding: 80px 10%;
    text-align: center;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE NAVIGATION SYSTEM
   ============================================ */

/* Overlay behind mobile menu */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile nav-links (slide-in from right) */
@media (max-width: 1024px) {
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: white;
        padding: 100px 30px 40px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        border-bottom: 1px solid var(--bg-muted);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 15px;
    }

    .nav-links a {
        color: var(--secondary) !important;
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }

    .nav-links a.btn-primary {
        color: white !important;
        text-align: center;
        padding: 12px 20px !important;
        margin-top: 10px;
    }

    .mobile-toggle {
        display: block;
        z-index: 1002;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--secondary);
        transition: var(--transition);
    }

    nav:not(.scrolled) .mobile-toggle {
        color: white;
    }

    /* Hamburger → X animation */
    .mobile-toggle.active .fa-bars::before {
        content: '\f00d';
        /* Font Awesome X icon */
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   UTILITY CLASSES FOR INLINE-STYLED LAYOUTS
   ============================================ */

/* Two-column grids used on membership & contact pages */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Board/Executive member card layout */
.member-card-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 40px;
}

/* Event card layout */
.event-card-layout {
    display: flex;
    overflow: hidden;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Scripture cards grid */
.scripture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    text-align: left;
}

/* Hero buttons wrapper */
.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

/* --- TABLET: 1024px --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    section {
        padding: 80px 7%;
    }

    .page-header {
        padding: 150px 7% 80px !important;
    }

    .page-header h1,
    .page-header h1[style] {
        font-size: 3rem !important;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .board-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    /* --- Hero --- */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 5% 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn-primary {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
        max-width: 300px;
    }

    /* --- Sections --- */
    section {
        padding: 60px 5%;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* --- Grids --- */
    .two-col-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .two-col-grid > div {
        width: 100% !important;
    }

    /* --- Page Headers --- */
    .page-header {
        padding: 120px 5% 60px !important;
    }

    .page-header h1,
    .page-header h1[style] {
        font-size: 2.2rem !important;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* --- Cards --- */
    .card {
        padding: 25px;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    /* --- Vision Grid --- */
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- Programs --- */
    .program-item,
    .program-item:nth-child(even) {
        flex-direction: column;
        gap: 25px;
    }

    .program-image {
        flex: none;
        width: 100%;
        height: 250px;
    }

    .program-content h2,
    .program-content h2[style] {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    /* --- Board / Member Cards --- */
    .member-card-layout {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 25px 15px !important;
        text-align: center;
        width: 100% !important;
        overflow: hidden;
    }

    .member-card-layout .member-avatar {
        width: 120px !important;
        height: 140px !important;
        font-size: 3rem !important;
        margin: 0 auto;
    }

    .member-card-layout>div:last-child {
        min-width: unset !important;
        width: 100%;
    }

    .member-card-layout h3,
    .member-card-layout h3[style] {
        font-size: 1.6rem !important;
    }

    .member-card-layout .member-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* --- Board Grid (compact) --- */
    .board-grid {
        grid-template-columns: 1fr;
    }

    .board-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    /* --- Event Cards --- */
    .event-card-layout {
        flex-direction: column !important;
        border-radius: 20px;
        overflow: hidden;
    }

    .event-card-layout>div:first-child {
        min-width: unset !important;
        padding: 25px !important;
        flex-direction: row !important;
        gap: 10px;
    }

    .event-card-layout>div:last-child {
        min-width: unset !important;
        padding: 25px !important;
    }

    .event-card-layout h3,
    .event-card-layout h3[style] {
        font-size: 1.6rem !important;
    }

    /* --- Past Events Section --- */
    #past-events .reveal>div {
        padding: 25px !important;
    }

    #past-events h3[style] {
        font-size: 1.6rem !important;
    }

    /* --- Scripture Cards --- */
    .scripture-grid {
        grid-template-columns: 1fr !important;
    }
}

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

    /* --- Hero --- */
    .hero {
        padding: 100px 4% 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    /* --- Sections --- */
    section {
        padding: 50px 4%;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    /* --- Page Headers --- */
    .page-header {
        padding: 100px 4% 50px !important;
    }

    .page-header h1,
    .page-header h1[style] {
        font-size: 1.8rem !important;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* --- Cards --- */
    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    /* --- Programs --- */
    .program-image {
        height: 250px;
    }

    .program-content h2,
    .program-content h2[style] {
        font-size: 1.5rem !important;
    }

    /* --- Board Members --- */
    .member-card-layout {
        padding: 20px !important;
    }

    .member-card-layout .member-avatar {
        width: 140px !important;
        height: 160px !important;
        margin-bottom: 10px;
    }

    .member-card-layout {
        padding: 20px 15px !important;
    }

    .member-card-layout h3 {
        font-size: 1.5rem !important;
    }

    .member-card-layout p {
        font-size: 0.95rem !important;
    }

    .member-card-layout h3,
    .member-card-layout h3[style] {
        font-size: 1.4rem !important;
    }

    /* --- Events --- */
    .event-card-layout>div:first-child {
        padding: 20px !important;
    }

    .event-card-layout>div:first-child span:first-child {
        font-size: 2rem !important;
    }

    .event-card-layout>div:last-child {
        padding: 20px !important;
    }

    .event-card-layout h3,
    .event-card-layout h3[style] {
        font-size: 1.3rem !important;
    }

    /* --- Past Events --- */
    #past-events .reveal>div {
        padding: 20px !important;
    }

    #past-events h3[style] {
        font-size: 1.3rem !important;
    }

    /* --- Four Pillars --- */
    .pillars-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Bylaws --- */
    .bylaws-content {
        padding: 20px !important;
    }

    .bylaws-content h2 {
        font-size: 1.3rem;
    }

    .bylaws-content h1 {
        font-size: 1.6rem !important;
    }

    .bylaws-content .article-title {
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    footer {
        padding: 40px 4%;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* --- About Page Headings --- */
    #mission-vision h2[style] {
        font-size: 1.6rem !important;
    }

    /* --- Nav --- */
    nav {
        padding: 0.8rem 4%;
    }

    nav .logo-container img {
        height: 40px;
    }

    .logo-text-main {
        font-size: 1rem;
    }

    .logo-text-sub {
        font-size: 0.6rem;
    }

    /* --- Sponsor/Info Boxes --- */
    .two-col-grid>div[style*="padding: 50px"],
    #contact form[style*="padding: 40px"],
    #why-join-us div[style*="padding: 60px"] {
        padding: 25px 20px !important;
    }

    #why-join-us h2, #why-join-us p {
        text-align: left !important;
    }

    /* --- Buttons --- */
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}