:root {
  --ink: #13232b;
  --muted: #4a5a62;
  --navy: #0e2f3a;
  --navy-2: #164552;
  --teal: #1f6f78;
  --gold: #d4a94f;
  --gold-soft: #f4e7c8;
  --paper: #ffffff;
  --sand: #f6f3ec;
  --line: #e2ddd1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 47, 58, 0.10);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); }
h3 { font-size: 1.3rem; color: var(--navy); }
p { margin: 0 0 1em; }

a { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 47, 58, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }

.brand, .footer-brand {
  font-family: var(--font-head); font-size: 1.5rem; text-decoration: none; color: #fff;
  letter-spacing: 0.01em; display: inline-flex; align-items: baseline; gap: .3rem;
}
.brand-my {
  color: var(--gold); font-style: italic; font-weight: 500;
}
.brand-name { font-weight: 600; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; align-items: center; }
.site-nav a {
  display: block; padding: .5rem .9rem; color: #e8eef0; text-decoration: none;
  font-weight: 500; font-size: .98rem; border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav .nav-cta { border: 1px solid var(--gold); color: var(--gold); }
.site-nav .nav-cta:hover { background: var(--gold); color: var(--navy); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: #fff;
  transform: translateX(-50%); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; transform: none; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 169, 79, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(31, 111, 120, 0.55), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 6rem 0 6.5rem;
}
.eyebrow {
  display: inline-block; margin-bottom: 1rem; font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.eyebrow-dark { color: var(--teal); }
.lead { font-size: 1.15rem; color: #d8e4e7; max-width: 36rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e0b964; }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Hero panel (decorative, CSS only) */
.ledger {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px; padding: 1.4rem 1.6rem 1.6rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transform: rotate(-1.5deg);
}
.ledger-head { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.dot:first-child { background: var(--gold); }
.ledger-row, .ledger-total {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px dashed rgba(255,255,255,.18);
  font-size: .95rem; color: #e8eef0;
}
.bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.bar-1 { width: 55%; }
.bar-2 { width: 42%; }
.bar-3 { width: 48%; }
.ledger-total { border-bottom: 0; border-top: 2px solid rgba(255,255,255,.35); margin-top: .4rem; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.check {
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold); position: relative;
}
.check::after {
  content: ""; position: absolute; left: 10px; top: 6px; width: 8px; height: 14px;
  border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--sand); }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2.5rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.card p { color: var(--muted); margin: 0; }

.card-icon {
  display: block; width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.2rem;
  background: var(--gold-soft); position: relative;
}
.icon-books::before, .icon-books::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 3px; background: var(--navy); border-radius: 2px;
}
.icon-books::before { top: 18px; box-shadow: 0 7px 0 var(--navy); }
.icon-books::after { top: 32px; right: 22px; }
.icon-tax::before {
  content: "%"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--navy);
}
.icon-advice::before, .icon-advice::after { content: ""; position: absolute; bottom: 14px; width: 6px; background: var(--navy); border-radius: 2px; }
.icon-advice::before { left: 16px; height: 12px; box-shadow: 10px -6px 0 var(--teal); }
.icon-advice::after { left: 36px; height: 24px; background: var(--gold); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.facts {
  margin: 0; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.facts div { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.facts dd { margin: .2rem 0 0; font-size: 1.05rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem;
  background: var(--paper); box-shadow: var(--shadow);
}
.contact-card address { font-style: normal; font-size: 1.1rem; }
.legal-list { list-style: none; margin: 0; padding: 0; }
.legal-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.legal-list li:last-child { border-bottom: 0; }
.legal-list span { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6da; padding: 3rem 0 2rem; font-size: .95rem; }
.footer-brand { margin: 0 0 1rem; }
.copyright { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 4.5rem 0 5rem; }
  .hero-panel { max-width: 420px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .25rem; }
  .site-nav a { padding: .8rem 1rem; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero-panel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
