/* ==========================================================================
   Studio Luana Mahler | Cabelo & Maquiagem
   Paleta: preto quente, marfim, nude e dourado. Mobile-first.
   ========================================================================== */

:root {
  --ink: #14100d;
  --ink-soft: #241c16;
  --ivory: #faf6ef;
  --nude: #ecdbcd;
  --nude-deep: #d9bea9;
  --gold: #d8b96a;
  --gold-hover: #e6cb85;
  --gold-deep: #735619;
  --text: #2a211b;
  --muted: #6a5c52;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1.1rem; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section:not(.section--ink) :focus-visible { outline-color: var(--gold-deep); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.8rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); }

.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-soft); }

.btn--line { border-color: rgba(250, 246, 239, 0.45); color: var(--ivory); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }

.btn--small { min-height: 2.5rem; padding: 0.5rem 1.2rem; font-size: 0.95rem; }
.btn--large { min-height: 3.4rem; padding: 1rem 2.2rem; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Cabeçalho e menu
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--ink);
  color: var(--ivory);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.js .site-header:not(.is-scrolled):not(.is-open) { background: transparent; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(216, 185, 106, 0.25); }

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.brand__tag { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, background-color 0.3s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { width: 100%; padding-bottom: 1rem; }
.site-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav a:not(.btn) {
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  color: rgba(250, 246, 239, 0.88);
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--gold); }
.site-nav .btn { margin-top: 0.5rem; }

/* Com JavaScript, o menu vira um painel no celular. */
@media (max-width: 899px) {
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--ink);
    border-top: 1px solid rgba(216, 185, 106, 0.25);
    border-bottom: 1px solid rgba(216, 185, 106, 0.25);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .site-header__bar { flex-wrap: nowrap; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav { width: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.9rem; }
  .site-nav a:not(.btn) { padding: 0.4rem 0; font-size: 0.97rem; }
  .site-nav .btn { margin: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem)) 0 clamp(4rem, 9vw, 6.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 8vw, 4.5rem);
  align-items: center;
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.7rem, 9.5vw, 5.2rem);
  line-height: 1.04;
}

.hero__lead {
  margin: 1.5rem 0 2.2rem;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--nude);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.arch {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
}
.arch__frame {
  position: absolute;
  inset: -0.9rem;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
}
.arch__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--ink-soft);
  display: grid;
  place-items: center;
}
.arch__inner img { width: 100%; height: 100%; object-fit: cover; }
.arch__mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 14vw, 6rem);
  color: var(--gold);
}

@media (min-width: 900px) {
  .hero { min-height: min(100vh, 58rem); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: 5rem; }
  .arch { width: min(100%, 26rem); margin-inline: 0 auto; }
}

/* Uma única entrada orquestrada, só no carregamento. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: none; }
  }
  .hero__title, .hero__lead, .hero__actions, .arch {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__lead { animation-delay: 0.15s; }
  .hero__actions { animation-delay: 0.3s; }
  .arch { animation-delay: 0.2s; }
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--nude { background: var(--nude); }

.section__title {
  max-width: 20ch;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

/* Diferenciais */
.diff { display: grid; gap: 2rem; margin-top: 3rem; }
.diff__item { padding-top: 1.4rem; border-top: 1px solid var(--gold-deep); }
.diff__item h3 { margin-bottom: 0.7rem; font-size: 1.55rem; }
.diff__item p { margin: 0; color: var(--muted); }

@media (min-width: 640px) { .diff { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1000px) { .diff { grid-template-columns: repeat(4, 1fr); } }

/* Sobre */
.about { display: grid; gap: 3rem; align-items: center; }
.about__copy .section__title { margin-bottom: 1.6rem; }
.about__copy .btn { margin-top: 0.8rem; }

.about__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  color: var(--gold);
}
.about__panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(216, 185, 106, 0.55);
}
.about__mono { font-family: var(--serif); font-style: italic; font-size: clamp(4.5rem, 12vw, 7rem); line-height: 1; }
.about__name { font-size: 0.95rem; color: var(--nude); }

@media (min-width: 860px) {
  .about { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; }
  .about__panel { aspect-ratio: 4 / 5; }
}

/* Serviços */
.services { margin-top: 3rem; border-bottom: 1px solid rgba(20, 16, 13, 0.18); }
.service {
  display: grid;
  gap: 0.35rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(20, 16, 13, 0.18);
}
.service__name { font-size: clamp(1.7rem, 3.4vw, 2.3rem); transition: color 0.25s; }
.service:hover .service__name { color: var(--gold-deep); }
.service__text { margin: 0; color: var(--muted); }
.service__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.service__cta:hover { text-decoration-thickness: 2px; }

@media (min-width: 760px) {
  .service {
    grid-template-columns: minmax(11rem, 1fr) 1.6fr auto;
    align-items: center;
    gap: 2rem;
  }
}

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 0.6rem;
  margin-top: 3rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}
.gallery--feature .gallery__item:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery__link { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.gallery__link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery__link:hover img { transform: scale(1.04); }
.gallery__empty { margin-top: 2.5rem; color: var(--nude); }
.gallery__empty a { color: var(--gold); }

@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
  .gallery--feature .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Avaliações */
.reviews { display: grid; gap: 1.25rem; margin-top: 3rem; }
.review {
  padding: 2rem 1.75rem;
  background: var(--ivory);
  border-top: 3px solid var(--gold);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.review__text { margin: 0 0 1.25rem; }
.review__text p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; }
.review__name { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
.review__meta { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--muted); }

@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* CTA */
.cta { text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.cta__title { max-width: 18ch; font-size: clamp(2.2rem, 6.5vw, 4.2rem); color: var(--ivory); }

/* Instagram */
.insta { display: grid; gap: 2rem; align-items: center; }
.insta__handle {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold-deep);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.insta .btn { justify-self: start; }
@media (min-width: 800px) {
  .insta { grid-template-columns: 1fr auto; gap: 4rem; }
  .insta .btn { justify-self: end; }
}

/* Localização */
.place { display: grid; gap: 2.5rem; align-items: center; }
.place__address { margin: 1.6rem 0 2rem; font-size: 1.15rem; line-height: 1.7; }
.place__map { aspect-ratio: 4 / 3; background: var(--nude-deep); }
.place__map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 860px) { .place { grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; } }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer { padding: 4rem 0 2rem; background: var(--ink); color: rgba(250, 246, 239, 0.85); }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { text-underline-offset: 0.25em; }
.site-footer a:hover { color: var(--gold); }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); }
.site-footer__tag { color: var(--gold); }
.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(216, 185, 106, 0.25);
  font-size: 0.9rem;
  color: rgba(250, 246, 239, 0.6);
}
.site-footer__legal p { margin: 0; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 3.5rem;
  height: 3.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(20, 16, 13, 0.35);
  transition: background-color 0.25s, transform 0.25s;
}
.wa-fab:hover { background: var(--gold-hover); transform: translateY(-2px); }
.wa-fab .icon { width: 1.6rem; height: 1.6rem; }
.wa-fab__label { display: none; }
@media (min-width: 720px) { .wa-fab { padding: 0 1.4rem; } .wa-fab__label { display: inline; } }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
html.lb-open { overflow: hidden; }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(12, 9, 7, 0.97); }

.lightbox__figure { margin: 0; padding: 4.5rem 0.75rem 3.5rem; touch-action: pan-y pinch-zoom; }
.lightbox__img {
  max-width: min(94vw, 1200px);
  max-height: calc(100vh - 8.5rem);
  max-height: calc(100dvh - 8.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s;
}
.lightbox.is-loading .lightbox__img { opacity: 0.15; }

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(250, 246, 239, 0.35);
  border-radius: 50%;
  background: rgba(20, 16, 13, 0.6);
  color: var(--ivory);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -1.5rem; }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }
.lightbox__count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom));
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--nude);
}
@media (min-width: 720px) {
  .lightbox__prev { left: 1.5rem; }
  .lightbox__next { right: 1.5rem; }
}

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