/* ===========================
   DESIGN TOKENS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --primary-color: #1e88e5;
    --primary-dark: #0d47a1;
    --secondary-color: #c62828;
    --bg-light: #f5f5f5;
    --text-main: #333333;
    --text-muted: #555555;
    --font-main: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Dancing Script', cursive;

    /* 8px Spacing Scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;


    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    background-color: white;
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

section {
    padding: var(--space-2xl) 8%;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: var(--space-xs);
    border-bottom: 1px solid #e8e8e8;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--text-main);
    cursor: pointer;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-family: var(--font-script);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: var(--text-muted);
}

.navbar a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--secondary-color);
}

/* MENU ICON (mobile only) */
.menu-icon {
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    color: white;
    transition: 0.4s ease;
    padding: var(--space-md);
    z-index: 9999;
    overflow-y: auto;
}

.overlay.active {
    right: 0;
}

.close-btn {
    font-size: 24px;
    text-align: right;
    cursor: pointer;
}

.menu-links {
    list-style: none;
    padding: var(--space-md) 0;
}

.menu-links li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.overlay a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: block;
}

/* DESKTOP NAV */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .menu-icon {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .desktop-nav ul {
        display: flex;
        gap: var(--space-sm);
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .desktop-nav ul li {
        cursor: pointer;
        font-weight: 600;
        position: relative;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background-color: var(--secondary-color);
        transition: width 0.3s ease;
    }

    .desktop-nav a:hover::after,
    .desktop-nav a.active::after {
        width: 100%;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: var(--secondary-color);
    }

    .navbar {
        padding: var(--space-sm) var(--space-xl);
    }

    .logo {
        width: 56px;
        height: 56px;
    }

    .brand-text h2 {
        font-size: 24px;
    }

    .tagline {
        font-size: 18px;
    }
}

/* ===========================
   SHARED PAGE HEADER
   (used by about, contact, location)
=========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark))
    ;
    color: white;
    padding: var(--space-3xl) var(--space-md) var(--space-xl);
}

.page-header .header-content {
    max-width: 1100px;
    margin: auto;
}

.page-header .line {
    width: var(--space-xl);
    height: 4px;
    background: white;
    margin-bottom: var(--space-sm);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* ===========================
   HERO (Homepage)
=========================== */
.hero-home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #08111d;
    --cms-banner-image: none;
    background-image: url('images/hq_bg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: clamp(96px, 12vh, 132px) var(--space-md) clamp(48px, 9vh, 96px);
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 10, 18, 0.44), rgba(5, 10, 18, 0.72));
    z-index: 0;
}

.hero-home.has-cms-banner {
    background-image: var(--cms-banner-image);
    background-size: cover;
    background-position: center 16%;
}

.hero-home.has-cms-banner::before {
    background: linear-gradient(
        180deg,
        rgba(5, 10, 18, 0.22) 0%,
        rgba(5, 10, 18, 0.34) 34%,
        rgba(5, 10, 18, 0.78) 100%
    );
}

.hero-home.has-cms-banner .hero-content {
    max-width: min(720px, 100%);
    margin: 0 auto;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-xs);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);

}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

/* Bible Verse Glass Card */
.hero-verse-card {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-sm);
    text-align: left;
    color: var(--text-color);
}

.hero-verse-card .verse-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-verse-card .verse-text {
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 4px;
}

.hero-verse-card .verse-ref {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .hero-home {
        background-attachment: fixed;
    }

    .hero-home.has-cms-banner {
        background-position: center 12%;
        padding-bottom: 11vh;
    }

    .hero-home.has-cms-banner .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .hero-desc {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .hero-home.has-cms-banner::after {
        inset: 84px 12px 230px;
    }
}

/* ===========================
   BUTTONS
=========================== */
.hero-buttons {
    margin-top: var(--space-md);
}

.btn {
    padding: var(--space-xs) var(--space-md);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin: 4px;
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(2px);
}

.btn.red {
    background: var(--secondary-color);
    color: white;
}

.btn.light {
    background: #eee;
    color: var(--text-main);
}

/* ===========================
   DON'T GIVE UP SECTION
=========================== */
.donotgiveup {
  width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--space-2xl) 8%;
    align-items: center;
    border-top: 4px solid var(--secondary-color);
}

.dg-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-lg);
}

.dg-content h2 {
    font-size: 32px;
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    flex-shrink: 0;
}

.dg-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
    font-style: italic;
    font-weight: 600;
}

.verse-ref {
    display: block;
    font-size: 14px;
    margin-top: var(--space-xs);
    font-weight: 600;
    font-style: normal;
    color: #e3f2fd;
}

@media (max-width: 768px) {
    .dg-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ===========================
   EVENTS & SERMONS GRID
=========================== */
.updates {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-md);
    width: 100%;
    max-width: none;
    margin: 0;
}

.column h3 {
    font-size: 18px;
    margin-bottom: var(--space-md);
    position: relative;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.column h3::before {
    content: "";
    width: var(--space-xl);
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    position: absolute;
    top: -12px;
}

.item {
    display: flex;
    gap: 18px;
    background: var(--bg-light);
    padding: 18px;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-lg);
    align-items: flex-start;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.item:hover {
    transform: translateY(-4px);

}

.image-box {
    position: relative;
    flex-shrink: 0;
    width: 96px;
}

.image-box img {
    width: 96px;
    height: 76px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

.image-box .date {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 700;
}

.item h4 {
    font-size: 16px;
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.item p {
    font-size: 13px;
    color: gray;
    margin: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 10px;
    line-height: 1.4;
}

.item-meta {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.item-meta i {
    font-size: 11px;
}

@media (max-width: 767px) {
    .item {
        padding: 16px;
        gap: 14px;
    }

    .image-box {
        width: 84px;
    }

    .image-box img {
        width: 84px;
        height: 68px;
    }

    .item h4 {
        font-size: 15px;
    }

    .item p,
    .item-desc {
        font-size: 12px;
    }

    .item-meta {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .updates {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        padding: var(--space-3xl) 8%;
    }
}

@media (min-width: 1024px) {
    .updates {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--space-2xl) 8% var(--space-lg);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg);
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    margin-bottom: var(--space-sm);
    font-size: 18px;
    color: white;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: var(--space-lg);
    padding-top: var(--space-sm);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ===========================
   DESKTOP TYPOGRAPHY
=========================== */
@media (min-width: 768px) {
    body {
        font-weight: 500;
    }

    p {
        font-weight: 500;
    }

    h1, h2, h3, h4 {
        font-weight: 700;
    }

    li {
        font-weight: 500;
    }

    a {
        font-weight: 600;
    }
}

/* ===========================
   MAP SECTION (Homepage)
=========================== */
.map-section {
    padding: var(--space-xl) 8%;
    background: var(--bg-light);
}

.map-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.map-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 var(--space-xs);
    color: var(--text-main);
}

.map-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .donotgiveup {
        padding: var(--space-xl) 5%;
    }
    .map-section {
        padding: var(--space-xl) 5%;
    }
    .hero-verse-card {
        border-left: none;
    }
}


.map-container iframe {
    display: block;
    width: 100%;
}
