/* =========================================================
   Ironmark Consulting Group — Design Tokens & Base Styles
   ========================================================= */

:root {
  /* Color — navy (brand) + warm paper + brass accent */
  --navy-900: #0B1826;
  --navy-800: #0F2438;
  --navy-700: #16324A;
  --navy-600: #1F4460;
  --navy-500: #2E5A7A;
  --navy-100: #E6ECF1;

  --gold-700: #8F6323;
  --gold-600: #B8862F;
  --gold-500: #CBA052;
  --gold-100: #F3E9D6;

  --ink-900: #171F26;
  --ink-700: #3C4750;
  --ink-500: #5B6B78;
  --ink-300: #8B99A4;

  --paper-000: #FFFFFF;
  --paper-050: #F8F7F4;
  --paper-100: #F1EFE9;
  --border-subtle: #E3E1DA;
  --border-strong: #C9C6BB;

  --success-600: #2E7D4F;
  --error-600: #B3261E;

  /* Typography */
  --font-heading: 'Lexend', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.75rem;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-card: 0 1px 2px rgba(11, 24, 38, 0.06), 0 8px 24px -12px rgba(11, 24, 38, 0.18);
  --shadow-lifted: 0 20px 48px -16px rgba(11, 24, 38, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-base: 240ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper-050);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 2px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-6); }
.section--dark { background: var(--navy-900); color: var(--paper-050); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper-000); }
.section--panel { background: var(--paper-000); border-block: 1px solid var(--border-subtle); }
.section--tint { background: var(--navy-100); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--gold-500); }

.lede {
  font-size: var(--text-lg);
  color: var(--ink-700);
  max-width: 62ch;
}
.section--dark .lede { color: var(--ink-300); }

.measure { max-width: 68ch; }

/* ---------- Numbered section marker (editorial motif) ---------- */
.marker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: var(--navy-100);
  -webkit-text-stroke: 1px var(--border-strong);
  margin-bottom: var(--space-2);
}
.section--dark .marker { color: var(--navy-800); -webkit-text-stroke: 1px var(--navy-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--gold-600); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-500); }

.btn--ghost-dark { border: 1.5px solid var(--navy-700); color: var(--navy-900); }
.btn--ghost-dark:hover { background: var(--navy-900); color: var(--paper-000); }

.btn--ghost-light { border: 1.5px solid rgba(248, 247, 244, 0.4); color: var(--paper-000); }
.btn--ghost-light:hover { background: var(--paper-000); color: var(--navy-900); }

.btn--text {
  min-height: auto;
  padding: 0;
  color: var(--navy-700);
  font-weight: 600;
  border-bottom: 2px solid var(--gold-600);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn--text:hover { color: var(--gold-700); }
.section--dark .btn--text { color: var(--paper-000); }
.section--dark .btn--text:hover { color: var(--gold-500); }

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.98);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: var(--space-2); }
.brand__logo { height: 64px; width: auto; display: block; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--navy-100); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--paper-000);
  overflow-y: auto;
  padding: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-out);
}
.primary-nav.is-open { transform: translateX(0); }

.primary-nav__list { display: flex; flex-direction: column; }
.primary-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-1);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--navy-900);
  border-bottom: 1px solid var(--border-subtle);
}
.primary-nav__link[aria-current="page"] { color: var(--gold-700); }

.primary-nav__sublist { display: none; padding-left: var(--space-3); }
.primary-nav__item.is-open .primary-nav__sublist { display: block; }
.primary-nav__sublink {
  display: block;
  padding: var(--space-2) var(--space-1);
  font-size: var(--text-sm);
  color: var(--ink-700);
  border-bottom: 1px solid var(--border-subtle);
}

.primary-nav__cta { margin-top: var(--space-4); }
.subnav-toggle { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.subnav-toggle svg { width: 18px; height: 18px; transition: transform var(--duration-fast) var(--ease-out); }
.primary-nav__item.is-open .subnav-toggle svg { transform: rotate(180deg); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
  }
  .primary-nav__list { flex-direction: row; align-items: center; gap: var(--space-5); }
  .primary-nav__link {
    padding: var(--space-1) 0;
    font-size: var(--text-sm);
    border-bottom: 0;
    position: relative;
  }
  .primary-nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--gold-600);
    transform: scaleX(0);
    transition: transform var(--duration-fast) var(--ease-out);
  }
  .primary-nav__link:hover::after,
  .primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav__item { position: relative; }
  .primary-nav__item:hover .primary-nav__sublist,
  .primary-nav__sublist:focus-within {
    display: block;
  }
  .primary-nav__sublist {
    position: absolute;
    top: 100%; left: 0;
    min-width: 280px;
    background: var(--paper-000);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lifted);
    padding: var(--space-2);
    padding-left: var(--space-2);
    margin-top: var(--space-2);
  }
  .primary-nav__sublink { border-bottom: 0; border-radius: var(--radius-sm); }
  .primary-nav__sublink:hover { background: var(--navy-100); color: var(--navy-900); }
  .subnav-toggle { display: none; }
  .primary-nav__cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-8) var(--space-7);
  background: var(--navy-900);
  color: var(--paper-050);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 236, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 236, 241, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, black 40%, transparent 90%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 { color: var(--paper-000); font-size: clamp(2.25rem, 5.5vw, var(--text-4xl)); max-width: 18ch; }
.hero .lede { margin-top: var(--space-3); }
.hero__actions { margin-top: var(--space-5); }
.hero__meta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero__chip {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--paper-050);
  border: 1px solid rgba(248, 247, 244, 0.25);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
}

.page-hero {
  background: var(--navy-900);
  color: var(--paper-050);
  padding-block: var(--space-7) var(--space-6);
}
.page-hero h1 { color: var(--paper-000); font-size: clamp(2rem, 4.5vw, var(--text-3xl)); max-width: 24ch; }
.breadcrumbs { font-size: var(--text-xs); color: var(--ink-300); margin-bottom: var(--space-3); }
.breadcrumbs a:hover { color: var(--paper-000); }
.breadcrumbs span { margin-inline: var(--space-1); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-000);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  height: 100%;
}
.card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--navy-100);
  color: var(--navy-700);
  margin-bottom: var(--space-3);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { color: var(--ink-500); font-size: var(--text-sm); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy-700);
}
.card__link svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.card:hover .card__link svg { transform: translateX(3px); }

.card--elevated {
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.card--elevated:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); }

/* ---------- Numbered process list ---------- */
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}
.process-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.process-item__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--border-strong);
}
.process-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.process-item p { color: var(--ink-500); }

@media (min-width: 768px) {
  .process-item { grid-template-columns: 120px 1fr; align-items: baseline; }
}

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-2); align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-600); margin-top: 2px; }

/* ---------- Stat / value strip ---------- */
.value-strip {
  display: grid;
  gap: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
}
@media (min-width: 768px) {
  .value-strip { grid-template-columns: repeat(3, 1fr); }
}
.value-strip__item h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.value-strip__item p { color: var(--ink-500); font-size: var(--text-sm); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--paper-000);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--paper-000); font-size: clamp(1.75rem, 4vw, var(--text-3xl)); max-width: 26ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; text-align: center; }
.cta-band__actions { margin-top: var(--space-5); justify-content: center; }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-900);
}
.form-field .required { color: var(--error-600); }
.form-field input,
.form-field select,
.form-field textarea {
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-000);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.form-field textarea { min-height: 140px; padding-block: var(--space-2); resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px var(--navy-100);
  outline: none;
}
.form-field small { font-size: var(--text-xs); color: var(--ink-500); }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: var(--error-600); }
.form-error {
  font-size: var(--text-xs);
  color: var(--error-600);
  display: none;
}
.form-field.has-error .form-error { display: block; }

.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.form-status {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}
.form-status.is-visible { display: block; }
.form-status--success { background: #E9F5EE; color: var(--success-600); border: 1px solid #BFE3CE; }
.form-status--error { background: #FBEAE9; color: var(--error-600); border: 1px solid #F2C6C3; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--ink-300); }
.site-footer a:hover { color: var(--paper-000); }
.footer-top {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-7);
  border-bottom: 1px solid rgba(248, 247, 244, 0.1);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand__mark { display: inline-flex; align-items: center; justify-content: center; background: var(--paper-050); border-radius: var(--radius-sm); padding: 10px 14px; }
.footer-brand__logo { height: 72px; width: auto; display: block; }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.footer-col h4 { color: var(--paper-000); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  padding-block: var(--space-4);
  font-size: var(--text-xs);
}

/* ---------- Icon-text row ---------- */
.icon-row { display: flex; gap: var(--space-2); align-items: flex-start; }
.icon-row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-500); margin-top: 2px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--gold-600);
  color: var(--navy-900);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--border-subtle); border: 0; margin-block: var(--space-6); }
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--navy-100);
  border-radius: 999px;
  padding: 4px 12px;
}
