/* ══════════════════════════════════════════════════════════
   Dr. Vinicius Zangarini — Oftalmologista · Sinop-MT
   Landing page + Blog · site estático
   ══════════════════════════════════════════════════════════ */

:root {
  --navy-950: #0A1929;
  --navy-900: #0E2233;
  --navy-800: #12293F;
  --navy-700: #17334E;
  --ink:      #16283C;
  --ink-2:    #33475C;
  --muted:    #5C7186;
  --blue:     #1E7FE0;
  --blue-dark:#1565C0;
  --blue-light:#5FA8EF;
  --blue-faint:#E8F1FB;
  --bg:       #F5F8FB;
  --surface:  #FFFFFF;
  --line:     #DFE8F0;
  --line-dark:rgba(255,255,255,0.12);
  --green-wa: #25D366;
  --radius:   18px;
  --shadow:   0 10px 40px rgba(14, 34, 51, 0.08);
  --shadow-lg:0 18px 60px rgba(14, 34, 51, 0.14);
  --font-head:'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: rgba(255,255,255,0.82);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
.section-dark h2, .section-dark h3 { color: #fff; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.5px; }
.center { text-align: center; }
.txt-blue { color: var(--blue); }
.txt-blue-light { color: var(--blue-light); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.eyebrow.light { color: var(--blue-light); }

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.6px; text-transform: uppercase;
  border-radius: 999px; padding: 15px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-wa {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; box-shadow: 0 8px 26px rgba(14, 34, 51, 0.32);
}
.btn-wa:hover { box-shadow: 0 12px 32px rgba(14, 34, 51, 0.42); }
.btn-wa-icon {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-left: -10px;
}
.btn-wa-inverse { background: #fff; color: var(--navy-800); box-shadow: 0 8px 26px rgba(0,0,0,0.25); }
.btn-wa-inverse .btn-wa-icon { background: var(--navy-800); color: #fff; }

.btn-ghost {
  border: 1.6px solid var(--line); color: var(--ink);
  background: transparent; text-transform: none; letter-spacing: 0; font-size: 15px;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-nav { padding: 11px 22px; font-size: 12.5px; background: var(--navy-800); color: #fff; box-shadow: none; }
.btn-nav:hover { background: var(--blue-dark); }

.center-cta { text-align: center; margin-top: 44px; }

/* ── Navbar ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14,34,51,0.06); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { width: 190px; height: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* drawer mobile */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(14,34,51,0.5); z-index: 98;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 84vw; z-index: 99;
  background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,0.18);
  transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; padding: 22px;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-close { background: none; border: none; font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer; padding: 4px 8px; }
.drawer-links { display: flex; flex-direction: column; padding: 10px 0; }
.drawer-links a { padding: 14px 6px; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--bg); }
.drawer-cta { margin-top: auto; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 150px 0 80px;
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(30,127,224,0.10), transparent 65%),
    linear-gradient(180deg, #F2F7FC 0%, #FBFDFF 70%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-crm { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.hero-blue { color: var(--blue); }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-trust-item { display: flex; flex-direction: column; padding: 0 26px; border-left: 1px solid var(--line); }
.hero-trust-item:first-child { padding-left: 0; border-left: none; }
.hero-trust-item strong { font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.hero-trust-item span { font-size: 12.5px; color: var(--muted); }
.hero-photo { display: flex; justify-content: flex-end; }
.hero-photo-card {
  position: relative; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-lg); max-width: 460px;
}
.hero-photo-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 30px;
  border: 1px solid rgba(14,34,51,0.08); pointer-events: none;
}
.hero-photo-card img { width: 100%; height: auto; }

/* ── Diferenciais ───────────────────────────────────────── */
.dif h2 { margin-bottom: 48px; }
.dif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dif-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dif-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-faint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.dif-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.dif-card p { font-size: 14px; color: var(--muted); }

/* ── Sobre ──────────────────────────────────────────────── */
.sobre-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.sobre-photo { position: sticky; top: 110px; }
.sobre-photo img { border-radius: 26px; box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
.sobre-text h2 { margin-bottom: 32px; }
.sobre-timeline { display: flex; flex-direction: column; gap: 26px; margin-bottom: 30px; }
.sobre-item { border-left: 3px solid var(--blue); padding-left: 20px; }
.sobre-item h3 { font-size: 16.5px; font-weight: 700; color: var(--blue-light); margin-bottom: 6px; }
.sobre-item p { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.sobre-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(95,168,239,0.14); color: var(--blue-light); border: 1px solid rgba(95,168,239,0.3);
}

/* ── Tratamentos (Catarata / Retina) ───────────────────── */
.trat-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.trat-grid-invert { grid-template-columns: 0.85fr 1.15fr; }
.trat-text h2 { margin-bottom: 30px; max-width: 560px; }
.trat-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.trat-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.trat-card h3 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.trat-card p { font-size: 14.5px; color: var(--ink-2); }
.trat-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.trat-card-dark { background: rgba(255,255,255,0.05); border-color: var(--line-dark); }
.trat-card-dark h3 { color: var(--blue-light); }
.trat-card-dark p { color: rgba(255,255,255,0.75); }
.trat-photo img { border-radius: 26px; box-shadow: var(--shadow-lg); width: 100%; }
.trat-photo { position: relative; }
.trat-photo.img-fallback {
  min-height: 420px; border-radius: 26px;
  background: linear-gradient(145deg, var(--blue-faint), #CFE3F7);
}

/* ── Outras cirurgias ───────────────────────────────────── */
.outras h2 { margin-bottom: 48px; }
.outras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.outras-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.outras-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.outras-img { aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--blue-faint), #CFE3F7); overflow: hidden; }
.outras-img img { width: 100%; height: 100%; object-fit: cover; }
.outras-body { padding: 24px; }
.outras-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; text-align: center; }
.outras-body p { font-size: 14px; color: var(--muted); text-align: center; }
.outras-note {
  margin-top: 34px; text-align: center; font-size: 13.5px; color: var(--muted); font-style: italic;
  max-width: 860px; margin-left: auto; margin-right: auto;
}

/* ── Depoimentos ────────────────────────────────────────── */
.depo h2 { margin-bottom: 14px; }
.depo-rating {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 44px;
}
.stars { color: #F5B301; letter-spacing: 2px; font-size: 15px; }
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.depo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.depo-card p { font-size: 14.5px; font-style: italic; color: var(--ink-2); flex: 1; }
.depo-card footer { display: flex; align-items: center; gap: 12px; }
.depo-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-faint); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head);
}
.depo-card footer strong { display: block; font-size: 14px; color: var(--ink); font-family: var(--font-head); }
.depo-card footer small { font-size: 12px; color: var(--muted); }

/* ── Blog preview (landing) + cards do blog ─────────────── */
.blogprev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.blogprev-all { font-weight: 600; font-size: 14.5px; color: var(--blue); }
.blogprev-all:hover { color: var(--blue-dark); }
.blogprev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.bp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bp-img { aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--blue-faint), #CFE3F7); overflow: hidden; position: relative; }
.bp-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bp-badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: var(--blue-faint); color: var(--blue-dark);
}
.bp-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.bp-card h3 a:hover { color: var(--blue); }
.bp-excerpt { font-size: 13.5px; color: var(--muted); flex: 1; }
.bp-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bp-meta .bp-read { color: var(--blue); font-weight: 600; }

/* ── Localização ────────────────────────────────────────── */
.loc h2 { margin-bottom: 48px; }
.loc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch; }
.loc-map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: 440px; background: var(--blue-faint);
}
.loc-map iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.loc-map-link {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #fff; color: var(--blue-dark); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.loc-info {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
.loc-row {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid var(--bg);
}
.loc-row:last-child { border-bottom: none; }
a.loc-row:hover small { color: var(--blue); }
.loc-icon {
  width: 38px; height: 38px; border-radius: 12px; background: var(--blue-faint); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.loc-row small {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.loc-row p { font-size: 14.5px; color: var(--ink); font-weight: 500; }

/* ── CTA final ──────────────────────────────────────────── */
.ctafinal {
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(30,127,224,0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
  text-align: center; padding: 92px 24px;
}
.ctafinal h2 { color: #fff; max-width: 640px; margin: 0 auto 16px; }
.ctafinal p { color: rgba(255,255,255,0.72); font-size: 16px; margin-bottom: 36px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.6); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr 1fr; gap: 44px; padding: 60px 24px 44px;
}
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); text-align: center;
  padding: 20px 24px; font-size: 12.5px; color: rgba(255,255,255,0.4);
}

/* ── Barra fixa de CTA (só mobile) ──────────────────────── */
.mobile-cta { display: none; }

/* ── WhatsApp flutuante ─────────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ── Reveal on scroll ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ══ BLOG ════════════════════════════════════════════════ */
.blog-hero {
  padding: 150px 0 64px;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(30,127,224,0.22), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: rgba(255,255,255,0.78); text-align: center;
}
.blog-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }
.blog-hero p { max-width: 560px; margin: 0 auto; font-size: 16px; }

.cat-filter {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 34px 24px 6px; max-width: 1000px; margin: 0 auto;
}
.cat-chip {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); color: var(--ink-2); border: 1.4px solid var(--line);
  cursor: pointer; transition: all 0.15s ease;
}
.cat-chip:hover { border-color: var(--blue); color: var(--blue); }
.cat-chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.posts-section { padding: 44px 0 88px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.posts-empty { text-align: center; color: var(--muted); padding: 60px 0; display: none; }

/* ── Artigo ─────────────────────────────────────────────── */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 140px 24px 40px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--blue); font-weight: 500; }
.article-head .bp-badge { margin-bottom: 16px; }
.article-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 18px; }
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 30px; }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-cover { border-radius: 20px; overflow: hidden; margin-bottom: 38px; aspect-ratio: 16 / 8.5; background: linear-gradient(145deg, var(--blue-faint), #CFE3F7); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-content { font-size: 16.5px; color: var(--ink-2); }
.article-content h2 { font-size: 26px; margin: 40px 0 16px; }
.article-content h3 { font-size: 20px; margin: 30px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--ink); }
.article-content blockquote {
  border-left: 3px solid var(--blue); background: var(--bg);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin-bottom: 18px;
  font-size: 15.5px;
}
.alert {
  display: flex; gap: 14px; background: #FFF7E8; border: 1px solid #F2DFB6;
  border-radius: 14px; padding: 18px 20px; margin: 24px 0; font-size: 15px;
}
.alert::before { content: '⚠️'; font-size: 18px; line-height: 1.4; }
.alert-red { background: #FDEEEE; border-color: #F1C7C7; }
.alert-red::before { content: '🚨'; }

.article-cta {
  margin: 44px 0; padding: 34px; border-radius: 20px; text-align: center;
  background:
    radial-gradient(500px 240px at 20% 0%, rgba(30,127,224,0.25), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
}
.article-cta h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,0.72); font-size: 14.5px; margin-bottom: 24px; }

.article-author {
  display: flex; gap: 18px; align-items: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 56px;
}
.article-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.article-author strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.article-author span { font-size: 13.5px; color: var(--muted); }

.related { background: var(--bg); padding: 64px 0 88px; }
.related h2 { font-size: 26px; margin-bottom: 30px; }

/* ══ Responsivo ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dif-grid, .outras-grid, .depo-grid, .blogprev-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .sobre-grid, .trat-grid, .trat-grid-invert, .loc-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-content: center; }
  .sobre-photo { position: static; max-width: 480px; }
  .trat-grid-invert .trat-photo { order: 2; }
  .trat-photo { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ══ Mobile (≤768px) — layout reestruturado ══════════════ */
@media (max-width: 768px) {
  body { padding-bottom: 66px; } /* espaço para a barra fixa de CTA */
  .section { padding: 46px 0; }
  .container { padding: 0 20px; }
  h2 { font-size: 24px; letter-spacing: -0.3px; }
  .eyebrow { font-size: 10.5px; letter-spacing: 1.6px; margin-bottom: 10px; }

  /* nav: logo + botão compacto + burger */
  .nav-links { display: none; }
  .nav-burger { display: flex; padding: 6px; }
  .nav-inner { padding: 11px 16px; gap: 10px; }
  .nav-logo img { width: 142px; height: auto; }
  .btn-nav { display: inline-flex; margin-left: auto; padding: 9px 13px; font-size: 10px; letter-spacing: 0.4px; }

  /* botões full-width nas seções */
  .btn { width: 100%; padding: 14px 24px; }
  .btn-nav { width: auto; }

  /* hero compacto */
  .hero { padding: 96px 0 40px; }
  .hero-grid { display: flex; flex-direction: column; gap: 24px; }
  .hero-crm {
    display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--blue-dark);
    background: var(--blue-faint); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
  }
  .hero h1 { font-size: 30px; line-height: 1.22; letter-spacing: -0.6px; margin-bottom: 12px; }
  .hero-sub { font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 24px; }
  .hero-trust { flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
  .hero-trust-item { border-left: none; padding: 0; flex-direction: row; gap: 8px; align-items: baseline; }
  .hero-trust-item::before { content: '✓'; color: var(--blue); font-weight: 700; }
  .hero-trust-item strong { font-size: 13.5px; }
  .hero-trust-item span { font-size: 12px; }
  .hero-photo { justify-content: stretch; }
  .hero-photo-card { max-width: none; width: 100%; border-radius: 22px; }
  .hero-photo-card img { width: 100%; height: 350px; object-fit: cover; object-position: center 12%; }

  /* carrosséis de swipe (cards horizontais) */
  .dif-grid, .outras-grid, .depo-grid, .blogprev-grid {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -20px; padding: 4px 20px 16px; scroll-padding-left: 20px;
    scrollbar-width: none;
  }
  .dif-grid::-webkit-scrollbar, .outras-grid::-webkit-scrollbar,
  .depo-grid::-webkit-scrollbar, .blogprev-grid::-webkit-scrollbar { display: none; }
  .dif-card, .outras-card, .depo-card, .blogprev-grid .bp-card {
    flex: 0 0 80%; scroll-snap-align: start;
  }
  /* dentro de carrossel, cards sempre visíveis (sem depender do reveal) */
  .dif-grid .reveal, .outras-grid .reveal, .depo-grid .reveal, .blogprev-grid .reveal {
    opacity: 1; transform: none;
  }
  .dif h2, .outras h2 { margin-bottom: 26px; }
  .dif-card { padding: 20px 18px; }
  .dif-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .dif-card h3 { font-size: 15px; }
  .dif-card p { font-size: 13px; }
  .depo-rating { margin-bottom: 24px; flex-wrap: wrap; text-align: center; }
  .depo-card { padding: 20px; }
  .depo-card p { font-size: 13.5px; }
  .outras-body { padding: 18px; }
  .outras-body h3 { font-size: 15.5px; }
  .outras-body p { font-size: 13px; }
  .outras-note { margin-top: 20px; font-size: 12.5px; }
  .center-cta { margin-top: 22px; }

  /* sobre */
  .sobre-grid { display: flex; flex-direction: column; gap: 24px; }
  .sobre-photo { position: static; max-width: none; }
  .sobre-photo img { width: 100%; height: 320px; object-fit: cover; object-position: center 12%; border-radius: 20px; }
  .sobre-text h2 { margin-bottom: 22px; }
  .sobre-timeline { gap: 18px; margin-bottom: 22px; }
  .sobre-item { padding-left: 16px; }
  .sobre-item h3 { font-size: 15px; }
  .sobre-item p { font-size: 13.5px; }
  .sobre-chips { gap: 8px; margin-bottom: 24px; }
  .chip { padding: 6px 13px; font-size: 11.5px; }

  /* tratamentos (catarata / retina) */
  .trat-grid, .trat-grid-invert { display: flex; flex-direction: column; gap: 20px; }
  .trat-text h2 { max-width: none; margin-bottom: 20px; }
  .trat-cards { gap: 12px; margin-bottom: 22px; }
  .trat-card { padding: 16px; gap: 12px; }
  .trat-card-icon { width: 36px; height: 36px; border-radius: 10px; }
  .trat-card h3 { font-size: 14.5px; }
  .trat-card p { font-size: 13.5px; }
  #catarata .trat-photo { display: none; } /* foto de banco de imagem não agrega no mobile */
  .trat-grid-invert .trat-photo { order: 2; max-width: none; }
  #retina .trat-photo img { width: 100%; height: 300px; object-fit: cover; object-position: center 18%; border-radius: 20px; }

  /* blog preview */
  .blogprev-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
  .bp-body { padding: 16px 18px 18px; }
  .bp-card h3 { font-size: 15.5px; }

  /* localização */
  .loc h2 { margin-bottom: 26px; }
  .loc-grid { display: flex; flex-direction: column; gap: 18px; }
  .loc-map { min-height: 250px; }
  .loc-info { padding: 20px 18px; }
  .loc-row { padding: 12px 0; gap: 13px; }
  .loc-row p { font-size: 13.5px; }
  .loc-icon { width: 34px; height: 34px; }

  /* CTA final + footer */
  .ctafinal { padding: 54px 20px; }
  .ctafinal p { font-size: 14px; margin-bottom: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 20px 30px; }
  .footer-brand img { width: 150px; }
  .footer-bottom { font-size: 11.5px; }

  /* barra fixa de agendamento */
  .wa-float { display: none; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(14, 34, 51, 0.10);
  }
  .mobile-cta .btn { width: 100%; padding: 12px 20px; font-size: 13px; }
  .mobile-cta .btn-wa-icon { width: 30px; height: 30px; }

  /* blog */
  .posts-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 104px 0 38px; }
  .blog-hero p { font-size: 14px; }
  .cat-filter {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding: 18px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 auto; }
  .posts-section { padding: 26px 0 56px; }

  /* artigo */
  .article-wrap { padding-top: 100px; padding-bottom: 24px; }
  .article-head h1 { font-size: 26px; }
  .article-meta { flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
  .article-cover { aspect-ratio: 16 / 10; border-radius: 16px; margin-bottom: 26px; }
  .article-content { font-size: 15.5px; }
  .article-content h2 { font-size: 21px; margin: 30px 0 12px; }
  .article-content h3 { font-size: 17px; }
  .article-cta { padding: 26px 20px; }
  .article-author { gap: 14px; padding: 18px; margin-bottom: 40px; }
  .article-author img { width: 58px; height: 58px; }
  .related { padding: 44px 0 56px; }
}
