/* ═══════════════════════════════════════════════════════
   PATER REVENIT — paterrevenit.com
   Design System: Monastic Authority
   ═══════════════════════════════════════════════════════ */

/* ─── FONTS ─── */
@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&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ─── VARIABLES ─── */
:root {
  --navy: #1B3A4B;
  --navy-deep: #0F2530;
  --crimson: #8B0000;
  --gold: #8B6914;
  --gold-light: #B8941F;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --warm-gray: #6B6560;
  --text: #2C2C2C;
  --text-light: #8A8580;
  --white: #FDFCFA;
  --black: #1A1A1A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --content-width: 800px;
  --nav-height: 80px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin-bottom: 1.2em; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 37, 48, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 105, 20, 0.3);
  transition: all 0.4s;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex;
  align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--cream); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--gold-light); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--cream-dark); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold-light);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { width: 100%; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column;
    padding: 2rem; gap: 1.5rem;
    transform: translateY(-120%); transition: transform 0.4s;
    border-bottom: 1px solid rgba(139, 105, 20, 0.3);
  }
  .nav-links.open { transform: translateY(0); }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--navy-deep);
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139, 105, 20, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(27, 58, 75, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15, 37, 48, 1) 0%, rgba(15, 37, 48, 0.95) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-width); margin: 0 auto;
  padding: 4rem 2rem; text-align: center;
}
.hero-latin {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300; color: var(--cream);
  letter-spacing: 0.1em; margin-bottom: 0.3em;
  animation: fadeUp 1s ease-out;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300; font-style: italic;
  color: var(--gold-light); margin-bottom: 2em;
  animation: fadeUp 1s ease-out 0.2s both;
}
.hero-line {
  width: 80px; height: 1px;
  background: var(--gold); margin: 0 auto 2em;
  animation: fadeUp 1s ease-out 0.3s both;
}
.hero-desc {
  max-width: 640px; margin: 0 auto 2.5em;
  font-size: 1.1rem; line-height: 1.8;
  color: rgba(245, 240, 232, 0.8);
  animation: fadeUp 1s ease-out 0.4s both;
}
.hero-cta {
  display: inline-flex; gap: 1.5rem;
  flex-wrap: wrap; justify-content: center;
  animation: fadeUp 1s ease-out 0.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; padding: 0.9rem 2.2rem;
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 2px;
  transition: all 0.3s; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--crimson); color: var(--cream);
  border: 1px solid var(--crimson);
}
.btn-primary:hover {
  background: transparent; color: var(--cream);
  border-color: var(--cream);
}
.btn-secondary {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(245, 240, 232, 0.4);
}
.btn-secondary:hover {
  border-color: var(--gold-light); color: var(--gold-light);
}
.btn-dark {
  background: var(--navy); color: var(--cream);
  border: 1px solid var(--navy);
}
.btn-dark:hover { background: var(--navy-deep); }

/* ─── SECTIONS ─── */
.section {
  padding: 6rem 2rem;
}
.section-dark {
  background: var(--navy-deep); color: var(--cream);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-cream { background: var(--cream); }
.section-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.section-narrow {
  max-width: var(--content-width); margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  font-size: 1.1rem; color: var(--warm-gray);
  max-width: 600px; margin: 0 auto;
}
.section-dark .section-header p { color: rgba(245, 240, 232, 0.7); }
.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: block;
}
.gold-line {
  width: 60px; height: 2px;
  background: var(--gold); margin: 1.5rem auto 0;
}

/* ─── GRID CARDS ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 2.5rem; border-radius: 3px;
  transition: all 0.3s;
  position: relative;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--gold);
  transition: height 0.4s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card:hover::before { height: 100%; }
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(139, 105, 20, 0.2);
}
.card-dark:hover { border-color: var(--gold-light); }
.card-dark h3 { color: var(--gold-light); }
.card h3 { margin-bottom: 0.8rem; font-size: 1.3rem; color: var(--navy); }
.card p { color: var(--warm-gray); font-size: 0.95rem; }
.card-dark p { color: rgba(245, 240, 232, 0.7); }
.card-number {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 300;
  color: var(--gold); opacity: 0.4;
  line-height: 1; margin-bottom: 1rem;
}

/* ─── QUOTE / CALLOUT ─── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem; margin: 2rem 0;
  background: rgba(139, 105, 20, 0.04);
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.3rem; font-style: italic;
  color: var(--navy); margin-bottom: 0.5rem;
}
.quote-block cite {
  font-family: var(--font-body);
  font-size: 0.85rem; font-style: normal;
  color: var(--gold);
}
.section-dark .quote-block {
  background: rgba(139, 105, 20, 0.1);
  border-left-color: var(--gold-light);
}
.section-dark .quote-block p {
  color: var(--gold-light);
}
.section-dark .quote-block cite {
  color: var(--gold);
}
.callout {
  background: var(--cream);
  border-left: 4px solid var(--crimson);
  padding: 2rem 2.5rem; margin: 2rem 0;
  border-radius: 0 3px 3px 0;
}
.callout-dark {
  background: rgba(139, 0, 0, 0.08);
  border-left-color: var(--crimson);
}

/* ─── STATS ROW ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; text-align: center;
  padding: 3rem 0;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 300;
  color: var(--gold-light); margin-bottom: 0.3rem;
}
.stat-item p {
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 500;
}

/* ─── TWO-COLUMN LAYOUT ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── TIMELINE / PROCESS ─── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%; background: var(--cream-dark);
}
.timeline-item {
  position: relative; margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cream-dark);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -3rem;
  top: 0.4rem; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  transform: translateX(-4px);
}
.timeline-item h4 { color: var(--navy); margin-bottom: 0.5rem; }
.timeline-item p { color: var(--warm-gray); font-size: 0.95rem; margin-bottom: 0; }

/* ─── TABLE ─── */
.pr-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
  font-size: 0.9rem;
}
.pr-table th {
  background: var(--navy); color: var(--cream);
  padding: 1rem; text-align: left; font-weight: 600;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pr-table td {
  padding: 1rem; border-bottom: 1px solid var(--cream-dark);
  vertical-align: top; background: var(--white); color: var(--black);
}
.pr-table tr:nth-child(even) td { background: var(--cream); }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-deep);
  color: rgba(245, 240, 232, 0.6);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(139, 105, 20, 0.3);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--font-display);
  color: var(--cream); font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer a { color: rgba(245, 240, 232, 0.6); }
.footer a:hover { color: var(--gold-light); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: var(--max-width); margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  text-align: center; font-size: 0.8rem;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic; color: var(--gold);
  font-size: 0.95rem; margin-bottom: 0.5rem;
}

/* ─── PAGE HEADER (interior pages) ─── */
.page-header {
  padding: 10rem 2rem 4rem;
  background: var(--navy-deep);
  text-align: center;
  position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(139, 105, 20, 0.06) 0%, transparent 60%);
}
.page-header h1 { color: var(--cream); position: relative; }
.page-header p {
  color: rgba(245, 240, 232, 0.7);
  font-size: 1.15rem; max-width: 600px;
  margin: 1rem auto 0; position: relative;
}
.page-header .section-label { position: relative; }

/* ─── CONTENT PAGES ─── */
.content-page { padding: 4rem 2rem; }
.content-page .section-narrow h2 { margin-top: 3rem; margin-bottom: 1rem; }
.content-page .section-narrow h3 { margin-top: 2rem; margin-bottom: 0.8rem; color: var(--crimson); }
.content-page .section-narrow ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.content-page .section-narrow li {
  margin-bottom: 0.5rem; color: var(--warm-gray);
}

/* ─── CONTACT FORM ─── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.9rem 1rem;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text); border-radius: 2px;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ─── CRISIS BANNER ─── */
.crisis-banner {
  background: var(--crimson); color: var(--cream);
  text-align: center; padding: 0.6rem 1rem;
  font-size: 0.8rem; font-weight: 500;
}
.crisis-banner a { color: var(--cream); text-decoration: underline; }
.crisis-banner a:hover { color: var(--gold-light); }

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
