/* ============================================================
   REMZETTA OÜ — Base Styles
   CSS reset, global typography, and elemental defaults.
   ============================================================ */

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

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-4xl);      /* 72px */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-3xl);      /* 60px */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-heading);
}

h3 {
  font-size: 3.25rem;                   /* 52px */
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h4 {
  font-size: var(--font-size-xl);       /* 32px */
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h5 {
  font-size: var(--font-size-xl);       /* 32px */
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h6 {
  font-size: 1.5rem;                    /* 24px */
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

@media (max-width: 767px) {
  h1 { font-size: var(--font-size-2xl); }   /* 40px */
  h2 { font-size: var(--font-size-xl); }    /* 32px */
  h3 { font-size: 1.75rem; }               /* 28px */
}

p {
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}

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

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* Utility classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-secondary);
}

strong {
  font-weight: var(--font-weight-bold);
}
