/* rm beauty concept — bege, café e dourado sóbrio. Mobile-first. */
:root {
  --bege: #EFE7DC;          /* fundo */
  --bege-claro: #F8F4EE;    /* seções claras, campos */
  --cafe: #3B2F2A;          /* texto */
  --cafe-2: #4E3F38;        /* hover do botão */
  --dourado: #B08D57;       /* só detalhes: linhas, ícones, números grandes */
  --taupe: #6B5B50;         /* texto secundário (escurecido p/ AA: 5,2:1 no bege) */
  --linha: #D9CCBC;         /* divisórias decorativas */
  --borda-campo: #8C7B6E;   /* borda de campos (3,7:1) */
  --erro: #9B2C2C;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --texto: "Figtree", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bege);
  color: var(--cafe);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

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

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.pular {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--cafe); color: var(--bege-claro); padding: .6rem 1rem; text-decoration: none;
}
.pular:focus { top: 1rem; }

/* Tipografia */
h1, h2, h3, .marca { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 300; margin-bottom: 2rem; }
h3 { font-size: 1.85rem; font-weight: 500; }

/* Rótulo com fio dourado antes */
.sobrelinha {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--taupe); margin-bottom: 1rem;
}
.sobrelinha::before { content: ""; width: 2rem; height: 1px; background: var(--dourado); }

.nota { margin-top: 1.75rem; color: var(--taupe); font-size: .98rem; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.6rem;
  border: 1px solid var(--cafe); border-radius: 2px;
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.botao-cheio { background: var(--cafe); color: var(--bege-claro); }
.botao-cheio:hover { background: var(--cafe-2); border-color: var(--cafe-2); }
.botao-vazado:hover { background: var(--cafe); color: var(--bege-claro); }
.botao-pequeno { min-height: 2.5rem; padding: .5rem 1rem; font-size: .75rem; }
.botao-pequeno:hover { background: var(--cafe); color: var(--bege-claro); }
.botao-largo { width: 100%; }

/* Topo */
.topo { padding: 1rem 0; }
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topo .marca { font-size: 1.45rem; font-weight: 500; text-decoration: none; letter-spacing: .01em; }
.topo nav { display: none; }

/* Hero */
.hero { padding: .5rem 0 4rem; }
.hero .container { display: grid; gap: 1.25rem; }
.olho { order: -1; max-width: 440px; width: 100%; margin-inline: auto; }
.olho svg { width: 100%; height: auto; display: block; }
.hero h1 {
  font-size: clamp(3.4rem, 15vw, 7.2rem); font-weight: 300;
  line-height: .9; letter-spacing: -.01em;
}
.hero .intro { margin-top: 1.25rem; max-width: 36ch; font-size: 1.12rem; }
.acoes { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.acoes .botao { flex: 1 1 12rem; }
.hero-local {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linha);
  font-size: .92rem; color: var(--taupe);
}

/* Seções */
section { padding: 4rem 0; }
.claro { background: var(--bege-claro); }

/* Serviços */
.lista-servicos { border-top: 1px solid var(--linha); }
.lista-servicos li {
  display: grid; gap: .35rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--linha);
}
.lista-servicos p { max-width: 58ch; }
.lista-servicos .tempo { font-size: .9rem; color: var(--taupe); letter-spacing: .02em; }

/* Atendimento */
.atendimento-texto p:not(.sobrelinha) { max-width: 56ch; }
.bairros { margin-top: 2rem; display: grid; gap: .75rem; }
.bairros li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; background: var(--bege-claro); border: 1px solid var(--linha);
  font-family: var(--display); font-size: 1.6rem; font-weight: 500; line-height: 1.1;
}
.bairros li::before {
  content: ""; flex: none; width: .5rem; height: .5rem;
  border: 1px solid var(--dourado); transform: rotate(45deg);
}

/* Galeria */
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
.galeria figure { display: grid; gap: .5rem; }
.foto {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 2px 2px;
  background:
    repeating-linear-gradient(115deg, transparent 0 13px, rgba(176,141,87,.22) 13px 14px),
    var(--bege);
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto:focus-visible { outline-offset: 4px; }
.sem-foto .foto { cursor: default; }
.sem-foto .foto img { display: none; }
.galeria figcaption { font-size: .9rem; color: var(--taupe); text-align: center; }
.mais-instagram { margin-top: 2rem; text-align: center; }
.mais-instagram a { font-weight: 600; }

/* Cuidados: bloco café, o único escuro da página */
.cuidados { background: var(--cafe); color: var(--bege-claro); }
.cuidados .container { display: grid; gap: 1.5rem; }
.cuidados .sobrelinha { color: #D9CCBC; }
.cuidados .apoio { color: #E4D9CC; max-width: 38ch; }
.lista-cuidados { counter-reset: c; }
.lista-cuidados li {
  counter-increment: c; display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid rgba(217,204,188,.22);
}
.lista-cuidados li::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--display); font-size: 1.5rem; color: var(--dourado); line-height: 1;
}

/* Agendamento */
.agendar .container { display: grid; gap: 2rem; }
.agendar-intro p:not(.sobrelinha) { max-width: 46ch; }
.privacidade { margin-top: 1rem; font-size: .92rem; color: var(--taupe); }
.formulario {
  background: var(--bege-claro); border-top: 1px solid var(--dourado);
  padding: 1.75rem 1.25rem; display: grid; gap: 1.35rem;
}
.campo { display: grid; gap: .4rem; border: 0; min-width: 0; }
.campo > label, legend { font-weight: 500; font-size: .98rem; }
legend { margin-bottom: .4rem; }
.obrig { color: var(--erro); }
.opcional { font-weight: 400; color: var(--taupe); font-size: .9rem; }
input[type="text"], input[type="date"], select, textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px;
  font-size: 1rem; /* 16px evita zoom automático no iPhone */
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233B2F2A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
textarea { resize: vertical; min-height: 5.5rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cafe); outline-offset: 1px; }
.dica { font-size: .88rem; color: var(--taupe); }
.dica.centro { text-align: center; margin-top: -.5rem; }

.opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.opcoes-coluna { grid-template-columns: 1fr; }
.opcao { position: relative; display: block; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcao span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3rem; padding: .6rem .75rem;
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px; font-size: .98rem;
}
.opcoes-coluna .opcao span { justify-content: flex-start; text-align: left; }
.opcao input:checked + span { background: var(--cafe); border-color: var(--cafe); color: var(--bege-claro); }
.opcao input:focus-visible + span { outline: 2px solid var(--cafe); outline-offset: 2px; }

select optgroup { font-style: normal; font-weight: 600; }

/* Endereço (atendimento em domicílio) */
.endereco {
  gap: 1rem; padding: 1.1rem 1rem 1.25rem;
  border: 1px solid var(--linha); border-left: 2px solid var(--dourado); background: var(--bege);
}
.endereco legend { float: left; width: 100%; margin-bottom: 0; font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.linha-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: .75rem; }
.linha-2 .campo { align-content: end; } /* rótulos de alturas diferentes: alinha os campos por baixo */
.cidade { font-size: .92rem; color: var(--taupe); }
.ver-mapa { justify-self: start; font-weight: 600; font-size: .95rem; padding: .25rem 0; }
#aviso-bairro:not(:empty) { color: var(--cafe); background: var(--bege-claro); border-left: 2px solid var(--dourado); padding: .5rem .75rem; }

.horarios-agenda { margin-top: 1rem; }
.horarios { margin-top: 1.5rem; font-size: 1.05rem; }

.erro { color: var(--erro); font-size: .9rem; font-weight: 500; }
.erro:empty { display: none; }
[aria-invalid="true"], .invalido .opcao span { border-color: var(--erro); border-width: 2px; }
.erro-resumo {
  border-left: 3px solid var(--erro); background: #fff; padding: .9rem 1rem;
  color: var(--erro); font-weight: 500;
}

/* Rodapé */
.rodape { padding: 3.5rem 0 6rem; border-top: 1px solid var(--linha); text-align: center; color: var(--taupe); font-size: .95rem; }
.rodape .container { display: grid; gap: 1rem; justify-items: center; }
.rodape .marca { font-size: 1.8rem; color: var(--cafe); }
.links-rodape { display: grid; gap: .25rem; }
.links-rodape a { display: inline-block; padding: .5rem; color: var(--cafe); font-weight: 500; }
.copy { font-size: .85rem; }

/* Botão fixo no celular */
.cta-fixo {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 5; display: flex; align-items: center; justify-content: center; min-height: 3.25rem;
  background: var(--cafe); color: var(--bege-claro); text-decoration: none;
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; box-shadow: 0 6px 20px rgba(59,47,42,.25);
}

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  border: 0; padding: 0; background: rgba(36,28,25,.95); color: var(--bege-claro);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(36,28,25,.95); }
.lightbox figure { display: grid; gap: .75rem; justify-items: center; width: 100%; min-width: 0; padding: 4rem 1rem; }
.lightbox img { max-width: 100%; height: auto; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); width: auto; object-fit: contain; }
.lightbox figcaption { font-size: .95rem; }
.lb-botao {
  position: absolute; width: 3rem; height: 3rem; border: 1px solid rgba(248,244,238,.5); border-radius: 50%;
  background: rgba(36,28,25,.6); color: var(--bege-claro); font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.lb-botao:focus-visible { outline-color: var(--bege-claro); }
.lb-fechar { top: 1rem; right: 1rem; }
.lb-anterior, .lb-proxima { top: 50%; transform: translateY(-50%); }
.lb-anterior { left: .75rem; }
.lb-proxima { right: .75rem; }

/* O único momento de animação: os cílios sendo aplicados na entrada */
.fio { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: aplicar .9s ease-out forwards; animation-delay: var(--atraso); }
@keyframes aplicar { to { stroke-dashoffset: 0; } }

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

/* Tablet / desktop */
@media (min-width: 720px) {
  section { padding: 6rem 0; }
  .lista-servicos li { grid-template-columns: 14rem 1fr 8rem; gap: 2rem; align-items: baseline; }
  .lista-servicos .tempo { text-align: right; }
  .bairros { grid-template-columns: repeat(3, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .formulario { padding: 2.5rem; }
  .acoes .botao { flex: 0 0 auto; }
  .rodape { padding-bottom: 3.5rem; }
  .cta-fixo { display: none; }
}
@media (min-width: 960px) {
  .topo { padding: 1.5rem 0; }
  .topo nav { display: block; margin-left: auto; }
  .topo nav ul { display: flex; gap: 2rem; }
  .topo nav a { text-decoration: none; font-size: .92rem; color: var(--taupe); padding: .5rem 0; }
  .topo nav a:hover { color: var(--cafe); }
  .topo .botao-pequeno { margin-left: 1rem; }
  .hero { padding: 3rem 0 6rem; }
  .hero .container { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; }
  .olho { order: 0; max-width: none; }
  .cuidados .container { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .agendar .container { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
  .agendar-intro { position: sticky; top: 2rem; }
}
