/* ACAA Solutions brand tokens — sampled from ACAA-FINAL-LOGO (color) */
:root {
  --navy-900: #0a1a38;
  --navy-800: #102853;
  --navy-700: #1c3766;
  --navy-600: #274a86;
  --gold-300: #fdf2a8;
  --gold-500: #f3c93c;
  --gold-600: #dda818;
  --sky-100: #eef1ff;
  --sky-300: #bddcfc;
  --sky-500: #6ec6e8;
  --ink: #16213c;
  --muted: #5b6478;
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e4e7f2;
  --shadow: 0 10px 30px -12px rgba(16, 40, 83, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand, .stat-number, .step-name {
  font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
}

main.site-main {
  min-height: calc(100vh - 320px);
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }

.container-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container-narrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 64px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--navy-800);
  color: #fff;
}

.nav-cta {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--gold-600) !important;
  color: var(--navy-900) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-800);
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-block;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-gold:hover {
  background: var(--gold-600);
  color: var(--navy-900);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 13px 27px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.55);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-navy {
  display: inline-block;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  padding: 13px 27px;
  border-radius: 999px;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-navy:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--sky-100) 0%, #ffffff 45%, var(--gold-300) 145%);
  color: var(--ink);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero .hero-watermark {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 460px;
  height: auto;
  opacity: 0.16;
  transform: rotate(8deg);
  pointer-events: none;
}

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

.hero .eyebrow {
  color: var(--navy-700);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(16,40,83,0.12);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy-900);
  margin: 0 0 20px;
  max-width: 780px;
}

.hero mark {
  background: var(--gold-500);
  background-image: linear-gradient(100deg, var(--gold-500), var(--gold-300));
  color: var(--navy-900);
  padding: 2px 10px;
  border-radius: 8px 3px 8px 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

/* Signup page's launch-promo callout (Pages/Signup.cshtml) - only rendered
   when SignupModel.PromoExtraMonths is actually set, so this never shows a
   stale offer once the promo's own MaxRedemptions is exhausted or it's
   deactivated in Promotion/Edit. */
.signup-promo-banner {
  margin-top: 18px;
  max-width: 640px;
  padding: 14px 18px;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
  border: 1px solid var(--gold-600);
  border-radius: 10px;
  color: var(--navy-900);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.signup-promo-remaining {
  font-weight: 700;
  color: var(--navy-700);
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--navy-900);
  border-color: rgba(16,40,83,0.35);
}

.hero .btn-outline:hover {
  background: rgba(16,40,83,0.06);
  border-color: var(--navy-900);
  color: var(--navy-900);
}

/* wave divider under hero, echoes the fish/water motif */
.wave-shape {
  display: block;
  width: 100%;
  height: 54px;
  margin-bottom: -6px;
  position: relative;
  z-index: 1;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  padding: 12px 0 54px;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 4px 14px 0;
}

/* A thin rule between stats instead of the old outlined-circle-per-number
   badge - reads as a real "by the numbers" strip rather than a set of
   isolated icon-badges. Skipped on the item that starts a fresh row once
   the grid collapses to two columns (see the 900px breakpoint below). */
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,0.16);
}

.stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
  padding-bottom: 16px;
  position: relative;
}

/* Small underline accent standing in for the old circle outline - the
   number itself is now the focal point instead of being boxed in. */
.stat-item .stat-number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-500);
}

.stat-item .stat-label {
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  max-width: 160px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-label {
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold-500);
  display: inline-block;
}

.section h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
}

.section .section-intro {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.brand-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
}

.card-grid .brand-card:nth-child(3n+2) { border-top-color: var(--gold-500); }
.card-grid .brand-card:nth-child(3n+3) { border-top-color: var(--sky-500); }

.brand-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.icon-badge.navy { background: var(--navy-800); }
.icon-badge.gold { background: var(--gold-500); color: var(--navy-900); }
.icon-badge.sky { background: var(--sky-500); }

.brand-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.brand-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

.tint-card {
  background: var(--sky-100);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.tint-card h3 {
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 8px;
}

.tint-card p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Process bar ---------- */
.process-bar {
  display: flex;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 8px;
  position: relative;
}

.process-bar::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--sky-300) 0 10px, transparent 10px 18px);
  z-index: 0;
}

.process-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.process-step .step-index {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 10px;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow);
}

.process-step:nth-child(6) .step-index {
  background: var(--gold-500);
  color: var(--navy-900);
}

.section-alt .process-step .step-index {
  border-color: #fff;
}

.process-step .step-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Callout / CTA band ---------- */
.callout-band {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 28px 8px 28px 8px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.callout-band h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.callout-band p {
  color: rgba(255,255,255,0.78);
  margin: 0;
  max-width: 520px;
}

/* ---------- Video embed (Case Studies' YouTube demo) ---------- */
/* Sized for a vertical YouTube Short (9:16 - phone-recorded, portrait),
   not a landscape 16:9 video. Uses aspect-ratio directly rather than the
   old padding-top percentage hack - that hack resolves against the
   CONTAINING BLOCK's width, not this element's own post-max-width
   rendered width, so combined with max-width it silently produced a much
   taller box than intended (260px wide came out ~690px tall instead of
   the ~462px 9:16 actually calls for). aspect-ratio has no such gotcha. */
.video-embed {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  margin: 28px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(10, 26, 56, 0.18);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  text-align: center;
  font-weight: 700;
  color: var(--navy-900);
  margin: 16px auto 0;
  max-width: 640px;
}

/* ---------- Timeline (About page) ---------- */
.timeline {
  border-left: 3px solid var(--sky-300);
  margin-left: 6px;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold-500);
  border: 3px solid var(--navy-900);
}

.timeline-item .role {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.timeline-item .org {
  font-weight: 600;
  color: var(--navy-700);
}

/* Public bio redaction - former-employer names withheld from the shared
   version of this page. A solid bar rather than a blur filter, since a
   blur can be reasoned away on a screenshot; this reads as deliberately
   withheld at a glance. */
.redacted {
  display: inline-block;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 3px;
}

.timeline-item .dates {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Pill list ---------- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list span {
  background: var(--sky-100);
  color: var(--navy-800);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 44px 0 28px;
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-footer .brand span {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover { color: #fff; }

.footer-newsletter {
  min-width: 240px;
}

.footer-newsletter label {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.footer-newsletter-row {
  display: flex;
  gap: 8px;
}

.footer-newsletter-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
}

.footer-newsletter-row input[type="email"]::placeholder {
  color: rgba(255,255,255,0.45);
}

.footer-newsletter-row .btn-gold {
  padding: 9px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-newsletter-thanks {
  margin: 0;
  color: var(--gold-500);
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-newsletter-message {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.footer-newsletter .footer-newsletter-thanks + .footer-newsletter-message {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.75);
}

.footer-newsletter-message.is-success { color: var(--gold-300); }
.footer-newsletter-message.is-error { color: #ff9d9d; }

.site-footer .footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.55);
}

.site-footer .footer-bottom a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-bottom a:hover {
  color: var(--gold-500);
}

/* ---------- Contact page ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.contact-methods a.method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--navy-900);
  font-weight: 700;
}

.contact-methods a.method:hover {
  background: var(--sky-300);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: #fff;
}

.field-validation-error {
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-success {
  background: var(--sky-100);
  border: 1px solid var(--sky-300);
  color: var(--navy-900);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 1rem;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f3c2bc;
  color: #c0392b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid,
  .card-grid.two-col {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* The 3rd stat starts a new row at this width - its divider would
     otherwise float at the left edge of that row with nothing to divide. */
  .stat-item:nth-child(3)::before {
    display: none;
  }
  .callout-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .process-bar { flex-direction: column; }
}

/* Blog post body - raw author-entered HTML (see Models/BlogPost.cs), so
   this gives bare h2/p/a/ul/blockquote real typography instead of relying
   on the browser's unstyled defaults. Narrower max-width than the site's
   usual .container-narrow - a wall of body text at 1120px is too wide to
   read comfortably. */
.blog-post-body {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.blog-post-body h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
}
.blog-post-body h3 {
  margin-top: 1.8em;
  font-size: 1.2rem;
}
.blog-post-body p {
  margin: 1em 0;
}
.blog-post-body a {
  color: var(--navy-600);
}
.blog-post-body ul, .blog-post-body ol {
  margin: 1em 0;
  padding-left: 1.4em;
}
.blog-post-body li {
  margin: 0.4em 0;
}
.blog-post-body blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 3px solid var(--gold-500);
  color: var(--muted);
}
.blog-post-body img {
  max-width: 100%;
  border-radius: var(--radius);
}
.blog-post-body pre, .blog-post-body code {
  background: var(--bg);
  border-radius: 6px;
}
.blog-post-body pre {
  padding: 1em;
  overflow-x: auto;
}
.blog-post-body code {
  padding: 0.15em 0.4em;
}
