:root {
    --ink: #17212b;
    --muted: #68737d;
    --paper: #f7f3ea;
    --cream: #fffaf1;
    --gold: #c99a3d;
    --brick: #8f4635;
    --teal: #1f6b70;
    --navy: #132033;
    --line: rgba(23, 33, 43, .14);
    --shadow: 0 24px 70px rgba(19, 32, 51, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: .7rem 1rem;
    background: var(--navy);
    color: white;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: .65rem clamp(1rem, 4vw, 3rem);
    background: rgba(255, 250, 241, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: min(300px, 42vw);
    height: auto;
}

nav {
    display: flex;
    justify-content: center;
    gap: clamp(.75rem, 3vw, 2rem);
}

nav a,
.header-action,
.footer-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
}

nav a[aria-current="page"] {
    color: var(--brick);
}

.header-action {
    padding: .72rem 1rem;
    color: white;
    background: var(--teal);
    border-radius: .4rem;
}

.hero {
    position: relative;
    min-height: 86vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: white;
    isolation: isolate;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media {
    background: url("calvary-building.jpg") center 42%/cover no-repeat;
    transform: scale(1.01);
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(19, 32, 51, .82) 0%, rgba(19, 32, 51, .58) 36%, rgba(19, 32, 51, .08) 78%),
        linear-gradient(0deg, rgba(19, 32, 51, .72) 0%, rgba(19, 32, 51, 0) 46%);
}

.hero-content {
    width: min(760px, calc(100% - 2rem));
    margin: 0 0 clamp(7rem, 12vh, 9rem) clamp(1rem, 7vw, 6rem);
}

.eyebrow {
    margin: 0 0 .75rem;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1,
.section h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.04;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(3.2rem, 10vw, 7.4rem);
}

.hero-content > p:not(.eyebrow) {
    max-width: 620px;
    margin: 1.3rem 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: .82rem 1.1rem;
    border: 0;
    border-radius: .42rem;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.65rem;
}

.primary {
    color: var(--navy);
    background: var(--gold);
}

.ghost {
    color: white;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .36);
}

.next-service {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
    gap: .75rem;
    width: min(520px, calc(100% - 2rem));
}

.next-service div {
    padding: 1rem;
    background: rgba(255, 250, 241, .92);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .5rem;
    box-shadow: var(--shadow);
}

.next-service span,
.next-service small {
    display: block;
    color: var(--muted);
}

.next-service strong {
    display: block;
    color: var(--brick);
    font-size: 1.7rem;
    line-height: 1.15;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 5rem);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.section-heading h2,
.two-column h2,
.connect h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.visit-band {
    background: var(--paper);
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card,
.location-panel,
.belief-grid article,
.contact-form {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: 0 16px 45px rgba(23, 33, 43, .08);
}

.service-card,
.location-panel {
    padding: 1.4rem;
}

.service-card span {
    color: var(--teal);
    font-weight: 800;
}

.service-card h3 {
    margin: .2rem 0;
    color: var(--brick);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.service-card p,
.location-panel p {
    margin: 0;
    color: var(--muted);
}

.quick-links {
    display: flex;
    gap: .7rem;
    margin-top: 1.1rem;
}

.quick-links a {
    padding: .58rem .8rem;
    color: white;
    background: var(--navy);
    border-radius: .35rem;
    text-decoration: none;
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: start;
}

.copy-stack {
    color: #3e4953;
    font-size: 1.08rem;
}

.beliefs {
    color: white;
    background: var(--navy);
}

.beliefs .section-heading h2 {
    color: white;
}

.compact {
    margin-bottom: 1.35rem;
}

.belief-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.belief-grid article {
    min-height: 14rem;
    padding: 1.2rem;
    color: white;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
}

.belief-grid span {
    color: var(--gold);
    font-weight: 900;
}

.ministries {
    background: #fdfbf6;
}

.ministry-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.ministry-list span {
    padding: .8rem 1rem;
    background: white;
    border: 1px solid var(--line);
    border-left: .3rem solid var(--teal);
    border-radius: .45rem;
    font-weight: 800;
}

.connect {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .65fr);
    gap: clamp(2rem, 6vw, 5rem);
    background: var(--paper);
}

.connect-copy p:not(.eyebrow) {
    color: var(--muted);
}

dl {
    display: grid;
    gap: .8rem;
    margin: 1.5rem 0 0;
}

dt {
    color: var(--brick);
    font-weight: 900;
}

dd {
    margin: .1rem 0 0;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 4vw, 2rem);
}

label {
    display: grid;
    gap: .35rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: .85rem .9rem;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: .38rem;
    font: inherit;
}

textarea {
    resize: vertical;
}

.notice {
    margin: 0;
    padding: .8rem 1rem;
    border-radius: .38rem;
    font-weight: 800;
}

.success {
    color: #0d4c31;
    background: #dff4e8;
}

.error {
    color: #83222a;
    background: #f8dfe2;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem clamp(1rem, 6vw, 5rem);
    color: white;
    background: #0e1724;
}

.site-footer p {
    margin: .25rem 0 0;
    color: rgba(255, 255, 255, .7);
}

.video-hero {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
    color: white;
    background:
        linear-gradient(90deg, rgba(19, 32, 51, .94), rgba(19, 32, 51, .76)),
        url("calvary-building.jpg") center/cover no-repeat;
}

.video-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 1.04;
}

.video-hero p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.12rem;
}

.feed-note {
    padding: .9rem 1rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: .45rem;
}

.video-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1.25rem clamp(1rem, 6vw, 5rem);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.search-box {
    max-width: 720px;
}

.video-count {
    min-width: 9rem;
    padding: .8rem 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: .5rem;
    text-align: center;
}

.video-count strong,
.video-count span {
    display: block;
}

.video-count strong {
    color: var(--brick);
    font-size: 1.8rem;
    line-height: 1;
}

.video-count span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
    background: #fdfbf6;
}

.video-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: 0 16px 45px rgba(23, 33, 43, .08);
}

.video-card[hidden] {
    display: none;
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: var(--navy);
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-body {
    padding: 1rem;
}

.video-body time {
    color: var(--teal);
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.video-body h2 {
    margin: .35rem 0 .5rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

.video-body p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.empty-videos {
    padding: 4rem clamp(1rem, 6vw, 5rem);
    background: #fdfbf6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    nav {
        grid-column: 1 / -1;
        justify-content: start;
        overflow-x: auto;
    }

    .section-heading,
    .visit-grid,
    .two-column,
    .belief-grid,
    .connect,
    .video-tools,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .belief-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 92vh;
    }

    .hero-content {
        margin: 0 1rem 12.5rem;
    }

    .next-service {
        grid-template-columns: 1fr;
    }

    .belief-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        display: grid;
    }
}
