/* PCD Hub — Base & Reset */

/* Fontes auto-hospedadas — WOFF2 em /assets/fonts/ */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/comfortaa-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/comfortaa-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/comfortaa-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--pcd-navy);
  background-color: var(--pcd-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

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

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.25; }
h2 { font-size: clamp(1.375rem, 3.5vw, 2rem);  line-height: 1.3;  }
h3 { font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.4;  }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { max-width: var(--max-width-prose); }

strong { font-weight: 700; }

code, kbd {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--pcd-snow);
  padding: .1em .3em;
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: 3px solid var(--pcd-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--pcd-cream);
  color: var(--pcd-navy);
}

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

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section     { padding-block: var(--space-20); }
.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-32); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--pcd-cyan);
  margin-bottom: var(--space-4);
}

.eyebrow--light  { color: var(--color-teal-light); }
.eyebrow--orange { color: var(--pcd-orange); }

.text-muted  { color: var(--color-muted); }
.text-white  { color: var(--pcd-white); }
.text-teal   { color: var(--pcd-cyan); }
.text-navy   { color: var(--pcd-navy); }
.text-orange { color: var(--pcd-orange); }
.text-center { text-align: center; }
.text-sm     { font-size: var(--text-sm); }
.text-lg     { font-size: var(--text-lg); }

.lead {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  color: var(--color-muted-dark);
  max-width: 60ch;
}

.divider {
  height: 1px;
  background: var(--color-navy-alpha-08);
  border: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-6);
}

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.bg-white     { background-color: var(--pcd-white); }
.bg-off-white { background-color: var(--pcd-off-white); }
.bg-sand      { background-color: var(--pcd-off-white); }
.bg-snow      { background-color: var(--pcd-snow); }
.bg-navy      { background-color: var(--pcd-navy); }
.bg-lavender  { background-color: var(--pcd-lavender); }
.bg-gradient  { background: var(--gradient-signature); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.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-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--pcd-orange);
  color: var(--pcd-white);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: var(--z-modal);
  transition: top var(--transition-fast);
}

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