/* Claraxis Group — core styles */
/* Self-hosted Inter (SIL Open Font License), Latin subset */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }

:root {
  --navy: #0a1c34;
  --navy-2: #0e2442;
  --navy-3: #132d52;
  --gold: #c8a24b;
  --gold-light: #d9b866;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(200, 162, 75, 0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(80px, 12vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.center { text-align: center; justify-content: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Eyebrow / headings */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12;
  max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  background: transparent; font-family: inherit; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 28, 52, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  font-size: 15px; font-weight: 600; letter-spacing: 0.32em; text-decoration: none; color: var(--white);
}
.wordmark span { color: var(--gold); }
.wordmark.small { font-size: 13px; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a:not(.btn) {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text-muted);
  transition: color .2s ease;
}
.nav-menu a:not(.btn):hover { color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(96px, 16vw, 180px) 0 clamp(88px, 13vw, 150px); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 7.2vw, 84px); line-height: 1.04; letter-spacing: -0.015em;
  max-width: 900px; margin-bottom: 32px;
}
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--text-muted); max-width: 680px; margin-bottom: 48px; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-2); }
.trust-inner {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 48px; align-items: center;
  padding-top: 48px; padding-bottom: 48px;
}
.trust-heading { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); line-height: 1.6; }
.trust p { color: var(--text-muted); font-size: 17px; }

/* Stats */
.stats { padding: clamp(72px, 9vw, 110px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 32px; border-left: 1px solid var(--line-gold); display: flex; flex-direction: column; gap: 10px; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--gold); font-weight: 500; }
.stat-label { font-size: 15px; color: var(--text-muted); max-width: 220px; }

/* Services */
.section { padding: var(--section) 0; }
#services { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--navy-2); border: 1px solid var(--line); padding: 44px 36px 40px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 48px; height: 2px; background: var(--gold);
  transition: width .35s ease;
}
.card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.card:hover::before { width: calc(100% + 2px); }
.card-index { font-size: 13px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; }
.card h3 { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 600; }
.card p { color: var(--text-muted); font-size: 16px; }
.card-link, .text-link {
  margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--gold);
  text-decoration: none; letter-spacing: 0.02em;
}
.card-link span, .text-link span { display: inline-block; transition: transform .2s ease; }
.card-link:hover span, .text-link:hover span { transform: translateX(4px); }

/* Testimonial */
.testimonial { background: var(--navy-2); padding: var(--section) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonial figure { margin: 0; }
.testimonial blockquote { margin: 0 0 40px; position: relative; padding-top: 56px; }
.testimonial blockquote::before {
  content: "“"; position: absolute; top: -18px; left: -4px;
  font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--gold);
}
.testimonial blockquote p { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; font-weight: 500; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 2px solid var(--gold); }
.cite-name { font-weight: 600; }
.cite-role { color: var(--text-muted); font-size: 15px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; align-items: start; }
.about-quote {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; font-weight: 500;
  margin-bottom: 36px; max-width: 760px;
}

/* CTA */
.cta { padding: var(--section) 0; border-top: 1px solid var(--line); }
.cta h2 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.1; font-weight: 500; margin-bottom: 44px; }
.contact-list {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
}
.contact-list a { text-decoration: none; color: var(--text-muted); font-size: 16px; border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.contact-list a:hover { color: var(--gold); border-color: var(--gold); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer p { color: var(--text-muted); font-size: 14px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Simple page (404 etc.) */
.simple-page { min-height: 70vh; display: flex; align-items: center; padding: var(--section) 0; }
.simple-page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 64px); line-height: 1.1; margin-bottom: 24px; }
.simple-page p { color: var(--text-muted); margin-bottom: 40px; max-width: 560px; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-inner, .about-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.open { opacity: 1; transform: none; visibility: visible; }
  .nav-menu a:not(.btn) { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--white); }
  .nav-menu .btn { margin-top: 24px; padding: 16px 24px; font-size: 15px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; row-gap: 0; }
  .stat, .stat:nth-child(3) { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line-gold); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .card { padding: 36px 26px 32px; }
  .wordmark { letter-spacing: 0.24em; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* About page */
.about-hero { padding-top: clamp(64px, 9vw, 120px); }
.about-hero h1 { max-width: 980px; font-size: clamp(40px, 4.8vw, 66px); line-height: 1.08; }
.about-hero .lead { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--gold); margin-bottom: 0; }
.about-intro { border-top: 1px solid var(--line); }
.prose { max-width: 720px; }
.prose p { color: var(--text-muted); font-size: 18px; margin-bottom: 20px; }
.prose .prose-lead { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.3; color: var(--white); margin-bottom: 28px; }
.about-intro + .stats { border-top: 1px solid var(--line); }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }

/* Photo: Ghana, 1999 */
.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: auto; display: block; filter: saturate(.9) contrast(1.02); }
.photo-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.photo figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 12px; }
.photo figcaption::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.photo-frame { position: relative; }
.photo-frame::before { content: ""; position: absolute; top: -14px; right: -14px; width: 42%; height: 42%; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); pointer-events: none; }

.about-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-hero-grid .photo { max-width: 460px; justify-self: end; width: 100%; }

.home-about { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.home-about .photo { max-width: 380px; }
.home-about .eyebrow { margin-bottom: 28px; }

.reply-note { margin-top: 20px; font-size: 14px; color: var(--text-muted); }

@media (max-width: 860px) {
  .about-hero-grid, .home-about { grid-template-columns: 1fr; }
  .about-hero-grid .photo { justify-self: start; max-width: 420px; }
  .home-about .photo { max-width: 340px; }
}
@media (max-width: 520px) {
  .photo-frame::before { top: -10px; right: -10px; }
}

.trust-link { grid-column: 2; margin-top: -32px; }
@media (max-width: 960px) { .trust-link { grid-column: auto; margin-top: 0; } }
