/* ==========================================================================
   Glory Community Church - Stylesheet
   Structure follows small-business-website-template. The palette is sampled
   from the GCC logo artwork, and the type echoes the logo lockup: a heavy,
   wide sans (GLORY) over spaced roman capitals (COMMUNITY CHURCH).
   ========================================================================== */

/* Fonts: self-hosted (SIL Open Font License, see assets/fonts/OFL-*.txt)
   so no visitor data is sent to Google when the page loads. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-ad60be.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-italic-6522a4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-ac5feb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-ac5feb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;

    /* Brand colours (from the logo) */
    --black: #000000;
    --coal: #0b0706;
    --crimson: #d0161c;
    --crimson-hot: #e8301d;
    --gold: #f5b52e;
    --bone: #f5f0ea;
    --muted: #b9ada5;
    --faint: #8f827a;
    --line: rgba(245, 240, 234, 0.12);
    --line-strong: rgba(245, 240, 234, 0.28);

    /* Type */
    --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Times New Roman', Times, serif;

    /* Layout */
    --max: 1240px;
    --gutter: clamp(20px, 5vw, 56px);
    --section-y: clamp(72px, 9vw, 128px);
    --nav-h: 84px;
}

/* ============================================
   Base
   ============================================ */

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

html {
    background: var(--black);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--black);
    color: var(--bone);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

::selection {
    background: var(--crimson);
    color: #fff;
}

.container {
    width: min(var(--max), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Type
   ============================================ */

.display {
    font-family: var(--font-sans);
    font-weight: 800;
    font-stretch: 125%;
    font-size: clamp(2rem, 5.4vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

/* Roman capitals under a heavy headline, finished with a short gold rule -
   the same lockup as "COMMUNITY CHURCH" and the gold hill in the logo. */
.lockup-sub {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lockup-sub::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 2px;
    margin-left: 16px;
    vertical-align: middle;
    background: var(--gold);
}

.eyebrow {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-header {
    display: grid;
    gap: clamp(14px, 1.6vw, 20px);
    margin-bottom: clamp(48px, 6vw, 80px);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--crimson);
    color: #fff;
}

.btn-primary:hover {
    background: var(--crimson-hot);
}

.btn-secondary {
    border-color: var(--line-strong);
    color: var(--bone);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--nav-h);
}

.navbar.scrolled,
.navbar.menu-open {
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 1px 0 var(--line);
}

/* Join online banner: live countdown to the Sunday service, top left of the header. */
.nav-live {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 18px 0 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    color: var(--bone);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav-live:hover {
    border-color: var(--gold);
}

.nav-live .live-dot {
    width: 10px;
    height: 10px;
    animation: none;
}

.nav-live-label {
    font-weight: 700;
    font-stretch: 112%;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-live-time {
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
    font-weight: 600;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}

.nav-live-prefix {
    display: none;
}

.nav-live.is-live {
    background: rgba(208, 22, 28, 0.18);
    border-color: var(--crimson);
}

.nav-live.is-live .live-dot {
    animation: live-pulse 1.8s ease-out infinite;
}

.nav-live.is-live .nav-live-time {
    color: #fff;
}

@media (min-width: 1201px) {
    .nav-live-prefix {
        display: inline;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 40px);
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-block: 6px;
    font-weight: 600;
    font-stretch: 112%;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(245, 240, 234, 0.78);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bone);
}

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

.nav-link.nav-cta {
    padding: 12px 20px;
    background: var(--crimson);
    border-radius: 2px;
    color: #fff;
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover,
.nav-link.nav-cta.active {
    background: var(--crimson-hot);
    color: #fff;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: var(--bone);
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-bottom: clamp(48px, 5vw, 72px);
    background: var(--black);
}

/* The logo's own flame swirl (wordmark removed), blurred and widened, carries the fire to the edges. */
.hero-ambient {
    position: absolute;
    inset: -6%;
    z-index: -1;
    background: url("../assets/images/gcc-flame-ground.jpg") center / cover no-repeat;
    filter: blur(44px) saturate(1.25);
    opacity: 0.5;
    animation: ember-glow 9s ease-in-out infinite alternate;
}

/* Cropped to the logo band of the square artwork, so no dead space sits under it. */
.hero-art {
    width: min(100%, 820px, 88vh);
    aspect-ratio: 750 / 480;
    margin: calc(var(--nav-h) * -0.25) auto 0;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
    mask-composite: intersect;
    animation: hero-rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes ember-glow {
    from { opacity: 0.4; }
    to { opacity: 0.62; }
}

@keyframes hero-rise {
    from { opacity: 0.35; transform: scale(1.04); }
    to { opacity: 1; transform: none; }
}

.hero-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
    max-width: 1040px;
    margin-top: clamp(-24px, -1.5vw, -8px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 48px;
}

.hero-facts dt {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-facts dd {
    font-weight: 700;
    font-stretch: 112%;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================
   About: Vision & Mission
   ============================================ */

.about {
    padding-block: var(--section-y);
}

.vision {
    display: grid;
    gap: 28px;
    max-width: 1080px;
}

.vision-text {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.6vw, 3.1rem);
    line-height: 1.16;
    letter-spacing: -0.005em;
    text-wrap: pretty;
}

.vision-text em {
    font-style: italic;
    color: var(--gold);
}

.mission {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 7vw, 112px);
    align-items: center;
    margin-top: clamp(64px, 8vw, 112px);
}

.mission-body {
    display: grid;
    gap: 24px;
    max-width: 36rem;
}

.mission-text {
    font-size: clamp(1.15rem, 1.5vw, 1.375rem);
    line-height: 1.6;
}

/* ============================================
   Photos and photo placeholders
   ============================================ */

.photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--coal);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 50%);
}

.photo--portrait {
    aspect-ratio: 4 / 5;
}

/* Placeholder ground: a dim crop of the logo's own flame swirl. */
.photo--placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../assets/images/gcc-flame-ground.jpg") no-repeat;
    background-size: 300%;
    background-position: var(--focus, 0% 80%);
    opacity: 0.6;
}

.photo--placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px var(--line);
    pointer-events: none;
}

.photo-label {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: grid;
    gap: 6px;
}

.photo-name {
    font-weight: 700;
    font-stretch: 112%;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.photo-name span {
    color: var(--gold);
}

.photo-spec {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--muted);
}

/* ============================================
   Core Values
   ============================================ */

.values {
    padding-block: var(--section-y);
    background: var(--coal);
}

.values-layout {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.values-aside {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    display: grid;
    gap: clamp(28px, 3vw, 40px);
}

.values-aside .section-header {
    margin-bottom: 0;
}

.values-photo {
    aspect-ratio: 1 / 1;
}

.values-list {
    border-top: 1px solid var(--line-strong);
}

.value {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 10px 40px;
    align-items: baseline;
    padding-block: clamp(26px, 3vw, 36px);
    border-bottom: 1px solid var(--line);
}

.value-title {
    font-weight: 700;
    font-stretch: 115%;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.value-text {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    line-height: 1.4;
    color: rgba(245, 240, 234, 0.86);
}

/* ============================================
   Goals & Objectives
   ============================================ */

.goals {
    padding-block: var(--section-y);
}

.goals-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.goals-photo {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
}

.goal {
    display: grid;
    grid-template-columns: clamp(48px, 6vw, 80px) minmax(0, 1fr);
    gap: 20px;
    padding-block: clamp(24px, 3vw, 34px);
    border-top: 1px solid var(--line);
}

.goal:last-child {
    border-bottom: 1px solid var(--line);
}

.goal-num {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 0.9;
    color: var(--gold);
}

.goal p {
    max-width: 40em;
    font-size: clamp(1.05rem, 1.3vw, 1.175rem);
    line-height: 1.6;
    color: var(--muted);
}

.goal strong {
    font-weight: 700;
    color: var(--bone);
}

/* ============================================
   GCC Worship
   ============================================ */

.worship {
    position: relative;
    background: var(--black);
}

.worship-photo {
    position: relative;
    height: clamp(520px, 62vw, 820px);
    margin: 0;
    overflow: hidden;
}

.worship-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 40%;
}

/* Legibility scrim: fades the photo into the black above and below it. */
.worship-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--black) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.74) 80%, var(--black) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%);
}

.worship-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(48px, 7vw, 96px);
}

.worship-body .section-header {
    margin-bottom: 24px;
}

.worship-text {
    max-width: 20em;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.25;
    text-wrap: balance;
}

/* ============================================
   Join Online
   ============================================ */

.online {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--section-y);
    background: var(--black);
}

/* Same flame ground as the hero, kept low so the clock reads first. */
.online-ambient {
    position: absolute;
    inset: -10%;
    z-index: -1;
    background: url("../assets/images/gcc-flame-ground.jpg") center / cover no-repeat;
    filter: blur(52px) saturate(1.2);
    opacity: 0.38;
}

.online-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.online-layout .section-header {
    margin-bottom: 0;
}

.online-panel {
    display: grid;
    justify-items: start;
    gap: 20px;
    padding: clamp(24px, 4vw, 48px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 0 0 1px var(--line);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    border-block: 1px solid var(--line);
}

.countdown-unit {
    display: grid;
    gap: 6px;
    padding: 18px 4px 16px;
    text-align: center;
}

.countdown-unit + .countdown-unit {
    box-shadow: inset 1px 0 0 var(--line);
}

.countdown-num {
    font-weight: 800;
    font-stretch: 125%;
    font-size: clamp(2rem, 6vw, 4.75rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.countdown-live {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-stretch: 125%;
    font-size: clamp(1.6rem, 3.6vw, 2.75rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.live-dot {
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--crimson);
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    from { box-shadow: 0 0 0 0 rgba(208, 22, 28, 0.6); }
    to { box-shadow: 0 0 0 16px rgba(208, 22, 28, 0); }
}

.countdown-next {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--muted);
}

.online-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* ============================================
   Where & When
   ============================================ */

.visit {
    padding-block: var(--section-y);
    background: var(--coal);
}

.visit-photo {
    position: relative;
    aspect-ratio: 21 / 9;
    margin: 0 0 clamp(48px, 6vw, 80px);
    overflow: hidden;
}

.visit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 42%;
}

.visit-photo figcaption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.visit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: stretch;
}

.schedule {
    border-top: 1px solid var(--line-strong);
}

.schedule-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 3fr) 6fr auto;
    gap: 6px 24px;
    align-items: baseline;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.schedule-day {
    font-weight: 800;
    font-stretch: 118%;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-what small {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
}

.schedule-when {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.schedule-row--main .schedule-when {
    font-size: 1.25rem;
    color: var(--gold);
}

.schedule-when.is-tbc {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--faint);
}

.venue {
    display: grid;
    gap: 10px;
    margin-top: clamp(40px, 5vw, 56px);
    font-style: normal;
}

.venue-name {
    font-weight: 800;
    font-stretch: 118%;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.venue-address {
    color: var(--muted);
}

.venue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.map {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--black);
    box-shadow: inset 0 0 0 1px var(--line);
}

/* Darkens Google's light map to sit in the page; hue-rotate keeps the pin red. */
.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95) contrast(0.95);
}

/* Static stand-in used where map iframes are blocked (e.g. the preview). */
.map-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
}

.map-panel-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-panel-body {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: clamp(24px, 3vw, 36px);
}

.map-panel-name {
    font-weight: 800;
    font-stretch: 118%;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.map-panel-address {
    color: var(--muted);
}

.map-panel-body .btn {
    margin-top: 14px;
}

.map-panel-note {
    max-width: 30em;
    margin-top: 8px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--faint);
}

.map-panel-note a {
    color: var(--muted);
    text-underline-offset: 3px;
}

/* ============================================
   Contact
   ============================================ */

.contact {
    padding-block: var(--section-y);
}

.contact-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.contact-layout .section-header {
    margin-bottom: 0;
}

.contact-list {
    border-top: 1px solid var(--line-strong);
}

.contact-item {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 4px 24px;
    align-items: baseline;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.contact-item dt {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-item dd {
    font-weight: 600;
    font-stretch: 108%;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.contact-item dd a {
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.contact-item dd a:hover {
    color: var(--gold);
}

.contact-item dd.is-placeholder {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-stretch: 100%;
    color: var(--faint);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.social-links .btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding-block: clamp(64px, 8vw, 96px) 40px;
    background: var(--black);
    border-top: 1px solid var(--line);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: block;
    align-self: start;
}

.footer-logo {
    width: 240px;
}

.footer-title {
    margin-bottom: 14px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-col p:not(.footer-title),
.footer-links {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
}

.footer-links a {
    text-decoration: none;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--faint);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal a:hover {
    color: var(--bone);
}

/* ============================================
   Legal pages (privacy notice)
   ============================================ */

.legal-header {
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid var(--line);
}

.legal-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--nav-h);
}

.legal-logo img {
    width: auto;
    height: 40px;
}

.legal {
    padding-block: clamp(56px, 7vw, 96px) var(--section-y);
}

.legal-body {
    max-width: 46rem;
}

.legal-body h1 {
    margin-block: 14px 12px;
}

.legal-updated {
    margin-bottom: 40px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--muted);
}

.legal-body h2 {
    margin: 48px 0 14px;
    font-weight: 800;
    font-stretch: 118%;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    scroll-margin-top: 24px;
}

.legal-body h3 {
    margin: 26px 0 8px;
    font-weight: 700;
    font-size: 1.05rem;
}

.legal-body p,
.legal-body li {
    line-height: 1.7;
    color: var(--muted);
}

.legal-body p + p {
    margin-top: 12px;
}

.legal-body ul + p {
    margin-top: 18px;
}

.legal-body ul {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-left: 1.25em;
    list-style: disc;
}

.legal-body li::marker {
    color: var(--gold);
}

.legal-body strong {
    color: var(--bone);
}

.legal-body a {
    color: var(--bone);
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
    :root {
        --nav-h: 72px;
    }

    .navbar .container {
        gap: 12px;
    }

    /* Banner spans the header, left of the menu button. */
    .nav-live {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 14px;
    }

    .nav-live-time {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        padding: 8px var(--gutter) 28px;
        background: rgba(0, 0, 0, 0.97);
        box-shadow: 0 1px 0 var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--line);
    }

    .nav-menu li:last-child {
        padding-top: 20px;
        border-bottom: 0;
    }

    .nav-link {
        display: block;
        padding-block: 18px;
        font-size: 0.9rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.nav-cta {
        padding: 16px 20px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .mission,
    .values-layout,
    .goals-layout,
    .online-layout,
    .visit-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .values-aside {
        position: static;
    }

    /* Stays a positioning box: its caption and flame ground are placed inside it. */
    .goals-photo {
        position: relative;
        top: auto;
    }

    .online-layout .section-header,
    .contact-layout .section-header {
        margin-bottom: 8px;
    }

    .mission .photo,
    .values-photo,
    .goals-photo {
        max-width: 520px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .worship-photo {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .worship-photo img {
        object-position: 64% 35%;
    }

    .worship-photo::after {
        background: linear-gradient(to bottom, var(--black) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 62%, var(--black) 100%);
    }

    .worship-body {
        position: relative;
        z-index: 1;
        bottom: auto;
        margin-top: -20px;
        padding-bottom: var(--section-y);
    }

    .visit-photo {
        aspect-ratio: 4 / 3;
    }

    .visit-photo img {
        object-position: 84% 45%;
    }
}

@media (max-width: 640px) {
    .hero-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn,
    .online-actions .btn {
        flex: 1 1 100%;
    }

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

    .schedule-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .schedule-day {
        grid-column: 1 / -1;
        font-size: 0.8rem;
        color: var(--gold);
    }

    .contact-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-item dd {
        font-size: 1.05rem;
        overflow-wrap: anywhere;
    }

    .footer-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
