/* FB Conserto de Óculos: vermelho do adesivo da fachada, branco e grafite. */

:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --ink: #17171b;
  --muted: #565662;
  --line: rgba(23, 23, 27, .1);
  --red: #c4182b;
  --red-dk: #a01223;
  --red-text: #b3162a;
  --graphite: #1c1c21;
  --graphite-2: #26262d;
  --on-dark: #f3f3f5;
  --on-dark-muted: #b4b4bf;

  --display: "Archivo", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;

  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1200px;

  --z-header: 30;
  --z-float: 20;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --surface: #17171c;
    --ink: #f1f1f3;
    --muted: #a6a6b1;
    --line: rgba(241, 241, 243, .1);
    --red-text: #ff5a66;
    --graphite: #1b1b21;
    --graphite-2: #24242c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 8vw, 110px) 0; }

.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red-text);
  font-size: .9rem; font-weight: 700;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 700 1rem/1 var(--sans); text-decoration: none;
  padding: 16px 24px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn i { font-size: 1.3em; }
.btn--red { color: #fff; background: var(--red); box-shadow: 0 12px 26px -12px rgba(196, 24, 43, .7); }
.btn--red:hover { background: var(--red-dk); transform: translateY(-2px); }
.btn--white { color: var(--red-dk); background: #fff; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .45); }
.btn--ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--red); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { padding: 11px 18px; font-size: .92rem; }
.btn--lg { padding: 19px 30px; font-size: 1.06rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: #fff; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h); background: var(--red); transition: box-shadow .4s var(--ease); }
.topo.is-scrolled { box-shadow: 0 10px 30px -16px rgba(80, 6, 14, .6); }
.topo__inner { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.marca img { height: 42px; width: auto; }
.topo__nav { display: flex; gap: 26px; margin-left: auto; }
.topo__nav a { color: #ffe3e6; text-decoration: none; font-weight: 600; font-size: .95rem; }
.topo__nav a:hover { color: #fff; }
.status { display: flex; align-items: center; gap: 8px; margin: 0; color: #ffe3e6; font-size: .88rem; white-space: nowrap; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #ffc2c8; }
.status.is-open .status__dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
.status.is-closed .status__dot { background: #fde68a; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

@media (max-width: 1080px) { .topo__nav { display: none; } .status { margin-left: auto; } }
@media (max-width: 640px) {
  .status { display: none; }
  .topo .btn--sm { margin-left: auto; padding: 11px; }
  .topo .btn--sm span { display: none; }
  .marca img { height: 36px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(50% 70% at 85% 20%, color-mix(in srgb, var(--red) 9%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.03em;
  margin: 0 0 22px;
}
.hero__title span { display: block; color: var(--red-text); }
.hero__sub { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40ch; margin: 0 0 32px; }
.hero__sub strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; padding: 36px 0 0 36px; }
.hero__photo {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 393 / 267;
  box-shadow: 0 40px 70px -40px rgba(60, 10, 16, .55);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.selo {
  position: absolute; left: 0; top: 0; width: clamp(118px, 12vw, 150px); aspect-ratio: 1;
  border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -14px rgba(160, 18, 35, .8);
}
.selo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.selo text { fill: #fff; font: 700 15.5px var(--display); letter-spacing: .14em; }
.selo i { font-size: 38px; }
@media (prefers-reduced-motion: no-preference) {
  .selo svg { animation: girar 22s linear infinite; }
}
@keyframes girar { to { rotate: 360deg; } }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; padding: 30px 0 0 30px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-in] { opacity: 0; translate: 0 20px; }
  .js [data-in="visual"] { translate: 0 0; scale: .96; }
  .is-loaded [data-in] { animation: rise .9s var(--ease) forwards; }
  .is-loaded [data-in="1"] { animation-delay: .05s; }
  .is-loaded [data-in="2"] { animation-delay: .15s; }
  .is-loaded [data-in="3"] { animation-delay: .3s; }
  .is-loaded [data-in="4"] { animation-delay: .42s; }
  .is-loaded [data-in="visual"] { animation: settle 1s var(--ease) .1s forwards; }
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes settle { to { opacity: 1; scale: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}

/* ---------- reparos (painel grafite) ---------- */
.painel {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); color: var(--on-dark);
  background: radial-gradient(70% 90% at 100% 0%, rgba(196, 24, 43, .35), transparent 60%), var(--graphite);
  padding: clamp(32px, 5vw, 60px);
}
.painel__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.painel__head p { color: var(--on-dark-muted); margin: 0; font-size: 1.08rem; }
.reparos__lista {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.reparos__lista li { padding: 4px 24px 4px 0; }
.reparos__lista li + li { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 24px; }
.reparos__lista i { font-size: 34px; color: #ff6b76; display: block; margin-bottom: 18px; }
.reparos__lista h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -.01em; }
.reparos__lista p { margin: 0; color: var(--on-dark-muted); font-size: .97rem; }
@media (max-width: 900px) {
  .reparos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .reparos__lista li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .reparos__lista { grid-template-columns: 1fr; }
  .reparos__lista li, .reparos__lista li + li { border-left: 0; padding: 0 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .reparos__lista li:last-child { border-bottom: 0; padding-bottom: 0; }
  .link-arrow { white-space: normal; }
}

/* ---------- armações e lentes ---------- */
.lentes { padding-top: 0; }
.lentes__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.lentes__foto { margin: 0; position: relative; }
.lentes__foto img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; }
.lentes__copy > p { color: var(--muted); font-size: 1.08rem; margin: 0 0 22px; max-width: 44ch; }
.checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks i { color: var(--red); font-size: 1.35rem; }
@media (max-width: 860px) {
  .lentes__grid { grid-template-columns: 1fr; }
}

/* ---------- horário e endereço ---------- */
.endereco { padding-top: 0; }
.endereco__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.info { border-radius: var(--r-lg); overflow: hidden; background: var(--red); color: #fff; display: flex; flex-direction: column; }
.info__foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
.info__body { padding: clamp(26px, 4vw, 40px); }
.info__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.horario { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
.horario li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 12px; color: #ffe3e6; }
.horario strong { color: #fff; font-weight: 700; }
.horario li.is-today { background: rgba(255, 255, 255, .16); box-shadow: inset 3px 0 0 #fff; color: #fff; }
.local { display: flex; gap: 12px; font-style: normal; color: #fff; margin-bottom: 26px; line-height: 1.55; }
.local i { font-size: 22px; margin-top: 2px; }
.local small { color: #ffd0d5; font-size: .92rem; }
.mapa { border-radius: var(--r-lg); overflow: hidden; min-height: 460px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mapa iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
@media (max-width: 860px) {
  .endereco__grid { grid-template-columns: 1fr; }
  .mapa, .mapa iframe { min-height: 320px; }
}

/* ---------- chamada final ---------- */
.final { padding-bottom: clamp(64px, 8vw, 104px); }
.final__slab {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(60% 120% at 90% 50%, rgba(255, 255, 255, .12), transparent 60%), linear-gradient(135deg, #d01d31 0%, #9e1222 100%);
  padding: clamp(36px, 6vw, 72px);
}
.final h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; max-width: 15ch; }
.final__copy > p { color: #ffe3e6; margin: 0 0 28px; font-size: 1.08rem; max-width: 40ch; }
.final__num { margin: 18px 0 0 !important; font-size: .95rem !important; letter-spacing: .04em; }
.final__logo { width: clamp(180px, 22vw, 300px); opacity: .95; }
@media (max-width: 720px) {
  .final__slab { grid-template-columns: 1fr; }
  .final__logo { width: 170px; order: -1; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--graphite); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .rodape { background: #141418; } }
.rodape__grid { display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: start; }
.rodape__marca img { height: 64px; width: auto; }
.rodape__fe { margin: 12px 0 0; font-style: italic; color: #9a9aa6; font-size: .9rem; }
.rodape__info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-content: end; }
.rodape__info li { display: flex; gap: 10px; align-items: center; }
.rodape__info i { color: #ff6b76; font-size: 1.15rem; }
.rodape__info a { color: var(--on-dark); text-decoration: none; }
.rodape__info a:hover { color: #ff6b76; }
.rodape__legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.rodape__credito { grid-column: 1 / -1; margin: -16px 0 0; font-size: .82rem; color: rgba(180, 180, 191, .75); }
.rodape__credito a { color: #ff8a93; text-underline-offset: 3px; }
.rodape__credito a:hover { color: #fff; }
@media (max-width: 760px) {
  .rodape__grid { grid-template-columns: 1fr; }
  .rodape__info { justify-content: start; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 30px; text-decoration: none; background: var(--red);
  box-shadow: 0 14px 30px -10px rgba(196, 24, 43, .75);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .4s var(--ease), translate .4s var(--ease), transform .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-float:hover { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
