/* ==========================================================================
   WEBBIZORA — BASE / RESET
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--wb-font-body);
  font-size: var(--wb-body);
  line-height: 1.6;
  color: var(--wb-text);
  background: var(--wb-white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--wb-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--wb-text);
}

h1 { font-size: var(--wb-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--wb-h2); line-height: 1.1; }
h3 { font-size: var(--wb-h3); line-height: 1.3; }

p { color: var(--wb-text-muted); }

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

/* Accessible focus state — never remove without replacing */
:focus-visible {
  outline: 2px solid var(--wb-green);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wb-green);
  color: var(--wb-deep-dark);
  padding: var(--wb-s-12) var(--wb-s-16);
  z-index: 200;
  font-weight: 600;
  border-radius: 0 0 var(--wb-radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Layout utility */
.wb-container {
  width: 100%;
  max-width: var(--wb-max-width);
  margin-inline: auto;
  padding-inline: var(--wb-s-16);
}

@media (min-width: 400px) {
  .wb-container { padding-inline: var(--wb-s-24); }
}

@media (min-width: 768px) {
  .wb-container { padding-inline: var(--wb-s-32); }
}

.wb-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-s-8);
  font-family: var(--wb-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wb-green-bright);
}

.wb-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb-green-bright);
}

section[data-theme="dark"] {
  background: var(--wb-primary-dark);
  color: var(--wb-text-on-dark);
}
section[data-theme="dark"] h1,
section[data-theme="dark"] h2,
section[data-theme="dark"] h3 { color: var(--wb-white); }
section[data-theme="dark"] p { color: var(--wb-text-on-dark-muted); }

section[data-theme="soft"] { background: var(--wb-green-soft); }
section[data-theme="light"] { background: var(--wb-off-white); }
