/* ─── Smooth scroll ─── */
html {
  scroll-behavior: smooth;
  /* #navbar es position:fixed y mide 80px. Sin esto, al llegar por un ancla
     (los 9 enlaces de servicios del pie) la tarjeta queda con su cabecera
     debajo de la barra: medido, 91% del icono tapado. */
  scroll-padding-top: 96px;
}

/* ─── Skip to content link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--accent-primary);
  color: #000;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ─── Focus visible — all interactive elements ─── */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Global Body ─── */
body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ─── Headings ─── */
h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem);   font-weight: 800; }
h2 { font-size: clamp(2rem,   4vw, 3.5rem);  font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem);  font-weight: 600; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h5 { font-size: clamp(1rem,   1.4vw, 1.15rem); }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── Technical / Numeric data ─── */
.mono, .data, .stat-number {
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Selection ─── */
::selection {
  background-color: var(--accent-primary);
  color: #000;
}

/* ─── Utility text colors ─── */
.text-accent   { color: var(--accent-primary); }
.text-muted    { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb  { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }
