/* ==========================================================================
   Studio Carla Carvalho — folha de estilo
   Base: clientes/Studio Carla Carvalho/identidade/design-guide.md
   Roxo profundo #733B65 · dourado #E6C66F · lilás #B69FB0 · Bodoni Moda + Jost
   ========================================================================== */

:root {
  /* Cores de marca */
  --roxo:         #733B65;
  --roxo-escuro:  #4d2745;
  --roxo-fundo:   #f6f0f4;
  --lilas:        #B69FB0;
  --dourado:      #E6C66F;
  --dourado-escuro: #a8863f;
  --amarelo:      #F5E487;
  --branco:       #ffffff;
  --creme:        #fdfaf8;

  /* Texto */
  --tinta:        #2a1f27;
  --tinta-media:  #5e4f58;
  --tinta-suave:  #8d7d87;

  /* Estrutura */
  --raio:         22px;
  --raio-sm:      14px;
  --raio-pill:    999px;
  --sombra:       0 2px 4px rgba(42, 31, 39, .04), 0 10px 30px rgba(42, 31, 39, .06);
  --sombra-alta:  0 4px 8px rgba(42, 31, 39, .05), 0 20px 50px rgba(42, 31, 39, .1);
  --borda:        1px solid #ece3e8;

  --secao-y:      clamp(4.5rem, 10vw, 8.5rem);
  --container:    1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 112.5%; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img    { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a   { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Bodoni Moda', 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  color: var(--roxo-escuro);
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); font-style: italic; font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; }
h4 { font-family: 'Jost', sans-serif; font-size: 1.14rem; font-weight: 600; letter-spacing: 0; color: var(--tinta); }

p { margin: 0 0 1.1em; color: var(--tinta-media); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--tinta); }
::selection { background: var(--lilas); color: #fff; }

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

.secao { padding-block: var(--secao-y); }
.secao--roxo-suave { background: var(--roxo-fundo); }
.secao--roxo { background: var(--roxo); }
.secao--roxo h2, .secao--roxo h3 { color: #fff; }
.secao--roxo p { color: #e9dbe4; }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
  margin-bottom: 1.4rem;
}
.secao--roxo .eyebrow { color: var(--dourado); }

.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
  line-height: 1.75;
  color: var(--tinta-media);
}

.centro { text-align: center; }
.centro .eyebrow { margin-inline: auto; }
.cabecalho-secao { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.centro.cabecalho-secao { margin-inline: auto; }

.regua { width: 46px; height: 1px; background: var(--dourado); border: 0; margin: 0 0 1.6rem; transform-origin: 0 50%; }
.centro .regua { margin-inline: auto; transform-origin: 50% 50%; }

/* --------------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--raio-pill);
  font-family: 'Jost', sans-serif;
  font-size: .88rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn--roxo { background: var(--roxo); color: #fff; box-shadow: 0 8px 20px rgba(115, 59, 101, .28); }
.btn--roxo:hover { transform: translateY(-2px); background: var(--roxo-escuro); box-shadow: 0 12px 28px rgba(115, 59, 101, .36); }
.btn--linha { background: transparent; border-color: var(--roxo); color: var(--roxo); }
.btn--linha:hover { background: var(--roxo); color: #fff; transform: translateY(-2px); }
.secao--roxo .btn--linha { border-color: #fff; color: #fff; }
.secao--roxo .btn--linha:hover { background: #fff; color: var(--roxo); }
.btn svg { width: 17px; height: 17px; flex: none; }
.grupo-btn { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.centro .grupo-btn { justify-content: center; }

/* --------------------------------------------------------- navegação */

.topo {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.topo.rolou { border-bottom-color: #ece3e8; box-shadow: 0 4px 20px rgba(42, 31, 39, .05); }
.topo__interno { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.topo__logo img { height: 58px; width: auto; }
.topo__nav { display: flex; align-items: center; gap: 2.1rem; margin-left: auto; }
.topo__nav a {
  font-size: .87rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--tinta-media); transition: color .2s ease;
}
.topo__nav a:hover { color: var(--roxo); }
.topo__cta { flex: none; }
.topo__cta .btn { padding: .78rem 1.5rem; font-size: .8rem; }

/* --------------------------------------------------------- hero */

.hero { background: var(--roxo-fundo); overflow: hidden; }
.hero__grade { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.hero__texto { padding-block: clamp(3.5rem, 8vw, 7rem); align-self: center; max-width: 560px; }
.hero__texto h1 { margin-bottom: 1.2rem; }
.hero__texto .lead { margin-bottom: 2.2rem; }
.hero__figura { position: relative; min-height: 420px; }
.hero__figura img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

/* Selos abaixo do hero */
.faixa-selos { background: var(--branco); border-bottom: var(--borda); }
.faixa-selos ul { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; list-style: none; }
.faixa-selos li { padding: 1.5rem .5rem; text-align: center; font-size: .84rem; line-height: 1.55; color: var(--tinta-media); border-bottom: var(--borda); }
.faixa-selos li:last-child { border-bottom: 0; }
.faixa-selos strong { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dourado-escuro); margin-bottom: .4rem; }

/* --------------------------------------------------------- bloco de profissional */

.bloco-pro { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--branco); border: var(--borda); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.bloco-pro + .bloco-pro { margin-top: 1.8rem; }
.bloco-pro__foto { position: relative; min-height: 320px; background: var(--roxo-fundo); }
.bloco-pro__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.bloco-pro__corpo { padding: clamp(1.8rem, 4vw, 3rem); }
.bloco-pro__corpo h3 { margin-bottom: .3rem; }
.bloco-pro__papel { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dourado-escuro); display: block; margin-bottom: 1.1rem; }

.lista-proc { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.lista-proc li { padding: .9rem 0; border-top: var(--borda); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.lista-proc li:last-child { border-bottom: var(--borda); }
.lista-proc .nome { font-size: .96rem; font-weight: 500; color: var(--tinta); }
.lista-proc .detalhe { font-size: .82rem; color: var(--tinta-suave); }
.lista-proc .preco { font-size: .96rem; font-weight: 600; color: var(--roxo); white-space: nowrap; }

/* --------------------------------------------------------- cards de pessoa (quem somos) */

.grade-pessoas { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }

.card-pessoa { background: var(--branco); border: var(--borda); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); transition: transform .3s ease, box-shadow .3s ease; }
.card-pessoa:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.card-pessoa__foto { aspect-ratio: 4 / 5; background: var(--roxo-fundo); }
.card-pessoa__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.card-pessoa__corpo { padding: clamp(1.5rem, 3vw, 2rem); }
.card-pessoa__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-pessoa__meta span {
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--roxo); background: var(--roxo-fundo); border: 1px solid #e6d7e1;
  border-radius: var(--raio-pill); padding: .3rem .75rem;
}
.card-pessoa__tags { list-style: none; margin: 1.2rem 0 0; padding: 1.2rem 0 0; border-top: var(--borda); display: flex; flex-wrap: wrap; gap: .5rem; }
.card-pessoa__tags li { font-size: .8rem; color: var(--tinta-media); background: var(--creme); border: 1px solid #f0e6ea; border-radius: var(--raio-pill); padding: .35rem .85rem; }

/* --------------------------------------------------------- citação / história */

.citacao { border-left: 2px solid var(--dourado); padding-left: clamp(1.2rem, 3vw, 2.2rem); margin: 0; }
.citacao p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 400; line-height: 1.6; letter-spacing: -.01em; color: var(--tinta); font-family: 'Bodoni Moda', serif; font-style: italic; }
.citacao footer { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dourado-escuro); margin-top: 1.2rem; font-family: 'Jost', sans-serif; }

.historia-grade { display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: center; }
.historia-grade figure { border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.historia-grade img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* --------------------------------------------------------- galeria */

.galeria { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
.galeria--2 { max-width: 760px; margin-inline: auto; }
.galeria figure { margin: 0; overflow: hidden; border-radius: var(--raio-sm); aspect-ratio: 3 / 4; background: var(--roxo-fundo); position: relative; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s ease; }
.galeria figure:hover img { filter: brightness(1.05) saturate(1.05); }
.galeria figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem .9rem .7rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: #fff;
  background: linear-gradient(0deg, rgba(42,31,39,.72), rgba(42,31,39,0));
}

/* --------------------------------------------------------- FAQ */

.faq { border-top: var(--borda); }
.faq details { border-bottom: var(--borda); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 2.5rem 1.5rem 0; position: relative;
  font-size: 1rem; font-weight: 500; color: var(--tinta); transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--roxo); }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%;
  width: 10px; height: 10px; border-right: 1.5px solid var(--dourado-escuro); border-bottom: 1.5px solid var(--dourado-escuro);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .resposta { padding: 0 2.5rem 1.7rem 0; }
.faq .resposta p { font-size: .95rem; }

/* --------------------------------------------------------- contato / rodapé */

.contato-grade { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }

.mapa { margin-top: 3rem; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); border: var(--borda); }
.mapa iframe { display: block; width: 100%; height: 340px; border: 0; }
.dado { padding-block: 1.15rem; border-bottom: var(--borda); }
.dado:first-child { border-top: var(--borda); }
.dado dt { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dourado-escuro); margin-bottom: .35rem; }
.dado dd { margin: 0; font-size: .97rem; color: var(--tinta-media); }
.dado dd a { text-decoration: none; border-bottom: 1px solid #e6d7e1; }
.dado dd a:hover { border-bottom-color: var(--roxo); }

.rodape { background: var(--roxo); color: #ecdfe7; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.rodape__topo { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.rodape__logo img { height: 64px; width: auto; margin-bottom: 1.4rem; }
.rodape__logo p { color: #d9c3d1; font-size: .9rem; max-width: 34ch; }
.rodape h4 { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dourado); margin-bottom: 1rem; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rodape ul li { font-size: .92rem; line-height: 1.55; color: #d9c3d1; }
.rodape ul a { font-size: inherit; color: inherit; text-decoration: none; }
.rodape ul a:hover { color: #fff; }
.rodape__base { padding-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .78rem; color: #c9adc0; }

/* --------------------------------------------------------- WhatsApp flutuante */

.wa-flutua {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.3rem; border-radius: var(--raio-pill);
  background: #25d366; color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-decoration: none;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-flutua:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 211, 102, .45); }
.wa-flutua svg { width: 20px; height: 20px; flex: none; }
.wa-flutua span { display: none; }

/* ==========================================================================
   Movimento ao rolar — camada base (funciona em qualquer navegador) +
   realce ligado ao scroll onde o navegador suporta. Desliga em
   prefers-reduced-motion.
   ========================================================================== */

.revelar { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.revelar.visivel { opacity: 1; transform: none; }
.escalonar > * { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
.escalonar.visivel > * { opacity: 1; transform: none; }
.escalonar.visivel > *:nth-child(1) { transition-delay: 0s; }
.escalonar.visivel > *:nth-child(2) { transition-delay: .085s; }
.escalonar.visivel > *:nth-child(3) { transition-delay: .17s; }
.escalonar.visivel > *:nth-child(4) { transition-delay: .255s; }
.escalonar.visivel > *:nth-child(5) { transition-delay: .34s; }
.escalonar.visivel > *:nth-child(6) { transition-delay: .425s; }

.progresso { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--dourado); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .progresso { animation: desenhar-x linear; animation-timeline: scroll(root block); }
  }
  @supports (animation-timeline: view()) {
    .regua { animation: desenhar-x linear both; animation-timeline: view(); animation-range: entry 15% cover 18%; }
    .galeria img { animation: aproximar linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes desenhar-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aproximar { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar, .escalonar > * { opacity: 1; transform: none; transition: none; }
  .regua { transform: none; }
  .progresso { display: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------- responsivo */

@media (max-width: 899px) {
  .topo__interno { flex-wrap: wrap; gap: .5rem 1rem; padding-bottom: .55rem; }
  .topo__logo img { height: 46px; }
  .topo__nav { order: 3; width: 100%; margin-left: 0; justify-content: center; flex-wrap: wrap; gap: .4rem 1.25rem; padding-top: .6rem; border-top: var(--borda); }
  .topo__nav a { font-size: .76rem; letter-spacing: .06em; }
  .topo__cta { margin-left: auto; }
  .topo__cta .btn { padding: .68rem 1.2rem; font-size: .74rem; letter-spacing: .06em; }
}

@media (min-width: 640px) {
  .faixa-selos ul { grid-template-columns: repeat(2, 1fr); }
  .faixa-selos li { border-right: var(--borda); }
  .faixa-selos li:nth-child(2n) { border-right: 0; }
  .faixa-selos li:nth-last-child(-n+2) { border-bottom: 0; }
  .grade-pessoas { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .wa-flutua span { display: inline; }
}

@media (min-width: 900px) {
  .hero__grade { width: 100%; max-width: none; margin-inline: 0; padding-left: max(1.25rem, calc((100% - var(--container)) / 2)); grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .hero__figura { min-height: 620px; }
  .faixa-selos ul { grid-template-columns: repeat(4, 1fr); }
  .faixa-selos li { border-bottom: 0; }
  .faixa-selos li:nth-child(2n) { border-right: var(--borda); }
  .faixa-selos li:last-child { border-right: 0; }
  .bloco-pro { grid-template-columns: .8fr 1.2fr; }
  .bloco-pro--invertido { grid-template-columns: 1.2fr .8fr; }
  .bloco-pro--invertido .bloco-pro__foto { order: 2; }
  .historia-grade { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .historia-grade--invertida .historia-grade__texto { order: 2; }
  .contato-grade { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .rodape__topo { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
  .wa-flutua { right: 1.8rem; bottom: 1.8rem; }
}

@media (min-width: 1100px) {
  .galeria { grid-template-columns: repeat(4, 1fr); }
}

/* Galeria com só 2 fotos (ex: "O studio") — nunca abre pra 3/4 colunas,
   senão sobra buraco vazio no layout */
@media (min-width: 640px) {
  .galeria--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .galeria--2 { grid-template-columns: repeat(2, 1fr); }
}
