/* ==========================================================================
   Grupo WF · Apresentações
   Identidade oficial: azul #0B62FF · grafite #16222E · branco
   Estrutura: tokens → base → utilitários → componentes → movimento
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --wf-blue: #0b62ff;
  --wf-blue-hover: #0a55e0;
  --wf-graphite: #16222e;

  --bg: #ffffff;
  --surface-hover: #f6f8fb;
  --border: #e6e9ee;
  --border-strong: #cfd6df;
  --text: var(--wf-graphite);
  --text-muted: #5a6878;
  --text-subtle: #667384;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 200ms;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--wf-blue);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* ---------- Utilitários ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Controles que dependem de JS só aparecem quando ele está ativo */
.requires-js {
  display: none !important;
}

.js .requires-js {
  display: inline-flex !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--wf-blue);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--duration) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 2.75rem;
}

.icon-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.icon-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ---------- Marca ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 3rem;
  text-align: center;
}

.hero__title {
  line-height: 0;
}

.hero__logo {
  width: 9.5rem;
  height: auto;
  fill: var(--wf-blue);
}

.hero__bio {
  max-width: 28ch;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-wrap: balance;
}

/* ---------- Seções ---------- */
.section + .section {
  margin-top: 2.5rem;
}

.section__label {
  margin-bottom: 0.75rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Links das apresentações ---------- */
.link-list {
  display: grid;
  gap: 0.625rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.125rem 0.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.link__thumb {
  width: 5.5rem;
  height: auto;
  aspect-ratio: 400 / 283;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  box-shadow: 0 0 0 1px var(--border);
}

.link__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.link__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.link__subtitle {
  margin-top: 0.125rem;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.link__arrow {
  color: var(--text-subtle);
  transition:
    color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.link:active {
  transform: scale(0.99);
}

/* ---------- Contato ---------- */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--wf-blue);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  transition:
    background-color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.button:active {
  transform: scale(0.98);
}

.contact-list {
  margin-top: 1rem;
}

.contact-list__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-list__row:last-child {
  border-bottom: 0;
}

.contact-list dt {
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
}

.contact-list dd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  text-align: right;
}

.contact-list dd a {
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.contact-list dd a + a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- Rodapé ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.footer__symbol {
  width: 1.75rem;
  height: auto;
  fill: var(--border-strong);
}

.footer__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem 0.75rem;
}

.footer__divider {
  width: 1px;
  height: 0.75rem;
  background: var(--border-strong);
}

/* Crédito da agência: palavra no tom do texto, camaleão no roxo oficial da mALLin */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  white-space: nowrap;
}

.credit__link {
  display: inline-flex;
  border-radius: 0.25rem;
}

.credit__logo {
  width: auto;
  height: 0.875rem;
  color: var(--text-subtle);
  transition: color var(--duration) var(--ease-out);
}

.credit__link:hover .credit__logo,
.credit__link:focus-visible .credit__logo {
  color: var(--text);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-pill);
  background: var(--wf-graphite);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Hover apenas em dispositivos com mouse (evita "hover preso" no toque) ---------- */
@media (hover: hover) and (pointer: fine) {
  .link:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
  }

  .link:hover .link__arrow {
    color: var(--wf-blue);
    transform: translate(2px, -2px);
  }

  .contact-list dd a:hover {
    color: var(--wf-blue);
  }

  .button:hover {
    background: var(--wf-blue-hover);
  }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 40rem) {
  .page {
    padding-top: 2rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__logo {
    width: 11rem;
  }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal 600ms var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(0.5rem);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ---------- Alto contraste do sistema ---------- */
@media (forced-colors: active) {
  .link,
  .button {
    border: 1px solid CanvasText;
  }

  .hero__logo,
  .footer__symbol {
    fill: CanvasText;
  }
}
