/* ==========================================================================
   Resumes.info - 2026
   Mobile first. Light and dark. No external fonts or frameworks.
   ========================================================================== */

:root {
  --bg:          #f6f4ef;
  --surface:     #ffffff;
  --surface-2:   #efece4;
  --ink:         #15232b;
  --ink-2:       #4a5a63;
  --line:        #dcd7cc;
  --brand:       #0f5f5c;
  --brand-ink:   #ffffff;
  --brand-soft:  #dcefeb;
  --accent:      #e29a2f;
  --accent-soft: #fbecd2;
  --danger:      #b42318;
  --danger-soft: #fdeceb;
  --focus:       #2563eb;
  --brand-mark-ink: #f6f4ef;

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

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgb(21 35 43 / .06), 0 8px 24px rgb(21 35 43 / .08);
  --gutter:    clamp(16px, 4vw, 32px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #10171c;
    --surface:     #172228;
    --surface-2:   #1d2a31;
    --ink:         #e8eef0;
    --ink-2:       #a3b3ba;
    --line:        #2c3b43;
    --brand:       #4fc1b6;
    --brand-ink:   #08221f;
    --brand-soft:  #143331;
    --accent:      #f0b45a;
    --accent-soft: #3a2c16;
    --danger:      #ff8a80;
    --danger-soft: #3a1c1a;
    --focus:       #7aa7ff;
    --brand-mark-ink: #10171c;
    --shadow:      0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}

/* ---------------------------------------------------------------- base --- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for .mobile-call */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; }

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1.1em; }

.shell { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6em 1em; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--ink-2); }

/* ------------------------------------------------------------ masthead --- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.brand__words { font: 700 1.3rem/1 var(--serif); letter-spacing: -.02em; }
.brand__tld { color: var(--brand); }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.nav.is-open { display: block; }
/* Without JS the toggle does nothing, so show the menu. */
.no-js .nav { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 12px; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav__link[aria-current="page"] { color: var(--brand); }

.nav__phone {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  padding: 12px 18px; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav__phone svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav, .no-js .nav {
    position: static; display: flex; align-items: center; gap: 8px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav__list { display: flex; gap: 2px; }
  .nav__link { border: 0; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
  .nav__link:hover { background: var(--surface-2); }
  .nav__link[aria-current="page"] { background: var(--brand-soft); }
  .nav__phone { margin: 0 0 0 8px; padding: 9px 16px; font-size: .95rem; }
}

/* -------------------------------------------------------------- layout --- */

.layout {
  display: grid; gap: 32px;
  padding-block: clamp(28px, 5vw, 64px);
}
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .layout--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
}
.content { min-width: 0; }

.page-head { margin-bottom: 28px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.page-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.08; margin-bottom: .4em; text-wrap: balance; }
.page-title em {
  font-style: italic; color: var(--brand);
  background: linear-gradient(transparent 70%, var(--accent-soft) 70%);
}
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding-inline: 28px; font-size: 1.05rem; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--jump { margin-top: 4px; }
@media (min-width: 900px) { .btn--jump { display: none; } }

.link-arrow { font-weight: 600; }
.link-arrow::after { content: " \2192"; }

/* -------------------------------------------------------------- blocks --- */

.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: f; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
.feature-list li {
  counter-increment: f; position: relative; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
@media (max-width: 639px) {
  .feature-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; }
  .feature-list li::before { grid-row: span 2; margin-bottom: 0 !important; }
}
.feature-list li::before {
  content: counter(f); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 .95rem/1 var(--sans);
}
.feature-list h3 { margin-bottom: .3em; }
.feature-list p { margin: 0; color: var(--ink-2); font-size: .97rem; }

.callout {
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout a[href^="tel:"] { font-weight: 700; white-space: nowrap; }

.quote { margin: 0; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.quote::before {
  content: "\201C"; position: absolute; top: -6px; left: 16px;
  font: 700 3.5rem/1 var(--serif); color: var(--accent);
}
.quote blockquote { margin: 10px 0 12px; }
.quote blockquote p { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; }
.quote figcaption { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.quote--lg { margin-block: 28px; }
.quote--lg blockquote p { font-size: 1.25rem; }

.pullquote {
  font: italic 600 clamp(1.3rem, 1.1rem + 1vw, 1.6rem)/1.3 var(--serif);
  border-left: 4px solid var(--accent); padding-left: 18px; margin-block: 28px;
}

.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px); text-align: center; margin-bottom: 28px; box-shadow: var(--shadow);
}
.cta h2 { margin-top: 0; }
.cta__phone {
  display: inline-block; margin: 6px 0 14px; padding: 12px 26px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font: 700 clamp(1.4rem, 1.1rem + 1.5vw, 2rem)/1.2 var(--sans); letter-spacing: .01em;
}
.cta__note { color: var(--ink-2); font-size: .95rem; margin: 0 auto; max-width: 52ch; }

.contact-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.contact-list > div { display: grid; gap: 4px; padding: 16px 20px; border-top: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 0; }
@media (min-width: 560px) { .contact-list > div { grid-template-columns: 110px 1fr; } }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; }

/* ------------------------------------------------------------- sidebar --- */

.sidebar { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 900px) { .sidebar { position: sticky; top: 88px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card__title { font-size: 1.3rem; margin: 0 0 .5em; }
.card__kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.card--form { box-shadow: var(--shadow); border-top: 4px solid var(--brand); padding: 24px; }
.card--quiet { background: transparent; }
.card--quiet p { color: var(--ink-2); font-size: .95rem; }
.card__links { display: grid; gap: 6px; margin: 0; }
.card__links a { font-weight: 600; }

/* --------------------------------------------------------------- forms --- */

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 420px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form--panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 4vw, 32px); gap: 24px; box-shadow: var(--shadow); margin-bottom: 32px;
}

.field { display: grid; gap: 6px; }
.field label, .choice-group legend { font-weight: 600; font-size: .95rem; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--sans); /* 16px+ stops iOS zooming on focus */
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 200px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.field__error { margin: 0; color: var(--danger); font-size: .9rem; font-weight: 500; }
.alert { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 500; margin-bottom: 16px; }

.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--ink-2); }
.form__note svg { width: 14px; height: 14px; color: var(--brand); vertical-align: -2px; margin-right: 4px; }

/* Survey choices: large tap targets rather than tiny dropdowns. */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; padding: 0; font-size: 1.05rem; }
.choice-group[aria-invalid="true"] legend { color: var(--danger); }
.choice-group__num {
  display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 700;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer;
  font-size: .95rem; transition: border-color .15s, background .15s;
}
.choice input:hover + span { border-color: var(--brand); }
.choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.dropzone {
  display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg);
  transition: border-color .15s, background .15s;
}
.dropzone svg { width: 32px; height: 32px; color: var(--brand); }
.dropzone__text { font-weight: 600; word-break: break-word; }
.dropzone__hint { font-size: .85rem; color: var(--ink-2); }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--brand); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__input:focus-visible ~ .dropzone,
.field:focus-within .dropzone { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Without JS, show the native picker. */
.no-js .dropzone { display: none; }
.no-js .dropzone__input { position: static; width: auto; height: auto; opacity: 1; }

.divider { display: flex; align-items: center; gap: 12px; margin: -6px 0; color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* --------------------------------------------------------------- steps --- */

.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: none; }
.steps__item { display: grid; gap: 8px; justify-items: start; font-size: .8rem; color: var(--ink-2); }
.steps__item::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--line); }
.steps__item.is-done::before, .steps__item.is-current::before { background: var(--brand); }
.steps__item.is-current { color: var(--ink); font-weight: 600; }
.steps__num { display: none; }
@media (max-width: 479px) {
  .steps__label { display: none; }
  .steps__item.is-current .steps__label { display: inline; white-space: nowrap; }
}

/* ------------------------------------------------------------- callbar --- */

.callbar { background: var(--brand); color: var(--brand-ink); }
.callbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.callbar__text { margin: 0; font-size: 1.1rem; max-width: 52ch; }
.callbar__text strong { font-family: var(--serif); font-size: 1.25rem; display: block; }

/* -------------------------------------------------------------- footer --- */

.footer { background: var(--surface-2); color: var(--ink-2); font-size: .95rem; }
.footer a { color: var(--ink); }
.footer__inner { display: grid; gap: 28px; padding-block: 40px 24px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer__name { font: 700 1.2rem/1 var(--serif); color: var(--ink); margin-bottom: 12px; }
.footer__address { font-style: normal; margin-bottom: 12px; }
.footer__heading { font: 700 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 12px; }
.footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid var(--line); padding-block: 18px; font-size: .85rem; }
.footer__legal p { margin: 0; }

/* ------------------------------------------------- mobile call button --- */

.mobile-call {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
}
.mobile-call svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .mobile-call { display: none; } }

@media print {
  .masthead, .sidebar, .callbar, .mobile-call, .btn--jump { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
.no-js .nav-toggle { display: none; }
