/* Doutor dos Óculos: cores do card oficial (marinho profundo + azul vivo + azul-céu do logotipo). */

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --tint: #e6effc;
  --ink: #0b1736;
  --muted: #4c5870;
  --line: rgba(11, 23, 54, .1);
  --navy: #0b1b40;
  --navy-2: #143275;
  --blue: #1d63d8;
  --blue-hi: #2f7bf0;
  --sky: #8cc8f5;
  --ok: #1f9d55;
  --off: #c2410c;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;

  --r: 20px;
  --r-lg: 32px;
  --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: #070f24;
    --surface: #0d1a3a;
    --tint: #10224a;
    --ink: #e9eef8;
    --muted: #a5b0c6;
    --line: rgba(233, 238, 248, .1);
    --navy: #0f2352;
    --navy-2: #1a3d85;
    --ok: #34c472;
    --off: #fb923c;
  }
}

*, *::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(--blue-hi); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); 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(72px, 9vw, 120px) 0; }

.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -.025em;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--tint); color: var(--blue);
  font-size: .9rem; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--sky); } }

/* ---------- 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--blue { color: #fff; background: var(--blue); box-shadow: 0 12px 26px -12px rgba(29, 99, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--blue:hover { background: #1957c2; transform: translateY(-2px); }
.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(--blue); transform: translateY(-2px); }
.btn--light { color: var(--navy); background: #fff; }
.btn--light:hover { 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: var(--sky); }
.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: #0b1b40; transition: box-shadow .4s var(--ease); }
.topo.is-scrolled { box-shadow: 0 10px 30px -16px rgba(4, 10, 28, .7); }
.topo__inner { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; height: 56px; }
.marca__mascote { height: 56px; width: auto; }
.marca__nome { height: 30px; width: auto; margin-bottom: 9px; }
.topo__nav { display: flex; gap: 26px; margin-left: auto; }
.topo__nav a { color: #d3dcef; text-decoration: none; font-weight: 500; font-size: .95rem; }
.topo__nav a:hover { color: #fff; }
.status { display: flex; align-items: center; gap: 8px; margin: 0; color: #d3dcef; font-size: .88rem; white-space: nowrap; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #8a97b4; }
.status.is-open .status__dot { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.4s infinite; }
.status.is-closed .status__dot { background: #fb923c; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 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__nome { height: 24px; margin-bottom: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  /* brilho azul que some antes da borda de baixo (sem emenda com a seção seguinte) */
  background: radial-gradient(55% 75% at 82% 18%, rgba(47, 123, 240, .14), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 22px;
}
.hero__title span { display: block; color: var(--blue); }
@media (prefers-color-scheme: dark) { .hero__title span { color: var(--sky); } }
.hero__sub { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 42ch; margin: 0 0 32px; }
.hero__sub strong { color: var(--ink); font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; padding: 0 0 0 clamp(64px, 8vw, 120px); }
.hero__photo {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 40px 70px -40px rgba(11, 27, 64, .55);
  outline: 6px solid var(--surface);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__mascote { position: absolute; left: 0; bottom: -26px; width: clamp(96px, 9.5vw, 136px); }
.hero__mascote img { width: 100%; filter: drop-shadow(0 18px 18px rgba(11, 27, 64, .35)); }
.balao {
  position: absolute; left: 30%; top: -58px; margin: 0; white-space: nowrap;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .98rem;
  padding: 10px 16px; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 14px 30px -14px rgba(11, 27, 64, .7);
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { padding-left: 52px; max-width: 520px; margin-top: 44px; }
  .hero__mascote { width: 78px; bottom: -16px; }
  .balao { font-size: .85rem; left: 24px; top: -46px; padding: 8px 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-in] { opacity: 0; translate: 0 20px; }
  .js [data-in="visual"] { translate: 0 0; scale: .96; }
  .js .hero__mascote { opacity: 0; translate: -30px 20px; }
  .js .balao { opacity: 0; scale: .6; transform-origin: 0 100%; }
  .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; }
  .is-loaded .hero__mascote { animation: walk-in .9s var(--ease) .65s forwards; }
  .is-loaded .balao { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) 1.35s forwards; }
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes settle { to { opacity: 1; scale: 1; } }
@keyframes walk-in { to { opacity: 1; translate: 0 0; } }
@keyframes pop { to { opacity: 1; scale: 1; } }

/* ---------- revelação ao rolar ---------- */
@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; }
}

/* ---------- serviços (bento 2+1+1 / 1+1+2) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cell {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--r);
  padding: 28px 26px; min-height: 240px;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cell:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -28px rgba(11, 27, 64, .45); }
.cell > i, .cell__body > i { font-size: 34px; color: var(--blue); margin-bottom: auto; padding-bottom: 28px; }
.cell h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 8px; }
.cell p { margin: 0; color: var(--muted); font-size: .98rem; }
.cell--tint { background: var(--tint); box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .cell > i, .cell__body > i { color: var(--sky); }
}

.cell--foto { grid-column: span 2; padding: 0; color: #fff; justify-content: flex-end; min-height: 300px; }
.cell--foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.cell--foto:hover img { scale: 1.04; }
.cell--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 27, 64, 0) 25%, rgba(8, 18, 44, .88) 100%); }
.cell--foto .cell__body { position: relative; z-index: 1; padding: 28px 26px; display: flex; flex-direction: column; }
.cell--foto .cell__body > i { color: var(--sky); padding-bottom: 14px; margin: 0; }
.cell--foto p { color: #dbe4f5; max-width: 40ch; }

.cell--navy {
  grid-column: span 2; color: #fff; box-shadow: none;
  background: radial-gradient(120% 120% at 100% 0%, #1d4596 0%, #0b1b40 60%);
  flex-direction: row; align-items: flex-end; gap: 20px;
}
.cell__mascote { width: 92px; flex: 0 0 auto; margin: -8px 0 -28px -4px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.cell--navy p { color: #c9d5ec; margin-bottom: 16px; max-width: 38ch; }

.cell--completo {
  grid-column: 1 / -1; min-height: 0;
  flex-direction: row; align-items: center; gap: 24px 40px;
  padding: 34px 40px;
  background: linear-gradient(110deg, var(--tint) 0%, var(--surface) 75%);
}
.cell--completo .cell__body { flex: 1; position: relative; z-index: 1; }
.cell--completo h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cell--completo p { max-width: 52ch; }
.cell--completo .btn { position: relative; z-index: 1; flex: 0 0 auto; }
.cell__tag { font-size: .82rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue) !important; margin: 0 0 8px !important; }
.cell > i.cell--completo__bg { position: absolute; right: 250px; top: 50%; translate: 0 -50%; font-size: 200px; line-height: 1; padding: 0; margin: 0; color: var(--blue); opacity: .1; pointer-events: none; }
@media (prefers-color-scheme: dark) {
  .cell__tag { color: var(--sky) !important; }
  .cell--completo { background: linear-gradient(110deg, #12306b 0%, var(--surface) 75%); }
  .cell > i.cell--completo__bg { color: var(--sky); opacity: .12; }
}
@media (max-width: 720px) {
  .cell--completo { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .cell > i.cell--completo__bg { right: -24px; top: 18px; translate: none; font-size: 150px; }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--foto, .cell--navy, .cell--completo { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell--foto, .cell--navy, .cell--completo { grid-column: auto; }
  .cell { min-height: 0; }
  .cell > i { padding-bottom: 18px; }
}

/* ---------- como funciona ---------- */
.como { background: var(--surface); }
.como__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.como__head { position: sticky; top: calc(var(--header-h) + 40px); }
.como__head .h2 { margin-bottom: 14px; }
.como__lead { color: var(--muted); margin: 0; max-width: 34ch; font-size: 1.08rem; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.passo {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 24px; border-radius: var(--r); background: var(--bg);
}
.passo__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--sky); font-size: 30px; }
.passo h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; margin: 6px 0 6px; letter-spacing: -.01em; }
.passo p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .como__grid { grid-template-columns: 1fr; }
  .como__head { position: static; }
  .passo { grid-template-columns: 52px 1fr; gap: 16px; padding: 20px; }
  .passo__icon { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
}

/* ---------- horário e endereço ---------- */
.endereco__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.info {
  background: radial-gradient(130% 90% at 0% 0%, #1b3f8c 0%, #0b1b40 62%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
}
.info__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 24px; }
.horario { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 6px; }
.horario li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 12px 14px; border-radius: 12px; color: #c9d5ec;
}
.horario strong { color: #fff; font-weight: 600; text-align: right; }
.horario li.is-today { background: rgba(140, 200, 245, .14); box-shadow: inset 3px 0 0 var(--sky); color: #fff; }
.local { display: flex; gap: 12px; font-style: normal; color: #dbe4f5; margin-bottom: 28px; line-height: 1.55; }
.local i { color: var(--sky); font-size: 22px; margin-top: 2px; }
.local small { color: #9fb0d1; font-size: .92rem; }
.info__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.tel { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.tel:hover { color: var(--sky); }
.mapa { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.mapa iframe { width: 100%; height: 100%; min-height: 420px; 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 {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(60% 120% at 85% 100%, rgba(140, 200, 245, .28), transparent 60%),
    linear-gradient(135deg, #143275 0%, #0b1b40 70%);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px) 0;
}
.final__copy { padding-bottom: clamp(36px, 6vw, 72px); }
.final h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; max-width: 16ch; }
.final h2 span { color: var(--sky); }
.final__copy > p { color: #c9d5ec; margin: 0 0 28px; max-width: 42ch; font-size: 1.08rem; }
.final__num { margin: 18px 0 0 !important; font-size: .95rem !important; letter-spacing: .04em; }
.final__mascote { width: clamp(140px, 16vw, 220px); align-self: end; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .35)); }
@media (max-width: 680px) {
  .final__slab { grid-template-columns: 1fr; }
  .final__mascote { position: absolute; right: 12px; bottom: -10px; width: 104px; }
  .final__copy { padding-bottom: 150px; }
}

/* ---------- rodapé ---------- */
.rodape { background: #0b1b40; color: #b9c5dd; padding: 56px 0 32px; font-size: .95rem; }
.rodape__grid { display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: start; }
.rodape__marca img { height: 40px; width: auto; }
.rodape__marca p { margin: 8px 0 0; color: #8fa0c2; }
.rodape__info { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 40px; justify-content: end; }
.rodape__info li { display: flex; gap: 10px; align-items: center; }
.rodape__info i { color: var(--sky); font-size: 1.15rem; }
.rodape__info a { color: #e6ecf7; text-decoration: none; }
.rodape__info a:hover { color: var(--sky); }
.rodape__legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid rgba(140, 200, 245, .16); font-size: .85rem; }
.rodape__credito { grid-column: 1 / -1; margin: -16px 0 0; font-size: .82rem; color: rgba(185, 197, 221, .75); }
.rodape__credito a { color: var(--sky); text-underline-offset: 3px; }
.rodape__credito a:hover { color: #fff; }
@media (max-width: 860px) {
  .rodape__grid { grid-template-columns: 1fr; }
  .rodape__info { grid-template-columns: 1fr; 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(--blue);
  box-shadow: 0 14px 30px -10px rgba(29, 99, 216, .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; }
}
