/* ==========================================================================
   Strafford Consulting — landing page styles
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Buttons · 5 Top bar & header
             6 Hero · 7 Proof · 8 Mission · 9 Services · 10 Process
             11 Booking · 12 Footer · 13 Motion · 14 Utilities
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Brand (from the Strafford logo: white + light blue on navy) */
  --navy-900: #081A33;
  --navy-800: #0C2340;
  --navy-700: #14305A;
  --blue-300: #ABC8E2;
  --blue-100: #C9DAEC;
  --gold-500: #E3B65B;
  --gold-400: #F0C877;

  /* Neutrals (blue-biased) */
  --ink: #0C2340;
  --muted: #44546B;
  --line: #CBD6E3;
  --control-line: #6E87A3;
  --bg-soft: #F3F6FA;
  --white: #FFFFFF;
  --link-blue: #2A5C8F;
  --focus: #4A90D9;
  --error-bg: #FDECEA;
  --error-ink: #8A1C14;
  --ok-bg: #E8F3EC;
  --ok-ink: #1C5B32;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Space and shape */
  --gutter: clamp(16px, 4vw, 24px);
  --container: 1200px;
  --section-pad: clamp(56px, 8vw, 96px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --header-offset: 96px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex='-1']:focus { outline: none; }
a[href^='tel:'] { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold-500);
  color: var(--navy-800);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 3. Layout --------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--navy { background: var(--navy-800); color: var(--white); }
.section--soft { background: var(--bg-soft); }
.section--white { background: var(--white); }

.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.stack-xl { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.measure { max-width: 760px; }
.measure-wide { max-width: 900px; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  text-wrap: balance;
}
.h2--light { color: var(--white); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--blue-100);
  max-width: 56ch;
}
.lead--dark { color: var(--muted); }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link-blue);
}
.eyebrow--light { color: var(--blue-300); }
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  text-wrap: balance;
}

/* 4. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: var(--gold-500); color: var(--navy-800); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { border-color: var(--blue-300); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(171, 200, 226, 0.14); }

/* 5. Top bar & header ----------------------------------------------------- */
.topbar { background: var(--navy-900); color: var(--blue-100); font-size: 0.875rem; }
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--blue-100);
  text-decoration: none;
}
.topbar-link--strong { color: var(--white); font-weight: 600; }
.topbar-link:hover { text-decoration: underline; }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  min-width: 44px;
  min-height: 36px;
  border: 1.5px solid rgba(171, 200, 226, 0.5);
  border-radius: 6px;
  background: transparent;
  color: var(--blue-100);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-btn[aria-pressed='true'] {
  background: var(--blue-300);
  border-color: var(--blue-300);
  color: var(--navy-800);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(171, 200, 226, 0.22);
  transition: box-shadow 0.2s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(4, 14, 30, 0.35); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: inline-flex; }
.brand img { height: 46px; width: auto; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nav-link {
  padding: 10px 12px;
  color: var(--blue-100);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-current { color: var(--white); border-bottom-color: var(--gold-500); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(171, 200, 226, 0.5);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-bottom: 12px;
  }
  .js .site-nav.is-open { display: flex; }
  .nav-link { padding: 14px 8px; border-bottom: 1px solid rgba(171, 200, 226, 0.16); }
  .nav-link.is-current { border-bottom-color: var(--gold-500); }
  .nav-cta { margin: 12px 0 0; }
}

@media (max-width: 640px) {
  .topbar-tag, .topbar-link--email { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero .display { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--navy-700);
  border: 1px solid rgba(171, 200, 226, 0.28);
  border-radius: var(--radius-md);
}
.contact-card-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--white);
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s;
}
.contact-row:hover { background: rgba(171, 200, 226, 0.12); }
.contact-row-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.contact-row-value { font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-row-value--lg { font-size: 1.25rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
}

/* Flags (United States + Puerto Rico) */
.flags { display: inline-flex; align-items: center; gap: 10px; }
.flag { height: 24px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.flags-row { line-height: 0; }
.proof-big .flag { height: 30px; }

/* 7. Proof strip ---------------------------------------------------------- */
.proof { background: var(--navy-700); color: var(--white); }
.proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.proof-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof-big { display: flex; align-items: center; min-height: 2.06rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; line-height: 1.1; }
.proof-small { font-size: 0.9375rem; color: var(--blue-100); }

/* 8. Mission -------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-top: 20px;
  border-top: 3px solid var(--navy-800);
}
.value-title { font-size: 1.25rem; font-weight: 700; }
.value p { font-size: 1.0625rem; color: var(--muted); }

/* 9. Services ------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--control-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--navy-800); }
.chip[aria-pressed='true'] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-800);
  border-radius: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 10px 28px rgba(12, 35, 64, 0.14); transform: translateY(-2px); }
.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link-blue);
}
.service-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4375rem;
  line-height: 1.2;
}
.service-desc { color: var(--muted); }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.service-link::after { content: '→'; display: inline-block; text-decoration: none; transition: transform 0.2s; }
.service-link:hover::after { transform: translateX(3px); }

/* 10. Process ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(171, 200, 226, 0.4);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--blue-300);
}
.step-title { font-size: 1.3125rem; font-weight: 700; color: var(--white); }
.step p { font-size: 1.0625rem; color: var(--blue-100); }

/* 11. Booking ------------------------------------------------------------- */
.booking-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.panel {
  flex: 1 1 560px;
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.panel-title { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; }
.panel-title--sm { font-size: 1.5rem; margin-bottom: 18px; }
.calendar-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.calendar-cta p { max-width: 56ch; color: var(--muted); font-size: 1.0625rem; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field label.req::after { content: ' *'; color: var(--error-ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--control-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input[aria-invalid='true'] { border-color: var(--error-ink); }

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

.form-error {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  color: var(--error-ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-actions { margin-top: 20px; }
.form-status { margin-top: 16px; font-size: 1rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.form-status a { color: var(--navy-800); font-weight: 700; }

.talk-card {
  flex: 0 1 360px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-md);
}
.talk-title { font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.2; }
.talk-card p { color: var(--blue-100); }
.talk-email { overflow-wrap: anywhere; font-size: 1rem; }

/* 12. Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--blue-100); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
  padding-top: 56px;
  padding-bottom: 32px;
}
.footer-brand { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-brand img { height: 52px; width: auto; align-self: flex-start; }
.footer-col { flex: 0 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-heading {
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--blue-100); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col .footer-phone { color: var(--white); font-size: 1.125rem; font-weight: 600; }
.footer-legal { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(171, 200, 226, 0.22); font-size: 0.875rem; }

/* 13. Motion -------------------------------------------------------------- */
/* Entrance animations are driven by components/motion-animations.js (Motion).
   Elements marked data-motion stay hidden only while that script is running;
   it removes the attribute when each animation ends, or immediately if
   animations are unavailable or reduced motion is requested. */
.js:not(.motion-off) [data-motion] { opacity: 0; }

/* Content is visible by default; the JS class only adds a gentle entrance. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-motion] { opacity: 1 !important; }
  .service-card:hover { transform: none; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .topbar, .site-header, .chips, .talk-card, .form { display: none !important; }
}

/* 14. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
