@import url("type.css");

/* Shared nav, footer, and placeholder page layout — EHTS Predict */
:root {
  --navy:      #171632;
  --navy-mid:  #252344;
  --navy-deep: #06060D;
  --teal:      #6254BF;
  --teal-l:    #7B6EC9;
  --gold:      #6254BF;
  --gold-l:    #7B6EC9;
  --white:     #FFFFFF;
  --off:       #F7F6FC;
  --lb:        #E4E1F5;
  --gray:      #5A586E;
  --gray-l:    #828098;
  --dark:      #171632;
  --display:   'Red Hat Display', system-ui, -apple-system, sans-serif;
  --body:      'Red Hat Display', system-ui, -apple-system, sans-serif;
  --max:       1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--white); color: var(--dark); line-height: 1.65; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 6, 13, .96); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(98, 84, 191, .18);
  height: 68px; padding: 0 6%;
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-brand:focus-visible,
.footer-brand-link:focus-visible {
  outline: 2px solid var(--teal-l);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-logo { height: 40px; width: auto; max-width: 160px; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin-left: auto; flex-wrap: nowrap; }
.nav-links a { font-size: .83rem; font-weight: 500; color: rgba(255, 255, 255, .72); transition: color .2s; letter-spacing: .02em; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--gold); color: var(--white);
  padding: .48rem 1.2rem; border-radius: 100px;
  font-size: .83rem; font-weight: 700; letter-spacing: .03em;
  transition: background .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold-l); }
.nav-cta-item { display: none; }
.nav-toggle { display: none; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--navy-deep); padding: 3rem 6%;
  border-top: 1px solid rgba(98, 84, 191, .15);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand-link { display: flex; align-items: center; flex-shrink: 0; }
.footer-logo { height: 36px; width: auto; max-width: 140px; }
.footer-tagline { font-size: .75rem; color: rgba(255, 255, 255, .55); margin: 0; max-width: 18rem; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: .78rem; color: rgba(255, 255, 255, .55); transition: color .2s; }
.footer-links a:hover { color: rgba(255, 255, 255, .7); }
.footer-copy { font-size: .72rem; color: rgba(255, 255, 255, .55); width: 100%; }

/* ── Placeholder page layout ─────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  padding: .5rem 1rem; background: var(--gold); color: var(--white);
  font-weight: 700; z-index: 200; border-radius: 6px;
}
.page-shell {
  max-width: var(--max); margin: 0 auto;
  padding: 120px 6% 80px; min-height: 60vh;
}
.page-eyebrow {
  display: inline-block; font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--teal);
  margin-bottom: var(--space-eyebrow);
}
.page-shell h1 {
  font-family: var(--display); font-size: var(--fs-display);
  font-weight: 700; line-height: var(--lh-display); letter-spacing: var(--ls-display);
  color: var(--navy); margin-bottom: var(--space-title);
}
.page-shell p { font-size: var(--fs-lead); color: var(--gray); max-width: var(--measure-body); line-height: var(--lh-lead); }

/* ── Shared section copy / text+widget layout ─────────── */
.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}
.section-copy {
  width: 100%;
  max-width: var(--measure-copy);
  min-width: 0;
}
.section-copy h2,
.section-copy .lead,
.section-copy .solucao-note {
  max-width: none;
}
.section-widget {
  width: 100%;
  min-width: 0;
}
@media (max-width: 834px) {
  .section-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .section-layout > .section-copy,
  .section-layout > .section-widget {
    max-width: none;
  }
}

/* ── Nav responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .78rem; }
  nav { gap: 1rem; }
  .nav-cta { font-size: .78rem; padding: .45rem 1rem; }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: none; border: none; font-size: 1.3rem;
    cursor: pointer; padding: .4rem;
    border-radius: 4px; transition: background .2s; flex-shrink: 0;
  }
  .nav-toggle:hover { background: rgba(255, 255, 255, .1); }
  nav > .nav-cta { margin-left: auto; }
  nav .nav-links { display: none; }
  nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-deep); padding: 1.25rem 6% 1.5rem;
    gap: .875rem; border-bottom: 1px solid rgba(98, 84, 191, .2);
    z-index: 99; margin-left: 0;
  }
  nav.open .nav-links a { font-size: .95rem; color: rgba(255, 255, 255, .75); }
  nav.open .nav-cta-item { display: block; margin-top: .5rem; }
  nav.open .nav-cta-item .nav-cta {
    display: inline-flex; width: 100%; justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-logo { height: 32px; max-width: 128px; }
  nav { backdrop-filter: none; background: rgba(6, 6, 13, .99); }
  nav > .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav-cta-item { display: none; }
  nav.open .nav-cta-item { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: .75rem; }
}

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