/* ============================================================
   MyOCCI — Public Theme
   ============================================================ */

:root {
  /* Primary palette */
  --navy:   #1b2d42;
  --blue:   #35526f;
  --gold:   #b99a5c;
  --sand:   #f6f1e8;
  --paper:  #fcfbf8;
  --white:  #ffffff;
  --text:   #2b3440;
  --muted:  #6b7280;
  --line:   #ddd6c9;
  --shadow: 0 12px 30px rgba(27, 45, 66, 0.08);
  --radius: 18px;
  --wrap:   1180px;

  /* Legacy aliases — keep existing component classes working */
  --brown:      var(--blue);
  --brown-dark: var(--navy);
  --brown-lt:   var(--gold);
  --cream:      var(--paper);
  --sand-dk:    var(--line);
  --slate:      var(--text);
  --slate-lt:   var(--muted);
  --max-w:      820px;

  /* OCCI section branding */
  --occi-navy:   #16324f;
  --occi-blue:   #2f5d8a;
  --occi-gold:   #c9a96b;
  --occi-cream:  #f8f5ef;
  --occi-white:  #ffffff;
  --occi-text:   #25313d;
  --occi-muted:  #5f6b76;
  --occi-border: #d9e0e6;
  --occi-shadow: 0 10px 30px rgba(22, 50, 79, 0.08);
  --occi-radius: 16px;
  --occi-max:    1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a         { color: var(--blue); text-decoration: none; transition: 0.25s ease; }
a:hover   { color: var(--navy); text-decoration: underline; }

section { padding: 80px 0; }

h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.18; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }

p { margin: 0 0 18px; }

/* ---- Layout utilities ---- */
.wrap   { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.kicker,
.section-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

.lead { font-size: 1.15rem; color: rgba(255,255,255,0.92); }

/* ---- Hero ---- */
.hero-home {
  padding: 120px 0 110px;
  background:
    linear-gradient(rgba(17,32,49,0.76), rgba(17,32,49,0.72)),
    linear-gradient(135deg, #20384f 0%, #3b5a79 55%, #6f89a4 100%);
  color: var(--white);
}

.hero-home h2 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.9rem);
}

.hero-copy { max-width: 860px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions.centered { justify-content: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--gold); color: #1d2430; }
.btn-primary:hover { background: #a88747; color: #161d27; }

.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }

/* ---- Intro band ---- */
.intro-band {
  padding: 34px 0;
  background: var(--sand);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid var(--line);
}

.statement {
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
  color: var(--navy);
}

/* ---- Section variants ---- */
.section-soft        { background: #f3ede2; }
.section-border-top  { border-top: 1px solid var(--line); }
.section-heading     { margin-bottom: 30px; }
.align-center        { align-items: center; }

/* ---- Grid layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* ---- Cards & panels ---- */
.feature-panel,
.quote-panel,
.callout-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.ministry-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.ministry-item p:last-child { margin-bottom: 0; }

.feature-list { margin: 0; padding-left: 1.2rem; }
.feature-list li + li { margin-top: 10px; }

.quote-panel blockquote {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.5;
  color: var(--navy);
}

.text-link { font-weight: 700; }

/* ---- Quick links ---- */
.quick-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.quick-link:hover { transform: translateY(-2px); text-decoration: none; }

.quick-link-title {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}

.quick-link-text { display: block; color: var(--muted); }

/* ---- CTA section ---- */
.cta-section { background: linear-gradient(180deg, #f8f4ec 0%, #f2eadc 100%); }

.cta-section p:not(.section-label) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-secondary { color: var(--navy); border-color: #cbbfa9; }
.cta-section .btn-secondary:hover { background: #eee5d5; color: var(--navy); border-color: var(--gold); }

/* ---- Top banner ---- */
.site-topbar {
  background: var(--brown-dark);
  color: #d4bfa3;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  padding: 6px 20px;
  letter-spacing: .03em;
}

/* ---- Header / Masthead ---- */
.site-header {
  background: var(--cream);
  position: relative;
  line-height: 0;
  text-align: center;
}

.site-header-link {
  display: inline-block;
  line-height: 0;
}

.site-header-banner {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
}

/* ---- Navigation ---- */
.site-nav {
  background: var(--brown);
  position: relative;
  z-index: 200;
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Plain nav links */
.site-nav > .site-nav-inner > a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: #e8d5bb;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.site-nav > .site-nav-inner > a:hover,
.site-nav > .site-nav-inner > a.current {
  background: var(--brown-dark);
  color: var(--white);
}

/* Dropdown parent item */
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-item.current > .nav-parent-link,
.nav-item.current > .nav-dropdown-btn {
  background: var(--brown-dark);
  color: var(--white);
}

.nav-parent-link {
  display: flex;
  align-items: center;
  padding: 12px 6px 12px 18px;
  color: #e8d5bb;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-parent-link:hover {
  background: var(--brown-dark);
  color: var(--white);
}

/* The ▾ toggle button */
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  padding: 12px 12px 12px 4px;
  background: none;
  border: none;
  color: #e8d5bb;
  font-size: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}

.nav-dropdown-btn:hover {
  background: var(--brown-dark);
  color: var(--white);
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--brown-dark);
  border-top: 2px solid var(--brown-lt);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 300;
}

.nav-dropdown a {
  display: block;
  padding: 11px 20px;
  color: #d4bfa3;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.nav-dropdown a:last-child { border-bottom: none; }

.nav-dropdown a:hover,
.nav-dropdown a.current {
  background: var(--brown);
  color: var(--white);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-dropdown-btn             { display: none; }
  .nav-parent-link              { padding-right: 14px; }
  .nav-parent-link::after {
    content: ' ▾';
    font-size: 9px;
    opacity: .75;
    margin-left: 4px;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(74, 44, 22, 0.75);
  border: none;
  color: #e8d5bb;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius);
  z-index: 10;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, var(--brown-lt) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✠';
  position: absolute;
  font-size: 320px;
  top: -60px; right: -40px;
  opacity: .04;
  color: var(--white);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: normal;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--brown-lt);
  color: var(--brown-dark);
  padding: 13px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: filter .15s;
}

.hero-cta:hover { filter: brightness(.92); color: var(--brown-dark); }

/* ---- Mass times banner ---- */
.mass-times-bar {
  background: var(--brown-lt);
  color: var(--brown-dark);
  text-align: center;
  padding: 14px 24px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
}

/* ---- Page layout ---- */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- Card grid (home) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.site-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.site-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.site-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-card-title {
  font-size: 18px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.site-card-text {
  font-size: 15px;
  color: var(--slate-lt);
  flex: 1;
}

.site-card-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
}

/* ---- Blog listing ---- */
.blog-grid {
  display: grid;
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 220px 1fr;
}

.post-card img {
  width: 220px;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 20px 24px;
}

.post-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: var(--slate-lt);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.post-title {
  font-size: 22px;
  color: var(--brown-dark);
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}

.post-title:hover { color: var(--brown); }

.post-excerpt {
  font-size: 15px;
  color: var(--slate-lt);
  margin-bottom: 14px;
}

/* ---- Single post / page content ---- */
.entry-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand);
}

.entry-title {
  font-size: clamp(24px, 4vw, 38px);
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 10px;
  line-height: 1.25;
}

.entry-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--slate-lt);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--brown-dark);
  margin: 1.5em 0 .5em;
  font-weight: normal;
  line-height: 1.3;
}

.entry-content h1 { font-size: 2em; }
.entry-content h2 { font-size: 1.6em; }
.entry-content h3 { font-size: 1.3em; }

.entry-content p   { margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol  { margin: 0 0 1.2em 1.6em; }
.entry-content li  { margin-bottom: .4em; }

.entry-content blockquote {
  border-left: 4px solid var(--brown-lt);
  margin: 1.5em 0;
  padding: 14px 20px;
  background: #fdf0e0;
  font-style: italic;
  color: var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content .pull-quote {
  font-size: 1.3em;
  text-align: center;
  border: none;
  background: transparent;
}

.entry-content figure {
  margin: 1.5em 0;
}

.entry-content figcaption {
  font-size: 13px;
  color: var(--slate-lt);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.entry-content th {
  background: var(--sand);
  padding: 8px 12px;
  text-align: left;
  color: var(--brown-dark);
}

.entry-content td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--sand);
}

/* ---- Featured image ---- */
.featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

/* ---- Sidebar layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: 1060px;
  margin: 0 auto;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.widget-title {
  font-size: 16px;
  color: var(--brown-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--brown-dark);
  color: #c9ad94;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h3 {
  font-size: 15px;
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-col p,
.footer-col address {
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
}

.footer-col a {
  color: #c9ad94;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #c4a88c;
}

.footer-bottom a { color: #c9ad94; }

/* ---- Newsletter subscribe widget ---- */
.subscribe-section {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 48px 24px;
}

.subscribe-section h2 {
  font-size: 26px;
  font-weight: normal;
  margin-bottom: 10px;
}

.subscribe-section p {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  min-width: 220px;
  font-family: 'Georgia', serif;
}

.subscribe-form button {
  padding: 11px 24px;
  background: var(--brown-lt);
  border: none;
  border-radius: var(--radius);
  color: var(--brown-dark);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.subscribe-form button:hover { filter: brightness(.92); }

/* ---- Utility ---- */
.text-center { text-align: center; }

.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;
}
.section-title {
  font-size: 28px;
  color: var(--brown-dark);
  font-weight: normal;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 32px;
}

.btn-outline {
  display: inline-block;
  padding: 9px 22px;
  border: 2px solid var(--brown);
  color: var(--brown);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

/* ---- Public forms (contact, registration) ---- */
.pub-form-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.pub-form-header {
  margin-bottom: 32px;
}

.pub-form-intro {
  font-size: 16px;
  color: var(--slate-lt);
  margin-top: 8px;
}

.pub-form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.pub-section-title {
  font-size: 18px;
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 18px;
}

.pub-section-note {
  font-size: 13px;
  color: var(--slate-lt);
  margin-top: -10px;
  margin-bottom: 16px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pub-form {
  display: block;
}

.pub-form-group {
  margin-bottom: 16px;
}

.pub-form-group label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 5px;
}

.pub-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: 15px;
  color: var(--slate);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.pub-input:focus {
  outline: none;
  border-color: var(--brown-lt);
  box-shadow: 0 0 0 3px rgba(196,154,108,.2);
}

textarea.pub-input {
  resize: vertical;
  line-height: 1.65;
}

.pub-form-row {
  display: grid;
  gap: 16px;
}

.pub-form-row.two-up   { grid-template-columns: 1fr 1fr; }
.pub-form-row.three-up { grid-template-columns: 2fr 1fr 1fr; }

.pub-form-actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}

.pub-btn-primary {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  padding: 13px 36px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.pub-btn-primary:hover { background: var(--brown-dark); }

.pub-btn-add {
  background: none;
  border: 2px solid var(--brown-lt);
  color: var(--brown);
  padding: 7px 18px;
  border-radius: var(--radius);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.pub-btn-add:hover { background: var(--brown-lt); color: var(--white); }

.req { color: #c0392b; }
.pub-optional { font-weight: normal; color: var(--slate-lt); }

.pub-form-errors {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #721c24;
  line-height: 1.8;
}

.pub-form-success {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 48px 36px;
  text-align: center;
}

.pub-form-success-icon {
  font-size: 52px;
  color: var(--brown-lt);
  margin-bottom: 16px;
}

.pub-form-success h2 {
  font-size: 26px;
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 12px;
}

.pub-form-success p {
  font-size: 16px;
  color: var(--slate-lt);
  margin-bottom: 8px;
}

/* Sacrament checkboxes */
.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.sacrament-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--slate);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color .15s, background .15s;
}

.sacrament-check:hover { border-color: var(--brown-lt); background: #fdf3e5; }

.sacrament-check input[type="checkbox"] {
  accent-color: var(--brown);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Family member cards */
.member-card {
  background: #fdf6ec;
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  padding: 20px 20px 12px;
  margin-bottom: 16px;
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand);
}

.member-remove {
  background: none;
  border: 1px solid #ccc;
  color: #888;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.member-remove:hover { border-color: #dc3545; color: #dc3545; }

/* Contact info row below form */
.pub-form-contact-info {
  margin-top: 32px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pub-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
}

.pub-contact-icon {
  color: var(--brown-lt);
  font-size: 16px;
  margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pub-form-row.two-up,
  .pub-form-row.three-up { grid-template-columns: 1fr; }
  .pub-form-section       { padding: 20px 16px; }
  .pub-form-contact-info  { flex-direction: column; }
  .sacrament-grid         { grid-template-columns: 1fr 1fr; }
}

/* ---- 404 ---- */
.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 80px;
  color: var(--sand-dk);
  font-weight: normal;
}

.error-page h2 { color: var(--brown-dark); margin-bottom: 16px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-2,
  .ministry-grid,
  .quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle               { display: block; }
  .site-nav-inner           { flex-direction: column; display: none; }
  .site-nav-inner.open      { display: flex; }

  /* Plain nav links fill full width */
  .site-nav > .site-nav-inner > a { padding: 12px 20px; }

  /* Parent item: row with link + toggle button */
  .nav-item                 { flex-direction: row; flex-wrap: wrap; }
  .nav-parent-link          { flex: 1; padding: 12px 8px 12px 20px; }
  .nav-dropdown-btn         { padding: 12px 20px 12px 8px; font-size: 12px; }

  /* Dropdown expands inline below the parent row */
  .nav-dropdown {
    position: static;
    display: none;
    width: 100%;
    border-top: none;
    box-shadow: none;
    background: rgba(0,0,0,.18);
  }
  .nav-dropdown a           { padding: 10px 20px 10px 36px; font-size: 13px; }
  .nav-item.open .nav-dropdown { display: block; }

  .post-card                { grid-template-columns: 1fr; }
  .post-card img            { width: 100%; height: 200px; }
  .two-col                  { grid-template-columns: 1fr; }
  .hero                     { padding: 50px 16px; }
}

@media (max-width: 767px) {
  body         { font-size: 17px; }
  section      { padding: 58px 0; }
  .hero-home   { padding: 88px 0 82px; }
  .statement   { font-size: 1.08rem; }
  .hero-actions { flex-direction: column; }
  .btn         { width: 100%; text-align: center; }
}

/* ---- Newsletter archive ---- */
.nl-archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.nl-archive-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.nl-archive-item:hover {
  border-color: var(--brown-lt);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  color: inherit;
}

.nl-archive-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: var(--slate-lt);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nl-archive-subject {
  font-size: 18px;
  color: var(--brown-dark);
  font-weight: normal;
}

.nl-archive-preheader {
  font-size: 14px;
  color: var(--slate-lt);
}

.nl-archive-read {
  margin-top: 4px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}

/* ---- Forms landing page ---- */
.forms-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.forms-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--sand);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.forms-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border-color: var(--brown-lt);
  transform: translateY(-2px);
  color: inherit;
}

.forms-card-icon {
  font-size: 36px;
  line-height: 1;
  color: var(--brown-lt);
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  margin-top: 4px;
}

.forms-card-body {
  flex: 1;
}

.forms-card-title {
  font-size: 20px;
  color: var(--brown-dark);
  font-weight: normal;
  margin-bottom: 6px;
}

.forms-card-desc {
  font-size: 15px;
  color: var(--slate-lt);
  line-height: 1.65;
  margin-bottom: 10px;
}

.forms-card-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}

@media (max-width: 560px) {
  .forms-card       { flex-direction: column; gap: 14px; padding: 20px; }
  .forms-card-icon  { width: auto; }
}

/* ---- Saint Francis page components ---- */

/* Shared button styling */
.sf-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sf-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #7c5c1a;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sf-button:hover {
  background-color: #8f6d28;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Page section spacing */
.sf-page section {
  margin-bottom: 28px;
}

.sf-page section:last-child {
  margin-bottom: 0;
}

/* Image helper */
.sf-page img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Clergy page */
.sf-clergy-section {
  margin-top: 10px;
}

.sf-clergy-intro {
  margin-bottom: 28px;
}

.sf-clergy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.sf-clergy-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fbf6ee 100%);
  border: 1px solid #d8c7af;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(96, 58, 23, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sf-clergy-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(197,139,53,0.14) 0%, rgba(197,139,53,0) 70%);
  pointer-events: none;
}

.sf-clergy-photo-wrap {
  margin-bottom: 18px;
}

.sf-clergy-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f4ead8;
  box-shadow: 0 8px 22px rgba(51, 69, 31, 0.14);
  display: inline-block;
  background: #f5efe6;
}

.sf-clergy-name {
  margin: 0 0 6px;
  color: #33451f;
  font-size: 1.5rem;
  line-height: 1.2;
}

.sf-clergy-role {
  margin: 0 0 16px;
  color: #7f1d1d;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.sf-clergy-card p:last-child {
  margin-bottom: 0;
}

.sf-clergy-contact {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #d8c7af;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 22px rgba(96, 58, 23, 0.06);
}

@media (max-width: 900px) {
  .sf-clergy-grid {
    grid-template-columns: 1fr;
  }

  .sf-clergy-card {
    padding: 24px 20px;
  }

  .sf-clergy-photo {
    width: 150px;
    height: 150px;
  }

  .sf-button-row {
    gap: 10px;
  }

  .sf-button {
    width: 100%;
    text-align: center;
  }
}

/* ── Podcast player ── */
.podcast-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: #2d1a0e; color: #fdf6ec;
  display: none; align-items: center; gap: 12px;
  padding: 10px 20px; box-shadow: 0 -2px 12px rgba(0,0,0,.4);
}
.podcast-player.active { display: flex; }
.podcast-player-art { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.podcast-player-info { flex: 1; min-width: 0; }
.podcast-player-title { font-size: 13px; font-weight: 600; font-family: Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-player-show  { font-size: 11px; color: #c49a6c; font-family: sans-serif; }
.podcast-player-btn   { background: none; border: none; color: #fdf6ec; font-size: 24px; cursor: pointer; padding: 4px 8px; flex-shrink: 0; }
.podcast-player-btn:hover { color: #c49a6c; }
.podcast-player-seek  { flex: 2; min-width: 80px; accent-color: #c49a6c; }
.podcast-player-time  { font-size: 11px; font-family: monospace; white-space: nowrap; color: #c49a6c; flex-shrink: 0; }
.podcast-player-speed { background: #4a2c16; border: none; color: #fdf6ec; font-size: 11px; border-radius: 3px; padding: 3px 6px; cursor: pointer; flex-shrink: 0; }
.podcast-player-vol   { width: 70px; accent-color: #c49a6c; flex-shrink: 0; }

/* ── Podcast episode cards ── */
.episode-grid { display: flex; flex-direction: column; gap: 16px; }
.episode-card {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 16px; align-items: start;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.08); padding: 16px;
}
.episode-art { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; }
.episode-meta { font-size: 12px; font-family: sans-serif; color: var(--slate-lt); margin-bottom: 4px; }
.episode-title { font-size: 17px; font-family: Georgia, serif; color: var(--brown); margin: 0 0 6px; font-weight: 600; }
.episode-excerpt { font-size: 14px; color: var(--slate); line-height: 1.6; }
.episode-play { background: var(--brown); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: center; }
.episode-play:hover { background: var(--brown-lt); }
@media (max-width: 600px) {
  .episode-card { grid-template-columns: 64px 1fr; }
  .episode-card .episode-play { grid-column: 2; justify-self: start; margin-top: 8px; }
  .episode-art { width: 64px; height: 64px; }
}

/* ── Podcast search results (admin) ── */
.podcast-search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.podcast-result-card { border: 2px solid transparent; border-radius: 8px; padding: 10px; cursor: pointer; text-align: center; background: #fdf6ec; transition: border-color .15s; }
.podcast-result-card:hover, .podcast-result-card.selected { border-color: var(--brown); }
.podcast-result-card img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; margin-bottom: 6px; }
.podcast-result-card-name { font-size: 12px; font-weight: 600; color: var(--brown); line-height: 1.3; }
.podcast-result-card-author { font-size: 11px; color: var(--slate-lt); margin-top: 2px; }

/* ============================================================
   OCCI Component & Section Styles
   ============================================================ */

.container {
  width: min(100% - 32px, var(--occi-max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--occi-gold);
  color: #1e2a36;
  font-weight: 700;
  border: 2px solid var(--occi-gold);
  box-shadow: var(--occi-shadow);
  text-decoration: none;
}

.button:hover {
  background: #b89250;
  border-color: #b89250;
  color: #12202f;
  text-decoration: none;
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: #ffffff;
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.card {
  background: var(--occi-white);
  border: 1px solid var(--occi-border);
  border-radius: var(--occi-radius);
  padding: 28px 24px;
  box-shadow: var(--occi-shadow);
  height: 100%;
}

.card p:last-child { margin-bottom: 0; }

/* ---- Home sections ---- */

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(22, 50, 79, 0.78), rgba(22, 50, 79, 0.72)),
    radial-gradient(circle at top right, rgba(201, 169, 107, 0.28), transparent 30%),
    linear-gradient(135deg, #173552 0%, #274f76 55%, #4a6f92 100%);
  color: #ffffff;
  padding: 110px 0 100px;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px -10%;
  height: 160px;
  background: var(--occi-cream);
  border-top-left-radius: 100% 100px;
  border-top-right-radius: 100% 100px;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero h2 {
  color: #ffffff;
  max-width: 800px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  margin-bottom: 20px;
}

.home-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.94);
}

.home-intro { background: var(--occi-cream); }

.home-highlights { background: #f1ece3; }
.home-highlights .card { border-top: 4px solid var(--occi-gold); }

.home-pathways { background: var(--occi-white); }
.home-pathways .card a { font-weight: 700; }

.home-formation {
  background:
    linear-gradient(180deg, rgba(22,50,79,0.04), rgba(22,50,79,0.06)),
    #f6f8fa;
}
.home-formation .button { margin-top: 8px; }

.home-communion {
  background: linear-gradient(135deg, #173552 0%, #274f76 100%);
  color: #ffffff;
  text-align: center;
}

.home-communion h2,
.home-communion p,
.home-communion a { color: #ffffff; }

.home-communion a {
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 2px;
}

.home-communion a:hover {
  border-color: #ffffff;
  text-decoration: none;
}

.home-cta {
  background: var(--occi-white);
  text-align: center;
}

.home-cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta .button-secondary {
  color: var(--occi-navy);
  border-color: var(--occi-border);
}

.home-cta .button-secondary:hover {
  background: #f5f7f9;
  color: var(--occi-navy);
  border-color: var(--occi-blue);
}

.home-intro .two-column > div,
.home-formation .two-column > div {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(217, 224, 230, 0.9);
  border-radius: var(--occi-radius);
  padding: 30px;
  box-shadow: var(--occi-shadow);
}

/* ---- OCCI responsive ---- */
@media (max-width: 1024px) {
  .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .home-hero { padding: 88px 0 80px; }

  .home-hero::after {
    height: 90px;
    bottom: -40px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
    width: 100%;
  }

  .home-intro .two-column > div,
  .home-formation .two-column > div { padding: 24px; }
}
