/* Transição nativa entre páginas em navegadores compatíveis (Chrome/Edge/Android) —
   o próprio navegador faz um cross-fade suave e evita o "vão branco" ao trocar de página. */
@view-transition {
  navigation: auto;
}

:root {
  --azul: #232B3A;
  --azul-claro: #6C7880;
  --terracota: #BE8C7D;
  --terracota-escura: #A5715F;
  --creme: #F7F4EF;
  --cinza-claro: #F2F4F7;
  --texto: #4A4A48;
  --branco: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Transição suave entre páginas (só ativa com JS ligado): some rapidinho ao
   sair clicando num link, sem esconder a página de chegada (evita tela em
   branco por conta da rede/carregamento). */
html.js body.saindo {
  opacity: 0;
  transition: opacity 0.12s ease;
}
a { color: inherit; }
img { max-width: 100%; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Header / navegação */
header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ece8e1;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
header img.logo {
  max-width: 170px;
  width: 100%;
  height: auto;
  display: block;
}
nav {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: var(--azul);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
nav a:hover { opacity: 0.6; }
nav a.ativo { border-bottom-color: var(--terracota); }
nav a { position: relative; }
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
nav a:hover::after, nav a.ativo::after { transform: scaleX(1); transform-origin: left; }
nav a.ativo::after { background: transparent; }

/* Hero com imagem de fundo */
.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 160px 24px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56vh;
  overflow: hidden;
  animation: heroPan 42s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 75% at center, rgba(20,24,32,0.55) 0%, rgba(20,24,32,0) 70%),
    linear-gradient(180deg, rgba(35,43,58,0.25) 0%, rgba(165,113,95,0.28) 55%, rgba(35,43,58,0.72) 100%);
}
.hero.sem-foto {
  background:
    radial-gradient(ellipse 75% 65% at 12% 15%, rgba(190,140,125,0.28) 0%, rgba(190,140,125,0) 60%),
    radial-gradient(ellipse 70% 75% at 88% 95%, rgba(165,113,95,0.32) 0%, rgba(165,113,95,0) 65%),
    linear-gradient(135deg, #1b212c 0%, #232B3A 55%, #2d3750 100%);
  animation: none;
}
.hero.sem-foto::before { content: none; }
.hero-conteudo {
  position: relative;
  max-width: 620px;
  animation: heroSobe 0.9s ease both;
}
.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 18px;
  font-weight: 500;
}
.hero h1 {
  font-size: 3.3rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--terracota);
  margin: 0 auto 16px;
}

@keyframes heroPan {
  from { background-position: center 35%; }
  to { background-position: center 65%; }
}
@keyframes heroSobe {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 300;
  color: #EDEAE4;
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero .btn {
  margin-top: 32px;
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}
.hero .btn:hover {
  background: #fff;
  color: var(--azul);
  border-color: #fff;
}

/* Layout geral */
main, .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 32px;
}
main.estreita, .container.estreita { max-width: 820px; }
section.faixa-creme { background: var(--creme); }

h2.titulo-secao {
  color: var(--azul);
  font-size: 2.1rem;
  font-style: italic;
  margin-bottom: 14px;
  text-align: center;
}
p.intro-secao {
  max-width: 580px;
  margin: 0 auto 56px;
  font-size: 1rem;
  text-align: center;
  color: var(--azul-claro);
}

/* Grid de marcas (cards com foto) */
.grid-marcas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 76px;
}
.marca-chip {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--azul);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(35,43,58,0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.marca-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35,43,58,0.82) 0%, rgba(35,43,58,0.15) 60%, rgba(35,43,58,0.05) 100%);
  transition: background 0.35s ease;
}
.marca-chip span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--branco);
}
.marca-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(35,43,58,0.22);
}
.marca-chip:hover::before {
  background: linear-gradient(0deg, rgba(165,113,95,0.85) 0%, rgba(35,43,58,0.25) 60%, rgba(35,43,58,0.05) 100%);
}
.marca-chip.sem-fotos {
  background-color: var(--cinza-claro);
  cursor: default;
  border: 1px dashed #D8D2C6;
}
.marca-chip.sem-fotos::before { background: none; }
.marca-chip.sem-fotos span {
  left: 0;
  right: 0;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: var(--azul);
  opacity: 0.7;
}
.marca-chip.sem-fotos:hover { transform: none; box-shadow: 0 4px 14px rgba(35,43,58,0.10); }
.marca-chip.sem-fotos::after {
  content: "Em breve";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: block;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracota-escura);
  font-weight: 500;
}

/* Galeria por marca */
.galeria-marca { margin-bottom: 72px; scroll-margin-top: 90px; }
.galeria-marca h3 {
  color: var(--azul);
  font-size: 1.7rem;
  font-style: italic;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E7E2D9;
}
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 18px;
}
.galeria-fotos .foto-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
/* Primeira foto de cada marca vira destaque (tile 2x2), quebrando a grade uniforme */
.galeria-fotos .foto-wrap:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.galeria-fotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.galeria-fotos .foto-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35,43,58,0.45) 0%, rgba(35,43,58,0) 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.galeria-fotos .foto-wrap::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}
.galeria-fotos .foto-wrap:hover::after { opacity: 1; }
.galeria-fotos .foto-wrap:hover::before { transform: scaleX(1); }
.galeria-fotos .foto-wrap:hover img { transform: scale(1.06); }

@media (max-width: 640px) {
  .galeria-fotos .foto-wrap:first-child { grid-column: span 1; grid-row: span 1; }
}

/* Categorias rápidas por marca */
.categorias-marca {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracota-escura);
  margin-bottom: 26px;
}

/* Contato */
.contato {
  background: var(--branco);
  border: 1px solid #E7E2D9;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
@media (max-width: 640px) {
  .contato { grid-template-columns: 1fr; padding: 36px 24px; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 110px 20px; animation: none; background-size: cover; }
  .header-inner { padding: 14px 20px; }
  nav { gap: 16px; }
  nav a { font-size: 0.66rem; letter-spacing: 1px; }
}

@media (max-width: 400px) {
  nav { gap: 12px; }
  nav a { font-size: 0.6rem; }
}
.contato h2 {
  color: var(--azul);
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 22px;
}
.info-item { margin-bottom: 20px; font-size: 1rem; }
.info-item strong {
  color: var(--terracota-escura);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.link-mapa {
  display: inline-block;
  margin-top: 10px;
  color: var(--terracota-escura);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.link-mapa:hover { border-bottom-color: var(--terracota-escura); opacity: 0.85; }
.botoes { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid var(--azul);
  color: var(--azul);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { background: var(--azul); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(35,43,58,0.18); }
.btn-whatsapp:hover { background: #25D366; border-color: #25D366; box-shadow: 0 10px 22px rgba(37,211,102,0.25); }
.btn-instagram:hover { background: #C13584; border-color: #C13584; box-shadow: 0 10px 22px rgba(193,53,132,0.25); }
.mapa { width: 100%; height: 100%; min-height: 320px; overflow: hidden; border: 1px solid #E7E2D9; }
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.3); }

/* Cards de destaque na Home */
.grid-destaque {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.card-destaque {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  height: 320px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-destaque:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(35,43,58,0.22); }
.card-destaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.card-destaque:hover img { transform: scale(1.08); }
.card-destaque::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(35,43,58,0.75) 0%, rgba(35,43,58,0) 55%);
}
.card-destaque span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}
.cta-central { text-align: center; margin-top: 30px; }
.cta-central .btn { display: inline-flex; }

/* Faixa de números (Sobre) */
.faixa-numeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0;
  text-align: center;
}
.faixa-numeros .numero {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--terracota-escura);
  display: block;
  margin-bottom: 6px;
}
.faixa-numeros .rotulo {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--azul-claro);
}
@media (max-width: 640px) {
  .faixa-numeros { grid-template-columns: 1fr; gap: 32px; }
}

/* Grid de fotos de apoio (Sobre) */
.grid-fotos-sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.grid-fotos-sobre img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .grid-fotos-sobre { grid-template-columns: 1fr; }
}

/* Teaser de diferenciais na Home */
.teaser-diferenciais {
  background: var(--creme);
}
.teaser-diferenciais .container { padding-top: 80px; padding-bottom: 80px; }

footer {
  background: var(--azul);
  color: #A9AFB8;
  padding: 64px 24px 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-nome {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--branco);
  margin-bottom: 12px;
}
.footer-marca p {
  font-size: 0.82rem;
  max-width: 320px;
  margin-bottom: 18px;
  color: #A9AFB8;
}
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--terracota);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  transition: opacity 0.25s ease;
}
.footer-instagram svg { width: 16px; height: 16px; }
.footer-instagram:hover { opacity: 0.7; }
footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--branco);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  text-decoration: none;
  color: #A9AFB8;
  font-size: 0.82rem;
  line-height: 1.5;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--terracota); }
.footer-base {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #7C8492;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Botão flutuante WhatsApp */
.whats-flutuante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.whats-flutuante:hover { transform: scale(1.08); }
.whats-flutuante svg { width: 28px; height: 28px; color: #fff; }

/* Revelação suave ao rolar a página (só ativa com JS ligado) */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.ativo {
  opacity: 1;
  transform: translateY(0);
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .hero-conteudo { animation: none; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js body {
    opacity: 1;
    transition: none;
  }
  .marca-chip, .btn, .card-destaque, .galeria-fotos .foto-wrap img, .whats-flutuante {
    transition: none;
  }
}
