/* Studio Alessandra — estilos do site público */

:root {
  --blush: #fbf0f3;
  --petal: #f4cbd6;
  --petal-soft: #f9e1e8;
  --rose: #c84b70;
  --rose-hover: #b13d61;
  --lacquer: #8e2f4d;
  --ink: #3a2a30;
  --ink-soft: #6e5a62;
  --white: #ffffff;
  --whats: #1fae5b;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --nail: 999px 999px 28px 28px; /* formato de unha */
  --radius: 18px;
  --wrap: min(1160px, 100% - 40px);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

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

.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--lacquer);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--rose); color: var(--white); box-shadow: 0 10px 24px -10px rgba(200, 75, 112, .7); }
.btn-primary:hover { background: var(--rose-hover); }
.btn-outline { border-color: var(--rose); color: var(--rose); background: transparent; }
.btn-outline:hover { background: var(--rose); color: var(--white); }
.btn-whats { background: var(--whats); color: var(--white); }
.btn-whats:hover { background: #17924b; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 240, 243, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--petal); box-shadow: 0 6px 24px -18px rgba(142, 47, 77, .5); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--petal-soft); color: var(--lacquer); }
.nav-links a[aria-current="page"] { color: var(--lacquer); background: var(--petal-soft); }
.nav-links .nav-cta { background: var(--rose); color: var(--white); margin-left: 8px; padding-inline: 22px; }
.nav-links .nav-cta:hover { background: var(--rose-hover); color: var(--white); }

.menu-btn {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--petal-soft);
  color: var(--lacquer);
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }

/* ── Banner de promoções ──────────────────────────────── */
.promo {
  background: var(--lacquer);
  color: var(--white);
  font-size: .95rem;
  text-align: center;
}
.promo .wrap { padding: 12px 0; display: grid; gap: 4px; }
.promo strong { color: var(--petal); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero h1 { margin-bottom: 22px; max-width: 12em; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--white);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  min-height: 38px;
}
.status:empty { visibility: hidden; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #b9a9b0; }
.status.aberto .dot { background: var(--whats); box-shadow: 0 0 0 0 rgba(31, 174, 91, .5); animation: pulso 2s infinite; }

/* Leque de fotos em formato de unha */
.fan {
  position: relative;
  height: clamp(380px, 46vw, 540px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.fan figure {
  position: absolute;
  bottom: 0;
  width: clamp(150px, 17vw, 210px);
  aspect-ratio: 9 / 16;
  border-radius: var(--nail);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 30px 50px -28px rgba(142, 47, 77, .55);
  transform-origin: 50% 120%;
  background: var(--petal);
  animation: abrir 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.fan figure img { width: 100%; height: 100%; object-fit: cover; }
.fan figure:nth-child(1) { --r: -16deg; --x: -62%; animation-delay: .15s; }
.fan figure:nth-child(2) { --r: 0deg; --x: 0%; z-index: 2; width: clamp(170px, 19vw, 236px); animation-delay: 0s; }
.fan figure:nth-child(3) { --r: 16deg; --x: 62%; animation-delay: .3s; }
.fan figure { transform: translateX(var(--x)) rotate(var(--r)); }

@keyframes abrir {
  from { transform: translateX(0) rotate(0deg) translateY(40px); opacity: 0; }
  to { transform: translateX(var(--x)) rotate(var(--r)); opacity: 1; }
}
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(31, 174, 91, .5); }
  70% { box-shadow: 0 0 0 10px rgba(31, 174, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 174, 91, 0); }
}

/* ── Seções ───────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--white); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 44px;
}
.section-head p { color: var(--ink-soft); max-width: 36em; margin-top: 10px; }

.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { margin-bottom: 14px; }

/* ── Cards de serviço ─────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px 28px;
}
.service { display: flex; flex-direction: column; }
.service-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--nail);
  overflow: hidden;
  background: var(--petal);
  margin-bottom: 20px;
}
.service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.service:hover .service-photo img { transform: scale(1.05); }
.service h3 { margin-bottom: 6px; }
.price { font-weight: 700; color: var(--rose); font-size: 1.1rem; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.service .book {
  align-self: flex-start;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--petal-soft);
  color: var(--lacquer);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.service .book:hover { background: var(--rose); color: var(--white); }
.service .book svg { width: 18px; height: 18px; }

.skeleton .service-photo,
.skeleton .line {
  background: linear-gradient(90deg, var(--petal-soft) 25%, #fdf6f8 50%, var(--petal-soft) 75%);
  background-size: 200% 100%;
  animation: brilho 1.4s infinite;
}
.skeleton .line { height: 16px; border-radius: 8px; margin-bottom: 10px; }
.skeleton .line.short { width: 40%; }
@keyframes brilho { to { background-position: -200% 0; } }

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--ink-soft);
}

/* ── Horários e contato ───────────────────────────────── */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.visit h2 { margin-bottom: 16px; }
.visit .lead { margin-bottom: 30px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hours { list-style: none; padding: 0; border-radius: var(--radius); background: var(--blush); overflow: hidden; }
.section:not(.section-alt) .hours { background: var(--white); }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--petal-soft);
}
.hours li:last-child { border-bottom: 0; }
.hours .fechado { color: #a8959c; }
.hours .hoje { background: var(--petal-soft); font-weight: 600; color: var(--lacquer); }
.hours .hoje span:first-child::after { content: " · hoje"; font-weight: 400; color: var(--rose); }

/* ── Agendamento ──────────────────────────────────────── */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.option {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option p { color: var(--ink-soft); flex: 1; margin-bottom: 12px; }
.option .btn { align-self: flex-start; }

/* ── Sobre ────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-photo {
  aspect-ratio: 3 / 4;
  max-width: 420px;
  border-radius: var(--nail);
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: 0 30px 60px -30px rgba(142, 47, 77, .5);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 18px; max-width: 36em; }
.about-text .logo-big { width: min(320px, 80%); margin-bottom: 28px; }
.values { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg { width: 24px; height: 24px; color: var(--rose); flex: none; margin-top: 2px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--lacquer); color: #f6dfe6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-brand p { max-width: 26em; font-size: .97rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; opacity: .9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 24px;
  font-size: .88rem;
  opacity: .75;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ── WhatsApp flutuante ───────────────────────────────── */
.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whats);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
  transition: transform .2s;
  opacity: 0; pointer-events: none;
}
.whats-float.visivel { opacity: 1; pointer-events: auto; animation: aparecer .4s ease-out; }
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 30px; height: 30px; }
@keyframes aparecer { from { transform: scale(.6); opacity: 0; } }

/* ── 404 ──────────────────────────────────────────────── */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found p { color: var(--ink-soft); margin: 14px 0 28px; }

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap, .visit, .about { grid-template-columns: 1fr; }
  .fan { height: 400px; order: -1; }
  .about-photo { max-width: 340px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--blush);
    border-bottom: 1px solid var(--petal);
    box-shadow: 0 20px 30px -24px rgba(142, 47, 77, .5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.aberto { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .options { grid-template-columns: 1fr; }
  .fan { height: 340px; }
  .fan figure { width: 128px; }
  .fan figure:nth-child(1) { --x: -54%; }
  .fan figure:nth-child(2) { width: 148px; }
  .fan figure:nth-child(3) { --x: 54%; }
  .hero-actions .btn, .visit-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hours li { padding: 14px 18px; }
}

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