/* ============================================================
   CEOF · catholicopportunity.org · Stylesheet
   Edition 1.0 · May 2026
   Brand-locked. See WEBSITE_BUILD_RULES.md before editing.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy:       #1F3A68;
  --navy-deep:  #15294A;
  --gold:       #B8860B;
  --warm-gold:  #D4A020;
  --ivory:      #F5EFE3;
  --ivory-deep: #EDE5D2;
  --ink:        #1A1A1A;
  --muted:      #5A5A5A;
  --soft:       #888888;
  --rule:       #D9D3C5;
  --white:      #FFFFFF;

  --font-display: "Playfair Display", "Tiempos Headline", Georgia, "Source Serif Pro", serif;
  --font-body:    "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans:    "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --container: 72rem;          /* 1152px */
  --container-narrow: 48rem;   /* 768px */
  --container-wide: 84rem;     /* 1344px */

  --radius-sm: 4px;
  --radius:    8px;
  --shadow-sm: 0 1px 2px rgba(31,58,104,0.04);
  --shadow:    0 4px 16px rgba(31,58,104,0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--ivory); }

/* ---------- Focus styles (keyboard accessibility) ---------- */
:focus-visible {
  outline: 3px solid var(--warm-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h4 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; font-family: var(--font-sans); font-weight: 600; }
p { margin-bottom: 1.1rem; }
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.gold-rule { width: 3rem; height: 2px; background: var(--gold); margin: 1rem 0 1.5rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 1.5rem; }

main { display: block; min-height: 60vh; }
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 5rem 0; } }
@media (min-width: 1024px) { section { padding: 6rem 0; } }

.section-tight { padding: 2.5rem 0; }
.section-bg-ivory { background: var(--ivory); }
.section-bg-navy { background: var(--navy); color: var(--ivory); }
.section-bg-navy h1, .section-bg-navy h2, .section-bg-navy h3, .section-bg-navy h4 { color: var(--ivory); }
.section-bg-navy .lead { color: rgba(245,239,227,0.85); }
.section-bg-navy .eyebrow { color: var(--warm-gold); }
.section-bg-navy a:not(.btn) { color: var(--warm-gold); }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.site-header__brand img {
  height: 80px;
  width: auto;
  display: block;
}
.site-header__nav { display: none; }
.site-header__nav ul { list-style: none; padding: 0; display: flex; gap: 2rem; align-items: center; margin: 0; }
.site-header__nav li { margin: 0; }
.site-header__nav a {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-header__nav a:hover, .site-header__nav a[aria-current="page"] { color: var(--gold); }
.site-header__nav a[aria-current="page"] { font-weight: 600; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (min-width: 768px) {
  .site-header__nav { display: block; }
  .menu-toggle { display: none; }
}

/* Mobile menu (when open) */
.site-header__nav.is-open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
}
.site-header__nav.is-open ul { flex-direction: column; gap: 1rem; align-items: flex-start; }

/* ---------- Hero (homepage) ---------- */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; } }
.hero__content { max-width: 36rem; }
.hero__title {
  color: var(--ivory);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero__org-name {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--warm-gold);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.hero__org-line {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(245,239,227,0.7);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(245,239,227,0.9);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.hero__date {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--warm-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,58,104,0) 60%, rgba(31,58,104,0.45) 100%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--ivory);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--ivory); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--warm-gold); border-color: var(--warm-gold); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--ivory); }
.btn--outline-light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); color: var(--navy); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.5rem; }

/* ---------- Audience picker (homepage) ---------- */
.audience-grid { gap: 1.5rem; }
.audience-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.audience-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.audience-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.audience-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.audience-card__body {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.audience-card__cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ---------- Stat callout ---------- */
.stat {
  background: var(--navy);
  color: var(--ivory);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--warm-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.4;
}
.stat__label strong { color: var(--warm-gold); font-weight: 600; }
.stat__footnote { font-size: 0.78rem; color: rgba(245,239,227,0.7); margin-top: 0.5rem; font-style: italic; }

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  color: var(--navy);
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 4rem;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 1.25rem;
  width: 2.75rem; height: 2.75rem;
  background: var(--navy);
  color: var(--ivory);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.steps li h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}
.steps li p { color: var(--ink); font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* ---------- Benefit list (with gold rule, for "What we do" sections) ---------- */
.benefits { list-style: none; padding: 0; }
.benefits li {
  padding: 1rem 0 1rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  margin: 0;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.55rem;
  width: 1rem; height: 2px;
  background: var(--gold);
}
.benefits li:last-child { border-bottom: none; }
.benefits li strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.benefits li span { font-size: 0.97rem; color: var(--ink); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin-top: 0.75rem; color: var(--ink); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.form-group .req { color: var(--gold); margin-left: 0.15rem; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--warm-gold);
  outline-offset: 2px;
  border-color: var(--navy);
}
.form-group textarea { min-height: 8rem; resize: vertical; }
.form-group .help {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-style: italic;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---------- News card ---------- */
.news-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ivory-deep);
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.5rem; }
.news-card__date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.news-card__excerpt { color: var(--ink); font-size: 0.95rem; line-height: 1.5; margin-bottom: 0; }

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
}
.contact-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.contact-card__title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.contact-card__line { font-size: 0.97rem; margin-bottom: 0.4rem; }
.contact-card__line a { color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--warm-gold); }
.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer__brand img { height: 44px; margin-bottom: 1rem; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(245,239,227,0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 18rem;
}
.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer__links { list-style: none; padding: 0; }
.site-footer__links li { margin-bottom: 0.55rem; font-size: 0.94rem; }
.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,239,227,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(245,239,227,0.7);
}
.site-footer__bottom a { color: rgba(245,239,227,0.7); }

/* ---------- Page header (sub pages) ---------- */
.page-header {
  background: var(--navy);
  color: var(--ivory);
  padding: 4rem 0 3.5rem;
}
.page-header h1 { color: var(--ivory); margin-bottom: 0.75rem; }
.page-header .lead { color: rgba(245,239,227,0.9); margin-bottom: 0; }
.page-header .eyebrow { color: var(--warm-gold); }
.page-header .gold-rule { background: var(--warm-gold); }

/* ---------- Two-column content layout ---------- */
.two-col {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sidebar / aside ---------- */
.aside-content {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) { .aside-content { grid-template-columns: 2fr 1fr; } }
.aside-content aside {
  background: var(--ivory);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

/* ---------- Utility classes ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .menu-toggle { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
