/* ==========================================================
   Pri Place Ótica · Nova Santa Rita/RS
   Paleta: uva (roxo da marca e do container) + linho (o bege
   do Instagram) + mostarda (os detalhes dourados do material
   gráfico). Madeira entra só nas fotos.
   ========================================================== */

:root {
  --uva: #3a1d63;
  --uva-900: #22103c;
  --violeta: #7b3fc4;
  --lilas: #cdb8ec;
  --linho: #f5eee3;
  --areia: #ebdfcc;
  --mostarda: #d4a64a;
  --mostarda-txt: #8f6516;
  --ink: #2a1a38;
  --muted: #6d5e79;
  --line: rgba(58, 29, 99, .16);

  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;

  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--linho);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 em, h1 em { font-style: normal; color: var(--violeta); }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hand { font-family: var(--f-hand); font-weight: 500; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mostarda-txt); margin-bottom: .9rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--mostarda); }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--star { color: var(--mostarda); width: .8em; height: .8em; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px;
  font: 600 .98rem/1 var(--f-body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--lg { padding: 1em 1.6em; font-size: 1.03rem; }
.btn--gold { background: var(--mostarda); color: var(--uva-900); }
.btn--gold:hover { background: #e2b85e; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(245, 238, 227, .45); color: var(--linho); }
.btn--ghost:hover { border-color: var(--linho); background: rgba(245, 238, 227, .08); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--mostarda); outline-offset: 3px; }

.link-arrow {
  display: inline-block; margin-top: .6rem;
  font-weight: 600; color: var(--violeta); text-decoration: none;
  border-bottom: 2px solid var(--lilas); padding-bottom: 2px;
  transition: border-color .2s;
}
.link-arrow:hover { border-color: var(--violeta); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--linho);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-solid { background: rgba(34, 16, 60, .94); backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__mark { width: 46px; height: 23px; color: var(--lilas); }
.brand__name { font: 700 1.35rem/1 var(--f-body); letter-spacing: -.02em; display: flex; flex-direction: column; }
.brand__name small { font-size: .62rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; opacity: .8; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .88; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--mostarda); transition: right .25s ease; }
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn):hover::after { right: 0; }
.nav__cta { padding: .62em 1.1em; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: inherit; }
.menu-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.menu-toggle span + span { margin-top: 8px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 0 70px;
  background: var(--uva-900);
  color: var(--linho);
  text-align: center;
}
.hero__bg {
  position: absolute; inset: -40px; z-index: -2;
  width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(14px) saturate(.9);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(34,16,60,.25), rgba(34,16,60,.82) 75%),
    linear-gradient(rgba(58,29,99,.45), rgba(34,16,60,.6));
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__kicker {
  font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mostarda); margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.6rem, min(8vw, 10svh), 6rem); line-height: .98; max-width: 14ch; }
.hero__title em { color: var(--lilas); }

.lens-stage { position: relative; width: min(94vw, 780px, 105svh); margin: clamp(1.2rem, 2.6vw, 2rem) 0 clamp(1rem, 2vw, 1.6rem); will-change: transform; }
.lens-svg { display: block; width: 100%; height: auto; overflow: visible; }
.frame__line {
  stroke: var(--linho); stroke-width: 13;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}
.is-ready .frame__line { animation: draw 1.5s cubic-bezier(.65,0,.35,1) forwards; }
.is-ready .frame__line:nth-child(3) { animation-delay: .5s; animation-duration: .5s; }
.is-ready .frame__line:nth-child(n+4) { animation-delay: .8s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.glint { opacity: 0; }
.is-focused .glint { animation: glint 1.6s ease-out .2s forwards; }
@keyframes glint { 0% { opacity: 1; transform: skewX(-18deg) translateX(0); } 100% { opacity: 1; transform: skewX(-18deg) translateX(1400px); } }

.lens-note {
  position: absolute; right: 2%; top: -6%;
  font: 600 clamp(1.05rem, 2.2vw, 1.5rem)/1 var(--f-hand);
  color: var(--mostarda); transform: rotate(-4deg);
  opacity: 0; transition: opacity .6s ease 1.8s;
  margin: 0;
}
.is-focused .lens-note { opacity: 1; }

.hero__lead { max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(245,238,227,.86); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .6rem; }

/* ---------- fatos ---------- */
.facts { background: var(--uva); color: var(--linho); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.6rem 1.2rem; text-decoration: none;
  border-left: 1px solid rgba(245,238,227,.14);
}
.fact:first-child { border-left: 0; }
a.fact:hover .fact__small { color: var(--linho); }
.fact__big { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-display); display: inline-flex; align-items: center; gap: .3em; }
.fact__small { font-size: .9rem; color: rgba(245,238,227,.72); }

/* ---------- seções base ---------- */
section { position: relative; }
.about, .chart-sec, .perks, .store, .reviews { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 760px; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; }

/* ---------- visagismo ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about__photo { margin: 0; position: relative; }
.about__photo img {
  width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 0;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.about__photo figcaption {
  position: absolute; left: -6px; bottom: 26px;
  background: var(--mostarda); color: var(--uva-900);
  font-size: 1.6rem; line-height: 1; padding: .35em .6em .4em;
  border-radius: 12px; transform: rotate(-5deg);
  box-shadow: 0 10px 24px rgba(58,29,99,.18);
}
.about__text h2 { margin-bottom: 1.4rem; }
.about__list { list-style: none; padding: 0; margin: 1.6rem 0 1.4rem; display: grid; gap: .55rem; }
.about__list li { display: flex; gap: .7rem; align-items: baseline; }
.about__list li::before {
  content: ""; flex: none; width: 18px; height: 9px; transform: translateY(-1px);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cpath d='M40 20C31 8.5 13 7 10 20s21 11.5 30 0 27-11.5 30 0S49 31.5 40 20Z' fill='none' stroke='%237b3fc4' stroke-width='7'/%3E%3C/svg%3E");
}

/* ---------- serviços: tabela de leitura ---------- */
.chart-sec { background: #fbf7f0; border-block: 1px solid var(--line); }
.chart { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.chart__row {
  display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; column-gap: 1rem; align-items: center; text-align: center;
  padding: clamp(.7rem, 1.6vw, 1.1rem) 0;
  border-bottom: 1px dashed var(--line);
  transition: filter .9s ease, opacity .9s ease;
}
.chart__row:first-child { border-top: 1px dashed var(--line); }
.chart__n, .chart__acuity { grid-row: 1 / 3; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.chart__name {
  font-family: var(--f-display);
  grid-column: 2; font-size: calc(var(--s) * clamp(2.3rem, 7vw, 5.6rem));
  line-height: 1.02; text-transform: uppercase; letter-spacing: .04em;
  color: var(--uva);
  text-wrap: balance;
}
.chart__desc { grid-column: 2; font-size: .95rem; color: var(--muted); margin-top: .35rem; }
.chart__n { text-align: left; }
.chart__acuity { grid-column: 3; text-align: right; font-variant-numeric: tabular-nums; }
.chart__row:hover .chart__name { color: var(--violeta); }
.js .chart__row { filter: blur(5px); opacity: .55; }
.js .chart__row.is-in { filter: none; opacity: 1; }

/* ---------- vou até você ---------- */
.home-visit { background: var(--violeta); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; overflow: hidden; }
.home-visit::before {
  content: ""; position: absolute; right: -60px; top: 50%; width: 420px; height: 210px; translate: 0 -50%;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cpath d='M40 20C31 8.5 13 7 10 20s21 11.5 30 0 27-11.5 30 0S49 31.5 40 20Z' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='5'/%3E%3C/svg%3E");
  pointer-events: none;
}
.home-visit__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; }
.home-visit h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .8rem; max-width: 20ch; }
.home-visit h2 em { color: #ffe3a6; }
.home-visit p:last-child { margin: 0; max-width: 54ch; color: rgba(255,255,255,.88); }

/* ---------- facilidades ---------- */
.perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.perk {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.perk h3 { font-size: 1.45rem; margin-bottom: 1.1rem; color: var(--uva); }
.perk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.perk li { padding-left: 1.4rem; position: relative; }
.perk li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--mostarda); }
.perk b { color: var(--uva); }
.perk--accent { background: var(--areia); border-color: transparent; }
.perk--accent p { margin: 0; color: #4a3a57; }

/* ---------- a loja ---------- */
.store { background: var(--areia); }
.store__intro { color: #4a3a57; margin: 0; max-width: 46ch; justify-self: end; }
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 260px 280px;
}
.g { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; background: var(--uva); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.g:hover img { transform: scale(1.04); }
.g--wide { grid-column: 1 / 9; grid-row: 1 / 3; }
.g--sheep { grid-column: 9 / 13; grid-row: 1 / 3; }
.g--sheep img { object-position: 50% 30%; }
.g--sheep figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(245,238,227,.94); color: var(--uva);
  font-size: 1.35rem; line-height: 1.05; padding: .5em .7em; border-radius: 14px;
}
.gallery .g:nth-child(3) { grid-column: 1 / 4; }
.g--kids { grid-column: 4 / 10; }
.gallery .g:nth-child(5) { grid-column: 10 / 13; }

/* ---------- avaliações ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.8rem; }
.review {
  margin: 0; padding: 1.7rem 1.5rem 1.4rem;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
}
.review::before { content: "★★★★★"; color: var(--mostarda); letter-spacing: .15em; font-size: .9rem; }
.review p { margin: 0; font-size: 1rem; }
.review cite { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--uva); }

/* ---------- visite ---------- */
.visit { background: var(--uva-900); color: var(--linho); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.visit__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 1.8rem; }
.visit__addr { display: flex; gap: .8rem; font-style: normal; font-size: 1.1rem; margin-bottom: 1.6rem; }
.visit__addr .ico { color: var(--mostarda); margin-top: .25em; }
.hours { border-collapse: collapse; width: 100%; max-width: 460px; font-size: .98rem; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid rgba(245,238,227,.14); vertical-align: top; }
.hours th { font-weight: 500; padding-right: 1rem; color: rgba(245,238,227,.75); white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--mostarda); font-weight: 600; }
.hours tr.is-today th::after { content: " · hoje"; font-weight: 500; }
.visit__note { margin: 1rem 0 1.6rem; font-size: .95rem; color: rgba(245,238,227,.72); }
.visit__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.visit__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--uva); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.85); }

/* ---------- footer ---------- */
.footer { background: var(--uva-900); color: var(--linho); border-top: 1px solid rgba(245,238,227,.1); padding: 2.2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__tag { font-size: 1.4rem; color: var(--lilas); margin: 0; }
.footer__legal { margin: 0; font-size: .85rem; color: rgba(245,238,227,.6); }

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, opacity .3s ease;
  opacity: 0; pointer-events: none;
}
.wa-float.is-visible { opacity: 1; pointer-events: auto; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .perks__grid { grid-template-columns: 1fr 1fr; }
  .perk--accent { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--uva-900); padding: .5rem var(--gutter) 1.4rem;
    box-shadow: 0 18px 30px rgba(0,0,0,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid rgba(245,238,227,.1); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; justify-content: center; padding: .95em; }
  .header.menu-open { background: var(--uva-900); }

  .facts__row { grid-template-columns: 1fr 1fr; }
  .fact { padding: 1.3rem 1rem; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(245,238,227,.14); }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }

  .chart__row { grid-template-columns: 1.8rem 1fr 1.8rem; column-gap: .5rem; }
  .chart__acuity { writing-mode: vertical-rl; font-size: .7rem; justify-self: end; }

  .home-visit__inner { flex-direction: column; align-items: flex-start; }

  .sec-head--split { grid-template-columns: 1fr; }
  .store__intro { justify-self: start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery .g { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 3 / 4; }
  .gallery .g--wide, .gallery .g--kids { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3; }

  .visit__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding: 96px 0 56px; }
  .lens-note { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .perks__grid, .reviews__grid { grid-template-columns: 1fr; }
  .chart__name { font-size: calc(var(--s) * 2.9rem); }
  .gallery .g--sheep figcaption { font-size: 1.1rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .frame__line { stroke-dashoffset: 0; }
  .js .chart__row { filter: none; opacity: 1; }
}
