/* ==========================================================================
   ECOHIT Base — reset, typography, layout primitives, a11y
   Mobile-first. Breakpoints: 30rem / 48rem / 64rem / 80rem
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--eco-font-body);
  font-size: var(--eco-body);
  line-height: 1.7;
  color: var(--eco-text);
  background: var(--eco-bg);
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--eco-font-heading);
  margin: 0 0 var(--eco-space-4);
  color: inherit;
}

h1 { font-size: var(--eco-h1); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--eco-h2); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--eco-h3); line-height: 1.35; font-weight: 700; }

p { margin: 0 0 var(--eco-space-4); max-width: var(--eco-reading); }
ul, ol { margin: 0 0 var(--eco-space-4); padding-inline-start: 1.25rem; }
li { margin-block-end: var(--eco-space-2); }

a { color: var(--eco-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--eco-navy); }

strong { font-weight: 600; }

/* Focus — never removed */
:focus-visible {
  outline: 3px solid var(--eco-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.eco-section--dark :focus-visible { outline-color: var(--eco-yellow); }

/* Skip link */
.eco-skip-link {
  position: absolute;
  inset-inline-start: var(--eco-space-4);
  inset-block-start: -100px;
  z-index: 200;
  padding: var(--eco-space-3) var(--eco-space-4);
  background: var(--eco-navy);
  color: var(--eco-white);
  border-radius: var(--eco-radius-button);
  transition: inset-block-start var(--eco-transition);
}
.eco-skip-link:focus { inset-block-start: var(--eco-space-4); color: var(--eco-white); }

/* Layout primitives */
.eco-container {
  width: min(100% - 2rem, var(--eco-container));
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .eco-container { width: min(100% - 3rem, var(--eco-container)); }
}

.eco-section { padding-block: var(--eco-space-12); }
@media (min-width: 48rem) {
  .eco-section { padding-block: var(--eco-space-16); }
}
.eco-section--white { background: var(--eco-white); }
.eco-section--dark { background: var(--eco-navy); color: var(--eco-white); }
.eco-section--dark p { color: rgb(255 255 255 / 0.88); }

.eco-section__head { max-width: 46rem; margin-block-end: var(--eco-space-8); }
.eco-section__head--center { margin-inline: auto; text-align: center; }

.eco-eyebrow {
  display: inline-block;
  font-family: var(--eco-font-heading);
  font-size: var(--eco-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eco-blue);
  margin-block-end: var(--eco-space-3);
}
.eco-section--dark .eco-eyebrow { color: var(--eco-yellow); }

.eco-perex {
  font-size: var(--eco-perex);
  line-height: 1.6;
  font-weight: 500;
  color: var(--eco-text-muted);
}
.eco-section--dark .eco-perex { color: rgb(255 255 255 / 0.85); }

.eco-grid { display: grid; gap: var(--eco-space-6); }
@media (min-width: 48rem) {
  .eco-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .eco-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .eco-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .eco-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .eco-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.eco-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.eco-small { font-size: var(--eco-small); line-height: 1.55; }
.eco-muted { color: var(--eco-text-muted); }
