/* ============================================================================
   BASE — reset + base element styling. Everything here reads from tokens.css.
   Load order in every page: fonts.css → tokens.css → base.css → layout.css → page css
   ========================================================================== */

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

* { margin: 0; }

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

/* ---- Headings ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-heading);
  text-transform: uppercase;
}
h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { max-width: 68ch; }

/* ---- Links ------------------------------------------------------------- */
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }

strong, b { color: var(--color-heading); font-weight: var(--fw-bold); }

hr { border: 0; border-top: 1px solid var(--color-border); }

::selection { background: var(--color-accent); color: var(--color-on-accent); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  /* content column = --container-max (1140px); padding is added outside it so
     the inner width matches Elementor exactly on desktop. */
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--space-9); }
.eyebrow {
  font-family: var(--font-display);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1rem;                     /* 16px, per the live site */
  line-height: 1;
  /* 20px/40px minus the 1px border, so the box is exactly 56px tall like live */
  padding: calc(1.25em - 1px) calc(2.5em - 1px);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
/* Primary = solid cyan fill, black text. This is the default button everywhere. */
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); box-shadow: var(--glow-accent); }
.btn--primary:active { background: var(--color-accent-press); border-color: var(--color-accent-press); }

/* Secondary = transparent, white border + white text; fills cyan (black text) on hover.
   Not used on the current site yet — reserved for when a lower-emphasis action appears. */
.btn--secondary { background: transparent; color: var(--color-heading); border-color: var(--color-heading); }
.btn--secondary:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--glow-accent); }
.btn--secondary:active { background: var(--color-accent-press); border-color: var(--color-accent-press); }

/* ---- Utilities ---------------------------------------------------------- */
/* Available to assistive tech, invisible on screen — for headings that
   structure a section whose meaning is already carried visually. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
