/* ═══════════════════════════════════════════════════
   OCIA PAGE — ocia.css
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.ocia-hero {
  min-height: 68vh; display: grid; place-items: center;
  text-align: center; padding: 8rem 2rem 5rem;
  position: relative; overflow: hidden; background: var(--navy);
}
.ocia-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,80,160,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 65%, rgba(42,60,120,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 8%,  rgba(184,150,62,0.1) 0%, transparent 40%);
  z-index: 0;
}
.ocia-hero 
.ocia-hero-content { position: relative; z-index: 2; max-width: 760px; }

.ocia-hero-content h1 {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 400; color: var(--white); letter-spacing: 0.04em;
  line-height: 1.15; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}

/* ── LAYER 1 INTRO ── light ── */
.ocia-intro-section { padding: 5rem 2rem; background: var(--ivory); }
.ocia-intro-section .section-title { color: var(--navy); }
.ocia-intro-section .section-divider { background: linear-gradient(to right, var(--gold), transparent); }
.ocia-intro-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .ocia-intro-grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.ocia-intro-text p { font-size: 1.05rem; color: var(--text-soft); line-height: 1.82; margin-top: 1rem; }
.ocia-intro-text p:first-child { margin-top: 0; }
.ocia-name-note {
  margin-top: 1.75rem; padding: 1.1rem 1.4rem;
  background: rgba(184,150,62,0.07);
  border-left: 3px solid var(--gold);
}
.ocia-name-note-label {
  font-family: 'Lato',sans-serif; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
  display: block; margin-bottom: 0.4rem; opacity: 0.65;
}
.ocia-name-note p { font-size: 0.97rem; color: var(--text-soft); line-height: 1.72; margin: 0; }

/* Sidebar cards */
.ocia-intro-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.ocia-welcome-card {
  background: var(--navy); padding: 2rem;
  border-top: 3px solid var(--gold);
}
.ocia-welcome-card h3 {
  font-family: 'Cinzel',serif; font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.85rem; font-weight: 400;
}
.ocia-welcome-card p {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.98rem;
  color: rgba(255,255,255,0.65); line-height: 1.75; margin-top: 0.65rem;
}
.ocia-welcome-card p:first-of-type { margin-top: 0; }
.ocia-first-step {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(184,150,62,0.18);
}
.ocia-first-step-label {
  font-family: 'Lato',sans-serif; font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 0.5rem;
}
.ocia-first-step p {
  font-size: 0.92rem; margin-top: 0; margin-bottom: 1rem;
}
.ocia-parish-btn {
  display: inline-block; font-family: 'Lato',sans-serif; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); background: var(--gold); padding: 0.6rem 1.25rem;
  transition: background 0.2s;
}
.ocia-parish-btn:hover { background: var(--gold-light); }

/* Overview card */
.ocia-overview-card {
  background: rgba(26,35,66,0.05);
  border: 1px solid rgba(26,35,66,0.1);
  border-top: 2px solid var(--gold);
  padding: 1.5rem;
}
.ocia-overview-label {
  font-family: 'Lato',sans-serif; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
  display: block; margin-bottom: 1rem; opacity: 0.6;
}
.ocia-overview-list { display: flex; flex-direction: column; gap: 0; }
.ocia-overview-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.65rem 0;
}
.ocia-ov-num {
  font-family: 'Cinzel',serif; font-size: 0.9rem; color: var(--gold);
  min-width: 22px; font-weight: 400;
}
.ocia-ov-text {
  font-family: 'EB Garamond',Georgia,serif; font-size: 1rem;
  color: var(--text-soft); line-height: 1.4;
}
.ocia-overview-arrow {
  font-family: 'Lato',sans-serif; font-size: 0.65rem;
  letter-spacing: 0.08em; color: var(--gold); opacity: 0.7;
  padding: 0.15rem 0 0.15rem 1.85rem;
}

/* ── LAYER 2 PATHS ── dark via prayers-section ── */
.ocia-paths-section { padding: 5rem 2rem; }
.ocia-paths-lead {
  font-family: 'EB Garamond',Georgia,serif; font-size: 1.05rem;
  color: rgba(255,255,255,0.65); line-height: 1.78; max-width: 680px;
  margin-bottom: 2.5rem;
}
.ocia-paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Two columns: 600px and up — CSS handles this range naturally */
@media (min-width: 600px) {
  .ocia-paths-grid { grid-template-columns: 1fr 1fr; }
}

/* Four columns: 1024px and up.
   JS measures the actual viewport, subtracts side margins and gap budget,
   divides by 4, and sets --ocia-col-width on this element.
   Fallback is 1fr so the layout works without JS. */
@media (min-width: 1024px) {
  .ocia-paths-grid {
    grid-template-columns: repeat(4, var(--ocia-col-width, 1fr));
    gap: 1.5rem;
  }
}

.ocia-path-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,150,62,0.15);
  display: flex; flex-direction: column;
}
.ocia-path-header {
  padding: 1.5rem 1.5rem 1rem;
  border-top: 4px solid;
}

/* At four-column layout, reduce internal padding so content breathes */
@media (min-width: 1024px) {
  .ocia-path-header    { padding: 1.25rem 1.1rem 0.85rem; }
  .ocia-path-body      { padding: 0 1.1rem 1.1rem; }
  .ocia-path-sacraments { padding: 0.85rem 1.1rem; }
  .ocia-path-title     { font-size: 0.92rem; line-height: 1.35; }
}
.ocia-path-card.path-unbaptized .ocia-path-header { border-top-color: #4fc3f7; }
.ocia-path-card.path-baptized-other .ocia-path-header { border-top-color: #81c784; }
.ocia-path-card.path-baptized-catholic .ocia-path-header { border-top-color: var(--gold); }
.ocia-path-card.path-special .ocia-path-header { border-top-color: #ce93d8; }
.ocia-path-num {
  font-family: 'Lato',sans-serif; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 0.4rem;
}
.ocia-path-card.path-unbaptized .ocia-path-num { color: #4fc3f7; }
.ocia-path-card.path-baptized-other .ocia-path-num { color: #81c784; }
.ocia-path-card.path-baptized-catholic .ocia-path-num { color: var(--gold); }
.ocia-path-card.path-special .ocia-path-num { color: #ce93d8; }
.ocia-path-title {
  font-family: 'Cinzel',serif; font-size: 1rem; color: var(--white);
  font-weight: 400; line-height: 1.3;
}
.ocia-path-subtitle {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.88rem;
  font-style: italic; color: rgba(255,255,255,0.45); margin-top: 0.2rem;
}
.ocia-path-body {
  padding: 0 1.5rem 1.25rem; flex: 1;
}
.ocia-path-body p {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.98rem;
  color: rgba(255,255,255,0.62); line-height: 1.78;
}
.ocia-path-sacraments {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(184,150,62,0.12);
  background: rgba(255,255,255,0.02);
}
.ocia-path-sacraments-label {
  font-family: 'Lato',sans-serif; font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); display: block; margin-bottom: 0.4rem;
}
.ocia-path-sacraments-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.ocia-sac-badge {
  font-family: 'Lato',sans-serif; font-size: 0.62rem;
  letter-spacing: 0.08em; padding: 0.2rem 0.6rem;
  border: 1px solid rgba(184,150,62,0.3); color: rgba(255,255,255,0.6);
}
.ocia-sac-badge.received { border-color: rgba(100,220,100,0.35); color: rgba(100,220,100,0.75); }
.ocia-path-term {
  display: inline-block; margin-top: 0.75rem;
  font-family: 'Lato',sans-serif; font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── LAYER 3 PERIODS ── light ── */
.ocia-periods-section { padding: 5rem 2rem; background: var(--ivory); }
.ocia-periods-section .section-title { color: var(--navy); }
.ocia-periods-section .section-divider { background: linear-gradient(to right, var(--gold), transparent); }
.ocia-periods-lead {
  font-size: 1.05rem; color: var(--text-soft); line-height: 1.78;
  max-width: 680px; margin-bottom: 3rem;
}
.ocia-periods-list { display: flex; flex-direction: column; gap: 2.5rem; }

/* Period block */
.ocia-period {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--white); border: 1px solid rgba(26,35,66,0.08);
  overflow: hidden;
}
@media (min-width: 769px) { .ocia-period { grid-template-columns: 2fr 1fr; } }
.ocia-period-main { padding: 2rem 2.25rem; }
.ocia-period-num {
  font-family: 'Cinzel',serif; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: block; margin-bottom: 0.3rem;
}
.ocia-period:nth-child(1) .ocia-period-num { color: #0288d1; }
.ocia-period:nth-child(2) .ocia-period-num { color: #388e3c; }
.ocia-period:nth-child(3) .ocia-period-num { color: #7b1d1d; }
.ocia-period:nth-child(4) .ocia-period-num { color: #6a1b9a; }
.ocia-period-title {
  font-family: 'Cinzel',serif; font-size: 1.35rem; color: var(--navy);
  font-weight: 400; margin-bottom: 0.2rem;
}
.ocia-period-latin {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.9rem;
  font-style: italic; color: var(--text-soft); opacity: 0.7;
  display: block; margin-bottom: 1rem;
}
.ocia-period-timing {
  font-family: 'Lato',sans-serif; font-size: 0.68rem;
  letter-spacing: 0.1em; color: rgba(26,35,66,0.45);
  text-transform: uppercase; margin-bottom: 1.1rem; display: block;
}
.ocia-period-desc {
  font-family: 'EB Garamond',Georgia,serif; font-size: 1.02rem;
  color: var(--text-soft); line-height: 1.8;
}
.ocia-period-who {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(26,35,66,0.03);
  border-left: 2px solid var(--gold);
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.97rem;
  color: var(--text-soft); line-height: 1.7;
}

/* Period sidebar */
.ocia-period-sidebar {
  background: var(--navy); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.ocia-rites-block, .ocia-terms-block { }
.ocia-sidebar-label {
  font-family: 'Lato',sans-serif; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); display: block; margin-bottom: 0.6rem;
}
.ocia-rite-item {
  padding: 0.5rem 0; border-bottom: 1px solid rgba(184,150,62,0.1);
}
.ocia-rite-item:last-child { border-bottom: none; }
.ocia-rite-name {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.97rem;
  color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.15rem;
}
.ocia-rite-desc {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.88rem;
  color: rgba(255,255,255,0.45); line-height: 1.6;
}
.ocia-term-badge {
  display: inline-block; margin: 0.2rem 0.2rem 0 0;
  font-family: 'Lato',sans-serif; font-size: 0.62rem;
  letter-spacing: 0.08em; padding: 0.25rem 0.6rem;
  border: 1px solid rgba(184,150,62,0.3); color: var(--gold);
}

/* Period border-left accent per period */
.ocia-period:nth-child(1) { border-left: 4px solid #0288d1; }
.ocia-period:nth-child(2) { border-left: 4px solid #388e3c; }
.ocia-period:nth-child(3) { border-left: 4px solid #7b1d1d; }
.ocia-period:nth-child(4) { border-left: 4px solid #6a1b9a; }

/* ── LAYER 4 TOPICS ── dark via prayers-section ── */
.ocia-topics-section { padding: 5rem 2rem; }
.ocia-topics-lead {
  font-family: 'EB Garamond',Georgia,serif; font-size: 1.05rem;
  color: rgba(255,255,255,0.65); line-height: 1.78; max-width: 680px;
  margin-bottom: 2rem;
}
.ocia-topics-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid rgba(184,150,62,0.15); margin-bottom: 2rem;
}
@media (min-width: 640px) { .ocia-topics-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ocia-topics-grid { grid-template-columns: 1fr 1fr 1fr; } }

.ocia-topic-category {
  border-bottom: 1px solid rgba(184,150,62,0.12);
  border-right: 1px solid rgba(184,150,62,0.12);
}
@media (min-width: 640px) {
  .ocia-topic-category:nth-child(2n) { border-right: none; }
}
@media (min-width: 1024px) {
  .ocia-topic-category:nth-child(2n) { border-right: 1px solid rgba(184,150,62,0.12); }
  .ocia-topic-category:nth-child(3n) { border-right: none; }
}
.ocia-topic-cat-header {
  padding: 1rem 1.25rem 0.75rem;
  border-top: 3px solid var(--gold);
  background: rgba(255,255,255,0.03);
}
.ocia-topic-cat-name {
  font-family: 'Cinzel',serif; font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--gold); font-weight: 400;
}
.ocia-topic-list { padding: 0.5rem 0 1rem; }
.ocia-topic-item {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.35rem 1.25rem;
}
.ocia-topic-item::before {
  content: '·'; color: var(--gold); flex-shrink: 0; font-size: 1.1rem;
  line-height: 1;
}
.ocia-topic-name {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.97rem;
  color: rgba(255,255,255,0.7); line-height: 1.4;
}
.ocia-topic-note {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.85rem;
  font-style: italic; color: rgba(255,255,255,0.35);
}
.ocia-topics-note {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.97rem;
  font-style: italic; color: rgba(255,255,255,0.45); line-height: 1.7;
  max-width: 680px;
}

/* ── INVITATION ── */
.ocia-invitation-section { padding: 5rem 2rem; background: var(--ivory); }
.ocia-invitation-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start;
}
@media (min-width: 769px) { .ocia-invitation-inner { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.ocia-invitation-text .section-title { color: var(--navy); }
.ocia-invitation-text .section-divider { background: linear-gradient(to right, var(--gold), transparent); }
.ocia-invitation-text p { font-size: 1.05rem; color: var(--text-soft); line-height: 1.82; margin-top: 1rem; }
.ocia-invitation-text p:first-of-type { margin-top: 0; }
.ocia-action-card {
  background: var(--navy); padding: 2rem;
  border-top: 3px solid var(--gold); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.ocia-action-icon { font-size: 2rem; color: var(--gold); }
.ocia-action-card h3 {
  font-family: 'Cinzel',serif; font-size: 0.95rem; color: var(--white);
  font-weight: 400;
}
.ocia-action-card p {
  font-family: 'EB Garamond',Georgia,serif; font-size: 0.97rem;
  color: rgba(255,255,255,0.6); line-height: 1.72;
}
.ocia-action-btn { display: inline-block; margin-top: 0.5rem; }
.ocia-resource-links { display: flex; flex-direction: column; gap: 0.6rem; }
.ocia-resource-label {
  font-family: 'Lato',sans-serif; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(26,35,66,0.45); display: block; margin-bottom: 0.3rem;
}
.ocia-resource-link {
  font-family: 'EB Garamond',Georgia,serif; font-size: 1rem;
  color: var(--navy); text-decoration: none;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(26,35,66,0.1);
  transition: color 0.2s, border-color 0.2s;
}
.ocia-resource-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
