/* =========================================================
   CAPITAL - EXCLUSIVE STONES
   Página de links / site em construção
   Paleta e tipografia do design system Capital 2026
   ========================================================= */

:root {
  /* Cores da marca */
  --brand-a: #421b0b;
  --brand-b: #7d4026;
  --brand-c: #b18a70;
  --brand-d: #edeade;
  --brand-g: #ffffff;
  --applied-brown: #663914;

  /* Tokens semânticos */
  --surface: var(--brand-d);
  --surface-alt: var(--brand-g);
  --ink: var(--brand-a);
  --ink-muted: #6e4f40;
  --accent: var(--brand-b);
  --rule: rgba(66, 27, 11, 0.16);
  --focus-ring: var(--brand-b);

  /* Tipografia web */
  --web-display: "Marcellus", Georgia, serif;
  --web-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Espaçamento (múltiplos de 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

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

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

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--web-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Marca ---------- */
.brand {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-2);
}

.brand__logo {
  width: 200px;
  height: auto;
  display: block;
}

/* ---------- Introdução ---------- */
.intro {
  text-align: center;
}

.eyebrow {
  font-family: var(--web-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.intro__title {
  font-family: var(--web-display);
  font-weight: 400;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.accent {
  color: var(--brand-c);
}

.intro__lead {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 34em;
  margin: 0 auto;
}

/* Linha de progresso: fio fino que se desenha em loop */
.progress {
  position: relative;
  width: 120px;
  height: 1px;
  margin: var(--space-6) auto 0;
  background: var(--rule);
  overflow: hidden;
}

.progress__bar {
  position: absolute;
  inset: 0;
  background: var(--brand-b);
  transform-origin: left center;
  animation: lapidar 3.2s ease-in-out infinite;
}

@keyframes lapidar {
  0%   { transform: scaleX(0); transform-origin: left center; }
  50%  { transform: scaleX(1); transform-origin: left center; }
  50.1%{ transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* ---------- Variações ---------- */
.page--construcao {
  justify-content: center;
  gap: var(--space-8);
}

.page--construcao .footer {
  margin-top: 0;
}

.brand__logo--small {
  width: 160px;
}

.intro--compact .intro__title--small {
  font-size: clamp(24px, 6.4vw, 30px);
  margin-bottom: 0;
}

.button {
  display: inline-block;
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-6);
  background: var(--brand-a);
  color: var(--brand-d);
  font-family: var(--web-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.25s ease;
}

.button:hover {
  background: var(--brand-b);
}

.button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- Blocos de links ---------- */
.block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.label {
  font-family: var(--web-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Tradução em inglês, pequena, ao lado do rótulo */
.label__en {
  font-family: var(--web-sans);
  font-weight: 300;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--brand-b);
  opacity: 0.8;
}

.block[hidden] {
  display: none;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.link__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--brand-b);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.link__icon svg {
  width: 21px;
  height: 21px;
}

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

.link__title {
  font-family: var(--web-display);
  font-size: 19px;
  line-height: 1.3;
}

.link__sub {
  font-size: 13px;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

.link__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--brand-c);
  transition: transform 0.25s ease, color 0.25s ease;
}

.link:hover {
  background: var(--brand-a);
  color: var(--brand-d);
}

.link:hover .link__sub {
  color: var(--brand-c);
}

.link:hover .link__icon {
  border-color: rgba(237, 234, 222, 0.24);
  color: var(--brand-d);
}

.link:hover .link__arrow {
  transform: translateX(4px);
  color: var(--brand-d);
}

.link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

/* Destaque para o link de localização */
.link--dark {
  background: var(--applied-brown);
  color: var(--brand-d);
}

.link--dark .link__sub {
  color: var(--brand-c);
}

.link--dark .link__icon {
  border-color: rgba(237, 234, 222, 0.24);
  color: var(--brand-d);
}

.link--dark .link__arrow {
  color: var(--brand-d);
}

.link--dark:hover {
  background: var(--brand-a);
}

/* ---------- Rodapé ---------- */
.footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.footer__phrase {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}

.footer__copy {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Entrada suave ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .progress__bar { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .link, .link__arrow { transition: none; }
}

@media (min-width: 768px) {
  .page {
    padding-top: 96px;
  }
  .brand__logo {
    width: 240px;
  }
}
