/* ============================================================
   Jonathan Pacilio — Site Stylesheet
   ============================================================ */

:root {
  --navy:      #001F66;
  --navy-2:    #001A56;
  --teal:      #006B95;
  --teal-br:   #00DBAF;
  --pink:      #FF004C;
  --cream:     #F4EFE3;
  --cream-2:   #ECE6D6;
  --ink:       #0A1430;
  --ink-soft:  #4A4F60;
  --rule:      #C9C2AD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.18  0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

/* ── Type System ─────────────────────────────────── */
.display-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.display-lg {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.display-md {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.display-sm {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.display-italic { font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--teal);
}
.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.body-md {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ── Layout ──────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.container-prose { max-width: 680px; margin: 0 auto; padding: 0 32px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 227, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.nav-logo .mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--teal-br) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--navy-2); color: var(--cream) !important; }
@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary, .btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream) !important;
}
.btn-primary:hover {
  background: var(--navy-2);
  color: var(--cream) !important;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream) !important;
}
.btn-arrow { font-size: 16px; line-height: 1; }

/* ── Page Header (used on all inner pages) ───────── */
.page-header {
  padding: clamp(60px, 8vw, 100px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 { margin-bottom: 24px; }
.page-header .lede { max-width: 640px; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 32px;
  margin-top: clamp(60px, 8vw, 100px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}
.footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(244, 239, 227, 0.65);
  line-height: 1.6;
  max-width: 360px;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-br);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(244, 239, 227, 0.75);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--teal-br); }
.footer-bottom {
  border-top: 1px solid rgba(244, 239, 227, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(244, 239, 227, 0.5);
}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-1 { animation: fadeUp 0.7s ease 0.05s both; }
.fade-up-2 { animation: fadeUp 0.7s ease 0.15s both; }
.fade-up-3 { animation: fadeUp 0.7s ease 0.25s both; }
.fade-up-4 { animation: fadeUp 0.7s ease 0.35s both; }
