/* ==========================================================
   Hi BodyMate — Base & Typography
   ========================================================== */

/* ----------------------------------------------------------
   Google Fonts Import
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,900&family=Work+Sans:wght@300;400;500;600&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px); /* keeps anchors below fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-paragraph);
  font-size: var(--text-base);
  color: var(--color-paragraph);
  background-color: var(--color-bg1);
  line-height: 1.65;
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

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

a:hover {
  color: var(--color-h2);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ----------------------------------------------------------
   Headings
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-heading-h1);
  color: var(--color-h1);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-heading-h2);
  color: var(--color-h2);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-heading-h3);
  color: var(--color-h3);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--fw-heading-h4);
  color: var(--color-h4);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   Responsive Typography
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
}

/* ----------------------------------------------------------
   Utility: Visually Hidden (acessibilidade)
   ---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------------------------
   Focus visible (acessibilidade)
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-brand-teal);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   Skip to content (keyboard nav)
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 999;
  background: var(--color-brand-teal);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}
