/* Agentic AI Consultation — shared site styles */
:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1a1d26;
  --muted: #5c6578;
  --accent: #0d6e66;
  --accent-hover: #0a5751;
  --border: #e2e6ee;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(26, 29, 38, 0.08);
  --max: 920px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.logo-sub {
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}
.nav a[aria-current="page"] {
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
}
.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: rgba(13, 110, 102, 0.08);
}

.hero {
  background: linear-gradient(165deg, #e8f3f2 0%, var(--bg) 48%);
  padding: 3rem 0 3.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.section {
  padding: 3rem 0;
}

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

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 2rem;
}

.grid-3 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

.services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.service:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

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

.cta-block {
  text-align: center;
  padding: 2.5rem 1rem;
}
.cta-block p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin: 0 0 0.5rem;
}
.page-hero .lede {
  margin: 0;
}

.prose {
  max-width: 65ch;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose ul {
  padding-left: 1.25rem;
}

.faq-item {
  margin-bottom: 1.75rem;
}
.faq-item h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child {
  border-bottom: none;
}
.post-list h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-list h2 a:hover {
  color: var(--accent);
}
.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.post-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  margin-bottom: 1rem;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  background: #1a1d26;
  color: #c5cad6;
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.site-footer a {
  color: #9ed4cf;
}
.footer-inner p {
  margin: 0.35rem 0;
}
.footer-meta {
  opacity: 0.9;
}

/* Atlas KB */
.kb-with-toc {
  display: grid;
  gap: 2rem;
  max-width: 960px;
}
@media (min-width: 900px) {
  .kb-with-toc {
    grid-template-columns: minmax(200px, 240px) 1fr;
    align-items: start;
  }
  .kb-toc {
    position: sticky;
    top: 5rem;
  }
}
.kb-toc {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.kb-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kb-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kb-toc li {
  margin: 0.4rem 0;
}
.kb-toc a {
  color: var(--accent);
  text-decoration: none;
}
.kb-toc a:hover {
  text-decoration: underline;
}
.kb-prose {
  max-width: 68ch;
}
.prose code {
  font-size: 0.92em;
  background: #eef1f7;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1.25rem;
}
.kb-table th,
.kb-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.kb-table th {
  background: #f0f3f9;
  font-weight: 600;
}
.kb-table code {
  font-size: 0.88em;
}
pre.kb-code {
  background: #1a1d26;
  color: #e8eaef;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0.5rem 0 1rem;
}
pre.kb-code code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.callout {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}
.callout strong {
  color: var(--text);
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .kb-toc {
    position: static;
  }
}
