/* ============================================================
   Aven — deep ink & antique gold theme, engraved-certificate feel
   Theme variables: edit these to retheme the whole site.
   ============================================================ */
:root {
  color-scheme: light;
  --ink: #1c2230;          /* deep ink navy */
  --ink-soft: #5a6372;
  --gold: #b08d3e;         /* antique gold */
  --gold-dark: #8f7230;
  --gold-tint: #f4ecdb;
  --bg: #fbfaf7;
  --bg-tint: #f2efe7;
  --bg-hero: #ebe7da;
  --bg-footer: #11151f;
  --border: #e0dacb;
  --card: #ffffff;
  --serif: "Spectral", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(28, 34, 48, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Spectral serif display headings — Aven signature */
h1, h2 {
  font-family: var(--serif);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h2 { font-size: 2.05rem; margin-bottom: 12px; }
h3, h4 { line-height: 1.25; font-weight: 700; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b3447; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: var(--gold-tint); }
.btn-light { background: var(--gold); color: #fff; }   /* gold pop on dark CTA */
.btn-light:hover { background: var(--gold-dark); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* ============ Nav ============ */
.nav {
  background: rgba(251, 250, 247, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }

/* ============ Hero — engraved certificate frame ============ */
.hero {
  background: var(--bg-hero);
  padding: 30px 0 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  /* double-rule certificate border around the hero content */
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  padding: 52px 44px;
  margin: 12px auto 48px;
  background:
    radial-gradient(ellipse at center, rgba(176, 141, 62, 0.05), transparent 70%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 18px; }
.lead { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.84rem; color: var(--ink-soft); font-weight: 500; }

/* ---- Hero visual: vault + succession quorum ---- */
.vault {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vault-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.vault-title b { display: block; font-size: 0.85rem; font-family: var(--serif); }
.vault-title span { font-size: 0.7rem; color: var(--ink-soft); }
.vault-sealed {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  padding: 4px 10px;
}

.dms { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dms-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 7px;
}
.dms-label { font-weight: 700; }
.dms-state { color: #2f7a48; font-weight: 600; }
.dms-bar {
  height: 7px;
  background: var(--bg-tint);
  border-radius: 4px;
  overflow: hidden;
}
.dms-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.dms-sub { font-size: 0.66rem; color: var(--ink-soft); margin-top: 6px; }

.succession { padding: 12px 16px 8px; }
.succ-title { font-size: 0.72rem; font-weight: 700; margin-bottom: 8px; }
.succ-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.succ-row:last-child { border-bottom: none; }
.succ-key {
  color: var(--gold-dark);
  font-size: 0.95rem;
  line-height: 1;
}
.succ-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  color: #2f7a48;
  background: #e8f2ea;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.vault-foot {
  padding: 10px 16px;
  background: var(--gold-tint);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--gold-dark);
}

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 640px; margin-bottom: 44px; }

/* ============ Cards ============ */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; font-family: var(--serif); }
.card p { color: var(--ink-soft); font-size: 0.93rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--gold-tint);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ============ Steps (roman numerals) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--serif);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 8px; font-family: var(--serif); }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px 0; }
.stat {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #d8b86a;
  margin-bottom: 4px;
}
.stat p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }

/* ============ Testimonial ============ */
.quote-card {
  background: var(--card);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
  padding: 38px 42px;
  max-width: 800px;
  margin: 6px auto;
}
.quote-card blockquote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 22px;
}
.quote-card footer { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.quote-card footer strong { display: block; font-size: 0.95rem; }
.quote-card footer span { color: var(--ink-soft); font-size: 0.85rem; }

/* ============ Trust badges ============ */
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.trust-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
}

/* ============ CTA (dark panel, gold button) ============ */
.section-cta { background: var(--ink); color: #fff; padding: 80px 0; }
.cta-inner { text-align: center; max-width: 640px; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, 0.74); margin: 12px 0 28px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: none;
  font-family: inherit;
  font-size: 0.94rem;
  background: #fff;
  color: var(--ink);
}
.cta-form input:focus { outline: 3px solid rgba(176, 141, 62, 0.55); }
.cta-confirm { font-weight: 600; color: #d8b86a !important; }

/* ============ Footer ============ */
.footer { background: var(--bg-footer); color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px; }
.footer .logo { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  color: #d8b86a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 36px 24px; }
  .hero h1 { font-size: 2.1rem; }
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards-3, .cards-4, .steps, .stats { grid-template-columns: 1fr; }
  .hero-inner { outline-offset: 3px; margin-bottom: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  h2 { font-size: 1.6rem; }
}
