/* ==========================================================================
   Veristar Global Consultants — foundations
   Tokens, reset and typography. Component styles live in main.css.

   Palette is sampled directly from the logo artwork:
     navy #001F48   gold #A97913
   Contrast notes (WCAG AA needs 4.5:1 for body text, 3:1 for large text/UI):
     navy on paper .............. 16.3:1  safe anywhere
     gold on paper ..............  3.9:1  LARGE TEXT AND UI ONLY
     gold-ink on paper ..........  5.5:1  use for any gold text under 24px
     gold on navy ...............  4.2:1  large text only
     gold-lift on navy ..........  6.3:1  use for gold text on navy
   ========================================================================== */

:root {
  /* Brand */
  --navy: #001F48;
  --navy-deep: #001536;
  --navy-soft: #17325A;      /* borders / hovers on navy */
  --gold: #A97913;           /* the logo gold — accents, rules, icons */
  --gold-ink: #8A6210;       /* darkened, for gold text on light */
  --gold-lift: #C79A2E;      /* lightened, for gold text on navy */
  --gold-hover: #B98C22;     /* gold button hover, still AA behind navy text */
  --whatsapp: #0F7A3D;       /* darkened from brand green so white text clears AA */
  --whatsapp-hover: #0B6231;

  /* Neutrals */
  --paper: #FBF9F5;
  --paper-deep: #F3EFE7;
  --white: #FFFFFF;
  --ink: #1C2434;
  --ink-muted: #5A6478;
  --rule: #E2DCD0;
  --rule-on-navy: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: "Marcellus", "Hoefler Text", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-display: clamp(2.35rem, 1.5rem + 2.9vw, 4rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.55vw, 1.55rem);
  --fs-lead: clamp(1.09rem, 1.03rem + 0.3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Other */
  --radius: 2px;            /* near-zero by design */
  --container: 1200px;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* ---------------------------------------------------------- typography -- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;           /* Marcellus ships one weight — scale carries hierarchy */
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
.display { font-size: var(--fs-display); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 52ch;
}

p { max-width: var(--measure); }

/* The logo's "— GLOBAL CONSULTANTS —" treatment, promoted to a site-wide
   section label. This is the strongest tie between the mark and the pages. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow::before { width: 1.75rem; flex: none; }
.eyebrow::after { flex: 1 1 auto; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { flex: none; width: 1.75rem; }

/* A trailing rule after wrapped label text reads as a stray dash. */
@media (max-width: 620px) {
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; }
  .eyebrow::after { display: none; }
}

/* ------------------------------------------------------------ utility -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); }

.on-navy {
  background: var(--navy);
  color: var(--white);
}
.on-navy .eyebrow { color: var(--gold-lift); }
.on-navy .lead { color: rgba(255, 255, 255, 0.74); }

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ----------------------------------------------------------- a11y --- */

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-lift); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .whatsapp-fab, .site-footer form { display: none !important; }
}
