/* ============================================================
   Via Rigore — Shared Stylesheet
   ============================================================ */

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

/* Variables */
:root {
  --bg:           #0e0e0e;
  --surface:      #161616;
  --surface-2:    #1e1e1e;
  --border:       #272727;
  --text:         #e8e0d4;
  --text-muted:   #8a8278;
  --gold:         #c8a96e;
  --gold-light:   #e0c484;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --max-w:        1080px;
  --max-w-text:   680px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo em {
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ── Main offset ── */
main { padding-top: 4.5rem; }

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 2.75rem;
}

.hero-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.25rem;
}

.hero-description {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.85;
  margin-bottom: 3rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── Page header ── */
.page-header {
  padding: 5.5rem 2.5rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: var(--max-w-text);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── Section ── */
.section {
  padding: 5rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.section p {
  color: var(--text-muted);
  max-width: var(--max-w-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.25rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.card-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.875rem;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

/* ── Latin blocks ── */
.latin-block {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 3.5rem 0;
}

.latin-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.latin-translation {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.latin-body {
  color: var(--text);
  max-width: var(--max-w-text);
  line-height: 1.85;
}

.latin-body p + p { margin-top: 0.875rem; }

/* ── Stats ── */
.stats {
  display: flex;
  gap: 4rem;
  margin: 3.5rem 0;
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Offerings grid ── */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.offering {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.25rem;
}

.offering-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.offering h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.875rem;
}

.offering p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── Credentials list ── */
.credentials-list p { max-width: none; }

/* ── Divider ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--gold); }

/* ── Contact form ── */
.contact-form {
  max-width: 560px;
  margin-top: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { min-height: 120px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero, .page-header, .section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .stats { gap: 2.5rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
