
/* =========================================
   VOICE OF GRACE APOSTOLIC MISSION
   Premium Royal Blue & Champagne Gold Design
========================================= */

:root {
    --blue: #173B78;
    --deep-blue: #102B58;
    --gold: #C6A15B;
    --ivory: #F8F7F3;
    --white: #FFFFFF;
    --dark: #252B35;
    --muted: #6B7280;
    --border: #E9E7E1;
    --shadow: 0 15px 45px rgba(16, 43, 88, 0.09);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ivory);
    color: var(--dark);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 100px 7%;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: clamp(34px, 4.2vw, 53px);
    color: var(--blue);
}

h2 em, h1 em {
    color: var(--gold);
    font-style: italic;
}

p {
    color: var(--muted);
}

.section-label,
.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* HEADER */

.site-header {
    min-height: 88px;
    padding: 12px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(16,43,88,0.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    flex-shrink: 0;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand small,
.footer-brand small {
    display: block;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 21px;
}

.nav a {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    transition: color 0.25s;
}

.nav a:hover {
    color: var(--gold);
}

.nav .nav-cta {
    background: var(--blue);
    color: white;
    padding: 12px 19px;
    border-radius: 50px;
}

.nav .nav-cta:hover {
    background: var(--gold);
    color: white;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 29px;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 660px;
    padding: 110px 9%;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    background:
        linear-gradient(90deg, rgba(10,30,63,0.94), rgba(23,59,120,0.65)),
        url('https://images.unsplash.com/photo-1438032005730-c779502df39b?auto=format&fit=crop&w=1900&q=85')
        center/cover no-repeat;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.1;
    margin: 22px 0;
}

.hero-copy {
    max-width: 590px;
    color: rgba(255,255,255,0.85);
    font-size: 17px;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 32px;
}

.hero-note {
    position: absolute;
    bottom: 35px;
    right: 7%;
    color: rgba(255,255,255,0.65);
    font-size: 10px;
    letter-spacing: 4px;
}

/* BUTTONS */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button.gold {
    background: var(--gold);
    color: white;
}

.button.gold:hover {
    background: white;
    color: var(--blue);
}

.button.ghost {
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
    background: transparent;
}

.button.ghost:hover {
    background: white;
    color: var(--blue);
}

.button.dark {
    background: var(--blue);
    color: white;
}

.button.dark:hover {
    background: var(--gold);
}

/* WELCOME / ABOUT */

.welcome {
    background: var(--ivory);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: start;
    margin-top: 25px;
}

.welcome-grid h2 {
    max-width: 470px;
    font-size: clamp(40px, 5vw, 60px);
}

.welcome-grid p {
    margin-bottom: 17px;
}

.welcome-grid .lead {
    color: var(--blue);
    font-size: 20px;
    font-weight: 700;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--blue);
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

/* PASTOR */

.pastor-band {
    padding: 65px 8%;
    background: var(--blue);
    color: white;
}

.pastor-inner {
    max-width: 1050px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 35px;
}

.pastor-mark {
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 35px;
}

.pastor-inner h2 {
    color: white;
    font-size: clamp(30px, 4vw, 43px);
    margin: 10px 0;
}

.pastor-inner .muted {
    color: rgba(255,255,255,0.75);
}

/* DAILY GRACE */

.daily {
    background: white;
}

.section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.section-top h2 {
    margin-top: 12px;
}

.section-top > p {
    max-width: 330px;
}

.grace-card {
    max-width: 850px;
    padding: 50px;
    border-radius: 28px;
    background: var(--ivory);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.grace-date {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.grace-card h3 {
    font-size: clamp(27px, 4vw, 39px);
    color: var(--blue);
    margin-bottom: 12px;
}

.grace-card .scripture {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 20px;
}

/* SERMONS */

.sermons {
    background: var(--ivory);
}

.empty-feature {
    min-height: 230px;
    padding: 45px;
    display: flex;
    align-items: center;
    gap: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.empty-feature h3 {
    color: var(--blue);
    font-size: 27px;
    margin: 10px 0;
}

.play {
    width: 75px;
    height: 75px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F3E9D5;
    color: var(--blue);
    font-size: 22px;
    padding-left: 4px;
}

/* DYNAMIC SERMON LIBRARY */

.live-sermon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.live-sermon-list .empty-feature {
    min-height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.live-sermon-list .empty-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(16,43,88,0.13);
}

.live-sermon-list .empty-feature img {
    width: 100% !important;
    max-width: none !important;
    height: 210px;
    object-fit: cover;
    border-radius: 0 !important;
}

.live-sermon-list .empty-feature > div {
    width: 100%;
    padding: 27px;
}

.live-sermon-list .empty-feature h3 {
    font-size: 24px;
}

.live-sermon-list .empty-feature p {
    margin-bottom: 10px;
}

.live-sermon-list .empty-feature .button {
    margin-top: 12px;
    display: inline-flex;
    width: fit-content;
}

/* EVENTS */

.events {
    background: white;
}

.events h2 {
    margin: 15px 0 35px;
}

.event-row {
    max-width: 950px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.event-date {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--blue);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-date strong {
    font-size: 23px;
}

.event-date span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-row h3 {
    color: var(--blue);
    font-size: 24px;
    margin-bottom: 6px;
}

.event-time {
    margin-left: auto;
    white-space: nowrap;
    color: var(--gold);
    font-weight: 700;
    font-size: 17px;
}

/* DYNAMIC EVENT LIST */

.live-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.live-event-list .event-row {
    width: 100%;
    max-width: none;
    min-height: 180px;
    padding: 25px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.live-event-list .event-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(16,43,88,0.12);
}

.live-event-list .event-row img {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 16px;
}

.live-event-list .event-row h3 {
    font-size: 21px;
}

.live-event-list .event-row p {
    font-size: 13px;
    margin-top: 5px;
}

.live-event-list .event-date {
    width: 75px;
    height: 75px;
    border-radius: 18px;
}

.live-event-list .event-date strong {
    font-size: 20px;
}

.live-event-list .event-time {
    font-size: 14px;
}

/* VISIT */

.visit {
    background: #EDF1F7;
}

.visit-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
    align-items: center;
}

.visit-grid h2 {
    margin: 15px 0;
}

.visit-grid > div:first-child > p {
    margin-bottom: 25px;
}

.visit-details {
    display: grid;
    gap: 15px;
}

.visit-details > div {
    padding: 23px 26px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(16,43,88,0.05);
}

.visit-details span {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.visit-details p {
    color: var(--dark);
    font-weight: 500;
}

.visit-details a:hover {
    color: var(--gold);
}

/* PRAYER */

.prayer {
    background: var(--ivory);
    text-align: center;
}

.prayer h2 {
    margin: 12px 0;
}

.prayer > p {
    max-width: 570px;
    margin: 0 auto;
}

.prayer-form {
    max-width: 650px;
    margin: 35px auto 0;
    padding: 38px;
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.prayer-form label {
    display: block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.prayer-form input,
.prayer-form textarea {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #FAFAF8;
    color: var(--dark);
    outline: none;
}

.prayer-form input:focus,
.prayer-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198,161,91,0.12);
}

.prayer-form textarea {
    resize: vertical;
}

.prayer-form button {
    margin-top: 5px;
}

.form-note {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.6;
}

/* GIVING */

.giving {
    background: var(--deep-blue);
    text-align: center;
    color: white;
}

.giving h2 {
    color: white;
    margin: 15px 0;
}

.giving > p {
    max-width: 620px;
    margin: 12px auto;
    color: rgba(255,255,255,0.78);
}

.giving .button {
    margin-top: 20px;
}

/* CONTACT */

.contact {
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact h2 {
    margin-top: 13px;
}

.contact > div:last-child p {
    margin-bottom: 18px;
}

.contact-phone {
    display: inline-block;
    color: var(--blue);
    font-size: 21px;
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

/* FOOTER */

footer {
    padding: 55px 7% 25px;
    background: #0B1D39;
    text-align: center;
    color: white;
}

.footer-brand {
    display: inline-block;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-brand small {
    margin-top: 5px;
}

footer p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin-top: 10px;
}

/* RESPONSIVE TABLETS */

@media (max-width: 1050px) {
    .site-header {
        padding-left: 4%;
        padding-right: 4%;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 11px;
    }

    .brand {
        font-size: 12px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }
}

/* RESPONSIVE PHONES */

@media (max-width: 760px) {

    section {
        padding: 70px 6%;
    }

    .site-header {
        min-height: 75px;
        padding: 9px 5%;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 6% 25px;
        background: white;
        box-shadow: 0 15px 25px rgba(0,0,0,0.09);
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav.open,
    .nav.active {
        display: flex;
    }

    .nav a {
        display: block;
        padding: 8px 0;
        font-size: 14px;
    }

    .nav .nav-cta {
        text-align: center;
        padding: 12px;
    }

    .hero {
        min-height: 570px;
        padding: 85px 7%;
        background-position: center;
    }

    .hero h1 {
        font-size: clamp(44px, 11vw, 62px);
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-note {
        left: 7%;
        right: auto;
        font-size: 9px;
    }

    .welcome-grid,
    .visit-grid,
    .contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .pastor-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .pastor-mark {
        width: 78px;
        height: 78px;
        font-size: 27px;
    }

    .grace-card,
    .empty-feature {
        padding: 27px;
    }

    .empty-feature {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .live-sermon-list {
        grid-template-columns: 1fr;
    }

    .live-event-list {
        grid-template-columns: 1fr;
    }

    .live-event-list .event-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding: 23px;
    }

    .live-event-list .event-time {
        margin-left: 0;
    }

    .event-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding: 23px;
    }

    .event-time {
        margin-left: 0;
    }

    .prayer-form {
        padding: 25px 20px;
    }
}

/* SMALL PHONES */

@media (max-width: 420px) {
    .brand {
        font-size: 11px;
    }

    .brand small {
        font-size: 8px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .actions .button {
        width: 100%;
    }

    .contact-phone {
        font-size: 18px;
    }
}
