/* CJT Development — Base Stylesheet */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800,900&f[]=satoshi@300,400,500,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p, li { text-wrap: pretty; max-width: 72ch; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

::selection {
  background: rgba(11, 110, 115, 0.35);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@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 utilities ── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow { max-width: var(--content-default); }

section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }

/* ── Typography utilities ── */
.label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-4);
}

/* ── Button components ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent-light);
  border: 1.5px solid rgba(189, 215, 238, 0.35);
}
.btn-outline:hover {
  background: rgba(189,215,238,0.08);
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
  transform: translateY(-1px);
}

/* ── Card component ── */
.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--color-border-teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid;
}
.badge--teal  { color: var(--teal-light); border-color: rgba(13,138,144,0.4); background: rgba(11,110,115,0.15); }
.badge--navy  { color: var(--color-accent-light); border-color: rgba(189,215,238,0.3); background: rgba(31,56,100,0.5); }
.badge--green { color: #22C55E; border-color: rgba(34,197,94,0.35); background: rgba(26,92,42,0.2); }

/* ── Section header ── */
.section-header { margin-bottom: var(--space-12); }
.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* ── Sticky nav ── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
#site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.nav-logo-text span { color: var(--teal-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-text); }

.nav-cta { margin-left: var(--space-4); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,15,30,0.97);
    padding: var(--space-6) var(--space-8);
    gap: var(--space-6);
    border-bottom: 1px solid var(--color-border);
  }
  .nav-cta.open { display: flex; padding: 0 var(--space-8) var(--space-6); }
}

/* ── Footer ── */
#site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 32ch;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* ── Scroll fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page hero ── */
.page-hero {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  background: linear-gradient(160deg, var(--color-surface-3) 0%, var(--color-bg) 60%);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
}

/* ── Stat callout ── */
.stat-block { text-align: center; }
.stat-block .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}
.stat-block .stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Two-column grid ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* ── Teal accent bar (top of card) ── */
.card-accent {
  width: 36px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: var(--space-5);
}
