/*
 * Virtuity Financial Partners — faithful reproduction of virtuity.com (served verbatim from R2 at /_site/style.css?v=c7465d05df56).
 * Design language: navy #173760 titles · gold #E5A709 accent · grey #505761 body · Oswald condensed sans for the
 * display headings (300 for the giant hero/subhead words, 700 for eyebrows/titles) + labels/nav/buttons, Helvetica
 * Neue for body. Full-bleed hero + gold dash, alternating two-column rows,
 * dark call-out boxes with a gold CTA bar, service-icon grid, and the "experience / Hanna" navy block.
 * WCAG-AA safe: gold is only ever a background with navy/white-on-navy, or an accent — never gold text on white.
 * Interactive forms/modals are progressively enhanced by /_site/js/site.js?v=c7465d05df56 (see that file); the CSS stands alone.
 */

/* ---- fonts ---- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/_site/fonts/oswald.woff2?v=c7465d05df56') format('woff2'); }
@font-face { font-family: 'HelveticaNeue'; font-style: normal; font-weight: 400; font-display: swap; src: url('/_site/fonts/helvetica-roman.woff2?v=c7465d05df56') format('woff2'); }
@font-face { font-family: 'HelveticaNeue'; font-style: normal; font-weight: 700; font-display: swap; src: url('/_site/fonts/helvetica-bold.woff2?v=c7465d05df56') format('woff2'); }

/* ---- tokens ---- */
:root {
  --gold: #e5a709;
  --gold-pale: #e4cd90;
  --navy: #173760;
  --navy-dark: #02294a;
  --navy-darker: #011c34;
  --grey: #505761;
  --wash: #f0f7ff;
  --white: #ffffff;
  --line: rgba(23, 55, 96, 0.14);
  --sans: 'Oswald', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --body: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 75rem;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.5; color: var(--grey); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--navy); color: #fff; padding: 0.6rem 1rem; }

/* display type (serif) */
.eyebrow { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--gold); font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.1; margin: 0; }
.display { font-family: var(--sans); font-weight: 300; text-transform: uppercase; color: var(--white); font-size: clamp(3.4rem, 11vw, 8rem); line-height: 1.02; margin: 0.25rem 0 0; }
.sec-eyebrow { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-size: 0.85rem; margin: 0 0 0.75rem; }
.sec-num { font-family: var(--sans); font-weight: 300; color: var(--gold); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.sec-title { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--navy); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; margin: 0; }
.sec-sub { font-family: var(--sans); font-weight: 300; text-transform: uppercase; color: var(--gold); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; margin: 0 0 1.25rem; display: block; }

/* body text */
p { margin: 0 0 1rem; }
.lead { font-family: var(--body); font-weight: 700; color: var(--grey); font-size: 1.0625rem; }
.muted { color: var(--grey); }
.on-dark, .on-dark p, .on-dark .lead { color: #e7eef6; }
.on-dark .sec-title { color: #fff; }

/* ---- buttons ---- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; padding: 1rem 1.75rem; transition: background 0.15s, color 0.15s, opacity 0.15s; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.on-image .btn-outline, .on-dark .btn-outline { color: #fff; border-color: var(--gold); }
.on-image .btn-outline:hover, .on-dark .btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-solid { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-solid:hover { opacity: 0.9; }
.btn-bar { display: block; width: 100%; background: var(--gold); color: var(--navy); font-family: var(--sans); font-weight: 600; text-transform: uppercase; text-align: left; padding: 1.4rem 1.6rem; text-decoration: none; }
.btn-bar:hover { opacity: 0.92; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.9rem 1.5rem; }
.header-inner .brand { justify-self: center; grid-column: 2; grid-row: 1; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.4rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.nav-left { grid-column: 1; }
.nav-right { grid-column: 3; justify-content: flex-end; }
.nav a { color: var(--navy); text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--gold); }
.nav .login { color: var(--gold); }
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner .brand { grid-column: 2; justify-self: end; }
  .nav-left { grid-column: 1 / -1; grid-row: 2; }
  .nav-right { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}

/* ---- hero ---- */
.hero { position: relative; background: var(--navy-darker); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(1,28,52,0.82) 0%, rgba(1,28,52,0.5) 100%); }
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 7rem 1.5rem; }
.hero__lead { display: flex; align-items: flex-start; gap: 1.75rem; }
.hero__dash { flex: 0 0 auto; width: 64px; height: 2px; background: var(--gold); margin-top: 2.4rem; }
.hero__text { max-width: 40rem; }
.hero p { color: #e7eef6; max-width: 40rem; }
.hero--center .hero__inner { text-align: center; }
.hero--center .eyebrow { color: var(--gold); }
.hero--center .display { color: #fff; }
.hero--sm .hero__inner { padding: 5rem 1.5rem; text-align: center; }
.page-title { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--gold); font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.08; margin: 0; }
.hero .btn-row { margin-top: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- sections ---- */
.section { padding: 4.5rem 0; }
.section--wash { background: var(--wash); }
.section--navy { background: var(--navy-darker); color: #fff; }
.section--navy .sec-title { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; border-radius: 2px; }
.split__body { position: relative; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* dark call-out box */
.box { max-width: 34rem; }
.box-up { background: var(--navy-darker); background-image: linear-gradient(160deg, #02294a, #011c34); color: #fff; padding: 2rem 1.75rem; }
.box-up h3 { font-family: var(--sans); font-weight: 400; text-transform: uppercase; color: #fff; margin: 0 0 1rem; font-size: 1.5rem; }
.box-up h3 .big { display: block; color: var(--gold); font-size: 2.4rem; line-height: 1; }
.box-list { list-style: none; margin: 0; padding: 0; }
.box-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; color: #e7eef6; }
.box-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 14px; height: 3px; background: var(--gold); }

/* service-icon grid */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .icon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .icon-grid { grid-template-columns: 1fr; } }
.icon-card { border: 1px solid var(--line); padding: 1.5rem; background: #fff; }
.icon-card img { width: 64px; height: 64px; margin-bottom: 0.75rem; }
.icon-card h3 { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: var(--navy); font-size: 1.05rem; margin: 0 0 0.5rem; }
.icon-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.icon-card li { position: relative; padding-left: 1.1rem; margin-bottom: 0.25rem; }
.icon-card li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--gold); }

/* three support cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.card-3 img { width: 100%; margin-bottom: 1rem; }
.card-3 h3 { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: var(--navy); font-size: 1.15rem; margin: 0 0 0.5rem; }

/* experience + founder block */
.experience { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; }
@media (max-width: 900px) { .experience { grid-template-columns: 1fr; } }
.experience__info { background: var(--wash); padding: 3rem 2.5rem; }
.experience__founder { background: linear-gradient(180deg, #02294a, #011c34); color: #fff; padding: 3rem 2.5rem; }
.experience__founder h2 { font-family: var(--sans); font-weight: 400; text-transform: uppercase; color: var(--gold); font-size: 1.9rem; margin: 0 0 1rem; }
.experience__founder p { color: #dbe6f2; }
.founder-photo { width: 100%; max-width: 340px; margin: 0 auto 1.5rem; border: 6px solid rgba(255,255,255,0.9); }

/* event boxes */
.event-box { background: linear-gradient(160deg, #02294a, #011c34); color: #fff; margin-bottom: 1.5rem; }
.event-box__body { padding: 2rem 1.75rem; }
.event-box h3 { font-family: var(--sans); font-weight: 400; text-transform: uppercase; color: var(--gold); font-size: 1.6rem; margin: 0 0 0.35rem; }
.event-box .when { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: var(--navy); font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.contact-info address { font-style: normal; line-height: 1.8; }
.contact-info a { color: var(--navy); font-weight: 700; }

/* prose (privacy/terms) */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--sans); color: var(--navy); margin-top: 2rem; }
.prose a { color: var(--navy); text-decoration: underline; }

/* ---- footer ---- */
.site-footer { background: #fff; border-top: 3px solid var(--gold); padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-left img { height: 56px; margin-bottom: 1rem; }
.footer-left .biz { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: var(--navy); }
.footer-left address { font-style: normal; line-height: 1.7; font-size: 0.9rem; margin: 0.5rem 0; }
.footer-left a { color: var(--navy); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1.5rem; }
.footer-nav a { color: var(--navy); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.disclaimer { font-size: 0.8rem; line-height: 1.55; color: var(--grey); opacity: 0.85; }
.disclaimer p { margin: 0 0 0.7rem; }
.copyright { font-size: 0.85rem; color: var(--grey); margin-top: 1rem; }

/* utilities */
.text-center { text-align: center; }
.narrow { max-width: 46rem; }
.mt-2 { margin-top: 1.5rem; }

/* ---- forms (contact / ebook / presentation lead capture) ---- */
.lead-form { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.25rem; }
.lead-form label { display: grid; gap: 0.35rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; color: var(--navy); }
.lead-form input, .lead-form textarea { font-family: var(--body); font-size: 1rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 0.8rem 0.9rem; width: 100%; }
.lead-form textarea { resize: vertical; min-height: 8rem; }
.lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.lead-form button { justify-self: start; }
.lead-reveal { margin-top: 1.25rem; }
.lead-reveal p { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: var(--navy); }

/* on a dark surface (ebook section / modal) the labels + inputs invert */
.on-dark .lead-form label { color: #fff; }
.on-dark .lead-form input, .on-dark .lead-form textarea { background: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.4); color: var(--navy); }
.on-dark .lead-reveal p { color: #fff; }

/* ---- e-book call-out section (dark textured backdrop) ---- */
.ebook-section { position: relative; background: var(--navy-darker) center / cover no-repeat; color: #fff; padding: 4.5rem 0; }
.ebook-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,28,52,0.9) 0%, rgba(1,28,52,0.72) 100%); }
.ebook-section .container { position: relative; z-index: 1; }
.ebook { max-width: 40rem; }
.ebook p { color: #dbe6f2; }

/* ---- native <dialog> modal (Watch Presentation) ---- */
dialog.modal { width: min(92vw, 44rem); max-width: 44rem; border: none; border-radius: 4px; padding: 0; background: linear-gradient(180deg, #02294a, #011c34); color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
dialog.modal::backdrop { background: rgba(1,20,34,0.72); }
.modal__inner { padding: 2.5rem 2.25rem; }
.modal__inner h2 { font-family: var(--sans); font-weight: 400; text-transform: uppercase; color: var(--gold); font-size: 1.9rem; margin: 0 0 0.5rem; }
.modal__inner p { color: #dbe6f2; }
.modal__close { position: absolute; top: 0.5rem; right: 0.75rem; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem; }
.modal__close:hover { color: var(--gold); }
/* modal lead-forms sit on the dark modal gradient → invert labels/inputs/reveal for AA contrast (fixes navy-on-navy labels) */
dialog.modal .lead-form label { color: #fff; }
dialog.modal .lead-form input, dialog.modal .lead-form textarea { background: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.4); color: var(--navy); }
dialog.modal .lead-reveal p { color: #fff; }

/* ---- responsive 16:9 video embed ---- */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-page { max-width: 56rem; margin: 0 auto; }

/* ---- agent directory (Find an Agent) — cards are rendered client-side by site.js from the
   same-origin public API (/orgs/<slug>/agents); a card opens the shared #agent-modal with detail. ---- */
.agent-status { font-family: var(--body); color: var(--grey); font-size: 1.05rem; max-width: 46rem; }
.agent-status a { color: var(--navy); font-weight: 700; }
.agent-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* an explicit display: grid overrides the UA [hidden] rule — re-assert it so data-role state-switching hides the grid */
.agent-grid[hidden] { display: none; }
@media (max-width: 900px) { .agent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .agent-grid { grid-template-columns: 1fr; } }
.agent-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; width: 100%; height: 100%; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.75rem 1.5rem; cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.agent-card:hover { box-shadow: 0 12px 30px rgba(1, 28, 52, 0.14); transform: translateY(-2px); }
.agent-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.agent-card__avatar, .agent-detail__avatar { border-radius: 50%; overflow: hidden; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-weight: 600; }
.agent-card__avatar { width: 84px; height: 84px; margin-bottom: 0.5rem; font-size: 1.9rem; }
.agent-card__avatar img, .agent-detail__avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-card__name { font-family: var(--sans); font-weight: 600; text-transform: uppercase; color: var(--navy); font-size: 1.15rem; line-height: 1.15; }
.agent-card__headline { font-family: var(--body); color: var(--grey); font-size: 0.95rem; }
.agent-card__cta { margin-top: auto; padding-top: 0.75rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; color: var(--gold); }
.agent-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0; padding: 0; }
.agent-tags li { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; color: var(--navy); background: var(--wash); border: 1px solid var(--line); padding: 0.25rem 0.6rem; }

/* agent detail — rendered inside the dark <dialog> */
.agent-detail__head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.agent-detail__avatar { width: 88px; height: 88px; flex: 0 0 auto; font-size: 2rem; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(229, 167, 9, 0.6); }
.agent-detail__name { font-family: var(--sans); font-weight: 400; text-transform: uppercase; color: var(--gold); font-size: 1.9rem; margin: 0; line-height: 1.1; }
.agent-detail__headline { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; font-size: 0.9rem; margin: 0.35rem 0 0; }
.agent-detail__bio { color: #dbe6f2; margin: 0 0 1.25rem; }
.agent-detail__bio p { margin: 0 0 0.75rem; }
.agent-detail .agent-tags { margin-bottom: 1.25rem; }
.agent-detail .agent-tags li { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.agent-detail__contact { display: flex; flex-wrap: wrap; gap: 0.75rem; }
dialog.modal .btn-outline { color: #fff; border-color: var(--gold); }
dialog.modal .btn-outline:hover { background: var(--gold); color: var(--navy); }
/* title (position) + meta (cert · city, state) + socials */
.agent-card__title { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; color: var(--gold); }
.agent-card__meta { font-family: var(--body); font-size: 0.85rem; color: var(--grey); }
.agent-detail__title { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); font-size: 0.85rem; margin: 0.35rem 0 0; }
.agent-detail__meta { color: #dbe6f2; font-size: 0.9rem; margin: 0.3rem 0 0; }
.agent-detail__socials { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.1rem; }
.agent-social { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; color: #fff; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.agent-social:hover { color: var(--gold); }
