/* Dansby CFO+ — Insights, CFO fit check, Clients, and welcome offer styles.
   Extends the site design system (style.css); all tokens inherited from style.css :root. */

/* ---------- shared editorial + card primitives ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-cards.two { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.1rem); }
.card .kicker { margin-bottom: .7rem; font-size: .69rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-text); }
.card h3 { margin-bottom: .7rem; }
.card p { margin-bottom: 1.1rem; font-size: .98rem; }
.card .card-foot { margin-top: auto; }
.card-meta { margin: 0 0 .9rem; font-size: .8rem; color: var(--muted); }

/* single featured insight (not a grid) */
.featured-insight { max-width: 720px; }

/* ---------- Insights ---------- */
.post-body { max-width: 720px; }
.post-body h2 { margin: 2.2rem 0 .8rem; font-size: 1.7rem; }
.post-body h3 { margin: 1.6rem 0 .6rem; font-size: 1.25rem; }
.post-body p, .post-body li { font-size: 1.05rem; line-height: 1.75; }
.post-body ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.post-body li { margin-bottom: .5rem; }
.post-meta { margin-bottom: 1.4rem; font-size: .82rem; color: var(--muted); }
.post-meta span { color: var(--rust-text); font-weight: 700; }
.post-tag { display: inline-block; margin: 0 .4rem .4rem 0; padding: .28rem .6rem; background: var(--bone); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--slate); }

/* ---------- Fit check (Do You Need a CFO?) ---------- */
.quiz { max-width: 760px; }
.quiz-progress { margin-bottom: 1.6rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--navy); }
.quiz-progress .bar { display: block; height: 6px; margin-top: .5rem; background: var(--line); border-radius: 3px; overflow: hidden; }
.quiz-progress .bar > span { display: block; height: 100%; width: 0; background: var(--rust); transition: width .25s ease; }
.q-fieldset { margin: 0 0 1.5rem; padding: clamp(1.3rem, 3vw, 1.9rem); border: 1px solid var(--line); background: var(--white); }
.q-fieldset legend { padding: 0 .5rem; margin-left: -.5rem; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 500; }
.q-num { display: block; margin-bottom: .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rust-text); }
.q-options { display: grid; gap: .6rem; margin-top: 1rem; }
.q-option { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border: 1px solid #CFC8BC; border-radius: 2px; background: #FFFEFB; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.q-option:hover { border-color: var(--rust); }
.q-option input { margin: .15rem 0 0; width: 18px; height: 18px; accent-color: var(--rust-text); flex: 0 0 auto; }
.q-option span { font-size: .96rem; color: var(--ink); }
.q-option:focus-within { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(193,103,60,.14); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.5rem; }
.quiz-error { margin: 1rem 0 0; padding: .85rem 1rem; border: 1px solid #B23B2E; border-left-width: 4px; background: #FBEEEC; color: #7A241B; font-size: .9rem; font-weight: 600; }
.quiz-error[hidden] { display: none; }

/* results */
.result { margin-top: .5rem; padding: clamp(1.6rem, 4vw, 2.4rem); border: 1px solid var(--line); border-top: 4px solid var(--rust); background: var(--white); }
.result[hidden] { display: none; }
.result .band { margin-bottom: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-text); }
.result h2 { margin-bottom: .9rem; }
.result .score-line { margin: 0 0 1.2rem; font-size: .9rem; color: var(--muted); }
.result .score-line strong { color: var(--navy); }
.result-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.result-note { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.disclaimer { margin-top: 1.4rem; padding: 1.1rem 1.3rem; background: var(--bone); border: 1px solid var(--line); font-size: .83rem; color: var(--slate); }
.disclaimer strong { color: var(--navy); }

.no-js-note { margin: 1.2rem 0; padding: 1rem 1.2rem; background: #FBF1EA; border: 1px solid var(--rust); font-size: .9rem; color: var(--ink); }

@media (max-width: 860px) {
  .grid-cards, .grid-cards.two { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* 4-column footer when Resources column is present */
.footer-main.has-resources { grid-template-columns: 1.2fr .7fr .8fr .8fr; }
@media (max-width: 900px) { .footer-main.has-resources { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-main.has-resources { grid-template-columns: 1fr; } }

/* full-width primary action buttons on phones (clients page + offer sheet) */
@media (max-width: 620px) {
  .btn-block-mobile { width: 100%; }
  .wo-dialog .wo-actions .btn { width: 100%; }
}

/* utility bar: stack the location and service-area lines below tablet width so
   "Pensacola, Florida · Serving the Gulf Coast & Wiregrass" never wraps mid-phrase */
@media (max-width: 768px) {
  .license-bar { font-size: .61rem; letter-spacing: .065em; }
  .license-bar .wrap { min-height: 46px; flex-direction: column; gap: 1px; line-height: 1.35; }
  .license-bar .dot { padding: 0 .28rem; }
  .bar-service .dot { display: none; }
}

/* breadcrumbs (visible) on inner pages */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--bone-2); font-size: .8rem; }
.breadcrumb .wrap { padding-top: .7rem; padding-bottom: .7rem; }
.breadcrumb a { color: var(--rust-text); font-weight: 600; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--muted); padding: 0 .3rem; }
.breadcrumb [aria-current="page"] { color: var(--slate); }

/* ---------- "Before you go" welcome offer ---------- */
.wo-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; background: rgba(6,32,60,.55); }
.wo-dialog { position: fixed; z-index: 91; background: var(--white); border-top: 4px solid var(--rust); box-shadow: 0 18px 60px rgba(6,32,60,.35); padding: clamp(1.6rem, 4vw, 2.4rem); }
.wo-dialog.wo-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 2.5rem)); max-height: calc(100vh - 3rem); overflow: auto; }
.wo-dialog.wo-sheet { left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh; overflow: auto; }
.wo-eyebrow { margin-bottom: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-text); }
.wo-dialog h2 { margin-bottom: .8rem; padding-right: 2.4rem; }
.wo-dialog p { font-size: .98rem; }
.wo-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.wo-actions .btn { min-height: 44px; }
.wo-close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.wo-close:hover { border-color: var(--rust); color: var(--rust-text); }
.wo-terms { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.wo-terms summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--slate); }
.wo-terms p { margin-top: .6rem; font-size: .8rem; color: var(--slate); }
.wo-dismiss { display: block; background: none; border: none; padding: .6rem 0; margin-top: .6rem; min-height: 44px; font-size: .88rem; color: var(--slate); text-decoration: underline; cursor: pointer; }
.wo-dismiss:hover { color: var(--navy); }
.wo-close:focus-visible, .wo-dismiss:focus-visible, .wo-terms summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .wo-dialog.wo-center { animation: wo-fade .22s ease; }
  .wo-dialog.wo-sheet { animation: wo-rise .25s ease; }
}
@keyframes wo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wo-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
