/* =========================================================
   CLÍNICA VISÃO — Design System
   Azul institucional (fachada) + branco + vermelho pontual
   Tipografia: EB Garamond (institucional) + Montserrat (destaque)
   ========================================================= */

:root {
  --blue-primary: #1c4c86;
  --blue-primary-hover: #163e6e;
  --blue-dark: #0d2748;
  --blue-pale: #eef3fa;
  --red-accent: #a72b2b;
  --white: #ffffff;
  --background: #f7f9fc;
  --text: #12203a;
  --text-muted: #5c6b84;
  --border: #e2e8f3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(13, 39, 72, 0.14);
  --shadow-sm: 0 6px 16px rgba(13, 39, 72, 0.10);

  --font-display: 'EB Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Montserrat', Arial, Helvetica, sans-serif;

  --header-h: 68px;
  --container: 1180px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------- Type scale -------------------- */
h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--blue-dark);
}
h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  line-height: 1.2;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-dark);
}
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--red-accent);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  min-height: 48px;
  max-width: 100%;
}
@media (max-width: 360px) {
  /* Em telas muito estreitas, deixa o texto do botão quebrar em
     vez de forçar a página inteira a ficar mais larga que a tela. */
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
}
.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--blue-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue-primary); background: var(--blue-pale); }
.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn:focus-visible { outline: 3px solid var(--red-accent); outline-offset: 2px; }
.ico-wa { flex: none; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--blue-dark); min-width: 0; }
.brand-mark { color: var(--blue-primary); display: inline-flex; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-word em { font-style: italic; color: var(--blue-primary); }
.site-header .brand-word {
  font-family: var(--font-sans);
  font-style: normal;
}
.btn-header-label { display: none; }
.btn-header-label-short { display: inline; }
.btn-header { padding: 10px 14px; min-height: 44px; flex: none; }

/* Telas bem pequenas (celulares antigos/estreitos, ~320-380px). */
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .btn-header { padding: 9px 11px; font-size: 0.82rem; }
}

@media (min-width: 640px) {
  .btn-header-label { display: inline; }
  .btn-header-label-short { display: none; }
}

/* -------------------- Hero -------------------- */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-copy { padding-top: 4px; }
.hero-text { margin-top: 16px; color: var(--text-muted); font-size: 1.02rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust {
  display: flex; align-items: center; gap: 7px;
  margin-top: 22px; font-size: 0.86rem; color: var(--blue-primary); font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 11;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,39,72,0) 55%, rgba(13,39,72,0.28) 100%);
  pointer-events: none;
}

/* Signature: divider that echoes the phoropter dial ticks from the real exam photos */
.dial-divider {
  height: 26px;
  margin-top: 40px;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1.5px, transparent 1.5px 26px);
  background-position: center;
  position: relative;
}
.dial-divider::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px;
  background: var(--red-accent);
  transform: translateX(-50%);
}

@media (min-width: 860px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1.05fr 0.85fr; gap: 56px; }
  .hero-media { aspect-ratio: 4 / 5; max-width: 420px; margin-left: auto; }
}

/* -------------------- Sections -------------------- */
.section { padding: 64px 0; }
.section h2 { margin-bottom: 30px; }
@media (min-width: 860px) { .section { padding: 92px 0; } }

/* Benefits */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--red-accent);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.card p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }

@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

/* How it works */
.how { background: var(--blue-pale); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--blue-primary);
  font-size: 1.1rem;
  flex: none;
  width: 34px;
}
.step-text { font-weight: 500; }
.how-cta { margin-top: 28px; display: flex; justify-content: center; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
  .steps li {
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    border: none;
    padding: 0 16px;
    position: relative;
  }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px; right: -8%;
    width: 16%;
    border-top: 1.5px dashed var(--border);
  }
  .step-num { font-size: 1.4rem; margin-bottom: 10px; }
}

/* Visual proof */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.proof-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-dark);
}
.proof-item img { width: 100%; height: 100%; object-fit: cover; }
.proof-tall { grid-column: 1 / 2; grid-row: 1 / 3; aspect-ratio: 3/5; }
.proof-wide { grid-column: 2 / 3; aspect-ratio: 4/3; }
.proof-square { grid-column: 2 / 3; aspect-ratio: 1/1; }
.proof-accent { grid-column: 1 / 3; aspect-ratio: 16/7; }
.proof-accent .proof-caption {
  position: absolute; left: 16px; bottom: 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@media (min-width: 700px) {
  .proof-grid { grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 160px; }
  .proof-tall { grid-column: 1 / 2; grid-row: 1 / 3; aspect-ratio: auto; }
  .proof-wide { grid-column: 2 / 4; grid-row: 1 / 2; aspect-ratio: auto; }
  .proof-square { grid-column: 2 / 3; grid-row: 2 / 3; aspect-ratio: auto; }
  .proof-accent { grid-column: 3 / 4; grid-row: 2 / 3; aspect-ratio: auto; }
}

/* Diffs */
.diffs-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.check-list { margin-top: 20px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-primary);
}
.check-list li::after {
  content: "";
  position: absolute; left: 5px; top: 7px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.diffs-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; }
.diffs-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .diffs-inner { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
}

/* CTA intermediário */
.cta-mid { background: var(--blue-primary); }
.cta-mid-inner { text-align: center; max-width: 620px; }
.cta-mid h2 { color: var(--white); }
.cta-mid p { color: rgba(255,255,255,0.85); margin-top: 12px; margin-bottom: 26px; }

/* Location */
.location-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.location-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16/9; }
.location-media img { width: 100%; height: 100%; object-fit: cover; }
.location-line { margin-top: 12px; color: var(--text-muted); }
.location-line strong { color: var(--text); }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (min-width: 860px) {
  .location-inner { grid-template-columns: 1fr 1fr; gap: 50px; }
}

/* FAQ */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue-dark);
}
.accordion-icon {
  flex: none;
  width: 20px; height: 20px;
  position: relative;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute; background: var(--blue-primary);
  transition: transform 220ms ease;
}
.accordion-icon::before { left: 2px; right: 2px; top: 9px; height: 2px; }
.accordion-icon::after { top: 2px; bottom: 2px; left: 9px; width: 2px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(90deg); opacity: 0; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}
.accordion-panel p { padding: 0 4px 18px; color: var(--text-muted); max-width: 62ch; }

/* CTA final */
.cta-final { background: var(--blue-dark); text-align: center; }
.cta-final-inner { max-width: 560px; }
.brand-mark-lg { color: var(--white); margin-bottom: 18px; display: inline-flex; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,0.75); margin-top: 12px; margin-bottom: 26px; }
.cta-final-sub { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--blue-dark); padding: 40px 0 18px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  color: rgba(255,255,255,0.8);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.brand-footer .brand-mark { color: var(--white); }
.brand-footer .brand-word { color: var(--white); font-size: 1.1rem; }
.brand-footer .brand-word em { color: rgba(255,255,255,0.85); }
.footer-contact { display: grid; gap: 6px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 18px; font-size: 0.9rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
.footer-copy { text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 18px; }

@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* -------------------- Floating WhatsApp -------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 50;
  transition: transform 200ms ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--red-accent); outline-offset: 3px; }

/* =========================================================
   SISTEMA DE AGENDAMENTO — modal embutido na landing page
   ========================================================= */

/* Botão de destaque para abrir o agendamento (usado no hero, no
   CTA intermediário e no CTA final, junto com o botão de WhatsApp) */
.btn-agendar { background: var(--red-accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-agendar:hover { background: #8a2222; transform: translateY(-1px); }

/* Overlay escuro atrás do modal */
.ag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 39, 72, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}
.ag-overlay.aberto { display: flex; }

@media (min-width: 700px) {
  .ag-overlay { align-items: center; padding: 20px; }
}

/* Caixa do modal — no celular ocupa a parte de baixo da tela (bottom sheet) */
.ag-modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
  padding: 22px 20px 28px;
  position: relative;
}
@media (min-width: 700px) {
  .ag-modal { border-radius: var(--radius); padding: 30px 28px 32px; }
}

.ag-fechar {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.ag-header { margin-bottom: 18px; padding-right: 40px; }
.ag-header h2 { font-size: 1.3rem; }
.ag-header p { color: var(--text-muted); margin-top: 6px; font-size: 0.92rem; }

.ag-etapas { display: flex; gap: 6px; margin-bottom: 20px; }
.ag-etapas span { flex: 1; height: 4px; border-radius: 999px; background: var(--border); }
.ag-etapas span.ativa { background: var(--blue-primary); }

.ag-passo { display: none; }
.ag-passo.ativo { display: block; }

.ag-campo { margin-bottom: 16px; }
.ag-campo label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--text); }
.ag-campo input[type="date"],
.ag-campo input[type="text"],
.ag-campo input[type="tel"],
.ag-campo textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.ag-campo textarea { resize: vertical; min-height: 70px; }
.ag-campo input:focus, .ag-campo textarea:focus { outline: none; border-color: var(--blue-primary); }

.ag-horarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
@media (min-width: 420px) { .ag-horarios { grid-template-columns: repeat(4, 1fr); } }

.ag-horario-btn {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
  background: var(--white);
  transition: all 150ms ease;
}
.ag-horario-btn:hover { border-color: var(--blue-primary); }
.ag-horario-btn.selecionado { background: var(--blue-primary); color: var(--white); border-color: var(--blue-primary); }

.ag-estado-msg { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 18px 0; }
.ag-erro { color: var(--red-accent); font-size: 0.88rem; margin-top: 4px; min-height: 1.2em; }

.ag-resumo {
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.ag-resumo strong { color: var(--blue-dark); }

.ag-acoes { display: flex; gap: 10px; margin-top: 6px; }
.ag-acoes .btn { flex: 1; }

.ag-sucesso { text-align: center; padding: 10px 0; }
.ag-sucesso-icone {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue-pale); color: var(--blue-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.8rem;
}
.ag-sucesso h2 { margin-bottom: 8px; }
.ag-sucesso p { color: var(--text-muted); }
.ag-sucesso .ag-resumo { text-align: left; margin-top: 18px; }

.ag-voltar { color: var(--blue-primary); font-weight: 600; font-size: 0.88rem; display: inline-block; margin-bottom: 14px; }

/* =========================================================
   OFERTA — EXAME DE VISTA (seção de preço logo após o Hero)
   Elegante e clara, sem aparência de "promoção agressiva".
   ========================================================= */
.price-section { padding: 0 0 56px; }
@media (min-width: 860px) { .price-section { padding-bottom: 76px; } }

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 24px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.price-card-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--blue-primary);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.price-card-valores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.price-de { color: var(--text-muted); font-size: 0.95rem; }
.price-de s { opacity: 0.75; }
.price-por { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.price-por-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.price-valor {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  color: var(--blue-dark);
  line-height: 1;
}
.price-centavos { font-size: 0.5em; vertical-align: super; }
.price-card-texto { color: var(--text-muted); font-size: 0.94rem; max-width: 42ch; margin: 0 auto 22px; }

@media (min-width: 640px) {
  .price-card { padding: 38px 40px; }
}

/* =========================================================
   ENTRE EM CONTATO COMIGO (formulário simples no final da página)
   Reaproveita os estilos .ag-campo / .ag-erro já usados no modal.
   ========================================================= */
.contato { background: var(--blue-pale); }
.contato-inner { max-width: 560px; }
.contato-texto { color: var(--text-muted); margin-top: 10px; margin-bottom: 26px; max-width: 50ch; }
.contato-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
}
@media (min-width: 640px) { .contato-form { padding: 32px 34px; } }

.contato-form .ag-campo:last-of-type { margin-bottom: 8px; }
.contato-sucesso-msg {
  background: #e1f5e5;
  color: #187a3a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.contato-form .btn { width: 100%; }
