/* Partners in Christ appeal pages: shared styles */
:root {
  --navy: #13315c;
  --navy-deep: #0d2444;
  --ink: #2b3445;
  --muted: #5a6475;
  --cream: #f8f5ef;
  --cream-2: #fbf8f2;
  --sand: #f3eee3;
  --line: #ece7dc;
  --gold: #996a1f;
  --gold-light: #e0c07e;
  --yellow: #f2c14e;
  --on-dark: #e8edf5;
  --on-dark-muted: #c9d3e3;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-btn: 999px;
  --wrap: 1120px;
}
.theme-voices { --radius-btn: 6px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; font-size: 18px; line-height: 1.65; }
.theme-voices { background: var(--cream-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 30px; border-radius: var(--radius-btn);
  font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.btn svg { flex: none; }

/* Gold (build page) */
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy); color: #fff; }
.on-dark .btn-gold:hover { background: #fff; color: var(--navy); }

/* Yellow (voices page) */
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--navy); color: #fff; }
.on-dark .btn-yellow:hover { background: #fff; color: var(--navy); }

/* White solid and white outline (on dark) */
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--yellow); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 56px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  min-height: 44px; padding: 8px 14px; border: 2px solid var(--navy); border-radius: 6px; background: transparent;
  display: inline-flex; align-items: center; color: var(--navy); font: 700 14px/1.2 var(--sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.lang-toggle:hover { background: var(--navy); color: #fff; }
.lang-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; background: var(--navy); color: #fff; }
.hero-media { flex: 1 1 460px; position: relative; min-height: 440px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-body { flex: 1 1 460px; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 72px 56px; }
.hero h1 { color: #fff; }
.hero-sub { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }

.theme-build .hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; }
.theme-build .hero-media img { object-position: left center; }

.theme-voices .hero-media { order: 2; min-height: 500px; }
.theme-voices .hero-media img { object-position: center top; }
.theme-voices .hero-body { order: 1; gap: 16px; }
.theme-voices .hero .eyebrow { color: var(--on-dark); font-size: 16px; letter-spacing: .24em; }
.theme-voices .hero h1 { font-weight: 700; font-size: clamp(64px, 9vw, 104px); line-height: .95; }
.underline { width: 180px; height: 4px; background: var(--yellow); border-radius: 4px; }
.hero-es { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; color: #fff; }
.hero-lede { font-size: 20px; line-height: 1.5; color: var(--on-dark); }
.cc-note { font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-navy { background: var(--navy); color: #fff; }
.section h2 { font-size: clamp(30px, 4vw, 42px); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split-reverse { flex-wrap: wrap-reverse; }
.frame { border-radius: 6px; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; max-width: 420px; }
.caption { font-size: 15px; color: var(--muted); margin-top: 12px; }
.section-navy h2 { color: #fff; }
.section-navy p { color: var(--on-dark); }

/* Video poster button */
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.video:hover img { transform: scale(1.03); opacity: .92; }
.video .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: rgba(13, 36, 68, .55); border: 3px solid #fff; display: grid; place-items: center; transition: background-color .2s ease; }
.video:hover .play { background: var(--gold); }
.video:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.video iframe, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #000; }

/* Pillars (build) */
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 56px; }
.center-head p { max-width: 640px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; }
.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar h3 { font-size: 24px; }
.pillar p { font-size: 17px; line-height: 1.6; }

/* Closing with photo (build) */
.closing { position: relative; padding: 120px 0; overflow: hidden; color: #fff; text-align: center; }
.closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(13, 36, 68, .8); }
.closing .wrap { position: relative; z-index: 1; max-width: 768px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.closing h2 { color: #fff; font-size: clamp(36px, 5vw, 50px); line-height: 1.1; }
.closing p { font-size: 19px; color: var(--on-dark); }

/* Focus tags (voices) */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--sand); padding: 8px 14px; border-radius: 999px; line-height: 1.3; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); padding: 44px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.logo-chip { display: inline-flex; align-self: flex-start; background: #fff; padding: 8px 12px; border-radius: 6px; }
.logo-chip img { height: 44px; width: auto; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Video modal ---------- */
.video-modal { width: min(960px, 94vw); padding: 0; border: 0; background: transparent; }
.video-modal::backdrop { background: rgba(8, 20, 40, .85); }
.video-modal .video-frame { aspect-ratio: 16 / 9; border-radius: 6px; }
.video-modal .close { display: flex; margin: 0 0 10px auto; min-height: 44px; padding: 8px 16px; border-radius: 6px; border: 2px solid #fff; background: transparent; color: #fff; font: 700 14px var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.video-modal .close:hover { background: #fff; color: var(--navy); }
.video-soon { display: grid; place-items: center; height: 100%; color: #fff; font-size: 20px; padding: 24px; text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-body { padding: 56px 32px; }
  .section { padding: 72px 0; }
  .closing { padding: 88px 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .logo img { height: 44px; }
  .site-header .btn-sm { padding: 10px 16px; font-size: 13px; }
  .header-actions { gap: 8px; }
  .lang-toggle { padding: 8px 10px; font-size: 13px; }
  .hero-media, .theme-voices .hero-media { flex-basis: 100%; min-height: 300px; }
  .theme-voices .hero-media { order: 0; min-height: 340px; }
  .hero-body { flex-basis: 100%; padding: 40px 20px 48px; }
  .hero-sub { font-size: 19px; }
  .hero-lede { font-size: 18px; }
  .hero-actions .btn, .closing .btn, .actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .split { gap: 32px; }
  .split > * { flex-basis: 100%; }
  .ratio-1-1 { max-width: none; }
  .center-head { margin-bottom: 36px; }
  .pillars { gap: 32px; }
  .closing { padding: 72px 0; }
  .closing p { font-size: 18px; }
  .video .play { width: 68px; height: 68px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
