/* Maria Nail Studio — site de marcações (demonstração)
   Cores tiradas do logótipo: lilás do círculo, azul-marinho do M, pervinca do N. O nude vem das unhas. */
:root {
  --lilac: #ede7f6;
  --lilac-2: #e2d9f1;
  --paper: #fbf9fd;
  --navy: #23285e;
  --navy-2: #3a3f78;
  --peri: #7f84c9;
  --blush: #f3d3cb;
  --muted: #5d6088;
  --line: #d3cae6;
  --wa: #1f7a4d;
  --gutter: clamp(16px, 4vw, 44px);
  --wrap: max(var(--gutter), calc((100% - 1100px) / 2));
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Albert Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--lilac); color: var(--navy);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 3px; border-radius: 10px; }
.opt { color: var(--muted); font-weight: 400; }
.link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--peri); }

/* monograma: N em pervinca, M em marinho, sobrepostos como no logótipo */
.mono { position: relative; display: inline-block; font-family: var(--serif); font-weight: 700; line-height: 1; }
.mono i { position: absolute; left: 0; top: 0; font-style: normal; color: var(--peri); }
.mono b { position: relative; color: var(--navy); font-weight: 700; margin-left: .34em; }
.mono--sm { font-size: 22px; }
.mono--xl { font-size: clamp(88px, 15vw, 150px); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn--navy:hover { background: var(--navy-2); }
  .btn--line:hover { background: var(--navy); color: #fff; }
  .btn--wa:hover { background: #18663f; }
}
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; padding: 0; color: var(--navy); }
.icon-btn svg { width: 22px; height: 22px; }

.demo-ribbon { margin: 0; padding: 8px var(--gutter); text-align: center; background: var(--navy); color: #fff; font-size: 13.5px; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 10px var(--wrap); background: rgba(237, 231, 246, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.top__nav { display: flex; gap: 22px; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.top__nav a:hover { color: var(--navy); }
@media (max-width: 720px) {
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  .top__brand span:last-child { font-size: 17px; }
}

/* ---------- abertura ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: clamp(40px, 7vw, 88px) var(--wrap) clamp(48px, 7vw, 96px);
}
.hero__text { max-width: 34rem; }
.hero h1 { margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.01em; }
.hero__sub { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--peri); }
.hero__lede { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* o leque de cores: as unhas como paletas de amostras */
.fan { position: relative; height: clamp(300px, 34vw, 400px); }
.stick {
  position: absolute; left: 50%; bottom: 0; width: clamp(108px, 12vw, 140px); margin: 0 0 0 calc(clamp(108px, 12vw, 140px) / -2);
  transform-origin: 50% 100%; transform: rotate(var(--r));
  background: var(--paper); border-radius: 70px 70px 14px 14px; padding: 18px 10px 0;
  height: 86%; box-shadow: 0 1px 0 var(--line), 0 18px 34px -18px rgba(35, 40, 94, .35);
  display: flex; flex-direction: column; align-items: center;
}
.stick__tip { width: 100%; }
.stick figcaption {
  margin-top: auto; padding: 10px 0 14px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em;
}
.js .stick { transform: rotate(0deg); transition: transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 70ms); }
.js body.ready .stick { transform: rotate(var(--r)); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .fan { height: 300px; margin-top: 8px; }
  .stick { width: 104px; margin-left: -52px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stick { transition: none; }
}

/* ---------- secções ---------- */
.sec { padding: clamp(48px, 7vw, 84px) var(--wrap); }
.sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }

/* valores */
#valores { background: var(--paper); border-radius: 36px 36px 0 0; }
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--lilac); border-radius: 999px; }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price {
  display: grid; grid-template-columns: 1fr auto 5.5rem auto; align-items: center; gap: 6px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.price h3 { font-size: 18px; font-weight: 600; }
.price__main p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.price__dur { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.price__val { font-family: var(--serif); font-weight: 700; font-size: 24px; text-align: right; font-variant-numeric: lining-nums; }
.prices__extra { margin-top: 16px; color: var(--muted); }
.sample-note { margin-top: 18px; display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--lilac); font-size: 14px; color: var(--navy-2); }
@media (max-width: 620px) {
  .price { grid-template-columns: 1fr auto; }
  .price__dur { grid-column: 1; grid-row: 2; }
  .price__val { grid-column: 2; grid-row: 1; }
  .price .btn { grid-column: 2; grid-row: 2; }
}

/* trabalhos */
#trabalhos { background: var(--paper); }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .works { grid-template-columns: 1fr 1fr; gap: 10px; } .work img, .work__art { border-radius: 16px; } .work figcaption { font-size: 13.5px; } }
.work { margin: 0; }
.work img, .work__art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.work__art { display: grid; place-items: center; background: var(--blush); padding: 14% 10%; }
.work:nth-child(3n + 2) .work__art { background: var(--lilac-2); }
.work:nth-child(3n) .work__art { background: #f6ece6; }
.work figcaption { margin-top: 8px; font-weight: 500; color: var(--muted); font-size: 15px; }
.works__note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

/* como marcar */
.how { text-align: left; }
.how__steps { list-style: none; counter-reset: s; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how__steps li { counter-increment: s; padding: 22px; border-radius: 22px; background: var(--paper); }
.how__steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; margin-bottom: 14px; }
.how__steps h3 { font-size: 18px; font-weight: 600; }
.how__steps p { margin-top: 4px; color: var(--muted); }
@media (max-width: 720px) { .how__steps { grid-template-columns: 1fr; } }

/* onde */
.where { background: var(--navy); color: #fff; }
.where h2 { color: #fff; }
.where__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; align-items: start; }
.where__area { font-family: var(--serif); font-size: 28px; }
.where__addr { margin-top: 6px; color: #c9cbee; }
.where__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.where .btn--line { border-color: #fff; color: #fff; }
@media (hover: hover) and (pointer: fine) { .where .btn--line:hover { background: #fff; color: var(--navy); } }
.where :focus-visible { outline-color: #fff; }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours td { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.hours td:first-child::first-letter { text-transform: uppercase; }
.hours td:last-child { text-align: right; }
.hours .is-closed td { color: #a9acd9; }
.hours .is-today td { font-weight: 700; }
.hours .is-today td:first-child::after { content: " · hoje"; font-weight: 500; color: var(--blush); }
@media (max-width: 720px) { .where__grid { grid-template-columns: 1fr; } }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 28px var(--wrap) 110px; color: var(--muted); font-size: 14.5px; }
.foot a { margin-left: auto; }
@media (min-width: 721px) { .foot { padding-bottom: 28px; } }

.m-cta { position: fixed; z-index: 15; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 14px 30px -10px rgba(35, 40, 94, .55); transform: translateY(140%); transition: transform .25s ease; }
.m-cta.is-on { transform: none; }
@media (min-width: 721px) { .m-cta { display: none; } }

/* ---------- janela de marcação ---------- */
.book { position: fixed; inset: 0; z-index: 50; background: rgba(35, 40, 94, .45); display: flex; justify-content: flex-end; opacity: 0; transition: opacity .2s ease; }
.book.is-open { opacity: 1; }
.book__panel {
  width: min(520px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(24px); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.book.is-open .book__panel { transform: none; }
.book__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.book__title { flex: 1; min-width: 0; text-align: center; }
.book__title h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--line); }
.steps .is-on { color: var(--navy); font-weight: 700; }
.steps .is-done { color: var(--peri); }
.book__body { flex: 1; overflow-y: auto; padding: 20px 20px 32px; overscroll-behavior: contain; }
.book__body h3 { font-size: 15px; font-weight: 700; margin: 18px 0 10px; }
.book__body h3:first-child { margin-top: 0; }
.choices { display: grid; gap: 8px; }
.choice {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 14px 16px;
  border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
}
.choice strong { font-weight: 600; }
.choice span { grid-column: 1; color: var(--muted); font-size: 14px; }
.choice em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.choice[aria-checked="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--peri); } }
.chosen { padding: 12px 14px; border-radius: 14px; background: var(--lilac); font-size: 15px; margin-bottom: 18px; }
.chosen .link { margin-left: 6px; font-size: 14px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.day {
  flex: none; width: 62px; padding: 8px 0; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  display: grid; justify-items: center; scroll-snap-align: start;
}
.day small { font-size: 12px; color: var(--muted); }
.day strong { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.day[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.day[aria-checked="true"] small { color: #d6d8f5; }
.day:disabled { opacity: .4; cursor: not-allowed; background: transparent; }
.slot-group + .slot-group { margin-top: 14px; }
.slot-group p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .slot:hover, .day:not(:disabled):hover { border-color: var(--peri); } }
.no-slots { padding: 16px; border-radius: 14px; background: var(--lilac); color: var(--muted); }
.summary { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--lilac); margin-bottom: 20px; }
.summary__nail { width: 70px; flex: none; }
.summary div:last-child { display: grid; }
.summary strong { font-size: 17px; }
.summary span { color: var(--muted); font-size: 15px; }
#book-form { display: grid; gap: 14px; }
#book-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
#book-form input, #book-form textarea {
  font: inherit; font-weight: 400; color: var(--navy); padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; min-height: 48px; width: 100%; resize: vertical;
}
#book-form input:focus, #book-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(127, 132, 201, .3); }
#book-form [aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; font-size: 14.5px; min-height: 0; }
.form-error:empty { display: none; }
.fine { font-size: 13.5px; color: var(--muted); text-align: center; }
.done { text-align: center; padding-top: 12px; }
.done__nails { width: 180px; margin: 0 auto 14px; }
.done h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; }
.done__what { margin: 8px auto 22px; color: var(--muted); max-width: 24rem; }
.done__actions { display: grid; gap: 10px; }
.done__demo { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) {
  .book { align-items: flex-end; }
  .book__panel { height: 94%; border-radius: 22px 22px 0 0; transform: translateY(30px); }
}

/* ---------- fotos da Maria no leque ---------- */
.stick--photo { padding: 0; overflow: hidden; }
.stick--photo img { width: 100%; height: 100%; object-fit: cover; }

/* extras: lista compacta em duas colunas */
.prices--extras { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
.prices--extras .price { grid-template-columns: 1fr auto; padding: 12px 0; border-top: 0; }
.prices--extras .price__dur { display: none; }
.prices--extras .price__val { font-size: 19px; }
.prices--extras .price h3 { font-size: 16.5px; font-weight: 500; }
.prices--extras .price__main p { display: inline; margin-left: 6px; font-size: 14px; }
.prices--extras .price__main h3 { display: inline; }
@media (max-width: 620px) { .prices--extras { grid-template-columns: 1fr; } .prices--extras .price .btn { display: none; } }

/* regras */
.rules__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.rules article { padding: 22px; border-radius: 22px; background: var(--paper); }
.rules h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.rules p { margin-top: 6px; color: var(--muted); }
@media (max-width: 720px) { .rules__grid { grid-template-columns: 1fr; } }

/* formulário de marcação: tamanho, fotos, sinal */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sizes { border: 0; margin: 0; padding: 0; }
.sizes legend { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; padding: 0; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-height: 42px; min-width: 50px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.size[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.refs { display: grid; gap: 6px; }
.refs__label { font-weight: 600; font-size: 14.5px; }
.refs__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ref, .refs__add { position: relative; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; flex: none; }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(35, 40, 94, .85); color: #fff; font-size: 16px; line-height: 1; padding: 0; }
.refs__add { display: grid; place-items: center; border: 1.5px dashed var(--peri); background: var(--lilac); color: var(--navy-2); font-size: 28px; cursor: pointer; }
.refs__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.refs__add:focus-within { outline: 2.5px solid var(--navy); outline-offset: 2px; }
#book-form .check { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500; }
#book-form .check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--navy); }
.deposit { padding: 12px 14px; border-radius: 12px; background: var(--blush); font-size: 14.5px; }
