/* ==========================================================================
   DE CRIE - LANDING PAGE B2B
   Design System & Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Font Faces
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   2. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  --bg: #FAF8F4;
  --bg-alt: #F1ECE2;
  --card: #FFFFFF;
  --line: rgba(33, 26, 19, 0.12);
  --ink: #211A13;
  --ink-dim: rgba(33, 26, 19, 0.74);
  --ink-faint: rgba(33, 26, 19, 0.46);
  --accent: #5C6B4A;
  --accent-hover: #4e5b3e;
  --accent-dim: rgba(92, 107, 74, 0.12);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.21, 0.47, 0.32, 0.98);

  /* Escala espacial — retunada por breakpoint na seção 16.
     A Regra do Duplo Ritmo: --section-y só assume 96px ou 56px. */
  --wrap-pad: 40px;
  --gutter: 64px;
  --media-gap: 28px;
  --section-y: 96px;
  --header-h: 84px;
  --header-h-min: 64px;
  --logo-h: 34px;

  /* Tons da marca, vindos dos proprios arquivos de logo em assets/brand.
     Neutros quentes, nao um segundo acento cromatico. */
  --brand-ink: #362920;
  --brand-light: #DDD8CB;

  /* Canto do CTA de pagina: diagonal — superior esquerdo e inferior direito
     arredondados, os outros dois retos. Ajuste aqui e vale para todos. */
  --cta-radius: 16px;
}

/* --------------------------------------------------------------------------
   3. Global Reset & Base Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   4. Layout & Utilities
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

.section {
  padding: var(--section-y) 0;
}

.section-tight {
  padding: 72px 0;
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.icon {
  flex-shrink: 0;
}

.section-head {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 33px);
  font-weight: 700;
  line-height: 1.22;
  margin-top: 14px;
  color: var(--ink);
}

.section-title:first-child {
  margin-top: 0;
}

.section-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 520px;
  margin: 14px auto 0;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform 0.25s ease, box-shadow 0.25s ease, background-color var(--transition-fast);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    opacity: 0.95;
  }
}

.btn-primary {
  background: var(--accent);
  color: #F4F1E8;
  box-shadow: 0 0 0 rgba(92, 107, 74, 0);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(92, 107, 74, 0.32);
  }
}

/* Toque não tem hover: a resposta física vira o :active */
.btn-primary:active {
  background: var(--accent-hover);
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(92, 107, 74, 0.3);
}

/* CTA de pagina: canto diagonal. Superior esquerdo e inferior direito
   arredondados, superior direito e inferior esquerdo retos — a mesma leitura
   de chanfro que o sistema ja usa nos 3px, agora em escala de gesto. */
.btn-cta {
  border-radius: var(--cta-radius) 0 var(--cta-radius) 0;
}

/* Selo do hero: a mesma forma, mais o tratamento de versalete. */
.btn-tag {
  border-radius: var(--cta-radius) 0 var(--cta-radius) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13.5px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(33, 26, 19, 0.26);
}

.btn-outline:hover,
.btn-outline:active {
  background: rgba(33, 26, 19, 0.05);
  color: var(--ink);
  opacity: 1;
}

.btn-outline-inverse {
  background: transparent;
  color: #F5F1E7;
  border-color: rgba(245, 241, 231, 0.4);
}

.btn-outline-inverse:hover,
.btn-outline-inverse:active {
  background: rgba(245, 241, 231, 0.1);
  color: #F5F1E7;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition-smooth),
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

/* Estado rolado: o plano vira madeira, o logo troca para o claro e a barra
   encolhe. A sombra so existe aqui — A Regra da Sombra Reativa: superficie em
   repouso nao nasce com sombra, ela responde a um estado. */
.header-bar.is-scrolled {
  background: rgba(54, 41, 32, 0.97);
  border-bottom-color: rgba(221, 216, 203, 0.16);
  box-shadow: 0 10px 30px rgba(15, 11, 8, 0.26);
}

.header-bar.is-scrolled .header-inner {
  height: var(--header-h-min);
}

.header-bar.is-scrolled {
  --logo-h: 27px;
}

/* Texto e controles invertem para o creme da marca: 9,9:1 no tom cheio,
   6,6:1 no atenuado — os dois bem acima do piso de 4,5:1. */
.header-bar.is-scrolled .nav-links a { color: rgba(221, 216, 203, 0.78); }
.header-bar.is-scrolled .nav-links a::after { background: var(--brand-light); }

.header-bar.is-scrolled .nav-action {
  color: rgba(221, 216, 203, 0.78);
  border-color: rgba(221, 216, 203, 0.2);
}

.header-bar.is-scrolled .nav-action-primary { color: var(--brand-light); }

/* Sobre madeira o oliva cheio cai para 3,4:1; o degrau claro do mesmo matiz
   rende 5,3:1 e mantem a voz unica do acento. */
.header-bar.is-scrolled .nav-action-primary .nav-action-icon { color: #95A582; }

.header-bar.is-scrolled .nav-icon-link,
.header-bar.is-scrolled .nav-toggle { color: rgba(221, 216, 203, 0.86); }
.header-bar.is-scrolled .nav-icon-link:hover,
.header-bar.is-scrolled .nav-toggle:hover { color: var(--brand-light); }

@media (hover: hover) and (pointer: fine) {
  .header-bar.is-scrolled .nav-links a:hover { color: var(--brand-light); }

  .header-bar.is-scrolled .nav-action:hover,
  .header-bar.is-scrolled .nav-action:focus-visible {
    color: var(--brand-light);
    border-color: rgba(221, 216, 203, 0.55);
    background: rgba(221, 216, 203, 0.1);
  }

  .header-bar.is-scrolled .nav-action:hover .nav-action-icon,
  .header-bar.is-scrolled .nav-action:focus-visible .nav-action-icon { color: var(--brand-light); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: none;
  margin: 0;
  padding: 0 var(--wrap-pad);
  transition: height var(--transition-smooth);
}

/* Tres colunas em vez de space-between: com space-between o menu ficava
   centrado ENTRE o logo e as acoes, que tem larguras diferentes, entao nunca
   caia no centro otico da janela. A coluna do meio resolve isso. */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.header-inner > .header-logo { grid-column: 1; justify-self: start; }
.header-inner > .nav-links   { grid-column: 2; justify-self: center; }
.header-inner > .nav-actions { grid-column: 3; justify-self: end; }
.header-inner > .nav-mobile  { grid-column: 3; justify-self: end; }

/* Duas artes empilhadas, uma por contraste de fundo. O alt vive so na escura,
   para o leitor de tela anunciar a marca uma vez em qualquer estado. */
.header-logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: var(--logo-h);
  aspect-ratio: 519 / 147;
  transition: height var(--transition-smooth);
}

.header-logo-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity var(--transition-smooth);
}

.header-logo-light { opacity: 0; }

.header-bar.is-scrolled .header-logo-dark { opacity: 0; }
.header-bar.is-scrolled .header-logo-light { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
}

.nav-links a {
  position: relative;
  padding-bottom: 5px;
}

/* O sublinhado e um filete que cresce da esquerda — o mesmo instrumento que
   separa tudo no sistema, agora como resposta de estado. */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--accent); }
  .nav-links a:hover::after { transform: scaleX(1); }
}

.nav-links a:active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Acao encaixotada: em repouso e so o icone num quadrado de 3px (o mesmo raio
   de tudo que e interativo no sistema). O rotulo continua no DOM — apenas
   colapsado — para o leitor de tela sempre anunciar o destino. */
.nav-action {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition-fast),
              border-color var(--transition-fast),
              background-color var(--transition-fast);
}

.nav-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-action-icon-lg {
  width: 20px;
  height: 20px;
}

.nav-action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 0fr -> 1fr anima a largura de verdade, sem max-width chutado. */
.nav-action-label {
  display: grid;
  grid-template-columns: 0fr;
  opacity: 0;
  transition: grid-template-columns var(--transition-smooth),
              opacity var(--transition-fast),
              margin-left var(--transition-smooth);
}

.nav-action-label > span {
  overflow: hidden;
  min-width: 0;
}

/* A acao de conversa carrega o unico acento do cabecalho — marca o canal real
   sem virar botao solido, que o sistema proibe aqui. */
.nav-action-primary {
  color: var(--ink);
  font-weight: 600;
}

.nav-action-primary .nav-action-icon { color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .nav-action:hover,
  .nav-action:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
  }

  .nav-action:hover .nav-action-label,
  .nav-action:focus-visible .nav-action-label {
    grid-template-columns: 1fr;
    opacity: 1;
    margin-left: 8px;
  }
}

/* Sem hover (toque), o rotulo nunca colapsa: ninguem descobre um icone sozinho. */
@media (hover: none) {
  .nav-action-label {
    grid-template-columns: 1fr;
    opacity: 1;
    margin-left: 8px;
  }
}

.nav-action:active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Variante que nunca colapsa: usada onde a acao e a unica da barra e
   esconde-la atras do hover so custaria descoberta. */
.nav-action-static {
  padding: 0 13px;
}

.nav-action-static .nav-action-label {
  grid-template-columns: 1fr;
  opacity: 1;
  margin-left: 8px;
}

/* No obrigado.html a barra tem apenas logo + voltar. */
.header-inner > .ty-back { grid-column: 3; justify-self: end; }

/* Controles mobile: WhatsApp direto + gatilho da gaveta.
   Ambos são links/ícones, nunca botão sólido — o cabeçalho não
   compete com os CTAs do hero. */
.nav-mobile {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-right: -10px;
}

.nav-icon-link,
.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: color var(--transition-fast);
}

.nav-icon-link:hover,
.nav-icon-link:active,
.nav-toggle:hover {
  color: var(--accent);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 13px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--transition-smooth), top var(--transition-smooth);
}

.nav-toggle-bars::before { top: 3px; }
.nav-toggle-bars::after  { top: 9px; }

/* Mesma gramática do acordeão: o sinal gira 45° para virar × */
.nav-toggle[aria-expanded="true"] { color: var(--accent); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 6px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}

.nav-drawer.open { visibility: visible; }

/* Scrim sem blur: o vidro fosco só existe sobre mídia */
.nav-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 5, 0.5);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.nav-drawer.open .nav-drawer-scrim { opacity: 1; }

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 340px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  padding-left: 26px;
  padding-right: max(26px, env(safe-area-inset-right));
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}

.nav-drawer-link:first-of-type { border-top: 1px solid var(--line); }

.nav-drawer-link:hover,
.nav-drawer-link:active { color: var(--accent); }

.nav-drawer-actions {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
}

.nav-drawer-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
}

.nav-drawer-action:hover,
.nav-drawer-action:active { color: var(--accent); }

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  max-height: 720px;
  display: flex;
  align-items: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.86) 0%, rgba(15, 11, 8, 0.78) 45%, rgba(15, 11, 8, 0.9) 100%);
}

.hero-content {
  position: relative;
  padding: clamp(80px, 11vh, 112px) var(--wrap-pad);
  max-width: 1180px;
  width: 100%;
}

.hero-text-box {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(29px, 5.2vw, 50px);
  line-height: 1.12;
  color: #F7F4EC;
}

.hero-desc {
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.82);
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Marquee Band
   -------------------------------------------------------------------------- */
/* A faixa e o unico lugar onde o oliva vira SUPERFICIE em vez de acento.
   E deliberado: da ao unico matiz do sistema um momento proprio, entre a
   fotografia escura do hero e o papel da secao seguinte. */
.marquee-band {
  background: var(--accent);
  padding: 13px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.marquee-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.01em;
  /* Papel natural sobre oliva: 5,4:1 */
  color: var(--bg);
  white-space: nowrap;
}

/* Sobre oliva o ponto nao pode mais ser oliva: vira creme rebaixado. */
.marquee-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.42);
  margin: 0 20px;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .marquee-dot { margin: 0 14px; }
}

/* --------------------------------------------------------------------------
   9. Values / Essence Section
   -------------------------------------------------------------------------- */
.value-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
}

.value-subline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 14px auto 0;
}

.value-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--media-gap);
  margin-top: 56px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.value-card-frame {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.value-card-frame img,
.value-card-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.5) 100%);
}

.value-card-info {
  margin-top: 20px;
}

.value-card-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.value-card-info p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-top: 6px;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   10. Feature Sections (Grid 2-Col)
   -------------------------------------------------------------------------- */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}

.feature-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 16px;
  color: var(--ink);
}

.feature-desc {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-item svg {
  margin-top: 2px;
}

.feature-item span {
  font-size: 14.5px;
  color: var(--ink-dim);
}

.hover-zoom {
  overflow: hidden;
}

.hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

@media (hover: hover) and (pointer: fine) {
  .hover-zoom:hover img {
    transform: scale(1.045);
  }
}

/* Carrossel de fotos — um componente so, usado pela Corporativa e pela Gourmet */
.photo-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: var(--gallery-ratio, 3/4);
  border-radius: var(--gallery-radius, 3px);
  overflow: hidden;
  --arrow-size: 30px;
}

.photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.photo-slide.is-active {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: background var(--transition-fast);
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.carousel-arrow-left {
  left: 10px;
}

.carousel-arrow-right {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: background var(--transition-fast);
}

.carousel-dot.is-active {
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   11. Portfolio Carousel & Video Tiles
   -------------------------------------------------------------------------- */
.portfolio-wrap {
  position: relative;
  margin-top: 56px;
}

.portfolio-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}

.portfolio-carousel::-webkit-scrollbar {
  display: none;
}

.portfolio-video-slot,
.portfolio-photo {
  position: relative;
  flex: 0 0 calc(25% - 10.5px);
  aspect-ratio: 4/7;
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: start;
}

.portfolio-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: background var(--transition-fast);
}

.portfolio-arrow:hover {
  background: var(--bg-alt);
}

.portfolio-arrow-left {
  left: -19px;
}

.portfolio-arrow-right {
  right: -19px;
}

.portfolio-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.portfolio-dot {
  width: 4px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(33, 26, 19, 0.2);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
}

.portfolio-dot.active {
  background: var(--accent);
  width: 12px;
  border-radius: 2px;
}

/* Video Tile Component */
.tile-outer {
  position: relative;
  width: 100%;
  height: 100%;
}

.tile-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.tile-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-frame.expanded {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 4, 0.86);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: default;
}

.tile-frame.expanded video {
  width: min(90vw, 340px);
  aspect-ratio: 4/7;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.tile-mute {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.tile-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 201;
}

/* --------------------------------------------------------------------------
   12. How It Works (Como Funciona)
   -------------------------------------------------------------------------- */
.how-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
  margin-top: 56px;
  text-align: left;
}

.how-row {
  cursor: pointer;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.how-row:first-child {
  border-top: 1px solid var(--line);
}

.how-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.how-row-head h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.how-row-icon {
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.how-row.active .how-row-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.how-row-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-top: 12px;
  max-width: 420px;
  display: none;
}

.how-row.active .how-row-desc {
  display: block;
}

.how-image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
}

.how-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.how-media-item.active {
  opacity: 1;
}

.how-media-item img,
.how-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   13. Contact & Footer
   -------------------------------------------------------------------------- */
/* Fecho sobre fotografia, sem mascara. O arquivo ja chega escuro na origem:
   medido, o pior pixel da regiao da copy rende 14,9:1 contra o creme, entao
   qualquer scrim so tiraria a foto sem ganhar legibilidade. */
.contact-section {
  position: relative;
  text-align: center;
  background-image: url('../assets/images/footerbg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-section .section-title {
  color: var(--bg);
}

.contact-section .section-lead {
  color: rgba(250, 248, 244, 0.84);
}

/* Fecha a pagina no mesmo marrom da marca em que o cabecalho fecha ao rolar:
   o documento abre e termina no mesmo plano. */
.footer-bar {
  background: var(--brand-ink);
  padding: 64px 0 34px;
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

/* So o rodape e mais largo que o resto do site — da mais espaco pro
   mapa sem mexer no .wrap (1180px) usado em todas as outras secoes. */
.footer-bar .wrap {
  max-width: 1400px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.05fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
}

.footer-logo {
  width: auto;
  height: 44px;
  display: block;
}

.footer-essence {
  margin-top: 20px;
  max-width: 330px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(221, 216, 203, 0.72);
}

/* Ancoras sociais sob a marca. Mesma gramatica das acoes do cabecalho:
   caixa de 3px, filete claro, e o hover preenche em vez de so trocar a cor. */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(221, 216, 203, 0.22);
  border-radius: 3px;
  color: rgba(221, 216, 203, 0.8);
  transition: color var(--transition-fast),
              border-color var(--transition-fast),
              background-color var(--transition-fast);
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
  display: block;
}

.footer-social-link:active {
  color: var(--brand-light);
  border-color: rgba(221, 216, 203, 0.55);
  background: rgba(221, 216, 203, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .footer-social-link:hover {
    color: var(--brand-light);
    border-color: rgba(221, 216, 203, 0.55);
    background: rgba(221, 216, 203, 0.1);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Sobre marrom o oliva cheio cai para 3,4:1; o degrau claro do mesmo
   matiz rende 5,3:1 e mantem a voz unica do acento. */
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #95A582;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(221, 216, 203, 0.78);
  transition: color var(--transition-fast);
}

.footer-col a:hover,
.footer-col a:active {
  color: var(--brand-light);
}

/* Contatos: icone tracado no peso 1,4 do sistema, alinhado ao topo para o
   endereco e o horario poderem quebrar em duas linhas sem desalinhar. */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(221, 216, 203, 0.78);
}

.footer-contact-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(221, 216, 203, 0.6);
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-contact a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer-contact a:hover,
.footer-contact a:active {
  color: var(--brand-light);
}

/* Coluna "Onde estamos": mapa interativo (do Google, sem chave de API) —
   os dois botoes embaixo continuam ali pra quem quer abrir no app. */
.footer-map-teaser {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(221, 216, 203, 0.18);
}

.footer-map-teaser iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-map-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.footer-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  padding: 6px 10px;
  border: 1px solid rgba(221, 216, 203, 0.22);
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(221, 216, 203, 0.85);
  white-space: nowrap;
  transition: color var(--transition-fast),
              border-color var(--transition-fast),
              background-color var(--transition-fast);
}

.footer-map-btn img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.footer-map-btn:active {
  color: var(--brand-light);
  border-color: rgba(221, 216, 203, 0.55);
  background: rgba(221, 216, 203, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .footer-map-btn:hover {
    color: var(--brand-light);
    border-color: rgba(221, 216, 203, 0.55);
    background: rgba(221, 216, 203, 0.1);
  }
}

/* Pagamento e selo nas pontas (flex + space-between); o copyright e
   centralizado de verdade na barra toda via posicionamento absoluto —
   um grid auto/1fr/auto so centralizaria "entre" os dois lados, e eles
   tem larguras bem diferentes. */
.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 40px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(221, 216, 203, 0.15);
}

/* Bloco rotulado, com a mesma sobrancelha das outras colunas do rodape. */
.footer-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Chip claro uniforme sob cada marca: os arquivos vem com transparencias
   diferentes (Amex, Elo e Aura tem fundo solido; Visa e PIX nao), e o chip
   normaliza os sete de uma vez — que e como bandeira de pagamento aparece de
   qualquer forma. */
.footer-pay-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-pay-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 29px;
  padding: 3px 5px;
  border-radius: 3px;
  background: var(--bg);
}

.footer-pay-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-copy {
  position: absolute;
  left: 50%;
  /* "top: 50%" sozinho centraliza no miolo da caixa de padding do pai
     (.footer-bottom), que inclui os 30px de padding-top — o conteudo em
     fluxo normal (pagamento/selo) so ocupa a caixa de conteudo, abaixo
     desse padding. +15px (metade do padding-top) reconcilia os dois. */
  top: calc(50% + 15px);
  transform: translate(-50%, -50%);
  max-width: min(46vw, 420px);
  font-size: 12.5px;
  color: rgba(221, 216, 203, 0.62);
  text-align: center;
}

/* Selo de suporte técnico — logo do agência que cuida do site, aponta pro
   WhatsApp de orçamento. Fica na ponta direita da barra. */
.footer-support-link {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.footer-support-link:hover,
.footer-support-link:active {
  opacity: 1;
}

.footer-support-link img {
  height: 24px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   14. Modal Dialog
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 7, 5, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--ink-faint);
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--ink);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.form-input {
  background: rgba(33, 26, 19, 0.035);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row .form-group {
  flex: 1;
}

#catalogForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.modal-title {
  font-size: 21px;
  margin-top: 10px;
  color: var(--ink);
}

.modal-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-top: 8px;
}

.modal-submit {
  width: 100%;
  margin-top: 8px;
}

/* Consentimento em --ink-dim (7,1:1), nunca --ink-faint:
   A Regra do Rodape de Contraste proibe texto decisivo no tom fraco. */
.modal-consent {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  text-align: center;
}

/* Estado de erro. O sistema tem um unico acento cromatico e nenhuma cor de erro
   definida, entao o sinal e peso + poco tingido + mensagem explicita, nunca cor
   sozinha: borda em tinta cheia, fundo mais denso e um texto que nomeia o
   problema e a correcao. */
.form-input[aria-invalid="true"] {
  border-color: var(--ink);
  background: rgba(33, 26, 19, 0.07);
}

.form-input[aria-invalid="true"]:focus {
  border-color: var(--accent);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
}

.form-error::before {
  content: '';
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5v5.5M12 16.2v.1' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23000' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5v5.5M12 16.2v.1' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23000' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-error[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   15. Scroll Reveal Animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.reveal-left {
  transform: translateX(-26px);
}

.reveal-right {
  transform: translateX(26px);
}

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

/* --------------------------------------------------------------------------
   16. Responsive Media Queries

   Escrito desktop-first para acompanhar a cascata existente. Os breakpoints
   são guiados pelo conteúdo, não por nomes de aparelho:
     1180px  o contêiner encosta na borda da janela
     1024px  a navegação horizontal aperta / o portfólio perde a 4ª peça
      860px  a grade de 2 colunas quebra / a navegação vira gaveta
      620px  os 3 cards de valor ficam estreitos demais
      430px  telefones pequenos
   -------------------------------------------------------------------------- */

/* ---- Contêiner encosta na borda ---- */
@media (max-width: 1180px) {
  :root {
    --wrap-pad: 32px;
    --gutter: 52px;
  }

  .portfolio-arrow-left  { left: 2px; }
  .portfolio-arrow-right { right: 2px; }
}

/* ---- Tablet paisagem ---- */
@media (max-width: 1024px) {
  :root {
    --gutter: 44px;
    --media-gap: 22px;
  }

  .nav-links {
    gap: 20px;
    font-size: 13.5px;
  }

  .nav-actions { gap: 8px; }

  /* Três peças em vez de quatro: o corte da próxima continua à mostra */
  .portfolio-video-slot,
  .portfolio-photo {
    flex: 0 0 calc(33.333% - 9.34px);
  }

}

/* ---- Tablet retrato e abaixo ---- */
@media (max-width: 860px) {
  :root {
    --wrap-pad: 22px;
    --gutter: 40px;
    --media-gap: 24px;
    --section-y: 56px;
    --header-h: 68px;
    --header-h-min: 56px;
  }

  .header-bar.is-scrolled { --logo-h: 26px; }

  /* A navegação horizontal dá lugar à gaveta — nada some, muda de forma */
  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .header-inner { grid-template-columns: 1fr auto; }

  .nav-mobile { display: flex; }

  .grid-2col {
    grid-template-columns: 1fr;
  }

  /* A coluna de texto mantém medida legível mesmo sem a foto ao lado */
  .feature-desc,
  .feature-list {
    max-width: 62ch;
  }

  /* A Regra da Imagem Primeiro no Mobile: a mídia abre o argumento */
  .grid-2col [style*="order:2"] { order: 1 !important; }
  .grid-2col [style*="order:1"] { order: 2 !important; }

  .how-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  .how-image-wrap { order: -1; }

  .section-head { margin-bottom: 40px; }

  .value-video-grid { margin-top: 40px; }

  .portfolio-wrap { margin-top: 40px; }

  .portfolio-video-slot,
  .portfolio-photo {
    flex: 0 0 44%;
  }

  /* 16px evita o zoom automático do Safari iOS ao focar um campo */
  .form-input { font-size: 16px; }

  .modal-card { padding: 30px 26px; }

  .footer-bar { padding-top: 52px; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 36px 32px;
  }

  .footer-brand,
  .footer-col-map {
    grid-column: 1 / -1;
  }

  .footer-map-teaser,
  .footer-map-actions { max-width: 480px; }

  /* Abaixo de 860px nao sobra largura pra pagamento + copy centralizado
     (absoluto) + selo lado a lado sem sobrepor — empilha e volta o copy
     ao fluxo normal. */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    gap: 14px;
  }

  .footer-copy {
    position: static;
    transform: none;
  }
}

/* ---- Os 3 cards de valor ficam estreitos demais para o texto ---- */
@media (max-width: 700px) {
  .value-video-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 34px;
  }

  .value-card-info p { max-width: none; }
}

/* ---- Telefone ---- */
@media (max-width: 620px) {
  .portfolio-video-slot,
  .portfolio-photo {
    flex: 0 0 62%;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-desc {
    font-size: 16px;
    margin-top: 18px;
  }

  .hero-cta-group { margin-top: 26px; }

  .form-row { flex-direction: column; }

  .modal-card { padding: 26px 22px; }

  .section-lead { font-size: 15px; }

  /* Rodapé centralizado no mobile: marca, colunas e barra inferior */
  .footer-top { justify-items: center; }

  /* .footer-brand é um <div> comum, não flex — sem isso, align-items/
     text-align não centralizam a logo (bloco) nem os ícones sociais
     (flex) como caixa, só o texto da essência por dentro. */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-contact li { justify-content: center; }

  /* Copy absoluto so faz sentido com pagamento e selo lado a lado; empilhado
     ele volta ao fluxo normal, no meio da pilha. */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-copy {
    position: static;
    transform: none;
    order: 2;
  }

  .footer-pay { align-items: center; order: 1; }

  .footer-support-link { order: 3; }

  .footer-pay-row { justify-content: center; }
}

/* ---- Telefone pequeno ---- */
@media (max-width: 430px) {
  :root { --wrap-pad: 20px; }

  .portfolio-video-slot,
  .portfolio-photo {
    flex: 0 0 76%;
  }

  /* Um pedido por vez ocupa a largura toda em vez de partir em duas linhas */
  .hero-cta-group,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn,
  .cta-row .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-logo { height: 38px; }
}

/* ---- Telefone deitado: a altura é o recurso escasso ---- */
@media (max-height: 540px) and (orientation: landscape) {
  .hero-section { min-height: auto; }

  .hero-content {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-desc { margin-top: 14px; }
  .hero-cta-group { margin-top: 20px; }

  .tile-frame.expanded video {
    width: auto;
    height: 84vh;
    aspect-ratio: 4/7;
  }
}

/* ---- Ponteiro grosso: alvos de toque de 44px ---- */
@media (pointer: coarse) {
  .photo-carousel { --arrow-size: 44px; }

  .footer-social-link { width: 44px; height: 44px; }

  .carousel-arrow,
  .portfolio-arrow,
  .tile-close,
  .modal-close-btn {
    width: 44px;
    height: 44px;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* O ponto continua com 4-6px de desenho; só a área de toque cresce */
  .carousel-dot,
  .portfolio-dot { position: relative; }

  .carousel-dot::after,
  .portfolio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 44px;
    transform: translate(-50%, -50%);
  }

  .carousel-dots {
    gap: 24px;
    bottom: 14px;
  }

  .portfolio-pagination { gap: 26px; }
}

/* --------------------------------------------------------------------------
   20. Botão flutuante de conversa
   -------------------------------------------------------------------------- */

/* Fica ABAIXO da gaveta (z 90) e do modal (z 100) de propósito: quando um
   deles abre, o pedido da tela e outro. */
.wa-fab {
  position: fixed;
  z-index: 50;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  /* Oliva, nao o verde do WhatsApp: branco sobre #25D366 rende 1,98:1 e
     reprova ate no piso de 3:1 para icone; sobre o oliva sao 5,74:1. */
  background: var(--accent);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth),
              visibility var(--transition-smooth),
              background-color var(--transition-fast);
}

.wa-fab svg {
  width: 27px;
  height: 27px;
  display: block;
}

/* Entra por opacidade; a animacao e dona do transform, entao um translate de
   entrada aqui seria sobrescrito no primeiro quadro do pulso. */
.wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(92, 107, 74, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 13px rgba(92, 107, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(92, 107, 74, 0);
  }
}

/* Sob o cursor o pulso para: algo pulsando embaixo do ponteiro e ruido. */
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover {
    animation: none;
    transform: scale(1);
    background: var(--accent-hover);
    box-shadow: 0 10px 26px rgba(92, 107, 74, 0.4);
  }
}

.wa-fab:active {
  animation: none;
  transform: scale(0.97);
  background: var(--accent-hover);
}

/* Com a gaveta aberta o botao sai: o menu ja carrega o mesmo caminho. */
body.menu-open .wa-fab {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 620px) {
  .wa-fab {
    width: 52px;
    height: 52px;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  .wa-fab svg { width: 25px; height: 25px; }
}

/* --------------------------------------------------------------------------
   17. Movimento Reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .portfolio-carousel { scroll-behavior: auto; }

  /* Sem pulso, e parado em escala cheia — nao no quadro de 0.95. */
  .wa-fab.is-visible {
    animation: none;
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   18. Superfícies do Navegador
   -------------------------------------------------------------------------- */
::selection {
  background: var(--accent-dim);
  color: var(--ink);
}

/* No rodapé (fundo escuro) a seleção padrão vira texto quase preto sobre
   um marrom quase igual ao fundo — ilegível. Inverte pra claro sobre claro. */
.footer-bar ::selection {
  background: rgba(221, 216, 203, 0.32);
  color: var(--brand-ink);
}

html {
  scrollbar-color: rgba(33, 26, 19, 0.28) transparent;
}

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

/* O campo mantém a regra do sistema: a borda vira oliva, sem anel */
.form-input:focus-visible {
  outline: none;
}

.form-input {
  caret-color: var(--accent);
}

/* --------------------------------------------------------------------------
   19. Página de Obrigado (obrigado.html)
   -------------------------------------------------------------------------- */
.ty-main {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: var(--section-y) 0;
}

.ty-wrap {
  max-width: 620px;
  text-align: center;
}

.ty-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.ty-title {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  margin-top: 14px;
  color: var(--ink);
}

.ty-lead {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dim);
}

.ty-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.ty-note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.ty-next {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.ty-next-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-sans);
}

.ty-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.ty-step h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.ty-step p {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.ty-back {
  gap: 8px;
}

@media (max-width: 700px) {
  .ty-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .ty-next {
    margin-top: 44px;
  }
}

@media (max-width: 430px) {
  .ty-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ty-actions .btn {
    width: 100%;
  }
}
