/* ============================================================
   CATHOLIGRAM — Global Design System
   catholigram.org
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ── TOKENS ── */
:root {
  --indigo-deep:    #0d0c1a;
  --indigo-mid:     #14122a;
  --indigo-light:   #1e1b3a;
  --indigo-soft:    #2a2650;
  --gold:           #c9a84c;
  --gold-light:     #e2c87a;
  --gold-dim:       #8a6f2e;
  --gold-pale:      #f0e6c8;
  --parchment:      #f5f0e8;
  --parchment-warm: #ede6d6;
  --parchment-dark: #d4c9b0;
  --ivory:          #faf7f2;
  --on-dark:        #e8e2d4;
  --muted-dark:     #9890b8;
  --on-parchment:   #1a1830;
  --muted-parchment:#5a5070;
  --rule:           rgba(201,168,76,0.22);
  --rule-strong:    rgba(201,168,76,0.5);
  --rule-parchment: rgba(90,80,112,0.18);
  --shadow-dark:    0 2px 24px rgba(0,0,0,0.4);
  --radius:         2px;
  --nav-h:          64px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--indigo-deep);
  color: var(--on-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY UTILITIES ── */
.font-display  { font-family: 'Cormorant Garamond', serif; }
.font-body     { font-family: 'Jost', sans-serif; }
.italic        { font-style: italic; }
.gold          { color: var(--gold); }
.gold-dim      { color: var(--gold-dim); }
.muted         { opacity: 0.65; }
.caps          { text-transform: uppercase; letter-spacing: 0.15em; }
.small-caps    { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  background: rgba(13,12,26,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  text-decoration: none;
  display: flex; flex-direction: column; gap: 1px;
}

.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

.nav-brand-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-dark);
  line-height: 1;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--gold-light); }

.nav-cta {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo-deep) !important;
  background: var(--gold);
  padding: 9px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  opacity: 1 !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--indigo-deep);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--on-dark);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--rule-parchment);
  color: var(--on-parchment);
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold-dim); }

.btn-sm { padding: 10px 24px; font-size: 10px; }

/* ── SECTION WRAPPERS ── */
.section { padding: 96px 6vw; }
.section-parchment { background: var(--parchment); color: var(--on-parchment); }
.section-mid { background: var(--indigo-mid); }
.section-deep { background: var(--indigo-deep); }
.section-light { background: var(--indigo-light); }

.container { max-width: 1200px; margin: 0 auto; }

/* ── SECTION HEADERS ── */
.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--rule);
  max-width: 64px;
}
.eyebrow-dark { color: var(--gold-dim); }
.eyebrow-dark::after { background: var(--rule-parchment); }

.section-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--ivory);
}
.section-h-dark { color: var(--on-parchment); }

.section-lead {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  color: var(--on-dark);
  opacity: 0.72;
  max-width: 540px;
}
.section-lead-dark { color: var(--muted-parchment); opacity: 1; }

/* ── RULE ORNAMENT ── */
.rule-ornament {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0;
}
.rule-ornament::before, .rule-ornament::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--rule);
}
.rule-ornament span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-dim);
  white-space: nowrap;
}

/* ── SEASON BAR ── */
.season-bar {
  background: var(--indigo-mid);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 6vw;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}

.season-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.season-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

.season-item.active { color: var(--gold); }
.season-item.active .season-dot {
  opacity: 1;
  background: var(--gold);
  box-shadow: 0 0 7px rgba(201,168,76,0.6);
}

/* ── CARD GRID ── */
.cell-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cell-grid-2 { grid-template-columns: 1fr 1fr; }
.cell-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cell-grid-4 { grid-template-columns: repeat(4, 1fr); }

.cell {
  background: var(--indigo-mid);
  padding: 36px 32px;
  transition: background 0.2s;
}
.cell:hover { background: var(--indigo-light); }

.cell-parchment { background: var(--ivory); }
.cell-parchment:hover { background: var(--parchment); }

/* ── FOOTER ── */
.footer {
  background: var(--indigo-deep);
  border-top: 1px solid var(--rule);
  padding: 64px 6vw 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.75;
  color: var(--on-dark);
  opacity: 0.55;
  max-width: 270px;
  margin-bottom: 20px;
}

.footer-col-title {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--on-dark);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}

.footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--on-dark);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

.footer-motto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold-dim);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeUp 1.1s 0.0s ease both; }
.anim-2 { animation: fadeUp 1.1s 0.15s ease both; }
.anim-3 { animation: fadeUp 1.1s 0.3s ease both; }
.anim-4 { animation: fadeUp 1.1s 0.45s ease both; }
.anim-5 { animation: fadeUp 1.1s 0.6s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cell-grid-3 { grid-template-columns: 1fr 1fr; }
  .cell-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 72px 5vw; }
  .cell-grid-2, .cell-grid-3, .cell-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
