/* ============================================
   RAH ADVISORS — DESIGN TOKENS
   ============================================ */
:root {
  --navy-950: #060b16;
  --navy-900: #0a1424;
  --navy-800: #101d33;
  --navy-700: #172642;
  --navy-600: #24365a;
  --line: rgba(148, 168, 204, 0.14);
  --line-strong: rgba(148, 168, 204, 0.28);
  --ink: #eef2f8;
  --ink-dim: #9fb0cc;
  --ink-faint: #6a7ba0;
  --blue: #3d7fff;
  --blue-bright: #5c96ff;
  --blue-dim: rgba(61, 127, 255, 0.14);
  --gold: #c9a75f;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-dim); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue-bright);
}

/* ============================================
   TOP CONTACT BAR
   ============================================ */
.topbar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  height: 38px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 101;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.topbar a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.topbar a:hover { color: var(--blue-bright); }
@media (max-width: 640px) {
  .topbar .wrap { justify-content: center; }
}

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: sticky;
  top: 38px;
  z-index: 100;
  background: rgba(6, 11, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: 84px;
  display: flex;
  align-items: center;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo span { color: var(--blue-bright); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -28px;
  height: 2px;
  background: var(--blue);
}
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--blue-bright); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 26px;
  }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 122px; left: 0; right: 0; bottom: 0;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
    overflow-y: auto;
  }
  .nav-links.open a.active::after { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-bright); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 150px 0 130px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,11,22,0.97) 0%, rgba(6,11,22,0.88) 40%, rgba(6,11,22,0.55) 75%, rgba(6,11,22,0.3) 100%),
              linear-gradient(0deg, rgba(6,11,22,1) 0%, rgba(6,11,22,0.2) 30%, rgba(6,11,22,0.2) 70%, rgba(6,11,22,0.9) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: rise 0.8s ease forwards;
}
.hero h1 .line2 {
  display: block;
  color: var(--blue-bright);
  font-style: italic;
  opacity: 0;
  animation: rise 0.8s ease 0.35s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .sub {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0;
  animation: rise 0.8s ease 0.6s forwards;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: rise 0.8s ease 0.75s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero h1 .line2, .hero .sub, .hero .cta-row { animation: none; opacity: 1; }
}

/* ============================================
   PAGE HEADER (non-home pages)
   ============================================ */
.page-header {
  padding: 88px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(28px, 3.8vw, 40px); max-width: 700px; letter-spacing: -0.01em; }
.page-header .sub { font-size: 17px; max-width: 600px; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 88px 0; }
.section-alt { background: var(--navy-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; }

/* ============================================
   CARD GRIDS
   ============================================ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-bright);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Feature list card (capabilities) */
.cap-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.cap-card h3 { font-size: 22px; color: var(--ink); }
.cap-card > p.desc { font-size: 15px; margin-bottom: 20px; }
.cap-card ul { margin-bottom: 20px; }
.cap-card li {
  font-size: 14.5px;
  color: var(--ink-dim);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cap-card li:first-child { border-top: none; }
.cap-card li::before { content: "—"; color: var(--blue-bright); flex-shrink: 0; }
.cap-card .best-for {
  font-size: 13.5px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line-strong);
  padding-top: 16px;
}
.cap-card .best-for b { color: var(--ink-dim); font-weight: 600; }

/* Stat bar */
.stat-bar {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-bar > div {
  flex: 1;
  padding: 32px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-bar > div:last-child { border-right: none; }
.stat-bar .stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--blue-bright);
  margin-bottom: 6px;
}
.stat-bar .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  .stat-bar { flex-direction: column; }
  .stat-bar > div { border-right: none; border-bottom: 1px solid var(--line); }
}

/* How it works — numbered, real sequence */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .step-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--blue-bright);
  opacity: 0.6;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: 15px; }

/* Platform pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--ink-dim);
}

/* Article list */
.article-row {
  display: block;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.15s ease;
}
.article-row:last-child { border-bottom: 1px solid var(--line); }
.article-row:hover { opacity: 0.75; }
.article-row .cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 10px;
  display: block;
}
.article-row h3 { font-size: 21px; margin-bottom: 8px; }
.article-row p { margin-bottom: 0; font-size: 15px; }
@media (max-width: 640px) {
  .article-row { flex-direction: column; align-items: flex-start !important; }
  .article-row img { width: 100% !important; height: 180px !important; }
}

/* Article detail */
.article-body { max-width: 700px; }
.article-body p { font-size: 16.5px; color: var(--ink-dim); line-height: 1.75; }
.article-body h2 { font-size: 22px; margin-top: 40px; }

/* Segment card */
.segment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--navy-800);
}
.segment-card h3 { font-size: 20px; }
.segment-card p { font-size: 15px; margin-bottom: 0; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Trust note */
.trust-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--navy-800);
  font-size: 14.5px;
  color: var(--ink-dim);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); max-width: 560px; margin: 0 auto 14px; letter-spacing: -0.01em; }
.cta-band .sub { max-width: 480px; margin: 0 auto 32px; }
.cta-band .cta-row { display: flex; justify-content: center; gap: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  max-width: 340px;
  color: var(--ink);
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14.5px;
  color: var(--ink-dim);
  padding: 5px 0;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================
   PHOTOGRAPHY / IMAGE MODULES
   ============================================ */
.img-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 460px;
}
.img-gallery a { border-radius: var(--radius); overflow: hidden; display: block; position: relative; }
.img-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.img-gallery a:hover img { transform: scale(1.05); }
.img-gallery .g-main { grid-row: 1 / 3; }
@media (max-width: 900px) {
  .img-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; height: auto; }
  .img-gallery .g-main { grid-column: 1 / 3; grid-row: 1; }
  .img-gallery .g-4 { display: none; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .split-img { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split img { height: 280px; }
  .split.reverse .split-img { order: -1; }
}

.segment-card { overflow: hidden; padding: 0; }
.segment-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.segment-card .segment-body { padding: 28px 32px 32px; }

.cap-banner { position: relative; height: 320px; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.cap-banner img { width: 100%; height: 100%; object-fit: cover; }
.cap-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,11,22,0.95) 0%, rgba(6,11,22,0.35) 60%, rgba(6,11,22,0.1) 100%);
}
.cap-banner-text { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 2; }
.cap-banner-text h2 { margin-bottom: 4px; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-strip img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); transition: transform 0.3s ease; }
.photo-strip img:hover { transform: translateY(-4px); }
@media (max-width: 900px) { .photo-strip { grid-template-columns: 1fr 1fr; } }

/* Utility */
.mt-lg { margin-top: 64px; }
.center { text-align: center; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: var(--blue-dim);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
