/* Primeira tela: um cartão por sistema. Tudo em token (tokens.css), claro e escuro. O desenho de cada cartão escala com a
   largura do cartão (unidade cqw), então fica proporcional do celular pequeno à tela grande. */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-home { background: color-mix(in srgb, var(--app) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }

.home {
  min-height: calc(100dvh - 65px); display: grid; align-items: center; padding: clamp(24px, 6vh, 72px) 0 clamp(40px, 8vh, 88px);
  background: radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 70%);
}
.hc-grid {
  list-style: none; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); width: 100%; max-width: 1080px;
  display: grid; gap: clamp(16px, 2.6vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.hc-grid > li { display: flex; }

.hc {
  container-type: inline-size; position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  border-radius: clamp(22px, 6cqw, 32px); background: var(--surface); border: 1px solid var(--line);
  color: var(--fg); text-decoration: none;
  animation: hc-entra 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s, box-shadow 0.4s;
}
.hc-grid > li:nth-child(2) .hc { animation-delay: 0.08s; }
.hc-grid > li:nth-child(3) .hc { animation-delay: 0.16s; }
@keyframes hc-entra { from { opacity: 0; transform: translateY(18px); } }
.hc:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 32px 64px -36px color-mix(in srgb, var(--brand) 55%, transparent); }
.hc:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* Área do desenho: font-size proporcional à largura do cartão; o desenho inteiro é em "em" */
.hc-art {
  position: relative; flex: 1; display: grid; place-items: center; min-height: 22em; padding: 2.4em 1em;
  font-size: clamp(9px, 3.5cqw, 16px); overflow: hidden;
}
.hc-art::before { content: ""; position: absolute; inset: -20% -10% auto; height: 80%; background: radial-gradient(closest-side, var(--glow, transparent), transparent); opacity: 0.55; pointer-events: none; }
.hc-barbearia .hc-art { background: var(--hb-art); --glow: color-mix(in srgb, var(--hb-s1) 38%, transparent); }
.hc-catalogo .hc-art { background: var(--hk-art); --glow: color-mix(in srgb, var(--hk-t1) 42%, transparent); }
.hc-mono { position: relative; font-family: "Cormorant Garamond", Georgia, serif; font-size: 7em; font-weight: 700; color: var(--brand); }

/* Barbearia: poste de barbeiro e agenda do dia */
.hc-bb { position: relative; display: flex; align-items: center; gap: 1.8em; }
.hc-pole {
  position: relative; width: 3.2em; height: 14.5em; border-radius: 1.6em; border: 0.14em solid var(--line-strong); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--hb-s1) 0 0.95em, var(--hb-s2) 0.95em 1.9em, var(--hb-s3) 1.9em 2.85em);
  background-size: 4em 4em; animation: hc-pole 3.2s linear infinite paused;
}
.hc-pole::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--fg-strong) 28%, transparent), transparent 40%, color-mix(in srgb, var(--app) 40%, transparent)); }
.hc-barbearia:hover .hc-pole, .hc-barbearia:focus-visible .hc-pole { animation-play-state: running; }
@keyframes hc-pole { to { background-position: 0 4em; } }
.hc-agenda { display: grid; gap: 0.8em; width: 13.6em; padding: 1.1em; border-radius: 1.4em; background: var(--hb-slot); border: 1px solid var(--line-strong); box-shadow: 0 1.4em 2.6em -1.4em color-mix(in srgb, var(--app) 80%, transparent); }
.hc-agenda-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 0.2em; font-size: 0.95em; color: var(--hb-time); }
.hc-agenda-top b { color: var(--fg-strong); font-size: 1.15em; }
.hc-agenda i { display: flex; align-items: center; gap: 0.7em; padding: 0.7em 0.8em; border-radius: 0.9em; background: color-mix(in srgb, var(--fg) 5%, transparent); font-style: normal; }
.hc-agenda i b { font: 700 0.9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--hb-time); }
.hc-av { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--hb-s1); flex: none; }
.hc-agenda i:nth-of-type(2) .hc-av { background: var(--hb-s3); }
.hc-agenda em { flex: 1; height: 0.55em; border-radius: 999px; background: color-mix(in srgb, var(--fg) 26%, transparent); }
.hc-agenda i:nth-of-type(2) em { flex: 0.6; }

/* Catálogo: celular com a vitrine de produtos e o botão de WhatsApp */
.hc-phone { position: relative; display: grid; gap: 0.9em; width: 13.2em; padding: 1em 1em 1.3em; border-radius: 2em; background: var(--surface); border: 0.16em solid var(--line-strong); box-shadow: 0 1.6em 3em -1.6em color-mix(in srgb, var(--app) 85%, transparent); }
.hc-phone-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0.2em; }
.hc-phone-bar b { width: 4.2em; height: 0.7em; border-radius: 999px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.hc-phone-bar u { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--hk-t3); }
.hc-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.hc-prods i { display: grid; gap: 0.4em; font-style: normal; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hc-prods s { display: block; height: 4.6em; border-radius: 0.9em; background-image: linear-gradient(160deg, color-mix(in srgb, var(--fg-strong) 24%, transparent), transparent 60%); }
.hc-prods u { display: block; height: 0.5em; width: 80%; border-radius: 999px; background: color-mix(in srgb, var(--fg) 26%, transparent); }
.hc-prods u + u { width: 45%; background: var(--hk-t3); }
.hc-prods i:nth-child(1) s { background-color: var(--hk-t1); }
.hc-prods i:nth-child(2) s { background-color: var(--hk-t2); }
.hc-prods i:nth-child(3) s { background-color: var(--hk-t4); }
.hc-prods i:nth-child(4) s { background-color: var(--hk-t5); }
.hc-catalogo:hover .hc-prods i:nth-child(odd), .hc-catalogo:focus-visible .hc-prods i:nth-child(odd) { transform: translateY(-0.4em); }
.hc-catalogo:hover .hc-prods i:nth-child(even), .hc-catalogo:focus-visible .hc-prods i:nth-child(even) { transform: translateY(0.4em); }
.hc-wa { position: absolute; right: -1.4em; bottom: -0.9em; padding: 0.7em 1.2em; border-radius: 999px; background: var(--ok-text); color: var(--app); font-size: 0.95em; font-weight: 800; box-shadow: 0 0.8em 1.6em -0.8em color-mix(in srgb, var(--app) 80%, transparent); }

/* Texto do cartão */
.hc-info { display: grid; gap: 0.5rem; justify-items: start; padding: clamp(20px, 6cqw, 30px); border-top: 1px solid var(--line); }
.hc-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 9cqw, 42px); line-height: 1.02; font-weight: 700; color: var(--fg-strong); }
.hc-tag { font-size: clamp(14px, 3.6cqw, 16px); line-height: 1.5; color: var(--muted); }
.hc-chip { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn-text); border: 1px solid var(--warn); }
.hc-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--hover); color: var(--fg-strong); font-size: 13px; font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s, gap 0.3s;
}
.hc:hover .hc-go, .hc:focus-visible .hc-go { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--on-brand); gap: 12px; }

@media (min-width: 721px) { .hc-tag { min-height: 3em; } } /* duas linhas reservadas: os títulos dos cartões lado a lado ficam alinhados */
@media (max-width: 480px) {
  .nav-home .brand span:last-child { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
  .hc-art { min-height: 19em; padding: 2em 0.8em; }
}
@media (prefers-reduced-motion: reduce) {
  .hc, .hc-go, .hc-prods i { transition: none; animation: none; }
  .hc-pole { animation: none; }
  .hc:hover { transform: none; }
}
