/* ── Nicomachea Site Design System ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #0f0e0c;
  --ink-mid: #2a2825;
  --gold: #9a7c2e;
  --gold-light: #c4a84a;
  --gold-pale: #f5f0e4;
  --cream: #faf7f2;
  --surface: #ffffff;
  --rule: #d4c9b4;
  --muted: #7a7470;
  --faint: #b0aaa6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,14,12,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154,124,46,0.2);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav-brand-tag {
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid rgba(154,124,46,0.4);
  padding: 8px 18px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(154,124,46,0.2);
  padding: 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer-tag {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer-col-label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-reg {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

/* ── COMMON ELEMENTS ──────────────────────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.rule-gold {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 20px 0;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

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

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  footer { grid-template-columns: 1fr; padding: 40px 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}
