/* ============================================================
   Valmor Consulting: shared stylesheet
   Editorial, refined, typographic. Charcoal on pearl white,
   dark-brown accent (J.P. Morgan-inspired).
   ============================================================ */

:root {
  --accent: #5C4033;            /* dark brown (J.P. Morgan-inspired) */
  --font-display: "Lora", Georgia, serif;
  --bg: #F5F5F3;                /* pearl white */

  /* Fixed palette */
  --ink: #2B2B2B;
  --ink-soft: #54504A;
  --ink-faint: #807A70;
  --paper: #FFFFFF;             /* card surface: clean white */
  --bg-deep: #ECEBE7;           /* alternate band: soft grey */
  --line: rgba(43, 43, 43, 0.16);
  --line-soft: rgba(43, 43, 43, 0.09);

  --accent-ink: color-mix(in oklab, var(--accent), #2B2B2B 22%);
  --accent-tint: color-mix(in oklab, var(--accent), transparent 91%);

  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --container: 1120px;
  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(43, 43, 43, 0.05), 0 6px 24px rgba(43, 43, 43, 0.06);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

::selection { background: color-mix(in oklab, var(--accent), transparent 70%); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38em;
}
.measure { max-width: 38em; }
.muted { color: var(--ink-faint); }

.placeholder-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: var(--bg-deep);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 2px 9px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #FCFAF5;
}
.btn-primary:hover { background: var(--accent-ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-light {
  background: var(--bg);
  color: var(--ink);
}
.btn-light:hover { background: #fff; }

.text-link {
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link::after { content: "→"; transition: transform 160ms ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg), transparent 8%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(43, 43, 43, 0.07); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

/* Brand logo: the supplied VALMOR Consulting Limited wordmark (outlined SVG).
   Dark variant on the light header, light variant on the dark footer. */
.brand-img {
  width: 192px;
  height: auto;
  display: block;
}
@media (max-width: 480px) {
  .brand-img { width: 160px; }
  .header-inner { gap: 20px; }
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
}
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: none; background: var(--accent-tint); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-nav .btn { margin-left: 14px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 4px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.band-deep { background: var(--bg-deep); }
.band-ink { background: var(--ink); color: #EDE8DF; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #F5F0E8; }
.band-ink .lede { color: #C9C2B6; }
.band-ink .eyebrow { color: color-mix(in oklab, var(--accent), #F5F0E8 35%); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B9B3A8;
  font-size: 0.92rem;
  padding-block: clamp(48px, 6vw, 72px) 36px;
}
.site-footer a { color: #E6E0D5; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.14);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8E887D;
  margin: 0 0 14px;
}
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-tagline { margin-top: 14px; font-family: var(--font-display); font-style: italic; color: #C9C2B6; }
.footer-legal {
  padding-top: 28px;
  font-size: 0.8rem;
  color: #8E887D;
  display: grid;
  gap: 6px;
}

/* ---------- Scroll reveal (JS-gated, reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-error { font-size: 0.82rem; color: #A0432C; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #A0432C; }
.field.has-error .field-error { display: block; }

/* ---------- Feature icons (replace numbered lists) ---------- */
.feat-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--accent-ink);
  background: var(--accent-tint);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 80%);
  border-radius: 11px;
}
.feat-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
