/* axionexperts.com — shared stylesheet. Hand-written, no build step. */

:root {
  --ink: #0E1A24;
  --muted: #51606C;
  --line: #DDE4E9;
  --paper: #FFFFFF;
  --wash: #F3F7FA;
  --brand: #27AAE1;        /* logo blue — decorative and large text only */
  --brand-ink: #0A6E9E;    /* logo blue darkened to pass AA on white */
  --brand-ink-hover: #085A82;
  --night: #0E1A24;
  --night-muted: #A9B8C3;

  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

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

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink-hover); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 8px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
/* echoes the vertical rule between "AES" and "Axion" in the logo */
.eyebrow::before { content: ""; width: 3px; height: 1.2em; background: var(--brand); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  flex-wrap: wrap; padding-block: 14px;
}
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.97rem;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav .nav-cta a { background: var(--brand-ink); color: #fff; margin-left: 6px; }
.nav .nav-cta a:hover { background: var(--brand-ink-hover); color: #fff; }
.nav .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 6px; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .brand img { height: 36px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 8px 8px; }
  .nav .nav-cta a { margin-left: 0; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-ink-hover); color: #fff; }
.btn-secondary { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand); color: var(--night); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-wash { background: var(--wash); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero .lede { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 40ch; margin: 22px 0 32px; }
.hero h1 .accent { color: var(--brand-ink); }

.contact-card {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px; background: #fff;
}
.contact-card h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 0.85rem; color: var(--muted); }
.contact-card dd { margin: 0; font-size: 1.12rem; font-weight: 600; word-break: break-word; }
.contact-card dd a { color: var(--ink); text-decoration: none; }
.contact-card dd a:hover { color: var(--brand-ink); text-decoration: underline; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- capability split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.pill-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pill-list li {
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-weight: 550;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .num { font-size: 0.8rem; font-weight: 700; color: var(--brand-ink); letter-spacing: 0.08em; margin-bottom: 14px; }

.subhead { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 4px; }

.more { margin-top: 28px; font-weight: 600; }

/* ---------- advantages ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 0.95rem; font-weight: 550;
}

/* ---------- value props ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.values article { border-top: 3px solid var(--ink); padding-top: 20px; }
.values h3 { margin-bottom: 10px; }
.values p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- mission quote ---------- */
.mission { max-width: 860px; }
.mission blockquote {
  margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.4; font-weight: 500;
  letter-spacing: -0.01em; text-wrap: pretty;
}

/* ---------- CTA band ---------- */
.cta { background: var(--night); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; }
.cta p { color: var(--night-muted); margin: 10px 0 0; }
.cta a:not(.btn) { color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--night); color: var(--night-muted); font-size: 0.93rem;
  border-top: 1px solid #22313D;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-footer .wrap { padding-block: 40px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--night-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-name { color: #fff; font-weight: 650; font-size: 1.05rem; margin-bottom: 6px; }
.footer-legal { border-top: 1px solid #22313D; margin-top: 32px; padding-top: 20px; font-size: 0.85rem; }

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

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .lede { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 58ch; margin: 20px 0 0; }
.page-hero .actions { margin-top: 28px; }

.prose { max-width: 68ch; }
.prose p { color: var(--ink); }
.prose h2 { margin-bottom: 16px; }
.prose h2:not(:first-child) { margin-top: 48px; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.statement { border-top: 3px solid var(--ink); padding-top: 22px; }
.statement h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.statement p { color: var(--muted); margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 4px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
@media (max-width: 640px) { .check-list.cols { grid-template-columns: 1fr; } }

.note { color: var(--muted); font-size: 0.95rem; }

/* ---------- contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #B9C6CE; border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand-ink); }
.form button { justify-self: start; font: inherit; cursor: pointer; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; padding: 14px 16px; border-radius: 8px; font-weight: 550; }
.form-status.ok { background: #E1F0EA; color: #175C45; }
.form-status.err { background: #F6E4E1; color: #8A3328; }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(72px, 12vw, 140px); }
.not-found .code { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--brand-ink); margin-bottom: 14px; }
.not-found .lede { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 18px 0 30px; }
