/* ============================================================================
   VIANNA'S — assets/css/viannas.css
   ----------------------------------------------------------------------------
   CSS custom da landing page (Bootstrap 5.3.3: apenas reboot+grid+utilities em
   vendor; TODOS os componentes — botões, navbar, collapse, form — são escritos
   aqui à mão, mantendo as convenções de classes Bootstrap para futura conversão
   em theme e107.

   Conceito visual: "sistema modular 2×2" (logótipo = grelha 2×2 de blocos).
   Estilo: blueprint arquitectónico + serviço caloroso. Linhas finas, cantos
   quase retos (0–6px), espaçamento generoso. Sem sombras iguais.

   Paleta exacta (extraída do logótipo):
     navy  #102450 · slate #3B507D · taupe #BAB6A6 · creme #E8E3CE · mist #F0EFEB
     Branco puro permitido; preto apenas em opacidades baixas (sombras).

   Tipografia: 'League Spartan' (display) + 'Sora' (corpo).
   >>> e107: quando auto-alojar fontes, pode substituir 'Sora' por
       Glacial Indifference (gratuita, OFL — fora do Google Fonts).
============================================================================ */

/* ---------------------------------------------------------------------------
   1. Variáveis & base
--------------------------------------------------------------------------- */
:root {
  /* paleta */
  --v-navy:   #102450;
  --v-slate:  #3B507D;
  --v-taupe:  #BAB6A6;
  --v-creme:  #E8E3CE;
  --v-mist:   #F0EFEB;
  --v-white:  #fff;

  /* tipografia */
  --font-disp: "League Spartan", "Arial Narrow", Arial, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 3px;
  --nav-h: 76px;

  /* hairlines */
  --hair: rgba(16, 36, 80, 0.16);
  --hair-strong: rgba(16, 36, 80, 0.32);
  --hair-dark: rgba(232, 227, 206, 0.2);

  /* escalas display */
  --fs-h1: clamp(2.3rem, 5.6vw, 4.35rem);
  --fs-h2: clamp(1.85rem, 4vw, 3.05rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;              /* ancoras suaves (desligado em reduced-motion) */
  scroll-padding-top: calc(var(--nav-h) + 18px); /* ancoras sob navbar sticky */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--v-navy);
  background-color: var(--v-mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

img, svg { max-width: 100%; }
ul, ol { padding-left: 0; margin: 0; }
a { color: inherit; }

::selection { background: var(--v-navy); color: var(--v-creme); }

/* foco visível (AA) */
:focus-visible {
  outline: 2px solid var(--v-navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible,
.site-header.nav-open :focus-visible,
.site-header:not(.scrolled) :focus-visible { outline-color: var(--v-creme); }

/* ---------------------------------------------------------------
   acessibilidade — .visually-hidden (sr-only)
   (já existe em bootstrap-utilities; redeclarado por segurança)
--------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed; top: 0; left: 1rem;
  z-index: 2000;
  transform: translateY(-120%);
  background: var(--v-navy); color: var(--v-creme);
  font-family: var(--font-disp); font-weight: 700;
  letter-spacing: 0.06em; text-decoration: none;
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r) var(--r);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------------------------------------------------------------------------
   2. Componentes Bootstrap reescritos à mão
--------------------------------------------------------------------------- */

/* --- botões .btn + variantes -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding: 1.02rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn .arr { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(5px); }
.btn:disabled, .btn.disabled { opacity: 0.55; pointer-events: none; }

/* primário (fundo creme) */
.btn-creme {
  background: var(--v-creme);
  color: var(--v-navy);
  border-color: rgba(16, 36, 80, 0.28);
}
.btn-creme:hover, .btn-creme:focus-visible { background: var(--v-white); color: var(--v-navy); }

/* navy sólido */
.btn-navy {
  background: var(--v-navy);
  color: var(--v-creme);
  border-color: var(--v-navy);
}
.btn-navy:hover, .btn-navy:focus-visible { background: var(--v-slate); border-color: var(--v-slate); color: var(--v-creme); }

/* ghost sobre navy (hero / faixas escuras) */
.btn-ghost {
  background: transparent;
  color: var(--v-creme);
  border-color: rgba(232, 227, 206, 0.55);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--v-creme); color: var(--v-navy); border-color: var(--v-creme); }
.btn-ghost-lg {
  background: transparent;
  color: var(--v-creme);
  border-color: rgba(232, 227, 206, 0.55);
  padding: 1.02rem 1.9rem;
}
.btn-ghost-lg:hover, .btn-ghost-lg:focus-visible { background: var(--v-creme); color: var(--v-navy); border-color: var(--v-creme); }

/* compacto (navbar) */
.btn-compact { padding: 0.62rem 1.05rem; font-size: 0.82rem; }

.btn-ic svg { width: 1.05em; height: 1.05em; }

/* --- collapse (mínimo; usado pelo navbar Bootstrap) --------------------- */
.collapse:not(.show) { display: none; }
.collapsing {
  position: relative;
  overflow: hidden;
  height: 0;
  transition: height 0.32s var(--ease);
}

/* ---------------------------------------------------------------------------
   2b. BASE .navbar estilo Bootstrap 5
   (o bootstrap.min.css completo NÃO é carregado — só reboot+grid+utilities —
   por isso estas regras base do componente são reescritas aqui)
--------------------------------------------------------------------------- */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}
.navbar-spacer { display: none; }

/* ---------------------------------------------------------------------------
   3. NAVBAR (sticky; .scrolled ao rolar; fundo sólido ao abrir em mobile)
--------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .navbar { min-height: var(--nav-h); padding: 0.55rem 0; }

/* estado ao rolar: off-white translúcido + blur */
.site-header.scrolled {
  background: rgba(240, 239, 235, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hair);
  box-shadow: 0 1px 0 rgba(16, 36, 80, 0.04);
}

/* menu aberto em mobile: "folha" navy (consistente com o hero) */
.site-header.nav-open {
  background: var(--v-navy);
  border-bottom-color: rgba(232, 227, 206, 0.22);
}

/* cores por estado */
.site-header { color: var(--v-creme); }
.site-header .brand-word,
.site-header .nav-link { color: var(--v-creme); }
.site-header.scrolled { color: var(--v-navy); }
.site-header.scrolled .brand-word,
.site-header.scrolled .nav-link { color: var(--v-navy); }
.site-header.nav-open { color: var(--v-creme); }
.site-header.nav-open .brand-word,
.site-header.nav-open .nav-link { color: var(--v-creme); }
.site-header.nav-open .nav-link.is-active::after,
.site-header:not(.scrolled):not(.nav-open) .nav-link.is-active::after,
.site-header.scrolled .nav-link.is-active::after { background: currentColor; }

/* brand: grelha 2×2 + wordmark */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-word {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.24em;
}
/* quadrados do logótipo (cores da paleta) */
.sq { width: 9px; height: 9px; display: block; flex: none; }
.sq-navy { background: var(--v-navy); }
.sq-slate { background: var(--v-slate); }
.sq-taupe { background: var(--v-taupe); }
.sq-creme { background: var(--v-creme); }
.sq-white { background: var(--v-white); }

.logo-sq {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  gap: 2px;
  width: 20px; height: 20px;
  flex: none;
}

/* linhas claras interiores quando a grelha vive sobre navy */
.hero .mini-sq .sq,
.cta-band .logo-sq .sq,
.site-footer .logo-sq .sq,
.site-header:not(.scrolled) .logo-sq .sq,
.site-header.nav-open .logo-sq .sq {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

/* links */
.nav-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 0.1rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-cta-item { margin-left: 1.8rem; }

/* hambúrguer */
.navbar-toggler {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  padding: 0.5rem 0.55rem;
  border-radius: var(--r);
  cursor: pointer;
  color: inherit;
  line-height: 0;
}
.toggler-icon { display: inline-flex; flex-direction: column; gap: 4px; }
.toggler-icon i {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.nav-open .toggler-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .toggler-icon i:nth-child(2) { opacity: 0; }
.site-header.nav-open .toggler-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* desktop ≥ lg: navbar sempre expandida */
@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-nav { display: flex; flex-direction: row; align-items: center; }
  .navbar-expand-lg .nav-item + .nav-item { margin-left: 1.7rem; }
}

/* mobile < lg */
@media (max-width: 991.98px) {
  /* hambúrguer à direita + logótipo centrado (espaciador simétrico) */
  .navbar-spacer { display: inline-block; width: 46px; flex: none; }
  .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; width: 46px; }
  .navbar { min-height: 66px; }
  .navbar-collapse { margin-top: 0.6rem; }
  .site-header .navbar-collapse {
    padding-bottom: 1rem;
  }
  .site-header.nav-open .navbar-collapse { border-top: 1px solid rgba(232, 227, 206, 0.2); }
  .site-header:not(.nav-open):not(.scrolled) .navbar-collapse { border-top: 1px solid rgba(232, 227, 206, 0.2); }
  .site-header.scrolled .navbar-collapse { border-top: 1px solid var(--hair); }
  .navbar-nav { flex-direction: column; }
  .nav-item { padding: 0.05rem 0; }
  .nav-link { font-size: 1.02rem; padding: 0.55rem 0.1rem; }
  .nav-cta-item { margin-left: 0; margin-top: 0.9rem; }
  .nav-cta-item .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   4. Eyebrows, títulos, texto-intro (padrões de secção)
--------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.eyebrow-light { color: var(--v-slate); }
.eyebrow-dark { color: var(--v-taupe); }
.eyebrow-sq {
  position: relative;
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid currentColor;
  flex: none;
}
.eyebrow-sq::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4px; height: 4px;
  background: currentColor;
}

.mini-sq { display: inline-flex; gap: 2px; flex: none; align-items: center; }
.mini-sq .sq { width: 8px; height: 8px; }

.section { padding: clamp(4.4rem, 9vw, 7.6rem) 0; }
.section-title-row { display: grid; gap: 1.6rem; }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--v-navy);
  margin: 0;
}
.section-title em {
  font-style: normal;
  color: var(--v-slate);
  position: relative;
  white-space: nowrap;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: 0.04em; right: 0.04em; bottom: 0.06em;
  height: 0.13em;
  background: rgba(186, 182, 166, 0.7);
  z-index: -1;
}
.section-intro {
  color: var(--v-slate);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0;
}
.section-head { margin-bottom: clamp(2.4rem, 6vw, 4rem); }

@media (min-width: 992px) {
  .section-title-row { grid-template-columns: 1.25fr 0.75fr; align-items: end; }
}

/* ---------------------------------------------------------------------------
   5. HERO
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--v-navy);
  color: var(--v-creme);
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3.4rem, 7vw, 6.2rem)) 0 clamp(3.6rem, 8vw, 6rem);
}
/* grelha blueprint de fundo */
.hero-bp {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 227, 206, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 206, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
/* moldura "blueprint" com cantos (abaixo da navbar fixa) */
.hero-frame {
  position: absolute;
  left: 14px; right: 14px;
  top: calc(var(--nav-h) + 8px);
  bottom: 14px;
  border: 1px solid rgba(232, 227, 206, 0.16);
  border-radius: 4px;
  pointer-events: none;
}
.hero-frame::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; width: 9px; height: 9px;
  border-left: 2px solid rgba(232, 227, 206, 0.7);
  border-top: 2px solid rgba(232, 227, 206, 0.7);
}
.hero-frame::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px; width: 9px; height: 9px;
  border-right: 2px solid rgba(232, 227, 206, 0.7);
  border-bottom: 2px solid rgba(232, 227, 206, 0.7);
}

.hero-row { position: relative; }

.hero-eyebrow {
  color: var(--v-taupe);
  letter-spacing: 0.34em;
  margin-bottom: clamp(1.6rem, 3.4vw, 2.6rem);
}

.hero-title {
  font-weight: 700;
  font-size: var(--fs-h1);
  color: var(--v-creme);
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.12;
}
.hero-title .hl-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* folga p/ descendentes durante a revelação */
}
.hero-title .hl-inner {
  display: inline-block;
  padding-right: 0.12em;
}
.hero-title .hl-mark {
  background: var(--v-creme);
  color: var(--v-navy);
  padding: 0.04em 0.24em 0.05em 0.18em;
  margin-left: -0.06em;
}

.hero-lede {
  color: var(--v-taupe);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.75;
  max-width: 56ch;
  margin: 0 0 clamp(1.8rem, 3.4vw, 2.6rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: clamp(1.8rem, 3.6vw, 2.8rem);
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border: 1px solid rgba(232, 227, 206, 0.32);
  background: rgba(232, 227, 206, 0.05);
  border-radius: 2px;
  padding: 0.34em 0.95em;
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v-creme);
}
.hero-chips li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--v-taupe);
  flex: none;
}

.hero-visual-col { position: relative; }
.hero-svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero-svg-cap {
  text-align: center;
  margin: 0.4rem 0 0;
  font-family: var(--font-disp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--v-taupe);
}

/* tipografia dentro dos SVGs */
.svg-label { font-family: var(--font-disp); font-weight: 700; font-size: 10.5px; letter-spacing: 1.6px; }
.svg-label-chip { font-size: 9.5px; letter-spacing: 1.8px; }
.svg-label-base { font-size: 9.5px; letter-spacing: 2.4px; }
.svg-label-dim { font-size: 8px; letter-spacing: 2.6px; }
.svg-caption { font-family: var(--font-body); font-weight: 400; font-size: 8.5px; letter-spacing: 1.4px; }
.svg-caption-dark { font-weight: 500; }
.svg-idx { font-family: var(--font-disp); font-weight: 700; font-size: 10px; letter-spacing: 1.2px; }

/* indicador de scroll */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  width: 18px; height: 52px;
  pointer-events: none;
}
.scroll-cue-line {
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(232, 227, 206, 0.6));
}
.scroll-cue-dot {
  position: absolute;
  left: 50%; top: 0;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--v-creme);
  animation: cueDrop 2.1s var(--ease) infinite;
}

/* ---------------------------------------------------------------------------
   6. MARQUEE (divisor em movimento)
--------------------------------------------------------------------------- */
.marquee {
  background: var(--v-creme);
  border-top: 1px solid rgba(16, 36, 80, 0.22);
  border-bottom: 1px solid rgba(16, 36, 80, 0.22);
  overflow: hidden;
  padding: 0.95rem 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 44px;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--v-creme), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--v-creme), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-set { display: flex; align-items: center; flex: none; }
.mq-item {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--v-navy);
  margin-right: 2.2rem;
}
.mq-sep {
  color: var(--v-slate);
  font-size: 1em;
  margin-right: 2.2rem;
}

/* ---------------------------------------------------------------------------
   7. "O SISTEMA" — grelha 2×2 de navegação (logótipo ampliado)
--------------------------------------------------------------------------- */
.servicos-section { background: var(--v-mist); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

/* azulejo base: sem sombras iguais — bloco de cor deslocado (offset) em vez
   de sombra difusa; no hover o azulejo eleva e o bloco afasta-se */
.tile {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 252px;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  text-decoration: none;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 10px 10px 0 0 var(--tile-offset, var(--v-slate));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.tile:hover, .tile:focus-visible { box-shadow: 15px 15px 0 0 var(--tile-offset, var(--v-slate)); } /* solo sombra */
/* moldura interior fina (blueprint) */
.tile::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--tile-frame, rgba(255, 255, 255, 0.28));
  border-radius: 2px;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.tile-navy:focus-visible, .tile-slate:focus-visible { outline-color: var(--v-creme); }
.tile-taupe:focus-visible, .tile-creme:focus-visible { outline-color: var(--v-navy); }

/* 4 blocos = as 4 cores do logótipo */
.tile-navy   { background: var(--v-navy);  color: var(--v-creme); --tile-offset: var(--v-slate); --tile-frame: rgba(232, 227, 206, 0.34); }
.tile-slate  { background: var(--v-slate); color: var(--v-mist);  --tile-offset: var(--v-navy);  --tile-frame: rgba(240, 239, 235, 0.34); }
.tile-taupe  { background: var(--v-taupe); color: var(--v-navy);  --tile-offset: var(--v-navy);  --tile-frame: rgba(16, 36, 80, 0.28); }
.tile-creme  { background: var(--v-creme); color: var(--v-navy);  --tile-offset: var(--v-navy);  --tile-frame: rgba(16, 36, 80, 0.28);
               border: 1px solid rgba(16, 36, 80, 0.85); }

.tile-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}
.tile-num {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
.tile-ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid currentColor;
  opacity: 0.85;
  border-radius: 2px;
}
.tile-ic svg { width: 26px; height: 26px; }

.tile-name {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
}
.tile-line {
  display: block;
  width: 3rem; height: 2px;
  background: currentColor;
  opacity: 0.4;
  margin-bottom: 0.95rem;
}
.tile-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 34ch;
  opacity: 0.92;
  margin-bottom: 1.4rem;
}
.tile-go {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: auto;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tile-go .arr { display: inline-block; transition: transform 0.35s var(--ease); }
/* VIANNAS: la flecha no se mueve en hover */

/* ---------------------------------------------------------------------------
   8. Secções de serviço (layout editorial assimétrico alternado)
--------------------------------------------------------------------------- */
.svc {
  position: relative;
  overflow: hidden;
  background: var(--v-white);
}
.svc-elet { --accent: var(--v-navy); }
.svc-man  { --accent: var(--v-slate); background: var(--v-mist); }
.svc-jard { --accent: var(--v-taupe); }
.svc-limp { --accent: var(--v-navy);  background: var(--v-mist); }

/* número de índice gigante (outline decorativo) */
.svc-idx {
  position: absolute;
  top: clamp(2.4rem, 6vw, 4.6rem);
  left: max(0.6rem, calc((100% - 72rem) / 2));
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(6rem, 24vw, 16rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 36, 80, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.svc-row { position: relative; z-index: 1; }
.svc-meta {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--v-slate);
  margin-bottom: clamp(1.6rem, 3.4vw, 2.6rem);
}
.svc-meta-dot {
  width: 12px; height: 12px;
  flex: none;
  background: var(--accent, var(--v-navy));
  border: 1px solid rgba(16, 36, 80, 0.4);
  outline: 1px solid rgba(16, 36, 80, 0.12);
  outline-offset: 2px;
}

.svc-copy { z-index: 1; }
.svc-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--v-navy);
  margin: 0 0 1.2rem;
}
.svc-text {
  color: var(--v-slate);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 0 1.5rem;
}
.svc-points { list-style: none; margin: 0 0 2rem; }
.svc-points li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 0.72rem 0;
  border-bottom: 1px dashed rgba(16, 36, 80, 0.16);
  font-weight: 500;
  font-size: 1rem;
  color: var(--v-navy);
}
.svc-points li:last-child { border-bottom: 0; }
/* marcador quadrado modular: quadrado exterior + quadrado interior da cor */
.svc-points li::before {
  content: "";
  flex: none;
  width: 13px; height: 13px;
  margin-top: 0.32em;
  border: 1.5px solid rgba(16, 36, 80, 0.45);
  background-image: linear-gradient(var(--accent, var(--v-navy)), var(--accent, var(--v-navy)));
  background-size: 5px 5px;
  background-position: center;
  background-repeat: no-repeat;
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.svc-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--v-slate);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 80, 125, 0.35);
  padding-bottom: 0.15rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc-tel:hover { color: var(--v-navy); border-color: var(--v-navy); }
.svc-tel-ic {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(59, 80, 125, 0.4);
  border-radius: 2px;
}
.svc-tel-ic svg { width: 16px; height: 16px; }

.svc-visual { z-index: 1; }
.svc-art { display: block; width: 100%; height: auto; }

/* telas pequenas: o número gigante sai de cima para trás do texto */
@media (max-width: 575.98px) {
  .svc-idx { -webkit-text-stroke: 1px rgba(16, 36, 80, 0.1); }
  .svc-visual { margin-top: 0.5rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .svc-visual { max-width: 620px; margin-inline: auto; }
}

/* ---------------------------------------------------------------------------
   9. Valores ("Porquê a Vianna's")
--------------------------------------------------------------------------- */
.values { background: var(--v-white); border-top: 1px solid var(--hair); }
.values-grid { margin-top: 0.4rem; }

.value-pillar {
  height: 100%;
  border-top: 1px solid var(--hair-strong);
  padding: 1.7rem 0.4rem 0.5rem;
}
.value-num {
  display: inline-grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  background: var(--v-navy);
  color: var(--v-creme);
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  border-radius: 2px;
}
.value-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--v-navy);
  margin: 0 0 0.7rem;
}
.value-line {
  display: block;
  width: 2.6rem; height: 3px;
  background: var(--v-taupe);
  margin-bottom: 1rem;
}
.value-text {
  color: var(--v-slate);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 40ch;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   10. CTA de urgência (faixa navy)
--------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--v-navy);
  color: var(--v-creme);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.cta-bp {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 227, 206, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 206, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.cta-inner {
  max-width: 860px;
  margin-inline: auto;
}
.cta-eyebrow { margin-bottom: 1.6rem; justify-content: center; }
.cta-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--v-creme);
  margin: 0 auto 1.2rem;
  max-width: 22ch;
}
.cta-text {
  color: var(--v-taupe);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 auto 2.2rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-corners {
  position: absolute;
  right: clamp(1rem, 3vw, 2.4rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  display: flex;
  gap: 6px;
  opacity: 0.7;
  transform: rotate(6deg);
  pointer-events: none;
}
.cta-corners .logo-sq { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------------
   11. Fecho + contacto
--------------------------------------------------------------------------- */
.contact { background: var(--v-mist); }
.contact-title { margin: 0 0 clamp(1.6rem, 3vw, 2.4rem); }

.contact-note {
  position: relative;
  background: var(--v-creme);
  border: 1px solid var(--v-navy);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3.4vw, 2.4rem) clamp(1.6rem, 3.4vw, 2.6rem);
  margin: 0 0 2.2rem;
  max-width: 640px;
  /* bloco deslocado (motivo 2×2) atrás da nota — cor sólida sem blur */
  box-shadow: 9px 9px 0 0 var(--v-navy);
}
.contact-note-mark { display: inline-flex; gap: 2px; margin-bottom: 1rem; }
.contact-note-mark .sq { width: 10px; height: 10px; }
.contact-note-text {
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--v-navy);
  margin: 0;
}

.contact-details { margin: 0; max-width: 640px; }
.cd-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 0.7fr) 1.6fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hair);
}
.cd-row:last-child { border-bottom: 1px solid var(--hair); }
.cd-row dt {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--v-slate);
}
.cd-row dd {
  margin: 0;
  font-weight: 500;
  color: var(--v-navy);
}
.cd-row dd a { text-decoration: none; border-bottom: 1px solid rgba(16, 36, 80, 0.35); transition: border-color .3s var(--ease); }
.cd-row dd a:hover { border-bottom-color: var(--v-navy); }
.cd-todo { font-size: 0.85em; color: var(--v-slate); font-style: italic; opacity: 0.85; }

/* --- painel do formulário (demo) --- */
.form-panel {
  position: relative;
  background: var(--v-creme);
  border: 1px solid var(--v-navy);
  border-radius: var(--r);
  padding: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 620px;
  margin-left: auto;
}
.form-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v-navy);
  margin: 0;
}
.form-mark { display: inline-flex; gap: 2px; flex: none; }
.form-mark .sq { width: 10px; height: 10px; }

.form-label {
  display: block;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v-navy);
  margin-bottom: 0.5rem;
}
.form-control, .form-select {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--v-navy);
  background-color: var(--v-white);
  border: 1px solid rgba(16, 36, 80, 0.4);
  border-radius: 2px;
  padding: 0.72rem 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-control::placeholder { color: rgba(59, 80, 125, 0.75); }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23102450' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.6rem;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--v-navy);
  box-shadow: 0 0 0 3px rgba(16, 36, 80, 0.16);
}
.form-actions { margin-top: 1.4rem; }
.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--v-slate);
  margin: 0.8rem 0 0;
}

/* estado de sucesso (sem backend — demo JS) */
.form-success {
  display: none;
  align-items: center;
  gap: 1rem;
  background: var(--v-navy);
  color: var(--v-creme);
  border-radius: var(--r);
  padding: 1.4rem 1.6rem;
}
.form-success-ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  background: var(--v-creme);
  color: var(--v-navy);
  border-radius: 2px;
}
.form-success-ic svg { width: 26px; height: 26px; }
.form-success p { margin: 0; line-height: 1.5; }
.form-demo.is-sent .form-success { display: flex; }
.form-demo.is-sent > .row, .form-demo.is-sent .form-actions { display: none; }

/* ---------------------------------------------------------------------------
   12. FOOTER
--------------------------------------------------------------------------- */
.site-footer {
  background: var(--v-navy);
  color: var(--v-creme);
  padding: clamp(3.4rem, 7vw, 5.4rem) 0 1.6rem;
}
.footer-brand { margin-bottom: 1.2rem; }
.footer-tag {
  color: var(--v-taupe);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 38ch;
  margin: 0 0 1.6rem;
}
.footer-h {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--v-taupe);
  margin: 0.4rem 0 1.1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: var(--v-creme);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--v-white); border-bottom-color: rgba(232, 227, 206, 0.5); }
.footer-links .footer-muted { color: var(--v-taupe); font-size: 0.92rem; }
.footer-links-contacts a { color: var(--v-taupe); }
.footer-links-contacts a:hover { color: var(--v-creme); }

.footer-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}
.footer-chips li {
  border: 1px solid rgba(232, 227, 206, 0.35);
  border-radius: 2px;
  padding: 0.3em 0.85em;
  font-family: var(--font-disp);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v-creme);
}

.footer-art { display: flex; gap: 10px; opacity: 0.9; margin-top: 0.6rem; }
.footer-art .logo-sq { width: auto; height: auto; }
.footer-art .sq { width: 13px; height: 13px; }

.footer-bottom {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  border-top: 1px solid rgba(232, 227, 206, 0.18);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-bottom p {
  color: var(--v-taupe);
  font-size: 0.9rem;
  margin: 0;
}
.footer-sig { letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-disp); font-weight: 600; font-size: 0.76rem !important; }

/* ---------------------------------------------------------------------------
   13. Animações & reveals
   · IntersectionObserver (viannas.js) adiciona .in a [data-reveal]
   · html.anim só é adicionado quando JS activo e motion permitido
   · duração 500–900ms · easing cubic-bezier(0.22, 1, 0.36, 1)
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrada do hero (load, CSS puro) */
  .hero-eyebrow { animation: fadeUp 0.8s var(--ease) both; animation-delay: 0.1s; }
  .hero-title .hl-line:nth-child(1) .hl-inner { animation: heroLine 0.85s var(--ease) both; animation-delay: 0.16s; }
  .hero-title .hl-line:nth-child(2) .hl-inner { animation: heroLine 0.85s var(--ease) both; animation-delay: 0.26s; }
  .hero-title .hl-line:nth-child(3) .hl-inner { animation: heroLine 0.85s var(--ease) both; animation-delay: 0.36s; }
  .hero-lede { animation: fadeUp 0.85s var(--ease) both; animation-delay: 0.55s; }
  .hero-ctas { animation: fadeUp 0.85s var(--ease) both; animation-delay: 0.68s; }
  .hero-chips { animation: fadeUp 0.85s var(--ease) both; animation-delay: 0.8s; }
  .hero-visual-col { animation: fadeUp 1s var(--ease) both; animation-delay: 0.35s; }

  /* "montagem" dos blocos do SVG hero (stagger) */
  .hero-svg .pop-tile {
    transform-box: fill-box;
    transform-origin: center;
    animation: tilePop 0.6s var(--ease) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.1s);
  }
  .hero-svg .tech-line { opacity: 0; animation: fadeIn 0.6s var(--ease) both; animation-delay: calc(0.5s + var(--i, 0) * 0.1s); }

  /* reveals via IntersectionObserver */
  html.anim [data-reveal] { opacity: 0; }
  html.anim [data-reveal="up"]    { transform: translateY(38px); }
  html.anim [data-reveal="down"]  { transform: translateY(-30px); }
  html.anim [data-reveal="left"]  { transform: translateX(-42px); }
  html.anim [data-reveal="right"] { transform: translateX(42px); }
  html.anim [data-reveal="fade"]  { transform: none; }
  html.anim [data-reveal="scale"] { transform: translateY(10px) scale(0.955); }

  html.anim [data-reveal] {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
  }
  html.anim [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}

/* prefers-reduced-motion: reduzir → desligar animações */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .scroll-cue-dot { animation: none; opacity: 0.6; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* keyframes */
@keyframes heroLine {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes tilePop {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes cueDrop {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(38px); opacity: 0; }
}
