/* Dave Denniston, CFA — Centurion Financial Strategies, LLC
   One stylesheet for the whole site. Colors live in :root tokens. */

:root {
  --ink: #14212b;          /* headings, primary text */
  --ink-2: #3d4b56;        /* body text */
  --muted: #6b7782;        /* captions, meta */
  --line: #e3ded4;         /* hairlines */
  --paper: #fbf9f5;        /* page ground */
  --card: #ffffff;
  --navy: #10283a;         /* dark sections */
  --navy-2: #173549;
  --green: #006b86;        /* Centurion deep teal (logo) */
  --green-dark: #00546a;
  --green-soft: #e3f1f4;
  --mint: #00b696;         /* Centurion mint (logo crest) */
  --brass: #00806b;        /* accent text: mint, darkened for contrast */
  --brass-soft: #e5f5f1;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 58, .04), 0 8px 28px rgba(16, 40, 58, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; display: inline-block; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brass-soft); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c9d3da; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--brass-soft); }
.topbar .links { display: flex; gap: 20px; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 50px; width: auto; flex: none; }
.brand-word { height: 36px; width: auto; }
@media (max-width: 480px) { .brand-mark { height: 42px; } .brand-word { height: 28px; } }
.brand-name { font: 500 1.3rem/1.1 var(--serif); display: block; }
.brand-sub { font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--green-soft); }
.nav a[aria-current="page"] { color: var(--green); }
.nav .btn { margin-left: 8px; color: #fff; padding: 12px 20px; }
.nav .btn:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 8px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 120px) clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 420px at 85% 10%, rgba(0, 107, 134, .10), transparent 60%),
  radial-gradient(700px 380px at 10% 100%, rgba(0, 182, 150, .10), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .btn-row { margin-top: 30px; }

.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow); max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); font: 400 5rem/1 var(--serif); letter-spacing: .04em; }
.portrait figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 14px 16px; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.portrait figcaption strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; display: block; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}

/* ---------- Credentials strip ---------- */
.creds { border-block: 1px solid var(--line); background: var(--card); }
.creds .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 26px 20px; border-left: 1px solid var(--line); }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred b { display: block; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.cred span { font-size: .88rem; color: var(--muted); }
@media (max-width: 800px) {
  .creds .wrap { grid-template-columns: 1fr 1fr; }
  .cred { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .cred:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.alt { background: var(--card); border-block: 1px solid var(--line); }
.dark { background: var(--navy); color: #c9d3da; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--mint); }
.dark a { color: #fff; }

.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 22px; height: 22px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; text-decoration: none; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.step { padding: 32px 28px 8px 0; counter-increment: step; }
.step::before { content: "0" counter(step); font: 400 2.6rem/1 var(--serif); color: var(--mint); display: block; margin-bottom: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.callout { background: var(--brass-soft); border-left: 3px solid var(--brass); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.callout p:last-child { margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 8px; }

.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Services detail ---------- */
.svc { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-block: 40px; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc h3 { font-size: 1.5rem; }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Video / insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 999px; font: 500 .9rem/1 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.video { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--navy-2), var(--navy)); }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #fff; }
.video .play .ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .2s, transform .2s; }
.video .play:hover .ico { background: var(--green); transform: scale(1.06); }
.video .play .cat { position: absolute; left: 16px; top: 14px; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.video .body { padding: 20px 22px 24px; }
.video h3 { font-size: 1.15rem; margin-bottom: 6px; }
.video .meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.video p { font-size: .95rem; margin: 0; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d6d0c4; border-radius: 10px; padding: 13px 14px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 107, 134, .15); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.form .consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.info-list li span:first-child { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(135deg, var(--green), #0f3a4d); color: #e3eff2; border-radius: 22px; padding: clamp(36px, 6vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b6bf; font-size: .9rem; padding-top: 64px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-grid h4 { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-logo img { width: 190px; height: auto; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.disclosure { padding-block: 32px 40px; font-size: .78rem; line-height: 1.6; color: #8fa0ab; }
.disclosure p { margin-bottom: .9em; }
.disclosure a { color: #c9d3da; text-decoration: underline; }
.check-bg { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.check-bg a { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 14px; font-size: .8rem; text-decoration: none; color: #fff; }
.check-bg a:hover { border-color: var(--mint); text-decoration: none; }
.copyright { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }

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

/* ---------- Blog ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.blog-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-tools .filters { margin-bottom: 16px; }
.search input { font: inherit; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 18px; width: 260px; max-width: 100%; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 107, 134, .15); }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink-2); }
.post-card .tag { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.post-card .tag .vid { color: var(--green); border: 1px solid var(--green-soft); background: var(--green-soft); border-radius: 999px; padding: 4px 8px; letter-spacing: .08em; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.post-card p { font-size: .94rem; margin: 0 0 16px; flex: 1; }
.post-card .meta { font-size: .82rem; color: var(--muted); }

.post-head { padding-block: clamp(48px, 7vw, 88px) 24px; }
.post-head .meta { color: var(--muted); font-size: .95rem; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.post-body { font-size: 1.08rem; }
.post-body img { border-radius: 10px; margin: 24px auto; height: auto; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 8px 10px; }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--mint); color: var(--ink); font-style: italic; }
.post-video { margin: 8px 0 32px; border-radius: var(--radius); overflow: hidden; }
.post-video .frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--navy-2), var(--navy)); }
.post-video.video { border: 0; }
.dated { background: var(--green-soft); border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: var(--ink); margin-bottom: 28px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: .95rem; }
.post-nav a { text-decoration: none; max-width: 48%; }
.post-nav .label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Print (compliance PDF records) ---------- */
@media print {
  .site-header { position: static; backdrop-filter: none; }
  .nav-toggle, .skip { display: none !important; }
  .card:hover, .post-card:hover { transform: none; box-shadow: none; }
  .post-card[hidden] { display: flex !important; }
  #post-more { display: none; }
}

/* ---------- About: family photo ---------- */
.family-photo { margin: 28px 0 0; }
.family-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.family-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.portrait img { object-position: 50% 20%; position: relative; z-index: 1; }
.portrait figcaption { z-index: 2; }

/* ---------- Video thumbnails ---------- */
.video .play .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play:has(.thumb)::before { content: ""; position: absolute; inset: 0; z-index: 1; transition: background .2s;
  background: linear-gradient(180deg, rgba(16, 40, 58, .45), rgba(16, 40, 58, .05) 40%, rgba(16, 40, 58, .35)); }
.video .play:hover::before { background: rgba(16, 40, 58, .25); }
.video .play .ico { position: relative; z-index: 2; }
.video .play .cat { z-index: 2; }
.video .play:has(.thumb) .ico { background: rgba(16, 40, 58, .55); border-color: rgba(255, 255, 255, .7); }
.video .play:has(.thumb) { place-items: end start; padding: 14px; }
.video .play:has(.thumb) .ico { width: 50px; height: 50px; }
