/* New Hope Worship Center, preview site styles.
   Brand: New Hope Blue #0080FF, True Black, Pure White, Light Hope Blue #E6F3FF.
   --blue-ink is a darker step of New Hope Blue used only for small text links,
   because #0080FF on white is below WCAG AA contrast for body-size text. */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic-latin-var.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --blue: #0080ff;
  --blue-ink: #0062c4;
  --blue-light: #e6f3ff;
  --black: #000;
  --ink: #0b0b0c;
  --muted: #4a4f57;
  --white: #fff;
  --line: #d7e3f0;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--black); padding: 0.75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-ink); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }

/* Buttons. Text on blue is set large and bold so it meets the WCAG large-text ratio. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.7rem 1.5rem; border-radius: 999px;
  font-family: var(--sans); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #0070e0; }
.btn-black { background: var(--black); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--black); background: transparent; }
.btn-white { background: var(--white); color: var(--black); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.arrow::after { content: "\2192"; font-weight: 500; }
.ext::after { content: "\2197"; font-weight: 500; font-size: 0.9em; }

/* Header */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 3.6rem; width: auto; }
.nav-desktop { display: none; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; align-items: center; gap: 0.15rem; }
.nav-desktop a {
  color: var(--white); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  padding: 0.5rem 0.7rem; border-radius: 999px;
}
.nav-desktop a:hover { background: rgba(255,255,255,0.1); }
.nav-desktop a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn { min-height: 2.6rem; padding: 0.4rem 1.1rem; font-size: 1.2rem; }

.nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 0.9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
  font-weight: 600; font-size: 1rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .bars { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav-mobile[open] summary .bars { box-shadow: none; transform: rotate(45deg); }
.nav-mobile[open] summary .bars::after { content: ""; display: block; width: 100%; height: 2px; background: currentColor; transform: rotate(90deg); }
.nav-mobile .panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.15); padding: 0.5rem var(--pad) 1.5rem;
  max-height: calc(100vh - 4.5rem); overflow-y: auto;
}
.nav-mobile .panel a {
  display: block; color: var(--white); text-decoration: none; font-size: 1.35rem; font-weight: 600;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile .panel a[aria-current="page"] { color: var(--blue); }

@media (min-width: 64rem) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .brand img { height: 4rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(1.75rem, 6vw, 5.5rem) 0 clamp(2.5rem, 7vw, 6rem); }
.hero .wrap { position: relative; z-index: 1; }
.ring {
  position: absolute; border: 2px solid var(--blue); border-radius: 50%; pointer-events: none; opacity: 0.9;
}
.hero .ring { width: min(120vw, 58rem); aspect-ratio: 1; right: -88vw; top: -10rem; }
@media (max-width: 47.99rem) { .hero .ring:first-child { display: none; } }
@media (min-width: 48rem) { .hero .ring { right: max(-40vw, -24rem); top: -12rem; } }
.hero .ring + .ring { width: min(80vw, 38rem); right: max(-20vw, -12rem); top: 6rem; border-color: var(--blue-light); border-width: 1.5rem; opacity: 1; z-index: -1; }
.hero h1 { max-width: 14ch; }
.hero h1 .blue { color: var(--blue); }

.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background: var(--blue-light); position: relative; overflow: hidden; }
.page-hero .ring { width: 12rem; aspect-ratio: 1; right: -7rem; top: -9rem; }
@media (min-width: 48rem) { .page-hero .ring { width: 30rem; right: -10rem; top: -14rem; } }
.page-hero h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); max-width: 16ch; }
.page-hero .wrap { position: relative; }

/* Home: Sunday card sits inside the first mobile screen */
.sunday {
  margin-top: 1.5rem; background: var(--black); color: var(--white); border-radius: var(--radius);
  padding: 1.25rem; display: grid; gap: 1rem; max-width: 44rem;
}
.sunday .when { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.sunday .when strong { font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 700; line-height: 1; color: var(--white); letter-spacing: -0.02em; }
.sunday .when span { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; color: #9fcfff; font-weight: 600; }
.sunday address { font-style: normal; font-size: 1.05rem; line-height: 1.4; }
.sunday address a { color: var(--white); }
.sunday .btn-row .btn { flex: 1 1 8.5rem; white-space: nowrap; padding-inline: 1rem; }
@media (min-width: 40rem) { .sunday { padding: 1.75rem 2rem; } }

/* Sections */
.section { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.section.tint { background: var(--blue-light); }
.section.dark { background: var(--black); color: var(--white); }
.section.dark .eyebrow { color: #7fbfff; }
.section.dark a:not(.btn) { color: #9fcfff; }
.section-head { display: grid; gap: 0.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 46rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.section.dark .section-head p { color: #c9d3de; }
.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.prose { max-width: 42rem; }
.prose p { font-size: 1.12rem; }

/* Rhythm list */
.rhythm { display: grid; gap: 0.75rem; }
@media (min-width: 44rem) { .rhythm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .rhythm.four { grid-template-columns: repeat(4, 1fr); } }
.slot {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; display: grid; gap: 0.35rem; align-content: start;
}
.section.tint .slot { border-color: transparent; }
.slot .day { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.slot .what { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.slot .time { font-size: 1.05rem; color: var(--muted); }
.slot.feature { background: var(--black); color: var(--white); border-color: var(--black); }
.slot.feature .day { color: #7fbfff; }
.slot.feature .time { color: #d6dde6; }
.slot.feature a { color: #9fcfff; }

/* Monthly rows */
.month { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.month li { display: grid; gap: 0.15rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .month li { grid-template-columns: 11rem 1fr auto; align-items: baseline; } }
.month .which { font-weight: 600; color: var(--blue-ink); }
.month .name { font-size: 1.2rem; font-weight: 600; }
.month .note { color: var(--muted); font-size: 0.98rem; }

/* Scripture band */
.scripture { text-align: left; }
.scripture blockquote { margin: 0; max-width: 52rem; }
.scripture blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 3.1rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.25rem;
}
.scripture blockquote p em { font-style: italic; color: var(--blue); font-weight: 500; }
.scripture cite { font-style: normal; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: #9fcfff; }

/* Cards */
.cards { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem;
  border-radius: var(--radius); padding: 1.6rem; background: var(--white); border: 1px solid var(--line);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--blue-ink); }
.card .go { margin-top: auto; padding-top: 0.75rem; font-weight: 600; }
a.card { text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }
a.card .go { color: var(--blue-ink); }
/* black text on New Hope Blue: 5.4:1, white would be 3.9:1 at body size */
.card.blue { background: var(--blue); border-color: var(--blue); color: var(--black); }
.card.blue p, .card.blue .num, .card.blue .go { color: var(--black); }
.card.black { background: var(--black); border-color: var(--black); color: var(--white); }
.card.black p { color: #cfd6df; }
.card.black .num, .card.black .go { color: #9fcfff; }

/* Ministries */
.ministry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--black); }
@media (min-width: 52rem) { .ministry-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.ministry-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.25rem; }
.ministry-list h3 { margin: 0; font-size: 1.35rem; }
.ministry-list p { margin: 0; color: var(--muted); }

/* Leadership: 4:3 placeholder frame; 1:1 once a square photo is set */
.people { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { margin: 0; }
.person .photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line);
  position: relative; display: grid; place-items: center;
}
/* Photos are square originals (couples fill the frame), so the slot goes 1:1 and never crops */
.person .photo.has-photo { aspect-ratio: 1 / 1; }
.person .photo picture { display: contents; }
.person .photo img { width: 100%; height: 100%; object-fit: contain; }
.story-photo { max-width: 22rem; margin-top: 1.75rem; }
.person .photo .ring { width: 135%; aspect-ratio: 1; top: 18%; right: -55%; position: absolute; opacity: 0.35; }
.person .photo img + .ring { display: none; }
.person .photo .ph { position: relative; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-ink); }
.person figcaption { padding-top: 0.9rem; }
.person .name { display: block; font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.person .role { display: block; color: var(--muted); }

/* Beliefs */
.beliefs { display: grid; gap: 2.5rem; }
.belief-group h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding-bottom: 0.75rem; border-bottom: 2px solid var(--black); }
.belief-group h3 .blue { color: var(--blue); }
.belief-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .belief-group ul { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.belief-group li p { margin: 0; }
.belief-group .refs { display: block; margin-top: 0.35rem; font-size: 0.92rem; color: var(--blue-ink); font-weight: 500; }

/* Statement blocks (mission, vision) */
.statement { border-left: 4px solid var(--blue); padding: 0.25rem 0 0.25rem 1.25rem; margin: 0 0 2rem; }
.statement .label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-ink); display: block; margin-bottom: 0.4rem; }
.statement p { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.35; font-weight: 500; margin: 0; }
.section.dark .statement .label { color: #7fbfff; }

/* Pathway steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: s; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }
.steps li { border-radius: var(--radius); padding: 1.4rem; background: var(--white); border: 1px solid var(--line); counter-increment: s; }
.section.dark .steps li { background: #111; border-color: #222; }
.section.dark .steps li::before { color: var(--blue); }
.steps li::before { content: "0" counter(s); display: block; font-weight: 700; color: var(--blue-ink); font-size: 0.9rem; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.steps strong { display: block; font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.35rem; }
.steps span { color: var(--muted); }
.section.dark .steps span { color: #c4ccd6; }

/* Covenant */
.covenant { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); }
.covenant p { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.45; margin: 0 0 0.6em; }

/* Notices */
.notice {
  border-radius: var(--radius); padding: 1.25rem 1.4rem; background: var(--white);
  border: 2px dashed var(--blue); display: grid; gap: 0.35rem; max-width: 46rem;
}
.notice strong { font-size: 1.15rem; }
.notice p { margin: 0; color: var(--muted); }

/* Link list (forms, contact) */
.links { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.links a:hover .t { color: var(--blue-ink); }
.links .t { font-size: 1.25rem; font-weight: 600; }
.links .d { grid-column: 1; color: var(--muted); font-size: 0.98rem; }
.links .i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.4rem; color: var(--blue-ink); }
.plain-handle .t { font-size: 1.25rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--black); color: #cfd6df; padding: 3.5rem 0 2rem; font-size: 0.98rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { height: 6.5rem; width: auto; margin-bottom: 1rem; }
.footer-brand .tag { color: var(--white); font-weight: 600; font-size: 1.1rem; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7fbfff; margin-bottom: 0.9rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer address { font-style: normal; line-height: 1.6; }
.legal {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #262a30;
  font-size: 0.78rem; letter-spacing: 0.06em; color: #9aa3ad; line-height: 1.6;
}
.legal p { margin: 0; }
