/* ===========================================================
   Ask Nathan Financial Services
   Lightweight, dependency-free stylesheet
   =========================================================== */

:root {
  --ink:        #0b1f3a;   /* deep navy */
  --ink-soft:   #143055;
  --ink-line:   #1d3a60;
  --gold:       #c79a4b;   /* premium accent */
  --gold-soft:  #e3c98c;
  --paper:      #ffffff;
  --paper-alt:  #f6f4ef;   /* warm neutral */
  --text:       #1f2a37;
  --muted:      #5b6b7e;
  --muted-light:#9fb0c4;
  --border:     #e7e2d8;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 48px -28px rgba(11, 31, 58, 0.45);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

.sr-only {
  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: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--ink); color: var(--gold);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.brand-sub  { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  font-size: 0.94rem; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 10px 20px !important; border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--ink-soft); }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 14px 30px -16px rgba(199,154,75,.8); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(199,154,75,0.14), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #0a1830 55%, #081427 100%);
  color: #eaf0f7;
  padding: 88px 0 96px;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px;
  padding: 7px 16px; border: 1px solid rgba(199,154,75,0.4); border-radius: 999px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #c9d6e6; max-width: 680px; margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  list-style: none; margin: 0; padding: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.hero-stats span { font-size: 0.9rem; color: var(--muted-light); }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }

.section-kicker {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 14px;
}
.section-kicker-light { color: var(--gold-soft); }

.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-intro { font-size: 1.08rem; color: var(--muted); margin-bottom: 0; }

.intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.intro p { font-size: 1.1rem; color: #344253; }

/* ===== Grids ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-num {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em; margin-bottom: 14px;
}
.section-alt .card { background: #fff; }

.card-feature { border-top: 3px solid var(--gold); }
.card-why h3 { display: flex; align-items: baseline; gap: 10px; }

/* ===== Approach feature rows ===== */
.approach-grid { gap: 14px 48px; }
.feature-row {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row h3 {
  font-size: 1.18rem; position: relative; padding-left: 22px;
}
.feature-row h3::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}
.feature-row p { color: var(--muted); margin-bottom: 0; padding-left: 22px; }

/* ===== Numbered detail list ===== */
.list-detail {
  list-style: none; counter-reset: item;
  margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.list-detail li {
  counter-increment: item;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative;
}
.list-detail li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
  color: var(--gold); letter-spacing: 0.1em; display: block; margin-bottom: 12px;
}
.list-detail h3 { font-size: 1.18rem; }
.list-detail p { color: var(--muted); margin-bottom: 0; }

/* ===== Testimonials ===== */
.quote {
  margin: 0; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 32px;
  display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 22px; font-size: 1.02rem; color: #34414f;
  position: relative; padding-top: 36px;
}
.quote blockquote::before {
  content: "\201C"; position: absolute; top: -6px; left: -4px;
  font-family: var(--serif); font-size: 4rem; line-height: 1;
  color: var(--gold-soft);
}
.quote figcaption { margin-top: auto; }
.quote-name { display: block; font-weight: 700; color: var(--ink); }
.quote-role { display: block; font-size: 0.9rem; color: var(--muted); }

/* ===== Contact ===== */
.contact {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(199,154,75,0.16), transparent 60%),
    linear-gradient(155deg, var(--ink) 0%, #081427 100%);
  color: #eaf0f7; text-align: center;
}
.contact h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-lead { color: #c9d6e6; font-size: 1.1rem; max-width: 620px; margin: 0 auto 48px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s, border-color .2s, transform .2s;
}
a.contact-card:hover { background: rgba(199,154,75,0.12); border-color: var(--gold); transform: translateY(-3px); }
.contact-label { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.contact-value { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.contact-note { font-size: 0.88rem; color: var(--muted-light); }

/* ===== Footer ===== */
.site-footer {
  background: #07101f; color: #c9d6e6; padding: 56px 0 40px;
}
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { color: var(--muted-light); margin: 0; }
.footer-meta { margin: 0; font-size: 0.92rem; color: #aebfd2; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-meta a:hover { color: var(--gold); }
.footer-copy { margin: 8px 0 0; font-size: 0.82rem; color: #6f819a; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 24px 22px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-menu a { display: block; padding: 14px 0; }
  .nav-cta { text-align: center; }

  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .grid-2, .grid-3, .contact-grid, .list-detail { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

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