/* ==========================================================================
   Centurion Services — Base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent); }

/* --- Type roles as utility classes for use inside Elementor HTML widgets --- */
.type-display-xl { font-size: var(--fs-display-xl); font-weight: 900; line-height: var(--lh-display-xl); letter-spacing: var(--ls-display-xl); }
.type-display-l  { font-size: var(--fs-display-l);  font-weight: 700; line-height: var(--lh-display-l);  letter-spacing: var(--ls-display-l); }
.type-display-m  { font-size: var(--fs-display-m);  font-weight: 700; line-height: var(--lh-display-m);  letter-spacing: var(--ls-display-m); }
.type-display-s  { font-size: var(--fs-display-s);  font-weight: 600; line-height: var(--lh-display-s);  letter-spacing: var(--ls-display-s); }
.type-heading    { font-size: var(--fs-heading);    font-weight: 600; line-height: var(--lh-heading);    letter-spacing: var(--ls-heading); }
.type-sub        { font-size: var(--fs-sub);        font-weight: 600; line-height: var(--lh-sub);        letter-spacing: var(--ls-sub); }
.type-body-l     { font-size: var(--fs-body-l);     font-weight: 400; line-height: var(--lh-body-l); }
.type-body       { font-size: var(--fs-body);       font-weight: 400; line-height: var(--lh-body); }
.type-body-s     { font-size: var(--fs-body-s);     font-weight: 400; line-height: var(--lh-body-s); }
.type-caption    { font-size: var(--fs-caption);    font-weight: 500; line-height: var(--lh-caption); }
.type-kicker     {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 600;
  line-height: var(--lh-kicker);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--ink-2);
}

/* --- Native heading defaults (map to type scale) --- */
h1 { font-size: var(--fs-display-l); font-weight: 700; line-height: var(--lh-display-l); letter-spacing: var(--ls-display-l); margin: 0 0 var(--sp-6); }
h2 { font-size: var(--fs-display-m); font-weight: 700; line-height: var(--lh-display-m); letter-spacing: var(--ls-display-m); margin: 0 0 var(--sp-5); }
h3 { font-size: var(--fs-heading);   font-weight: 600; line-height: var(--lh-heading);   letter-spacing: var(--ls-heading);   margin: 0 0 var(--sp-4); }
h4 { font-size: var(--fs-sub);       font-weight: 600; line-height: var(--lh-sub);       letter-spacing: var(--ls-sub);       margin: 0 0 var(--sp-3); }
h5 { font-size: var(--fs-body-l);    font-weight: 600; line-height: 1.4; margin: 0 0 var(--sp-2); }
h6 { font-size: var(--fs-body);      font-weight: 600; line-height: 1.4; margin: 0 0 var(--sp-2); }

p  { margin: 0 0 var(--sp-4); }

/* --- Responsive display scale (mobile-first shrink) --- */
@media (max-width: 900px) {
  :root {
    --fs-display-xl: 64px;
    --fs-display-l:  48px;
    --fs-display-m:  36px;
    --fs-display-s:  30px;
    --fs-heading:    24px;
    --fs-sub:        20px;
  }
}
@media (max-width: 600px) {
  :root {
    --fs-display-xl: 48px;
    --fs-display-l:  38px;
    --fs-display-m:  30px;
  }
}

/* --- Container helpers --- */
.csl-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.csl-container--narrow { max-width: var(--container-narrow); }

/* --- Body monospace utility for SKUs, prices, timestamps --- */
.mono, .type-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- Focus states (accessible) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection { background: var(--accent); color: var(--accent-ink); }

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px;
  width: auto; height: auto; padding: 12px 16px;
  background: var(--ink); color: var(--bg); z-index: 10000;
  border-radius: var(--radius-md);
}
