/* Result Strategy Group — site styles
   System font stacks only (no webfont downloads). */

:root {
  /* Color */
  --navy-900: #0b1c33;
  --navy: #0f2340;
  --ink: #1b2536;
  --muted: #4a5466;
  --gold: #93691f;        /* text-safe gold, 4.9:1 on white */
  --gold-line: #c9a25a;   /* decorative rules & accents on navy */
  --paper: #f7f4ef;
  --white: #fff;
  --line: #e3ddd2;
  --field: #8e887d;       /* form control borders, 3:1 on white */
  --error: #a4262c;

  /* Type */
  --serif: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(2.375rem, 1.5rem + 3.1vw, 3.875rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem);
  --fs-h3: 1.3125rem;

  /* Space & layout */
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 76rem;
  --measure: 40rem;
  --section: clamp(4rem, 3rem + 5vw, 7rem);
  --header-h: 5.25rem;
  --radius: 3px;
  --border: 1px solid var(--line);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[id] { scroll-margin-top: 1.5rem; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.75rem 1rem; background: var(--navy); color: var(--white);
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared type pieces ---------- */
.eyebrow {
  margin-bottom: 1rem;
  color: var(--gold);
  font: 600 0.75rem/1.5 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; }
.numeral {
  color: var(--gold);
  font: 400 clamp(2.25rem, 2rem + 0.8vw, 2.75rem)/1 var(--serif);
  font-variant-numeric: lining-nums;
}

.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section__head { max-width: 64rem; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); text-align: center; }
.section__head .lead { max-width: 46rem; margin: 1.25rem auto 0; }
.section__head--left { margin-inline: 0; text-align: left; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.875rem;
  min-height: 3.25rem; padding: 0.75rem 1.75rem;
  border: 0; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  font: 500 1.0625rem/1.3 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--navy-900); }
.button svg { flex: none; width: 1.125rem; height: 1.125rem; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.875rem; color: var(--navy); text-decoration: none; }
.brand img { width: auto; height: 3.25rem; }
.brand__text { display: grid; gap: 0.3rem; padding-left: 0.875rem; border-left: 1px solid var(--line); }
.brand__name { font: 400 1.5rem/1 var(--serif); letter-spacing: -0.005em; white-space: nowrap; }
.brand__tag { font: 600 0.625rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }

.site-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--navy); font-size: 1rem; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold-line); }

/* ---------- Hero (Home & Why RSG) ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero__copy h1 { max-width: 15ch; }
.hero__copy .lead { max-width: 34rem; margin-top: 1.5rem; }
.hero__copy .button { margin-top: 2.25rem; }
.hero .eyebrow { max-width: 30rem; margin-bottom: 1.5rem; color: var(--navy); letter-spacing: 0.24em; }
.accent { color: var(--gold); }

@media (min-width: 60em) {
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 54%; }
  .hero__media img {
    object-position: var(--focus-x, 50%) 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
    mask-image: linear-gradient(to right, transparent 0, #000 26%);
  }
  .hero__inner { position: relative; display: flex; align-items: center; min-height: clamp(30rem, 38vw, 37rem); }
  .hero__copy { width: 46%; }
  .hero__copy h1 { max-width: none; }
}
@media (max-width: 59.99em) {
  .hero__media { aspect-ratio: 16 / 9; }
}

/* ---------- Credibility strip ---------- */
.proof { background: var(--paper); border-block: var(--border); }
.proof ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; padding-block: 1.75rem; }
.proof li {
  display: flex; align-items: center; justify-content: center;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
  color: var(--navy); font: 400 1.1875rem/1.3 var(--serif); text-align: center;
  border-left: 1px solid var(--gold-line);
}
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof li:last-child { padding-right: 0; }
@media (max-width: 59.99em) {
  .proof ul { grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
  .proof li { padding-inline: 1rem; }
  .proof li:nth-child(odd) { border-left: 0; }
  .proof li:first-child, .proof li:last-child { padding-inline: 1rem; }
}

/* ---------- Complimentary assessment ---------- */
.assessment { max-width: 64rem; margin-inline: auto; text-align: center; }
.assessment .lead { max-width: 46rem; margin-inline: auto; }
.assessment .lead + .lead { margin-top: 1.25rem; }
.assessment h2 { margin-bottom: 1.5rem; }

/* ---------- Column groups with hairline dividers ---------- */
.cols { display: grid; }
.cols > * { padding-inline: clamp(1.5rem, 2.5vw, 2.5rem); }
.cols > * + * { border-left: var(--border); }
.cols > :first-child { padding-left: 0; }
.cols > :last-child { padding-right: 0; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.cols h3 { margin-block: 1rem 0.75rem; }
.cols p { color: var(--muted); font-size: var(--fs-small); line-height: 1.65; }

.stage__note {
  margin-top: 1.25rem; padding-top: 1rem; border-top: var(--border);
  color: var(--navy) !important;
  font: 600 0.75rem/1.4 var(--sans) !important;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* Why-companies list on Home: numeral beside text */
.reasons--inline > li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.reasons--inline h3 { margin-top: 0.25rem; }

/* Process steps: short gold rule above each number */
.steps > li::before { content: ""; display: block; width: 2.5rem; height: 2px; margin-bottom: 1.5rem; background: var(--gold-line); }

@media (max-width: 59.99em) {
  .cols--4 { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
  .cols--4 > * { padding-inline: 0 1.5rem; border-left: 0; }
  .cols--4 > :nth-child(even) { padding-inline: 1.5rem 0; border-left: var(--border); }
}
@media (max-width: 47.99em) {
  .cols--3, .cols--4 { grid-template-columns: 1fr; row-gap: 0; }
  .cols > *, .cols--4 > :nth-child(even) { padding: 2rem 0; border-left: 0; }
  .cols > :first-child { padding-top: 0; }
  .cols > :last-child { padding-bottom: 0; }
  .cols > * + * { border-top: var(--border); }
  .cols h3 { font-size: 1.375rem; }
  .cols p { font-size: 1rem; }
}

/* ---------- Closing CTA (Why RSG only) ---------- */
.closing { text-align: center; }
.closing .lead { margin: 1rem auto 2rem; max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d9dee7; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 2.5rem; padding-block: 2.75rem;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand img { height: 2.8rem; }
.site-footer .brand__text { border-left-color: rgba(255, 255, 255, 0.25); }
.site-footer .brand__name { font-size: 1.3125rem; }
.site-footer .brand__tag { font-size: 0.5625rem; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.site-footer nav ul { display: flex; gap: 1.75rem; }
.site-footer a { color: var(--white); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9375rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { padding-left: 2.5rem; border-left: 1px solid var(--gold-line); font-size: 0.875rem; }
.site-footer :focus-visible { outline-color: var(--gold-line); }

/* ---------- Contact page ---------- */
.contact { background: var(--paper); padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(4rem, 3rem + 4vw, 6rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.panel { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--white); border: var(--border); border-radius: var(--radius); }
.panel h1, .panel h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.panel__intro { margin-top: 0.875rem; color: var(--muted); }

.form { display: grid; gap: 1.375rem; margin-top: 2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form__legend { color: var(--muted); font-size: 0.875rem; }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field label { color: var(--navy); font: 600 1rem/1.3 var(--sans); }
.field .req { color: var(--error); margin-left: 0.2rem; }
.field .optional { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--field); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.5rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f2340' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.95rem center;
}
.field ::placeholder { color: #767676; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; font-weight: 500; }
.field__error:empty { display: none; }

.form__status { padding: 0.875rem 1rem; border-left: 3px solid var(--error); background: #fbf1f1; color: var(--ink); font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form .button { width: 100%; }
.form .button[disabled] { opacity: 0.7; cursor: progress; }

/* Honeypot: off-screen, not display:none */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.booking { margin-top: 2rem; }
.booking iframe { display: block; width: 100%; height: 46rem; border: var(--border); border-radius: var(--radius); }
.booking__pending { padding: 1.75rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--muted); }

@media (max-width: 59.99em) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 35.99em) {
  .form__row { grid-template-columns: 1fr; gap: 1.375rem; }
}

/* ---------- Simple message pages (thank-you, 404) ---------- */
.message { max-width: 40rem; padding-block: clamp(5rem, 4rem + 6vw, 9rem); text-align: center; margin-inline: auto; }
.message .lead { margin: 1.25rem 0 2.25rem; }

/* ---------- Small screens: header & footer ---------- */
@media (max-width: 47.99em) {
  :root { --header-h: auto; }
  .site-header__inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 1rem; }
  .brand img { height: 2.75rem; }
  .brand__name { font-size: 1.3125rem; }
  .site-nav { margin-top: 0.5rem; border-top: var(--border); }
  .site-nav ul { justify-content: space-between; gap: 0; }
  .site-nav li { flex: 1; text-align: center; }
  .site-nav a { justify-content: center; min-height: 3rem; width: 100%; }

  .site-footer__inner, .site-footer__meta { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }

  /* Long copy reads better left-aligned on phones */
  .section__head, .assessment { text-align: left; }
  .section__head .lead, .assessment .lead { margin-inline: 0; }
}

/* Per-page hero focal points (desktop crop) */
@media (min-width: 60em) {
  .hero--home .hero__media img { object-position: 40% 50%; }
  .hero--why .hero__media img { object-position: 45% 50%; }
}
