:root {
  --navy: #1a2744;
  --cream: #faf8f5;
  --cream-deep: #f0ebe3;
  --coral: #d4654a;
  --coral-deep: #b8523a;
  --sage: #6b8f71;
  --gold: #c9a227;
  --text: #1a2744;
  --text-muted: #4a5568;
  --border: rgba(26, 39, 68, 0.12);
  --shadow: 0 18px 50px -28px rgba(26, 39, 68, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-brand: "Source Serif 4", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 100% -5%, rgba(107, 143, 113, 0.14), transparent 52%),
    radial-gradient(ellipse 75% 50% at -5% 105%, rgba(212, 101, 74, 0.11), transparent 48%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(201, 162, 39, 0.06), transparent 60%),
    var(--cream);
}
a { color: var(--coral-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section-tint-sage {
  background: linear-gradient(180deg, rgba(107, 143, 113, 0.11) 0%, rgba(107, 143, 113, 0.04) 100%);
  border-top: 1px solid rgba(107, 143, 113, 0.15);
  border-bottom: 1px solid rgba(107, 143, 113, 0.15);
}
.section-tint-warm {
  background: linear-gradient(135deg, rgba(212, 101, 74, 0.09) 0%, rgba(201, 162, 39, 0.07) 100%);
  border-top: 1px solid rgba(212, 101, 74, 0.12);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(107, 143, 113, 0.12);
}
.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}
.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.brand-text {
  display: inline-grid;
  grid-template-columns: max-content;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--navy);
  white-space: nowrap;
}
.brand-sub {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--coral-deep);
  line-height: 1.2;
}
.brand-sub span {
  display: block;
}
.brand-tagline { font-size: 0.8rem; color: var(--text-muted); line-height: 1.3; }

/* About intro — C1 split (CAD mark + copy) */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin-top: 8px;
}
.about-intro-mark {
  margin: 0;
  line-height: 0;
}
.about-intro-mark img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}
.about-intro-copy h1 {
  margin-top: 0;
}
.about-intro-copy .lead {
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 20px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 162, 39, 0.18), transparent 38%),
    radial-gradient(circle at 6% 88%, rgba(107, 143, 113, 0.2), transparent 42%),
    radial-gradient(circle at 72% 55%, rgba(212, 101, 74, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(26, 39, 68, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover { background: var(--coral-deep); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.card-grid .card:nth-child(1) { border-top: 3px solid var(--coral); }
.card-grid .card:nth-child(2) { border-top: 3px solid var(--sage); }
.card-grid .card:nth-child(3) { border-top: 3px solid var(--gold); }
.card-grid .card:nth-child(3n+4) { border-top: 3px solid var(--coral); }
.card-grid .card:nth-child(3n+5) { border-top: 3px solid var(--sage); }
.card-grid .card:nth-child(3n+6) { border-top: 3px solid var(--gold); }
.card h3 { margin-bottom: 8px; color: var(--navy); }

/* Team strip */
#team {
  scroll-margin-top: 88px;
}

.team-strip {
  background:
    linear-gradient(135deg, rgba(212, 101, 74, 0.15) 0%, transparent 55%),
    linear-gradient(225deg, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
    var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 24px 48px -32px rgba(26, 39, 68, 0.55);
}
.team-strip .eyebrow { color: var(--gold); }
.team-strip h2 { color: var(--cream); }
.team-strip p { color: rgba(250, 248, 245, 0.85); }
.team-strip a:not(.btn) { color: var(--gold); }
.team-strip .btn-secondary {
  color: var(--cream);
  border-color: rgba(250, 248, 245, 0.45);
}
.team-strip .btn-secondary:hover {
  color: var(--cream);
  border-color: var(--cream);
}
.team-strip .hero-actions { margin-top: 20px; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 600; background: rgba(26, 39, 68, 0.04); }

/* Split layouts — use horizontal space on wide screens */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 40px 48px;
  align-items: start;
  margin-top: 8px;
}

/* Forms */
.form-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius);
  padding: 28px;
}
.form-card--narrow { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--cream);
}
.field textarea { min-height: 120px; resize: vertical; }
.help { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-good { background: #d1fae5; color: #065f46; }

.disclaimer {
  background: rgba(212, 101, 74, 0.08);
  border: 1px solid rgba(212, 101, 74, 0.22);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 48px 0 52px;
  background:
    linear-gradient(160deg, rgba(212, 101, 74, 0.12) 0%, transparent 45%),
    linear-gradient(200deg, rgba(107, 143, 113, 0.1) 0%, transparent 40%),
    var(--navy);
  color: rgba(250, 248, 245, 0.9);
}
.site-footer strong { color: var(--cream); }
.site-footer .muted { color: rgba(250, 248, 245, 0.72); }
.site-footer a { color: var(--gold); text-decoration-color: rgba(201, 162, 39, 0.5); }
.site-footer a:hover { color: #e0bc4a; }
.site-footer .badge-warn {
  background: rgba(201, 162, 39, 0.22);
  color: #f5e6a8;
}
.site-footer .badge-good {
  background: rgba(107, 143, 113, 0.35);
  color: #e8f5ea;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 64px;
  align-items: start;
}
.footer-links { text-align: right; white-space: nowrap; }
.footer-fine { grid-column: 1 / -1; max-width: none; }

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; width: 100%; }
  .brand-name { font-size: 1.05rem; }
  .brand-tagline { display: none; }
  .split-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { text-align: left; white-space: normal; }
}

@media (max-width: 800px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .about-intro-mark {
    max-width: 280px;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}
