:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #5d6878;
  --line: #dce3eb;
  --brand: #0e6f74;
  --brand-dark: #0a4d51;
  --accent: #c88a2d;
  --dark: #111927;
  --dark-soft: #1c2636;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(17, 25, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface);
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  flex: 0 0 auto;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  content: '';
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 100%;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--brand-dark);
  background: #e9f4f4;
  outline: none;
}

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(135deg, #ffffff 0%, #edf5f5 58%, #f8efe1 100%);
}

.hero-grid,
.split,
.why-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 28px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.15rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text,
.page-hero p,
.section-heading p,
.cta-box p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero-panel,
.content-panel,
.contact-form,
.contact-aside,
.cta-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-card span {
  color: var(--muted);
}

.status-card strong {
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.capability-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.section,
.page-hero {
  padding: 56px 0;
}

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: #edf3f4;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark .eyebrow,
.section-dark p {
  color: #d7e5e8;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.split h2,
.proof-band h2,
.why-grid h2,
.cta-box h2 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card,
.platform-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h2,
.card h3,
.platform-card h2,
.platform-card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: 0;
}

.card p,
.platform-card p,
.content-panel p,
.contact-aside p,
.proof-band p {
  color: var(--muted);
}

.platform-stack {
  display: grid;
  gap: 16px;
}

.platform-card {
  border-left: 5px solid var(--accent);
}

.platform-card.large {
  padding: 26px;
}

.proof-band {
  display: grid;
  gap: 18px;
  align-items: center;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list p {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--dark-soft);
}

.final-cta {
  background: #fff;
}

.cta-box {
  text-align: center;
}

.cta-box p {
  margin: 14px auto 22px;
}

.portfolio-card span,
.footer-label {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--muted);
  background: #f5f7f9;
}

.site-footer {
  padding: 40px 0 24px;
  background: #0f1724;
  color: #eef5f6;
}

.site-footer p,
.site-footer small {
  color: #b9c7d3;
}

.site-footer a {
  color: #fff;
}

.admin-auth-page,
.admin-page {
  min-height: 100vh;
  background: #f1f5f7;
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-auth-card h1,
.admin-dashboard h1 {
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: 0;
}

.alert {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e3b6b6;
  border-radius: var(--radius);
  background: #fff0f0;
  color: #8a2525;
  font-weight: 700;
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.admin-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 1120px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}

@media (min-width: 760px) {

  .hero {
    padding: 92px 0 64px;
  }

  .hero-grid,
  .split,
  .why-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    align-items: start;
  }

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

  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .proof-band {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (min-width: 1040px) {
  .card-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Veteran-owned dark business theme */
:root {
  --bg: #0b0f0c;
  --surface: #1d241f;
  --ink: #e8e5d8;
  --muted: #aaa99e;
  --line: #384137;
  --brand: #4b5d3a;
  --brand-dark: #b7ad84;
  --accent: #9a7440;
  --dark: #0e130f;
  --dark-soft: #151b17;
  --radius: 5px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html {
  color-scheme: dark;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid #d8cfa7;
  outline-offset: 3px;
}

::selection {
  color: var(--bg);
  background: var(--brand-dark);
}

.skip-link:focus {
  color: var(--bg);
  background: var(--brand-dark);
  border-radius: var(--radius);
}

.site-header {
  background: rgba(11, 15, 12, 0.97);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 68px;
}

.brand strong {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid #71805f;
  border-radius: 3px;
  background: #283124;
  color: var(--brand-dark);
  letter-spacing: 0.06em;
}

.nav-toggle {
  border-color: #59634f;
  background: var(--dark-soft);
  cursor: pointer;
}

.site-nav {
  background: var(--dark-soft);
}

.site-nav a {
  color: #d7d5ca;
  font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  background: #283124;
}

.hero {
  background: linear-gradient(135deg, #0b0f0c 0%, #151b17 58%, #20271e 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1,
.page-hero h1 {
  letter-spacing: -0.035em;
}

.eyebrow {
  letter-spacing: 0.14em;
}

.button {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: #657650;
}

.button-primary:hover {
  background: #5c7048;
  border-color: #788a61;
}

.button-secondary {
  background: transparent;
  border-color: #59634f;
}

.button-secondary:hover {
  background: #283124;
  border-color: #6a755d;
}

.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.hero-panel,
.content-panel,
.contact-form,
.contact-aside,
.cta-box {
  background: rgba(29, 36, 31, 0.96);
}

.hero-panel,
.cta-box {
  border-top: 3px solid var(--brand);
}

.capability-list li::marker {
  color: var(--brand-dark);
}

.page-hero {
  background: linear-gradient(120deg, var(--dark-soft), var(--bg));
}

.section-muted,
.final-cta {
  background: var(--dark-soft);
}

.section-dark {
  color: var(--ink);
}

.section-dark .eyebrow {
  color: var(--brand-dark);
}

.section-dark p {
  color: #c0beb2;
}

.section-heading h2,
.split h2,
.proof-band h2,
.why-grid h2,
.cta-box h2 {
  letter-spacing: -0.025em;
}

.card,
.platform-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.card:hover,
.platform-card:hover {
  border-color: #59634f;
  background: #222a24;
  transform: translateY(-2px);
}

.platform-card {
  border-left-width: 4px;
}

.text-link {
  color: #c9be91;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--ink);
}

.why-list p {
  border-color: var(--line);
  border-left: 3px solid var(--brand);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  color: var(--ink);
  background: #101511;
  border-color: #59634f;
}

.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
  color: #8e8e85;
  background: #141914;
  opacity: 1;
}

.site-footer {
  background: #080b09;
  color: var(--ink);
  border-top: 3px solid #283124;
}

.site-footer p,
.site-footer small {
  color: var(--muted);
}

.site-footer a {
  color: #d1c69a;
  text-underline-offset: 4px;
}

.admin-auth-page,
.admin-page {
  background: var(--bg);
}

.admin-header-inner {
  min-height: 68px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
