/* ============================================================
   Weventis Base Styles
   Reset, document defaults, typography, layout utilities.
   Depends on: tokens.css, fonts.css
   ============================================================ */

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--banner-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}


/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text);
  letter-spacing: var(--ls-display);
}

p {
  line-height: var(--lh-normal);
}

strong, b { font-weight: var(--fw-semibold); }


/* ===== DISPLAY HEADINGS (Boldonse, gradient) ===== */
/* Boldonse has very tall ascenders/descenders — needs lots of line-height */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-wrap: balance;
}

.display-1 { font-size: var(--fs-display-1); }
.display-2 { font-size: var(--fs-display-2); }
.display-3 { font-size: var(--fs-display-3); }
.display-4 { font-size: var(--fs-display-4); }


/* ===== TEXT UTILITIES ===== */
.text-muted     { color: var(--color-text-muted); }
.text-subtle    { color: var(--color-text-subtle); }
.text-on-primary{ color: var(--color-text-on-primary); }
.text-center    { text-align: center; }
.text-balance   { text-wrap: balance; }


/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--space-12);
}

.section-sm { padding-block: var(--space-8); }
.section-lg { padding-block: var(--space-16); }

.section-header {
  margin-bottom: var(--space-10);
  max-width: 760px;
}

.section-header__title {
  margin-bottom: var(--space-3);
}

.section-header__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--color-text);
  line-height: var(--lh-snug);
}


/* ===== STRIPED PAGE BACKGROUND (diagonal pattern from Figma) ===== */
.bg-stripes {
  position: relative;
  isolation: isolate;
}

.bg-stripes::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -22deg,
    transparent 0,
    transparent 220px,
    rgba(0, 0, 0, 0.025) 220px,
    rgba(0, 0, 0, 0.025) 380px
  );
}


/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ===== SELECTION ===== */
::selection {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}


/* ===== ACCESSIBILITY HELPER ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
