/* ============================================================
   SolTech InfoLabs — Reset, typography, layout primitives
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  letter-spacing: var(--tr-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss03" 1, "tnum" 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tr-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--tr-tight); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { background: none; border: 0; padding: 0; cursor: pointer; }

strong, b { font-weight: 600; }

::selection { background: var(--blue-500); color: #fff; }

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

/* ---------- Focus: always visible, never ugly ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.theme-dark :focus-visible { outline-color: var(--aqua-400); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: var(--z-top);
  padding: 0.7rem 1.15rem;
  background: var(--blue-500);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus-visible { top: var(--sp-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide   { max-width: var(--maxw-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--sm { padding-block: var(--section-y-sm); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.theme-dark { background: var(--bg); color: var(--text); }
.bg-tint { background: var(--bg-tint); }


/* ---------- Utility type ---------- */
.lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: var(--tr-normal);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.eyebrow--plain::before { display: none; }

/* Gradient text used sparingly, on dark only */
.grad-text {
  background: linear-gradient(96deg, #FFFFFF 8%, #BFD6FF 48%, #7FE4F5 96%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .flow-dot { display: none !important; }
  /* animations are frozen above, so pin animated states to their resting look */
  .eco__branch-out { opacity: 1 !important; }
}

/* Print: keep it legible, drop the chrome */
@media print {
  .site-nav, .site-footer, .cta-band, .nav-drawer { display: none !important; }
  .theme-dark { background: #fff !important; color: #000 !important; }
  .section { padding-block: 1.5rem; }
}
