/* site.css — shared styles for every sandford.digital marketing page.
   Brand carried over from the previous index.html: Inter body type, the
   Arial "Sandford / DIGITAL" logo lockup with its underline bar, off-white
   page, near-black ink, accent blue #005FFF.
   Text colours are chosen for WCAG AA (computed):
     --ink    #1A1A1A on --white  #FAFAF8  16.6:1
     --muted  #4A4A4A on --white           8.8:1  (old --grey-md #888 was 3.4:1)
     --accent #005FFF on --white           5.4:1
     --on-dark #FAFAF8 on --black #0D0D0D  18.9:1
     --on-dark-muted #B8B8B8 on --black    10.0:1 */

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

:root {
  --black: #0D0D0D;
  --ink: #1A1A1A;
  --muted: #4A4A4A;
  --line: #D4D4D4;
  --grey-bg: #F2F2F0;
  --white: #FAFAF8;
  --accent: #005FFF;
  --accent-hv: #0047CC;
  --on-dark: #FAFAF8;
  --on-dark-muted: #B8B8B8;
  --font-body: 'Inter', Arial, sans-serif;
  --wrap: 1120px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hv); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--black); color: var(--on-dark); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Logo ── */
.logo { display: inline-block; line-height: 1; text-decoration: none; }
.logo__inner { display: inline-flex; flex-direction: column; align-items: flex-start; }
.logo__sandford { font-family: Arial, sans-serif; font-size: 15.5px; font-weight: 700; color: var(--black); white-space: nowrap; }
.logo__digital { font-family: Arial, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--black); white-space: nowrap; margin-top: 1px; }
.logo__bar-wrap { margin-top: 6px; width: 64px; }
.logo__bar { height: 4px; background: var(--black); width: 100%; }
.logo--white .logo__sandford, .logo--white .logo__digital { color: var(--on-dark); }
.logo--white .logo__bar { background: var(--on-dark); }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin-left: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; display: inline-block; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav__actions { display: flex; gap: 8px; align-items: center; }
.nav__login { font-size: 14px; font-weight: 600; text-decoration: none; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 4px; white-space: nowrap; }
.nav__cta { font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 4px; background: var(--accent); color: #fff; white-space: nowrap; }
.nav__cta:hover { background: var(--accent-hv); color: #fff; }
.nav__toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); padding: 0 12px; }

@media (max-width: 1180px) {
  .nav__toggle { display: inline-block; }
  .nav__panel { display: none; width: 100%; padding: 8px 0 20px; }
  .nav__panel.open { display: block; }
  .nav__row { flex-wrap: wrap; }
  .nav__links { flex-direction: column; margin: 0 0 16px; gap: 0; }
  .nav__links a { padding: 12px 0; display: block; font-size: 16px; }
  .nav__links a[aria-current="page"] { box-shadow: none; text-decoration: underline; }
}
@media (min-width: 1181px) {
  .nav__panel { display: flex; align-items: center; gap: 20px; margin-left: auto; }
}

/* ── Sections ── */
.hero { padding: 88px 0 72px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: 24px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 62ch; margin-bottom: 14px; }
.section { padding: 72px 0; }
.section--grey { background: var(--grey-bg); }
.section--dark { background: var(--black); color: var(--on-dark); }
.section--dark p, .section--dark li { color: var(--on-dark-muted); }
.section--dark a:not(.btn) { color: #8FB5FF; } /* 8.9:1 on --black */
.section h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; max-width: 30ch; }
.section h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.section p { max-width: 70ch; margin-bottom: 14px; font-size: 17px; }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.prose p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; padding: 24px; }
.section--grey .card { background: #fff; }
.section--dark .card { background: #1A1A1A; border-color: #333; border-top-color: var(--accent); }
.card p { font-size: 16px; margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; }
.steps > li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 16px; }
.steps > li p { font-size: 16px; }

.ticks { list-style: none; display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 24px 0 8px; max-width: 900px; }
.ticks li { position: relative; padding-left: 28px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.section--dark .ticks li::before { border-color: #8FB5FF; }

.strap { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; }

/* ── Buttons ── */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hv); border-color: var(--accent-hv); color: #fff; }
.btn--secondary { background: transparent; color: var(--accent); }
.btn--secondary:hover { background: rgba(0, 95, 255, 0.06); }
.section--dark .btn--secondary { color: #fff; border-color: #fff; }

/* ── Forms ── */
.form { max-width: 560px; display: grid; gap: 18px; margin-top: 24px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #767676; border-radius: 4px; background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.form__status { font-size: 15px; min-height: 1.5em; }
.form__status--error { color: #B3261E; }
.form__status--success { color: #1E6B34; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 24px; max-width: 760px; }
.inline-form .field { flex: 1 1 320px; }

/* ── About ── */
.founder { display: grid; gap: 32px; grid-template-columns: minmax(0, 220px) 1fr; align-items: start; }
.founder img { border-radius: 6px; width: 100%; height: auto; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 200px; } }
.company { font-style: normal; line-height: 1.8; }

/* ── Self-assessment ── */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; max-width: 720px; margin-top: 8px; }
.quiz__progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 24px; }
.quiz__progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.quiz__label { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.quiz__q { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 20px; }
.quiz__option { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid #767676; border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; min-height: 48px; }
.quiz__option:hover { border-color: var(--accent); background: rgba(0, 95, 255, 0.05); }
.quiz__back { background: none; border: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; text-decoration: underline; }
.quiz__back[disabled] { visibility: hidden; }
.quiz__badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 14px; margin-bottom: 14px; border: 1.5px solid currentColor; }
.quiz__badge--strong { color: #1E6B34; background: #E8F5E9; }
.quiz__badge--gaps { color: #7A4F00; background: #FFF4DC; }
.quiz__badge--trust { color: #B3261E; background: #FBE9E7; }
.quiz__restart { margin-top: 16px; }

/* ── Footer ── */
.footer { background: var(--black); color: var(--on-dark); padding: 56px 0 32px; }
.footer__top { display: grid; gap: 32px; grid-template-columns: 1.2fr 2fr 1.2fr; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr; } }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); margin-bottom: 12px; font-weight: 600; }
.footer__links { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px 20px; }
.footer a { color: var(--on-dark); text-decoration: none; display: inline-block; padding: 6px 0; font-size: 15px; }
.footer a:hover { text-decoration: underline; color: var(--on-dark); }
.footer address { font-style: normal; display: grid; }
.footer__bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 24px; font-size: 14px; color: var(--on-dark-muted); }
.footer__bottom p + p { margin-top: 6px; font-size: 13px; }
