/* ============================================================
   Allen & Co — Design Tokens
   Source of truth for every rebuild deliverable (web + print).
   ============================================================ */

:root {
  /* --- Primary palette ---------------------------------------- */
  --ac-red:           #D9032B;   /* Emergency Red */
  --ac-navy:          #12304A;   /* Navy Blue */

  /* --- Secondary palette -------------------------------------- */
  --ac-ocean:         #1C75BD;   /* Ocean Blue */
  --ac-yellow:        #FFD105;   /* Caribbean Yellow */
  --ac-beige:         #E8E3D6;   /* Coconut Beige */

  /* --- Functional tokens -------------------------------------- */
  --ac-ink:           #12304A;
  --ac-ink-muted:     #506277;
  --ac-rule:          #C9D1DB;
  --ac-bg:            #FFFFFF;
  --ac-bg-soft:       #F6F4ED;
  --ac-bg-dark:       #12304A;
  --ac-on-dark:       #FFFFFF;

  /* --- Spacing (8px base) ------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  /* --- Radius ------------------------------------------------- */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* --- Elevation ---------------------------------------------- */
  --elev-1: 0 1px 2px rgba(18,48,74,0.06);
  --elev-2: 0 2px 8px rgba(18,48,74,0.08);
  --elev-3: 0 8px 24px rgba(18,48,74,0.10);

  /* --- Typography --------------------------------------------- */
  --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --t-display:  clamp(40px, 5vw, 56px);
  --t-h1:       clamp(28px, 3.2vw, 36px);
  --t-h2:       clamp(20px, 2.2vw, 24px);
  --t-h3:       18px;
  --t-body:     14px;
  --t-small:    12px;
  --t-caption:  10px;

  --lh-tight:   1.05;
  --lh-snug:    1.15;
  --lh-normal:  1.30;
  --lh-body:    1.45;

  /* --- Durations ---------------------------------------------- */
  --dur-fast:   120ms;
  --dur-base:   200ms;
}

/* ============================================================
   Global reset + base typography
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ac-ink);
  background: var(--ac-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ac-ink);
  margin: 0 0 var(--s-3) 0;
  line-height: var(--lh-snug);
}

h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 600; }

p, li { margin: 0 0 var(--s-2) 0; }

a {
  color: var(--ac-ocean);
  text-decoration: none;
  border-bottom: 1px solid rgba(28,117,189,0.35);
  transition: border-color var(--dur-base) ease;
}
a:hover { border-bottom-color: var(--ac-ocean); }

/* ============================================================
   Utility classes
   ============================================================ */

.ac-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-4); }
.ac-section   { padding: var(--s-7) 0; }
.ac-section--soft { background: var(--ac-bg-soft); }
.ac-section--dark { background: var(--ac-bg-dark); color: var(--ac-on-dark); }
.ac-section--dark h1,
.ac-section--dark h2,
.ac-section--dark h3 { color: var(--ac-on-dark); }

.ac-eyebrow {
  font-size: var(--t-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ac-red);
  margin-bottom: var(--s-2);
}

.ac-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ac-red);
  border: 0;
  margin: var(--s-3) 0 var(--s-4);
}

.ac-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--ac-bg-soft);
  color: var(--ac-navy);
  font-size: var(--t-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-badge--navy { background: var(--ac-navy); color: var(--ac-on-dark); }
.ac-badge--red  { background: var(--ac-red);  color: var(--ac-on-dark); }

/* ============================================================
   Buttons
   ============================================================ */

.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--t-body);
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.ac-btn--primary   { background: var(--ac-navy); color: var(--ac-on-dark); }
.ac-btn--primary:hover { background: #0b1f32; }
.ac-btn--secondary { background: transparent; color: var(--ac-navy); border-color: var(--ac-navy); }
.ac-btn--secondary:hover { background: var(--ac-navy); color: var(--ac-on-dark); }
.ac-btn--cta       { background: var(--ac-red); color: var(--ac-on-dark); }
.ac-btn--cta:hover { background: #B00022; }

/* ============================================================
   Product card — reusable across overview + website
   ============================================================ */

.ac-card {
  background: var(--ac-bg);
  border: 1px solid var(--ac-rule);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.ac-card:hover { box-shadow: var(--elev-2); transform: translateY(-2px); }

.ac-card__media {
  height: 160px;
  background: var(--ac-bg-soft);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--ac-ink-muted);
  font-size: var(--t-small);
}

.ac-card__title { margin: 0; font-size: var(--t-h3); font-weight: 700; }
.ac-card__meta  { color: var(--ac-ink-muted); font-size: var(--t-small); margin: var(--s-1) 0 var(--s-3); }

.ac-card__bullets { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.ac-card__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: var(--t-small);
  color: var(--ac-ink);
  margin-bottom: var(--s-1);
}
.ac-card__bullets li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ac-red);
}

/* ============================================================
   Spec table — used in product detail and one-pager
   ============================================================ */

.ac-specs { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.ac-specs th, .ac-specs td { text-align: left; padding: 6px 10px; vertical-align: top; }
.ac-specs thead th { background: var(--ac-navy); color: var(--ac-on-dark); font-weight: 600; letter-spacing: 0.02em; }
.ac-specs tbody tr:nth-child(even) td { background: var(--ac-bg-soft); }
.ac-specs tbody tr + tr td { border-top: 1px solid var(--ac-rule); }
.ac-specs th[scope="row"] { width: 40%; color: var(--ac-ink-muted); font-weight: 500; }

/* ============================================================
   Print ready — letter/A4 one-pager
   ============================================================ */

@page { size: A4; margin: 18mm 18mm 18mm 18mm; }

@media print {
  html, body { background: #fff; color: #000; }
  .no-print { display: none !important; }
  .ac-card, .ac-btn { break-inside: avoid; }
}
