/* ============================================================
   CEDECOPRA HEALTH — health.cedecopra.com
   (hospital + nursing school; derived from the church site)
   Editorial/poster style (modeled on 2819church.org),
   themed with the CEDECOPRA palette: Haitian blue & red,
   valley gold, warm ivory paper.
   ============================================================ */
:root {
  --blue: #00209F;
  --blue-deep: #001368;
  --navy: #0A1440;
  --red: #D21034;
  --red-dark: #B50D2B;
  --gold: #E8A83D;
  --ivory: #FBF7EF;
  --paper: #FFFFFF;
  --text: #212E49;
  --muted: #5C6B86;
  --line: #E2DACA;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain, like the 2819 texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.52 0 0 0 0 0.46 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
p { margin: 0 0 1em; }

.display, h1, h2 {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  line-height: .92;
  letter-spacing: .005em;
  margin: 0;
}
.accent { color: var(--red); }
.accent-gold { color: var(--gold); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; }

.skip-link { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 300; }
.skip-link:focus { left: 0; top: 0; }

/* Haitian flag stripe — ties to cedecopra.com */
.flag-bar { display: flex; height: 5px; position: relative; z-index: 120; }
.flag-bar span { flex: 1; }
.flag-bar span:first-child { background: var(--blue); }
.flag-bar span:last-child { background: var(--red); }

/* ---------- parenthesized links (signature style) ---------- */
.plink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  transition: color .25s;
  white-space: nowrap;
}
.plink::before { content: "("; color: var(--red); font-weight: 700; }
.plink::after { content: ")"; color: var(--red); font-weight: 700; }
.plink:hover { color: var(--red); }
.plink.on-dark { color: var(--ivory); }
.plink.on-dark::before, .plink.on-dark::after { color: var(--gold); }
.plink.on-dark:hover { color: var(--gold); }

.live-dot {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.live-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 110;
  background: rgba(251, 247, 239, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(10,20,64,.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1280px; margin: 0 auto; padding: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: "Anton", sans-serif; font-size: 1.22rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--navy); line-height: 1;
}
.brand-word em { font-style: normal; color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .plink { font-size: .76rem; }
.lang-switch {
  border: 1px solid var(--line); background: transparent; color: var(--navy);
  font: 700 .76rem/1 "Source Sans 3", sans-serif; letter-spacing: .08em;
  padding: 7px 8px; border-radius: 0; cursor: pointer;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 12px 8px;
  flex-direction: column; gap: 5px; z-index: 220;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--ivory); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--ivory); }

/* fullscreen overlay menu (mobile) */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; padding: 90px 32px 48px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a.big {
  font-family: "Anton", sans-serif; text-transform: uppercase; text-decoration: none;
  color: var(--ivory); font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.16;
  transition: color .2s;
}
.nav-overlay a.big:hover { color: var(--gold); }
.nav-overlay a.big em { font-style: normal; color: var(--red); }
.nav-overlay .overlay-foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 60px 0 40px; }
.hero-headline { position: relative; z-index: 5; }
.hero-headline .display {
  font-size: clamp(4.2rem, 13.5vw, 12.5rem);
  display: block;
}
.hl-2 { margin-left: .9em; }
.hl-3 { margin-left: .28em; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin: 38px 0 0 4px; position: relative; z-index: 6; }

/* collage pieces */
.collage { position: absolute; z-index: 2; }
.collage img { filter: grayscale(1) contrast(1.06) brightness(1.02); }
.collage.c-block { background: var(--navy); }
.collage.c-block.red { background: var(--red); }
.hero .c-top { top: -60px; right: 6%; width: min(34vw, 430px); }
.hero .c-left { top: 42%; left: -90px; width: min(24vw, 290px); }
.hero .c-block-1 { top: 190px; right: 26%; width: min(20vw, 280px); height: 104px; z-index: 4; }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
.section.tight { padding: 70px 0; }

/* thin red hairline running through a section — stays behind photos and text */
.redline { position: absolute; width: 2px; background: var(--red); z-index: 1; }
.section .wrap { position: relative; z-index: 2; }

/* scattered margin words */
.margin-word {
  position: absolute; left: 14px; z-index: 4;
  font-weight: 700; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); writing-mode: vertical-rl; text-orientation: mixed;
}

/* big statement */
.statement .display { font-size: clamp(3rem, 8.6vw, 7.6rem); }
.statement-sub { margin-top: 20px; }

/* mission */
.mission-h {
  font-family: "Anton", sans-serif; text-transform: uppercase; color: var(--navy);
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: .005em;
  max-width: 21em; margin: 0 0 26px;
}
.mission-h strong { font-weight: 400; color: var(--red); }

.smallcopy { max-width: 560px; font-size: 1.04rem; color: var(--text); }
.smallcopy strong { color: var(--navy); }
.scripture { font-size: .9rem; color: var(--muted); max-width: 520px; }
.scripture strong { color: var(--navy); }

/* photo rows / split — bottom-aligned so captions sit on one line */
.photo-duo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: end; margin-top: 54px; }
.photo-duo figure, .photo-solo figure { margin: 0; position: relative; z-index: 2; }
.photo-duo img, .photo-solo img { filter: grayscale(1) contrast(1.06); width: 100%; }
.photo-duo img { aspect-ratio: 3 / 2; object-fit: cover; }
figcaption {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin-top: 10px;
}

/* gathering bands (like 2819 IN-PERSON / ONLINE) */
.bands { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.band .display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: .95; }
.band .display .accent { display: block; }
.band .plink { margin-top: 18px; }
.band p.band-note { margin: 14px 0 0; font-size: .95rem; color: var(--muted); max-width: 30em; }

/* dark full-bleed band (future church) */
.dark-band { background: var(--navy); color: var(--ivory); padding: 110px 0; position: relative; overflow: hidden; }
.dark-band .display { color: var(--ivory); font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
.dark-band .display .accent { color: var(--gold); }
.dark-band p { color: #C9CFE2; max-width: 36em; margin: 26px 0 30px; font-size: 1.05rem; }
.dark-band .bigdove {
  position: absolute; right: -40px; bottom: -60px; width: 330px; opacity: .1; pointer-events: none;
}

/* location cards (visit page) */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.loc + .loc { margin-top: 110px; }
.loc.flip .loc-media { order: 2; }
.loc-media { position: relative; }
.loc-media img { filter: grayscale(1) contrast(1.06); width: 100%; }
.loc-media::after {
  content: ""; position: absolute; top: 18px; left: -18px; right: 18px; bottom: -18px;
  border: 2px solid var(--red); z-index: -1;
}
/* mirror the offset frame on flipped rows so it pokes outward, not into the text gutter */
.loc.flip .loc-media::after { left: 18px; right: -18px; }
.loc h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 14px; }
.loc .where {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  color: var(--red); margin: 0 0 18px;
}
.loc p { max-width: 34em; }
.loc ul { margin: 0 0 1em; padding-left: 20px; }

/* expect cards */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.trio.four { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trio .sub {
  display: block; font-weight: 700; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.trio h3 {
  font-family: "Anton", sans-serif; text-transform: uppercase; font-weight: 400;
  color: var(--navy); font-size: 1.5rem; margin: 0 0 10px;
}
.trio h3 .num { color: var(--red); margin-right: 10px; }
.trio p { font-size: .98rem; color: var(--muted); }

/* notice strip (service times) */
.notice {
  border: 2px solid var(--navy); padding: 30px 32px; margin-top: 90px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--paper);
}
.notice p { margin: 0; max-width: 36em; }
.notice strong { color: var(--navy); }

/* kicker row */
.kicker-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
  font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.kicker-row::after { content: ""; flex: 1; height: 2px; background: var(--red); opacity: .25; }

/* marquee strip */
.strip { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); padding: 14px 0; overflow: hidden; background: var(--ivory); position: relative; z-index: 5; }
.strip-inner { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: slide 36s linear infinite; }
.strip span {
  font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 1.05rem;
  letter-spacing: .06em; color: var(--navy); display: inline-flex; align-items: center; gap: 48px;
}
.strip span i { font-style: normal; color: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-inner { animation: none; }
  .live-dot::before { animation: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--ivory); padding: 90px 0 0; position: relative; overflow: hidden; margin-top: 60px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-cols h4 {
  font-weight: 700; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px;
}
.footer-cols h4::before { content: "( "; color: var(--red); }
.footer-cols h4::after { content: " )"; color: var(--red); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 9px; }
.footer-cols a { color: var(--ivory); text-decoration: none; font-size: .95rem; }
.footer-cols a:hover { color: var(--gold); }
.f-about { font-size: .92rem; color: #C9CFE2; max-width: 30em; }
.f-about img { height: 46px; margin-bottom: 14px; }
.footer-mega {
  font-family: "Anton", sans-serif; text-transform: uppercase; line-height: .9;
  font-size: clamp(4.2rem, 14.5vw, 13.5rem); color: var(--ivory); opacity: .95;
  margin: 70px 0 28px; letter-spacing: .01em; user-select: none;
}
.footer-mega i { font-style: normal; color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(251,247,239,.18); margin-top: 0; padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: .82rem; color: #9AA5C4;
}
.footer-bottom .motto { color: var(--gold); font-style: italic; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* page hero (inner pages) */
.page-hero { padding: 70px 0 30px; position: relative; }
.page-hero .display { font-size: clamp(3.4rem, 11vw, 9.5rem); display: block; }
.page-hero .lede { max-width: 580px; margin-top: 28px; font-size: 1.1rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero .c-left { display: none; }
  .bands { grid-template-columns: 1fr; gap: 56px; }
  .trio.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
  .photo-duo { grid-template-columns: 1fr; }
  .photo-duo .offset { margin-top: 0; }
  .loc, .loc.flip { grid-template-columns: 1fr; gap: 30px; }
  .loc.flip .loc-media { order: 0; }
  .loc + .loc { margin-top: 80px; }
  .loc-media::after { left: -10px; right: 10px; }
  .trio, .trio.four { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .margin-word, .redline { display: none; }
  .hero { padding-top: 30px; }
  .hero .c-top { position: relative; top: 0; right: 0; width: 100%; margin: 0 0 30px; }
  .hero .c-block-1 { display: none; }
  .hl-2 { margin-left: .45em; }
  .notice { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-ctas { gap: 16px; }
}
