/* ===== Tokens ===== */
:root {
    --preto: #070707;
    --carvao: #1d1a15;          /* tom quente escuro que alterna com o preto */
    --grafite: #12100d;
    --ouro: #c9a24a;
    --ouro-claro: #ebd496;
    --creme: #f4ecd8;           /* texto: legível sobre preto e carvão */
    --creme-forte: #fffaf0;     /* títulos */

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
    --raio: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--creme);
    background: var(--preto);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ===== Tipografia ===== */
h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .01em; color: var(--creme-forte); }
h3 { font-size: 1.6rem; color: var(--ouro-claro); }
p { margin: 0 0 1rem; max-width: 62ch; }

/* ===== Seções ===== */
.secao { padding: clamp(4rem, 9vw, 7rem) 0; }
.escuro { background: var(--preto); }
.carvao { background: var(--carvao); }
.intro { font-size: 1.15rem; margin-bottom: 2.5rem; }
.chamada { margin-top: 2.5rem; }
.chamada a, .link-mapa { color: var(--ouro-claro); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.chamada a:hover, .link-mapa:hover { color: var(--ouro); }

/* ===== Botões ===== */
.btn {
    display: inline-block;
    padding: .95rem 2rem;
    font: 500 .95rem/1 var(--sans);
    letter-spacing: .06em;
    text-decoration: none;
    border: 1px solid var(--ouro);
    border-radius: var(--raio);
    cursor: pointer;
    transition: background .25s, color .25s;
}
.btn-ouro { background: var(--ouro); color: var(--preto); }
.btn-ouro:hover { background: var(--ouro-claro); }
.btn-borda { background: transparent; color: var(--ouro-claro); }
.btn-borda:hover { background: var(--ouro); color: var(--preto); }

/* ===== Topo ===== */
.topo {
    position: sticky; top: 0; z-index: 50;
    background: var(--preto);
    border-bottom: 1px solid var(--ouro);
}
.barra { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.marca img { height: 84px; width: auto; }
nav ul { display: flex; gap: 2.2rem; }
nav a { text-decoration: none; font-weight: 400; letter-spacing: .04em; color: var(--creme); padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
nav a:hover, nav a.ativo { color: var(--ouro-claro); border-bottom-color: var(--ouro); }

.menu { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--ouro); border-radius: var(--raio); cursor: pointer; position: relative; }
.menu span, .menu span::before, .menu span::after {
    content: ""; position: absolute; left: 50%; width: 22px; height: 1.5px; background: var(--ouro-claro);
    transform: translateX(-50%); transition: transform .25s;
}
.menu span { top: 50%; }
.menu span::before { top: -7px; left: 0; transform: none; }
.menu span::after { top: 7px; left: 0; transform: none; }
.menu[aria-expanded="true"] span { background: transparent; }
.menu[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero: foto das profissionais atrás do "IDAZ" ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--preto);
    text-align: center;
    min-height: clamp(640px, 92svh, 880px);
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 clamp(3.5rem, 8vw, 6rem);
    border-bottom: 1px solid var(--ouro);
}
.hero-foto { position: absolute; inset: 0; display: flex; justify-content: center; }
.hero-foto img {
    height: 100%; width: auto; max-width: none;
    filter: brightness(.75) saturate(.9);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%, #000 68%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 32%, #000 68%, transparent 100%);
    animation: foto-entra 2.4s ease-out both;
}
.hero-foto::after {   /* escurece a parte de baixo para o texto ficar legível */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,7,7,.2) 0, rgba(7,7,7,.35) 45%, var(--preto) 100%);
}
.hero-conteudo { position: relative; z-index: 1; }
.hero h1 {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(5rem, 22vw, 13rem);
    line-height: 1;
    letter-spacing: .06em;
    color: var(--ouro-claro);
    text-shadow: 0 4px 40px rgba(0, 0, 0, .7);
}
.hero h1 span { display: inline-flex; align-items: flex-end; }
.hero h1 i { font-style: normal; }
.hero h1 svg { width: .78em; height: .72em; margin: 0 .04em .03em; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linejoin: miter; }
.hero h1 path { stroke-dasharray: 172; }
.hero-sub { margin: 1.5rem auto 1.2rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.95rem); color: var(--creme-forte); }
.hero-texto { margin: 0 auto 2.2rem; max-width: 52ch; color: var(--creme-forte); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Entrada do início: uma sequência só (letras, triângulo se desenhando, texto) */
.hero .l { animation: sobe .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .l:nth-of-type(1) { animation-delay: .2s; }
.hero .l:nth-of-type(2) { animation-delay: .35s; }
.hero .l:nth-of-type(3) { animation-delay: 1.3s; }
.hero h1 path { animation: desenha 1.5s .5s ease-in-out both; }
.hero .e { animation: sobe .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .hero-sub { animation-delay: 1.5s; }
.hero .hero-texto { animation-delay: 1.7s; }
.hero .acoes { animation-delay: 1.9s; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes desenha { from { stroke-dashoffset: 172; } to { stroke-dashoffset: 0; } }
@keyframes foto-entra { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ===== Sobre ===== */
.sobre { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.foto { position: relative; }
.foto::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--ouro); z-index: 0; transition: inset .9s .3s ease; }
.foto img { position: relative; z-index: 1; width: 100%; }

/* ===== Serviços ===== */
.grade-servicos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.servico { padding: 2rem; border: 1px solid rgba(201, 162, 74, .5); border-top: 3px solid var(--ouro); background: var(--grafite); }
.servico li { position: relative; padding-left: 1.4rem; margin-bottom: .4rem; }
.servico li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 1px; background: var(--ouro); }
.duas-colunas { columns: 2; column-gap: 1.5rem; }
.duas-colunas li { break-inside: avoid; }

/* ===== Galeria ===== */
.galeria { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.galeria .item { grid-column: span 2; padding: 0; border: 0; background: var(--preto); cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.galeria .item:nth-child(4) { grid-column: 2 / span 2; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.galeria .item:hover img { transform: scale(1.05); }

dialog { border: 1px solid var(--ouro); background: var(--preto); padding: 0; max-width: min(92vw, 560px); max-height: 92vh; }
dialog::backdrop { background: rgba(0, 0, 0, .9); }
dialog[open] { animation: sobe .35s ease both; }
dialog img { max-height: 92vh; width: auto; margin: auto; }
.fechar { position: absolute; top: .4rem; right: .6rem; font-size: 2rem; line-height: 1; color: var(--creme-forte); background: rgba(0, 0, 0, .6); border: 0; width: 2.4rem; height: 2.4rem; cursor: pointer; }

/* ===== Avaliações ===== */
.carrossel { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.faixa { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem 0; }
.faixa::-webkit-scrollbar { display: none; }
.avaliacao { flex: 0 0 min(420px, 100%); scroll-snap-align: start; margin: 0; padding: 2rem; background: var(--grafite); border: 1px solid rgba(201, 162, 74, .5); display: flex; flex-direction: column; }
.estrelas { color: var(--ouro); letter-spacing: .2em; margin-bottom: 1rem; }
.avaliacao blockquote { margin: 0 0 1.5rem; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.45; color: var(--creme-forte); flex: 1; }
.avaliacao figcaption { color: var(--ouro-claro); font-weight: 500; }
.avaliacao figcaption::after { content: "Avaliação no Google"; display: block; font-size: .85rem; font-weight: 400; color: var(--creme); opacity: .75; }
.seta { width: 46px; height: 46px; border-radius: 50%; background: transparent; color: var(--ouro-claro); border: 1px solid var(--ouro); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.seta:hover { background: var(--ouro); color: var(--preto); }

/* ===== Contato ===== */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.dados { margin: 2rem 0; }
.dados dt { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ouro-claro); }
.dados dd { margin: 0 0 1.2rem; }
.dados a { text-decoration-color: var(--ouro); text-underline-offset: 4px; }
.mapa { aspect-ratio: 16 / 10; border: 1px solid var(--ouro); margin-bottom: .8rem; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: var(--preto); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 3px solid var(--ouro); }
.campo { margin-bottom: 1.3rem; }
.campo label { display: block; margin-bottom: .4rem; color: var(--ouro-claro); font-weight: 500; }
.campo input, .campo select, .campo textarea {
    width: 100%; font: inherit; color: var(--creme-forte);
    background: var(--carvao); border: 1px solid rgba(201, 162, 74, .6);
    border-radius: var(--raio); padding: .8rem 1rem;
}
.campo option { background: var(--grafite); color: var(--creme-forte); }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ouro) 50%), linear-gradient(135deg, var(--ouro) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--ouro-claro); box-shadow: 0 0 0 2px rgba(201, 162, 74, .4); }
.campo .invalido { border-color: #ef9a9a; }
.erro { color: #f5b5b5; margin-bottom: 1rem; }
.aviso { font-size: .9rem; margin: 1rem 0 0; opacity: .8; }
.form .btn { width: 100%; }

/* ===== Rodapé ===== */
.rodape { background: var(--preto); border-top: 1px solid var(--ouro); text-align: center; padding: 2.5rem 0 5rem; }
.rodape img { margin: 0 auto 1rem; width: 110px; height: auto; }
.rodape ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 1rem; }
.rodape a { text-decoration: none; color: var(--creme); border-bottom: 1px solid var(--ouro); transition: color .2s; }
.rodape a:hover { color: var(--ouro-claro); }
.rodape p { margin: 0 auto; font-size: .9rem; opacity: .8; }

.flutuante { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; background: var(--ouro); color: var(--preto); text-decoration: none; font-weight: 500; padding: .8rem 1.3rem; border-radius: 999px; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.flutuante:hover { background: var(--ouro-claro); }

/* ===== Revelar ao rolar (só com JS ativo) ===== */
.js .revela { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.js .revela.visivel { opacity: 1; transform: none; }
/* fotos: abrem da esquerda para a direita (o recorte fica na imagem, não no elemento observado) */
.js .revela-foto > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .25, 1); transition-delay: var(--d, 0s); }
.js .revela-foto.visivel > img { clip-path: inset(0 0 0 0); }
.js .foto.revela-foto::after { inset: 0; }
.js .foto.revela-foto.visivel::after { inset: 18px -18px -18px 18px; }

/* ===== Responsivo ===== */
@media (max-width: 860px) {
    .menu { display: block; }
    nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--preto); border-bottom: 1px solid var(--ouro); display: none; }
    nav.aberto { display: block; }
    nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
    nav a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(201, 162, 74, .3); }

    .sobre, .contato { grid-template-columns: 1fr; }
    .foto { max-width: 360px; margin-right: 18px; }
    .grade-servicos { grid-template-columns: 1fr; }
    .galeria { grid-template-columns: repeat(2, 1fr); }
    .galeria .item, .galeria .item:nth-child(4) { grid-column: span 1; }
    .galeria .item:last-child { grid-column: 1 / -1; width: calc(50% - .5rem); justify-self: center; }
    .carrossel { grid-template-columns: 1fr; }
    .seta { display: none; }
}
@media (max-width: 480px) {
    .duas-colunas { columns: 1; }
    .servico, .avaliacao { padding: 1.5rem; }
}

/* Sem movimento para quem prefere assim */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .revela, .js .revela-foto > img { opacity: 1; transform: none; clip-path: none; }
    .js .foto.revela-foto::after { inset: 18px -18px -18px 18px; }
}