/* ============================================================
   Open Horizon Advisors — main.css
   Brand tokens → base → layout → components → pages → responsive
   ============================================================ */

/* ─── Brand Tokens ─────────────────────────────────────────── */
:root {
  --color-sky-deep:   #1e3d55;
  --color-sky:        #4a7fa5;
  --color-sky-light:  #a8c4d8;
  --color-amber:      #e8963a;
  --color-amber-light:#f0b865;
  --color-white:      #ffffff;
  --color-off-white:  #f8f9fa;
  --color-text:       #1a2530;
  --color-text-muted: #5a7080;
  --color-border:     #dde8ef;

  --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --size-xs:  0.75rem;
  --size-sm:  0.875rem;
  --size-md:  1rem;
  --size-lg:  1.125rem;
  --size-xl:  1.25rem;
  --size-2xl: 1.5rem;
  --size-3xl: 1.875rem;
  --size-4xl: 2.25rem;
  --size-5xl: 3rem;
  --size-6xl: 3.75rem;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(30,61,85,0.08);
  --shadow-md:  0 4px 16px rgba(30,61,85,0.10);
  --shadow-lg:  0 8px 32px rgba(30,61,85,0.12);

  --transition: 200ms ease;
  --max-width:  1140px;
  --nav-height: 80px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--size-md);
  color: var(--color-text);
  background: var(--color-off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--color-sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-amber); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.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;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-sky-deep);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(var(--size-3xl), 5vw, var(--size-6xl)); }
h2 { font-size: clamp(var(--size-2xl), 3.5vw, var(--size-4xl)); }
h3 { font-size: clamp(var(--size-xl), 2.5vw, var(--size-2xl)); }
h4 { font-size: var(--size-xl); }
h5 { font-size: var(--size-lg); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--size-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-amber);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

.section--dark {
  background: var(--color-sky-deep);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p,
.section--dark .lead {
  color: var(--color-sky-light);
}

.section--alt {
  background: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: var(--size-lg);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.text-center { text-align: center; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--size-md);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-white);
  border-color: var(--color-amber);
}

.btn-primary:hover {
  background: var(--color-amber-light);
  border-color: var(--color-amber-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,150,58,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-sky-deep);
  border-color: var(--color-sky-deep);
}

.btn-secondary:hover {
  background: var(--color-sky-deep);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--size-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--size-sm);
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-sky-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links > a:not(.btn) {
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links > a.active {
  color: var(--color-white);
}

}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-sky-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Page Offset (fixed nav) ───────────────────────────────── */
.page-main {
  padding-top: var(--nav-height);
}

/* ─── Hero Sections ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(90deg, #254968 0%, #3a6284 100%);
  color: var(--color-white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

.hero .lead {
  color: var(--color-sky-light);
  font-size: var(--size-xl);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(90deg, #254968 0%, #3a6284 100%);
  color: var(--color-white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: none;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(var(--size-3xl), 4vw, var(--size-5xl));
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: var(--color-sky-light);
  max-width: 600px;
}

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--color-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-family: var(--font-body);
  font-size: clamp(var(--size-3xl), 4vw, var(--size-5xl));
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
  margin: 0 8px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: none;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  border-color: var(--color-sky-light);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-sky-deep), var(--color-sky));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-white);
  fill: none;
}

.card h3 {
  font-size: var(--size-xl);
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-muted);
  font-size: var(--size-md);
  line-height: 1.7;
}

.card-amber .card-icon {
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-light));
}

/* ─── Service Cards ─────────────────────────────────────────── */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: all var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sky-deep), var(--color-sky));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-card:hover::before {
  background: linear-gradient(90deg, var(--color-amber), var(--color-amber-light));
}

.service-number {
  font-family: var(--font-body);
  font-size: var(--size-4xl);
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: var(--size-lg);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-card p {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Process Section ───────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-sky-light), var(--color-amber), var(--color-sky-light));
}

.process-step {
  text-align: center;
  padding: 0 32px;
}

.process-step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: var(--size-2xl);
  font-weight: 700;
  color: var(--color-sky-deep);
}

.process-step:nth-child(2) .process-step-number {
  border-color: var(--color-amber);
  background: rgba(232,150,58,0.06);
}

.process-step h3 {
  font-size: var(--size-xl);
  margin-bottom: 12px;
}

.process-step p {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
}

.process-badge {
  display: inline-block;
  background: var(--color-amber);
  color: var(--color-white);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* ─── FAQ Section ───────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--size-md);
  font-weight: 600;
  color: var(--color-sky-deep);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-sky); }

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-sky-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.faq-question .faq-icon::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--color-sky);
  line-height: 1;
}

.faq-item.open .faq-question .faq-icon {
  border-color: var(--color-amber);
  background: var(--color-amber);
}

.faq-item.open .faq-question .faq-icon::after {
  content: '−';
  color: var(--color-white);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ─── Audience Cards ────────────────────────────────────────── */
.audience-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: all var(--transition);
  text-align: center;
}

.audience-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-sky-light);
  transform: translateY(-1px);
}

.audience-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-off-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.audience-card h3 {
  font-size: var(--size-xl);
  margin-bottom: 12px;
}

.audience-card p {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
}

/* ─── CTA Strip ─────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(90deg, #254968 0%, #3a6284 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: none;
}

.cta-strip h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-strip p {
  color: var(--color-sky-light);
  font-size: var(--size-lg);
  margin-bottom: 2rem;
}

.cta-strip .btn { position: relative; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: #111d28;
  color: var(--color-sky-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: var(--size-sm);
  color: var(--color-sky-light);
  max-width: 300px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: var(--color-sky-light);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-sky);
  color: var(--color-white);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: var(--size-sm);
  color: var(--color-sky-light);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--size-xs);
  color: rgba(168,196,216,0.6);
}

.footer-disclaimer {
  font-size: var(--size-xs);
  color: rgba(168,196,216,0.5);
  max-width: 620px;
  line-height: 1.6;
  text-align: right;
}

/* ─── About Page ────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(90deg, #254968 0%, #3a6284 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: none;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-headshot-wrap {
  flex-shrink: 0;
}

.about-headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.about-hero-text h1 {
  color: var(--color-white);
  font-size: clamp(var(--size-3xl), 4vw, var(--size-5xl));
  margin-bottom: 8px;
}

.about-title {
  font-family: var(--font-body);
  font-size: var(--size-lg);
  font-weight: 500;
  color: var(--color-amber);
  margin-bottom: 16px;
}

.about-hero-text .lead {
  color: var(--color-sky-light);
}

/* ─── Highlights Bar ────────────────────────────────────────── */
.highlights-bar {
  background: var(--color-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.highlight-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--color-border);
}

.highlight-item:last-child { border-right: none; }

.highlight-number {
  font-family: var(--font-body);
  font-size: var(--size-4xl);
  font-weight: 700;
  color: var(--color-sky-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.highlight-label {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ─── Bio Section ───────────────────────────────────────────── */
.bio-content {
  max-width: 760px;
  margin: 0 auto;
}

.bio-content p {
  font-size: var(--size-lg);
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

.bio-quote {
  border-left: 4px solid var(--color-amber);
  padding: 20px 28px;
  background: rgba(232,150,58,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2em 0;
}

.bio-quote p {
  font-family: var(--font-body);
  font-size: var(--size-xl);
  font-style: italic;
  color: var(--color-sky-deep);
  margin: 0;
}

/* ─── Certifications ────────────────────────────────────────── */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: var(--size-sm);
  color: var(--color-sky-deep);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.cert-badge::before {
  content: '✓';
  color: var(--color-amber);
  font-weight: 700;
}

/* ─── Contact Page ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: var(--size-3xl);
  margin-bottom: 1rem;
}

.contact-info .lead {
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact-info-list .info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(30,61,85,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ─── Form ──────────────────────────────────────────────────── */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--color-amber);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--size-md);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(74,127,165,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc3545;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  display: block;
  font-size: var(--size-xs);
  color: #dc3545;
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: var(--size-lg);
}

/* ─── Success Message ───────────────────────────────────────── */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 32px;
}

.form-success.visible { display: block; }

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
}

.form-success h3 {
  font-size: var(--size-2xl);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--color-text-muted);
}

/* Opt-in checkbox row */
.form-optin {
  margin-bottom: 20px;
}

.optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.4;
}

.optin-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-amber);
  cursor: pointer;
}

/* ─── Privacy Page ──────────────────────────────────────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: var(--size-2xl);
  margin: 2em 0 0.75em;
  padding-top: 0.5em;
  border-top: 1px solid var(--color-border);
}

.prose h2:first-child {
  border-top: none;
  margin-top: 0;
}

.prose p {
  color: var(--color-text-muted);
  margin-bottom: 1em;
  line-height: 1.8;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.prose ul li {
  color: var(--color-text-muted);
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  .section { padding: 64px 0; }
  .section--sm { padding: 40px 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }

  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-steps::before { display: none; }

  .about-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .about-headshot-wrap { display: flex; justify-content: center; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }

  .nav-logo img { height: 36px; }
  .footer-brand .footer-logo { height: 38px; }

  .hero { padding: 72px 0 64px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-sky-deep);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .highlight-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .highlight-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { justify-content: center; }
  h1 { font-size: var(--size-3xl); }
}
