/*
 * Axion Communications - Global CSS
 * Design tokens, base typography, and utility classes.
 * Loaded on all front-end pages.
 * ---------------------------------------------------------------------------
 */

/* === Design Tokens ======================================================== */
:root {
  /* Brand palette */
  --brand-primary:       #065389;
  --brand-primary-dark:  #043a61;
  --brand-primary-deep:  #032b49;
  --brand-primary-light: #eaf4fb;
  --brand-accent:        #00aeef;

  /* Legacy aliases (kept for backwards compatibility) */
  --red:      var(--brand-primary);
  --red-dark: var(--brand-primary-dark);
  --red-soft: var(--brand-primary-light);

  /* Neutral palette */
  --dark:  #07111f;
  --navy:  #101b2f;
  --ink:   #1f2937;
  --muted: #667085;
  --line:  rgba(15, 23, 42, 0.12);
  --soft:  #f6f7f9;
  --white: #ffffff;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 18px 50px rgba(7, 17, 31, 0.12);
  --shadow-lg: 0 30px 90px rgba(7, 17, 31, 0.22);

  /* Layout */
  --container:      1220px;
  --container-wide: 1380px;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  20px;
  --space-lg:  32px;
  --space-xl:  56px;
  --space-2xl: 84px;

  /* Typography */
  --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* === Base Reset =========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, h5, h6,
p, a, button, span, strong, small,
li, input, textarea, select, label {
  font-family: var(--font-main);
}

a       { text-decoration: none; color: inherit; }
button  { font-family: inherit; }
img     { max-width: 100%; height: auto; display: block; }

/* === Layout Utilities ===================================================== */
.axion-container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.axion-container--wide {
  width: min(100% - 40px, var(--container-wide));
  margin-inline: auto;
}

.axion-section {
  padding-block: clamp(64px, 8vw, 110px);
}

.axion-section--tight {
  padding-block: clamp(44px, 6vw, 76px);
}

/* === Typography Utilities ================================================= */
.axion-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.axion-heading-xl {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--dark);
}

.axion-heading-lg {
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.axion-heading-md {
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--dark);
}

.axion-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

/* === Card Component ======================================================= */
.axion-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* === Button Utilities ===================================================== */
.axion-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

.axion-btn--primary {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(6, 83, 137, 0.28);
}

.axion-btn--primary:hover {
  background: var(--brand-primary-dark);
  box-shadow: 0 10px 30px rgba(6, 83, 137, 0.38);
}

.axion-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.axion-btn--ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* === Accessibility ======================================================== */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

.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;
}

/* === Reduced Motion ======================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
