/* ===== Cores (troque aqui para mudar a identidade do site) ===== */
:root {
  --fundo: #0f0f0e;
  --fundo-2: #181816;
  --texto: #ece8e1;
  --texto-suave: #a39e94;
  --destaque: #c9a96e;
  --linha: rgba(236, 232, 225, .12);
  --serifa: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
:root[data-theme="light"] {
  --fundo: #f7f4ef;
  --fundo-2: #ede8e0;
  --texto: #1d1b18;
  --texto-suave: #6b665d;
  --destaque: #9a7642;
  --linha: rgba(29, 27, 24, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--destaque); }

h1, h2, h3 { font-family: var(--serifa); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
.sobretitulo {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--destaque); margin-bottom: 1rem; font-weight: 500;
}

/* ===== Botões ===== */
.btn {
  display: inline-block; padding: .95rem 2rem; border: 1px solid var(--destaque);
  background: var(--destaque); color: #111; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 500; cursor: pointer; font-family: var(--sans);
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--destaque); }
.btn-contorno { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-contorno:hover { background: #fff; color: #111; border-color: #fff; }

/* ===== Topo ===== */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 1.4rem 4vw; color: #fff;
  transition: background .4s, padding .4s, color .4s;
}
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .4s;
  background: color-mix(in srgb, var(--fundo) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha);
}
.topo.rolado { padding: .9rem 4vw; color: var(--texto); }
.topo.rolado::before { opacity: 1; }
.marca { font-family: var(--serifa); font-size: 1.6rem; line-height: 1; display: flex; flex-direction: column; }
.marca span { font-family: var(--sans); font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; opacity: .7; margin-top: .3rem; }
.menu { display: flex; gap: 2.5rem; }
.menu a { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--destaque); transition: width .3s; }
.menu a:hover::after { width: 100%; }
.acoes-topo { display: flex; align-items: center; gap: .8rem; }
.btn-tema, .btn-menu { background: none; border: 0; color: inherit; cursor: pointer; padding: .4rem; }
.btn-menu { display: none; width: 34px; height: 34px; position: relative; }
.btn-menu span { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .3s, top .3s; }
.btn-menu span:first-child { top: 13px; }
.btn-menu span:last-child { top: 20px; }
.btn-menu[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.btn-menu[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

/* ===== Capa ===== */
.hero { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-slides, .hero-slides div { position: absolute; inset: 0; }
.hero-slides div { background-size: cover; background-position: center 22%; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s ease; }
.hero-slides div.ativo { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.6)); }
.hero-texto { position: relative; z-index: 2; padding: 0 16px; }
.hero .sobretitulo { color: #e6cf9f; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); margin-bottom: 1.2rem; }
.hero h1 em { color: #e6cf9f; }
.hero-sub { letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; opacity: .85; margin-bottom: 2.5rem; }
.hero-botoes { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.rolar { position: absolute; bottom: 2rem; left: 50%; z-index: 2; width: 1px; height: 60px; background: rgba(255,255,255,.4); overflow: hidden; }
.rolar::after { content: ""; position: absolute; left: 0; top: -60px; width: 1px; height: 60px; background: #fff; animation: rolar 2s infinite; }
@keyframes rolar { to { top: 60px; } }

/* ===== Seções ===== */
.secao { padding: clamp(5rem, 10vw, 8rem) 4vw; max-width: 1400px; margin: 0 auto; }
.cabecalho-secao { text-align: center; margin-bottom: 3rem; }

/* ===== Portfólio ===== */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-bottom: 3rem; }
.filtros button {
  background: none; border: 0; color: var(--texto-suave); font-family: var(--sans);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.filtros button:hover, .filtros button.ativo { color: var(--texto); border-color: var(--destaque); }
.galeria { columns: 3 320px; column-gap: 14px; }
.foto { break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden; cursor: zoom-in; background: var(--fundo-2); }
.foto img { width: 100%; height: auto; transition: transform .8s ease, filter .5s; }
.foto:hover img { transform: scale(1.04); filter: brightness(.75); }
.foto figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; color: #fff; font-family: var(--serifa);
  font-size: 1.3rem; opacity: 0; transform: translateY(10px); transition: .4s;
}
.foto figcaption small { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; opacity: .8; }
.foto:hover figcaption { opacity: 1; transform: none; }
.foto.oculta { display: none; }

/* ===== Sobre ===== */
.sobre { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.sobre-foto { position: relative; }
.sobre-foto::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--destaque); z-index: -1; }
.sobre-foto img { width: 100%; height: auto; aspect-ratio: 7/9; object-fit: cover; object-position: center 25%; }
.sobre-texto h2 { margin-bottom: 1.5rem; }
.sobre-texto p { color: var(--texto-suave); margin-bottom: 1rem; max-width: 34rem; }
.numeros { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.numeros strong { display: block; font-family: var(--serifa); font-size: 2.6rem; font-weight: 400; color: var(--destaque); line-height: 1; }
.numeros span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--texto-suave); }

/* ===== Serviços ===== */
.servicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--linha); border: 1px solid var(--linha); }
.servico { background: var(--fundo); padding: 3rem 2.2rem; transition: background .4s; }
.servico:hover { background: var(--fundo-2); }
.servico .num { font-family: var(--serifa); font-size: 1rem; color: var(--destaque); }
.servico h3 { margin: 1rem 0; }
.servico p { color: var(--texto-suave); }
.servico .preco { display: inline-block; margin-top: 1.5rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--destaque); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .3s; }
.servico .preco:hover { border-color: var(--destaque); }

/* ===== Depoimentos ===== */
.depoimentos { background: var(--fundo-2); max-width: none; }
.lista-depoimentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
blockquote p { font-family: var(--serifa); font-size: 1.45rem; font-style: italic; line-height: 1.4; margin-bottom: 1.2rem; }
blockquote cite { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--destaque); }

/* ===== Contato ===== */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.contato-texto h2 { margin-bottom: 1.2rem; }
.contato-texto > p { color: var(--texto-suave); margin-bottom: 2rem; }
.contato-lista { list-style: none; }
.contato-lista li { padding: .9rem 0; border-bottom: 1px solid var(--linha); }
.contato-lista a:hover { color: var(--destaque); }
.formulario { display: grid; gap: 1.4rem; }
.formulario label { display: grid; gap: .4rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); }
.formulario input, .formulario select, .formulario textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--linha); color: var(--texto);
  font: 300 1rem var(--sans); padding: .6rem 0; outline: none; transition: border-color .3s; color-scheme: dark;
}
:root[data-theme="light"] .formulario :is(input, select, textarea) { color-scheme: light; }
.formulario select option { background: var(--fundo); }
.formulario :is(input, select, textarea):focus { border-color: var(--destaque); }
.formulario textarea { resize: vertical; }
.formulario .btn { justify-self: start; }

/* ===== Rodapé ===== */
.rodape { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem 4vw; border-top: 1px solid var(--linha); font-size: .78rem; color: var(--texto-suave); }
.rodape a:hover { color: var(--destaque); }

.whats-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .3s;
}
.whats-flutuante:hover { transform: scale(1.08); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.aberto { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: #ccc; font-family: var(--serifa); font-size: 1.2rem; margin-top: .8rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; padding: 1rem; opacity: .7; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-fechar { top: .5rem; right: 1rem; }
.lb-ant { left: .5rem; }
.lb-prox { right: .5rem; }

/* ===== Animação ao rolar ===== */
.revelar { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.revelar.visivel { opacity: 1; transform: none; }

/* ===== Celular ===== */
@media (max-width: 860px) {
  .btn-menu { display: block; }
  .menu {
    position: fixed; inset: 0; background: var(--fundo); color: var(--texto); flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: -1;
  }
  .menu a { font-size: 1rem; }
  .menu.aberto { opacity: 1; pointer-events: auto; }
  .topo:has(.menu.aberto) { color: var(--texto); }
  .sobre, .contato { grid-template-columns: 1fr; }
  .sobre-foto { max-width: 420px; margin-right: 1.5rem; }
  .topo, .topo.rolado, .secao, .rodape { padding-left: 16px; padding-right: 16px; }
  .lb-nav { top: auto; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
