/* Jhulia Ribeiro Beauty Studio — segue o Manual da Marca v1.0 */
:root {
  --creme: #F6F0EA;
  --nevoa: #E7DFD8;
  --rosa: #B47C74;
  --rosa-prof: #8C5450;
  --cinza: #8F8781;
  --grafite: #2F2A2B;
  --muted: #6B6360;
  --line: #D9CFC7;
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  /* Moldura em arco do manual: proporção 1 : 1,35, curva sempre no topo */
  --arch: 1 / 1.35;
  --arch-radius: 999px 999px 0 0;
  --section-y: clamp(64px, 8vw, 104px);
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--grafite);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--rosa-prof); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--grafite); color: var(--creme); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.label { font-weight: 400; font-size: 11px; line-height: 1.4; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Botões: cantos retos, sem sombra; rosa profundo só na ação principal */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-body); font-weight: 400; font-size: 12px; line-height: 1.3; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  touch-action: manipulation;
}
.btn-primary { background: var(--rosa-prof); color: var(--creme); }
.btn-primary:hover { background: #774441; }
.btn-outline-dark { border-color: var(--grafite); color: var(--grafite); }
.btn-outline-dark:hover { background: var(--grafite); color: var(--creme); }
.btn-outline { border-color: var(--rosa-prof); color: var(--rosa-prof); }
.btn-outline:hover { background: var(--rosa-prof); color: var(--creme); }
.btn-light { background: var(--creme); color: var(--grafite); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 240, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: block; }
.logo img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; padding-block: 12px; transition: color .2s ease; }
.nav a:not(.btn):hover { color: var(--rosa-prof); }

/* Topo */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.8vw, 56px); line-height: 1.06; letter-spacing: -.005em; margin: 18px 0 22px; }
.br-wide { display: none; }
.nowrap { white-space: nowrap; }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-photo { margin: 0; justify-self: end; width: min(360px, 100%); }
.hero-photo img, .gallery img { border-radius: var(--arch-radius); aspect-ratio: var(--arch); object-fit: cover; width: 100%; height: auto; background: var(--nevoa); }

/* Seções */
.section { padding-block: var(--section-y); }
.section-mist { background: var(--nevoa); }
/* O topo e o catálogo dividem o mesmo fundo: um fio fino separa os dois sem abrir um vão */
.hero + .section { padding-top: 0; }
.hero + .section > .wrap { position: relative; padding-top: var(--section-y); }
.hero + .section > .wrap::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--line);
  left: var(--gutter); right: max(20px, env(safe-area-inset-right, 0px));
}
.section-head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(34px, 4.2vw, 46px); margin: 14px 0 16px; }
.section-head p:not(.label) { color: var(--muted); max-width: 58ch; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 20px;
  font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  background: transparent; color: var(--grafite); border: 1px solid var(--line); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  touch-action: manipulation;
}
.filter:hover { border-color: var(--grafite); }
.filter span { color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.filter.is-active { background: var(--grafite); border-color: var(--grafite); color: var(--creme); }
.filter.is-active span { color: var(--creme); opacity: .7; }

/* Cards do catálogo */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--nevoa); padding: 14px 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.card[hidden] { display: none; }
.card-media { position: relative; overflow: hidden; aspect-ratio: var(--arch); border-radius: var(--arch-radius); background: var(--creme); margin-bottom: 16px; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .card:hover .card-media img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
}
.card-photo--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--creme); }
.card-photo--empty img { width: 44px; height: auto; }
.card-photo--empty span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.card .label { padding-inline: 2px; }
.card-title { font-weight: 400; font-size: 25px; line-height: 1.12; margin: 6px 0 8px; padding-inline: 2px; }
.card-summary { font-size: 15px; line-height: 1.55; color: var(--muted); padding-inline: 2px; }
/* "Como é feito" e o botão ficam presos à base: cards vizinhos alinham mesmo com resumos de tamanhos diferentes */
.card-more { margin-top: auto; padding-top: 14px; font-size: 14px; }
.card-more summary {
  min-height: var(--tap); display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-top: 1px solid var(--line); padding-inline: 2px;
  cursor: pointer; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; list-style: none;
}
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--rosa-prof); }
.card-more[open] summary::after { content: "−"; }
.card-more p { margin-top: 8px; line-height: 1.6; padding-inline: 2px; }
.card-more p + p { margin-top: 10px; }
.card-more[open] p:last-child { margin-bottom: 6px; }
.card-more strong { font-weight: 500; }
.card-cta { margin-top: 8px; min-height: var(--tap); padding: 6px 10px; font-size: 11px; letter-spacing: .2em; }

/* Como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.steps li { border-top: 1px solid var(--cinza); padding-top: 22px; }
.step-n { display: block; font-family: var(--f-display); font-size: 40px; line-height: 1; color: var(--rosa); }
.steps h3 { font-size: 25px; font-weight: 400; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 36ch; }

/* Estúdio */
.studio { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.studio-text h2 { font-size: clamp(34px, 4.2vw, 46px); margin: 14px 0 20px; }
.studio-text p:not(.label) { color: var(--muted); max-width: 50ch; }
.signature { width: 220px; height: auto; margin-top: 32px; }
/* O arco central fica mais alto: o desnível vira um gesto intencional, com as duas laterais alinhadas */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; padding-top: 36px; }
.gallery img:nth-child(2) { transform: translateY(-36px); }

/* Faixa final */
.cta-band { background: var(--rosa); color: var(--creme); padding-block: clamp(56px, 7vw, 80px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(32px, 4.2vw, 46px); }

/* Rodapé */
.site-footer { background: var(--grafite); color: var(--creme); padding-block: 56px 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px 48px; align-items: center; }
.footer-inner > img { width: 160px; height: auto; }
.footer-links { display: flex; flex-direction: column; gap: 2px; font-size: 14px; justify-self: end; text-align: right; }
.footer-links a, .footer-links span { padding-block: 6px; }
.footer-links a { text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--rosa); }
.copy { grid-column: 1 / -1; font-size: 12px; opacity: .6; border-top: 1px solid rgba(246, 240, 234, .15); padding-top: 20px; }

/* Barra fixa do WhatsApp no celular */
.wa-bar { display: none; }

@media (min-width: 1024px) {
  .br-wide { display: inline; }
}
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .card-cta { letter-spacing: .12em; }
  .card-more summary { letter-spacing: .16em; }
}
@media (min-width: 700px) and (max-width: 860px) {
  .actions .btn { padding: 0 20px; letter-spacing: .18em; }
}
@media (max-width: 899px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card-title { font-size: 24px; }
}
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .studio { grid-template-columns: 1fr; }
  .gallery { max-width: 620px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; text-align: left; }
}
@media (max-width: 699px) {
  :root { --section-y: 56px; }
  .logo img { width: 176px; }
  .nav .btn { display: none; }
  .hero { padding-block: 32px 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(36px, 10vw, 44px); margin: 14px 0 18px; }
  .lead { font-size: 16px; }
  .actions { margin-top: 28px; }
  .hero-photo { justify-self: start; width: min(300px, 78%); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-top: 18px; }
  .filters { gap: 6px; }
  .filter { padding: 0 14px; letter-spacing: .14em; font-size: 11px; }
  .cards { gap: 12px; }
  .card { padding: 10px 10px 12px; }
  .card-media { margin-bottom: 12px; }
  .card-title { font-size: 21px; margin: 4px 0 6px; }
  .card-summary { font-size: 14px; line-height: 1.5; }
  .card-more { padding-top: 10px; font-size: 14px; }
  .card-more summary { font-size: 10.5px; letter-spacing: .14em; }
  .card-cta { font-size: 10.5px; letter-spacing: .1em; padding: 6px 6px; line-height: 1.35; }
  .gallery { gap: 10px; padding-top: 24px; }
  .gallery img:nth-child(2) { transform: translateY(-24px); }
  .cta-inner .btn { width: 100%; }
  /* Reserva espaço para a barra fixa não cobrir o fim do rodapé */
  .site-footer { padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom, 0px)); }
  .wa-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    justify-content: center; align-items: center; min-height: 56px;
    background: var(--rosa-prof); color: var(--creme); text-decoration: none;
    font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400;
    padding: 0 max(20px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px);
    touch-action: manipulation;
  }
}
@media (max-width: 340px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .filter, .card-media img { transition: none; }
  .card:hover .card-media img { transform: scale(var(--zoom, 1)); }
}
