/* =========================================================
   AC Enterprise Solutions — design tokens
   ========================================================= */
:root {
  --navy: #1c2b3a;
  --navy-light: #2e4358;
  --slate: #55636f;
  --paper: #f7f4ee;
  --card: #ffffff;
  --card-alt: #efe9db;
  --brass: #b8863b;
  --brass-dark: #93692a;
  --ink: #20242b;
  --line: #dcd5c5;
  --line-dark: #3c4c5c;

  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 3px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: block;
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Header / tab navigation
   ========================================================= */
.site-header {
  background: var(--navy);
  padding-top: 18px;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  color: var(--paper);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb0bf;
  margin-top: 2px;
}

/* tabs styled like application tabs */
.tabs {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #b7c3cd;
  padding: 10px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tabs a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.tabs li.active a {
  color: var(--navy);
  background: var(--paper);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .header-inner { align-items: center; }
  .tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .tabs a { padding: 10px 14px; white-space: nowrap; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0 84px;
}

.hero h1 { color: #fff; max-width: 15ch; }

.hero-sub {
  color: #c3cdd6;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 1.7em;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brass);
  color: #221607;
  font-weight: 600;
}
.btn-primary:hover { background: #c99646; }

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: #4a5c6d;
}
.btn-secondary:hover { border-color: #7c8fa0; }

/* dark-context variant used outside hero */
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* =========================================================
   Lifecycle pipeline — signature element
   ========================================================= */
.pipeline-wrap {
  margin-top: 46px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pipeline {
  display: flex;
  align-items: center;
  min-width: 620px;
}

.pipeline-stage {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  position: relative;
}

.pipeline-connector {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #4a5c6d 0,
    #4a5c6d 4px,
    transparent 4px,
    transparent 9px
  );
  min-width: 20px;
}

.pipeline-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c8fa0;
  margin-top: 14px;
}

/* =========================================================
   Sections
   ========================================================= */
section { padding: 68px 0; }

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

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--slate); margin-bottom: 0; font-size: 0.97rem; }

.card-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brass-dark);
  display: block;
  margin-bottom: 10px;
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 600;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}

/* Module tags (about page) */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--card-alt);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 6px 11px;
  border-radius: var(--radius);
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  padding: 56px 0;
  text-align: left;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cdd6; }

.cta-band .split {
  align-items: center;
}

/* =========================================================
   Contact form
   ========================================================= */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brass);
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: -6px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 14px;
  display: none;
}

.form-status.visible { display: block; }
.form-status.ok { color: #3f7a4e; }
.form-status.err { color: #a33b3b; }

.contact-direct {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
}

.contact-direct h3 { margin-bottom: 4px; }
.contact-direct .value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--brass-dark);
  word-break: break-word;
}

.contact-direct .divider {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}
