/* base.css — ValReparo · variables, reset, fonts, utilities */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* core color tokens — text-bg family */
  --bg: #F5F7FA;
  --text: #16202E;
  --border: #D5DEE8;
  --accent: #C8102E;
  /* technical (free naming) */
  --primary: #0B3D66;
  --primary-light: #14528A;
  --primary-deep: #062338;
  --surface-card: #FFFFFF;
  --text-soft: #44566B;
  --text-onDark: #DCE6F2;

  --ff-display: "Sora", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 6px 24px rgba(6, 35, 56, .08);
  --shadow-card: 0 2px 10px rgba(6, 35, 56, .06);
  --container: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.15;
  color: var(--primary-deep);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.3px; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; max-width: 72ch; }

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

table { border-collapse: collapse; width: 100%; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--primary-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-nav:focus { top: 12px; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 13px 26px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #a50d26; text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-light); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); text-decoration: none; }

.lead { font-size: 1.18rem; color: var(--text-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
