/* AMPGB Solutions site styles. */

.ax {
  --bg: #020203;
  --bg-alt: #0b0b0d;
  --hero-bg: #020203;
  --card: #0e0e11;
  --ink: #f5f1e6;
  --muted: #aaa493;
  --gold: #e3b341;
  --gold-text: #e8c05a;
  --gold-grad: linear-gradient(180deg, #f8dc82 0%, #dba935 55%, #b07a1c 100%);
  --btn-ink: #0a0a0a;
  --line: rgba(227, 179, 65, 0.24);
  --radius: 2px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-accent: var(--font-head);
  --head-case: uppercase;
  --head-track: 0.04em;
  --head-weight: 400;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

.ax-corporate {
  --bg: #ffffff;
  --bg-alt: #f6f4f4;
  --hero-bg: #faf8f8;
  --card: #ffffff;
  --ink: #111111;
  --muted: #565656;
  --gold: #c8962d;
  --gold-text: #8a5f0c;
  --gold-grad: linear-gradient(180deg, #d9a93f 0%, #b07a1c 100%);
  --line: #e2d9c6;
  --radius: 10px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-case: none;
  --head-track: -0.01em;
  --head-weight: 800;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; }

.ax *, .ax *::before, .ax *::after { box-sizing: border-box; }
:where(.ax) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
.ax a { text-underline-offset: 3px; }
.ax [hidden] { display: none !important; }
.ax button { font-family: inherit; }
:where(.ax) :where(ul, ol) { list-style: none; }
.ax a { color: inherit; }
.ax a:focus-visible, .ax button:focus-visible, .ax input:focus-visible, .ax textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ax-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ax-skip { position: absolute; left: -9999px; }
.ax-skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--gold); color: #000; padding: 8px 12px; }

/* Header */
.ax-nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--hero-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ax-nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.ax-wordmark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--font-head); line-height: 1; }
.ax-wordmark strong { font-size: 18px; letter-spacing: 0.06em; font-weight: var(--head-weight); color: var(--ink); }
.ax-wordmark span { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-text); }
.ax-nav nav { display: flex; gap: 26px; margin-left: auto; }
.ax-nav nav a { font-size: 13px; text-decoration: none; color: var(--muted); letter-spacing: 0.02em; }
.ax-nav nav a:hover { color: var(--ink); }

/* Buttons */
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  background: var(--gold-grad); color: var(--btn-ink);
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 14px/1 var(--font-body); letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ax-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ax-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.ax-btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.ax-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ax-btn-ghost:hover { border-color: var(--gold); filter: none; }

/* Hero */
.ax-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); }
.ax-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding-block: 56px 72px; }
.ax-hero-center .ax-hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding-block: 40px 72px; }
.ax-hero-center .ax-hero-copy { max-width: 760px; }
.ax-hero-center .ax-actions { justify-content: center; }
.ax-hero-center .ax-lede { margin-inline: auto; }
.ax-hero-logo { display: flex; justify-content: center; }
/* The logos are flat images with their own background. Blend that background into
   the page and fade the outer edge so no box shows around the logo. */
.ax-hero-logo img {
  display: block; width: 100%; height: auto; max-width: 460px;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ax-corporate .ax-hero-logo img { mix-blend-mode: normal; }
.ax-hero-center .ax-hero-logo img { max-width: 420px; }

.ax-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px; }
.ax h1 {
  font-family: var(--font-head); font-weight: var(--head-weight);
  text-transform: var(--head-case); letter-spacing: var(--head-track);
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; text-wrap: balance;
}
.ax-lede { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 54ch; }
.ax-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ax-tagline { margin-top: 30px; font-family: var(--font-accent); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text); }

/* Logo stand-in */

/* Sections */
.ax-section { padding-block: 84px; }
.ax-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.ax-head { max-width: 640px; margin-bottom: 40px; }
.ax-index { display: block; font-family: var(--font-accent); font-size: 13px; letter-spacing: 0.2em; color: var(--gold-text); margin-bottom: 10px; }
.ax h2 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; }
.ax-head p { margin-top: 12px; color: var(--muted); }
.ax h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.35; }

/* Supply cards */
.ax-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ax-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ax-corporate .ax-card { box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.05); }
.ax-card-icon { width: 26px; height: 26px; color: var(--gold-text); }
.ax-card p { font-size: 14px; color: var(--muted); flex: 1; }
.ax-code { font-size: 11px; letter-spacing: 0.14em; color: var(--gold-text); font-variant-numeric: tabular-nums; }

/* Buyers */
.ax-buyers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.ax-buyers li { padding: 26px 24px 8px 0; }
.ax-buyers li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.ax-buyers p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Steps */
.ax-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ax-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--font-accent); font-size: 15px; color: var(--gold-text); }
.ax-corporate .ax-step-num { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }
.ax-steps p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Company facts */
.ax-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ax-facts dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.ax-facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ax-facts dd { font-size: 15px; }
.ax-naics { padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ax-naics h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.ax-naics li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding-block: 7px; font-size: 14px; }
.ax-naics li span { color: var(--gold-text); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* Contact */
.ax-contact { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: start; }
.ax-contact .ax-head { margin-bottom: 24px; }
.ax-contact-list { display: grid; gap: 12px; }
.ax-contact-list li { display: flex; align-items: center; gap: 12px; }
.ax-contact-list svg { width: 20px; height: 20px; color: var(--gold-text); flex: none; }
.ax-form { display: grid; gap: 16px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ax-field { display: grid; gap: 6px; }
.ax-field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ax-field input, .ax-field textarea {
  width: 100%; padding: 12px 14px; font: 400 16px/1.4 var(--font-body);
  color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
}
.ax-field textarea { resize: vertical; min-height: 120px; }
.ax-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ax-form-error { font-size: 14px; color: #e5604d; }
.ax-form-done { gap: 20px; justify-items: start; }

/* Footer */
.ax-footer { padding-block: 40px; border-top: 1px solid var(--line); background: var(--hero-bg); font-size: 13px; color: var(--muted); }
.ax-footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ax-footer .ax-wordmark { margin-bottom: 10px; }
.ax-footer-note { max-width: 420px; text-align: right; display: grid; gap: 6px; }

@media (max-width: 960px) {
  .ax-cards, .ax-steps { grid-template-columns: repeat(2, 1fr); }
  .ax-buyers { grid-template-columns: repeat(2, 1fr); }
  .ax-buyers li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ax-facts, .ax-contact { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .ax-nav nav { display: none; }
  .ax-nav-row { justify-content: space-between; }
  .ax-hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 52px; }
  .ax-hero-logo img { max-width: 320px; }
  .ax-section { padding-block: 56px; }
  .ax-facts dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ax-footer-note { text-align: left; }
}

@media (max-width: 520px) {
  .ax-cards, .ax-steps, .ax-buyers { grid-template-columns: 1fr; }
  .ax-buyers li, .ax-buyers li + li { padding: 20px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .ax-buyers li:first-child { border-top: 0; }
  .ax-buyers { border-top: 1px solid var(--line); }
  .ax-form { padding: 20px; }
  .ax-actions .ax-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ax-btn { transition: none; }
}

/* ---------- Modern layer: motion, depth and contrast ---------- */
.ax-corporate { --radius: 16px; }
.ax-btn { border-radius: 999px; }
.ax-btn-arrow::after { content: "→"; margin-left: 10px; transition: transform 0.2s ease; }
.ax-btn-arrow:hover::after { transform: translateX(4px); }

/* Header reacts to scroll and shows where you are */
.ax-nav { transition: box-shadow 0.25s ease, background 0.25s ease; }
.ax-nav.is-scrolled { box-shadow: 0 8px 30px rgba(17, 17, 17, 0.07); }
.ax-nav nav a { position: relative; padding-block: 6px; transition: color 0.2s ease; }
.ax-nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.ax-nav nav a:hover::after, .ax-nav nav a.is-active::after { transform: scaleX(1); }
.ax-nav nav a.is-active { color: var(--ink); }
.ax-menu { display: none; }

/* Hero: soft gold light and a faint grid behind big type */
.ax-hero { position: relative; overflow: hidden; }
.ax-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 46%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 46%, #000 100%);
  opacity: 0.55;
}
.ax-hero::after {
  content: ""; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 150, 45, 0.22), transparent); pointer-events: none;
}
.ax-hero-grid { position: relative; z-index: 1; }
.ax h1 { font-size: clamp(34px, 5.6vw, 66px); letter-spacing: -0.03em; line-height: 1.04; }
.ax-gold { background: linear-gradient(90deg, #9a6a10, #d9a93f 55%, #9a6a10); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ax-lede { font-size: 18px; }
.ax-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.ax-pills li { padding: 7px 14px; font-size: 12px; letter-spacing: 0.04em; color: var(--ink); background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(6px); }
.ax-pills li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.ax-tagline { margin-top: 26px; }

/* Cards lift on hover */
.ax-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.ax-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 2px 4px rgba(17, 17, 17, 0.04), 0 18px 40px rgba(138, 95, 12, 0.14); }
.ax-card-icon { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: rgba(200, 150, 45, 0.13); }
.ax-buyers li h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--gold); }

/* Dark band for contrast */
.ax-dark {
  --ink: #f6f2e8; --muted: #b9b3a5; --gold-text: #e6b94d; --line: rgba(227, 179, 65, 0.24); --card: rgba(255, 255, 255, 0.04);
  position: relative; overflow: hidden; color: var(--ink);
  background: radial-gradient(700px 320px at 85% 0%, rgba(200, 150, 45, 0.2), transparent 70%), #0b0b0c;
}
.ax-dark .ax-steps li { padding: 26px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.25s ease, border-color 0.25s ease; }
.ax-dark .ax-steps li:hover { transform: translateY(-5px); border-color: var(--gold); }
.ax-steps { gap: 16px; }

/* Company + form polish */
.ax-naics, .ax-form { box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 14px 36px rgba(17, 17, 17, 0.06); }
.ax-field input, .ax-field textarea { border-radius: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ax-field input:focus, .ax-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 150, 45, 0.18); }
.ax-form .ax-btn { justify-self: start; }

/* Dark footer bookend */
.ax-footer { background: #0b0b0c; color: #b9b3a5; border-top: 0; }
.ax-footer .ax-wordmark strong { color: #f6f2e8; }
.ax-footer .ax-wordmark span { color: #e6b94d; }

/* Scroll reveal (added by script, so the page is fully visible without it) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .ax-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer; }
  .ax-menu svg { width: 20px; height: 20px; }
  .ax-nav-row { gap: 10px; }
  .ax-nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 10px 20px 18px; flex-direction: column; gap: 0; background: var(--hero-bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(17, 17, 17, 0.08); }
  .ax-nav.is-open nav { display: flex; }
  .ax-nav nav a { padding: 14px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .ax-nav nav a::after { display: none; }
  .ax-lede { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ax-card, .ax-dark .ax-steps li { transition: none; }
}
