/* ============================================
   Dr. Victor Almeida — Endocrinologia
   Dark Tech-Health Design System
   ============================================ */

:root {
  --bg: #090d14;
  --bg-alt: #0c121c;
  --panel: #121a28;
  --panel-2: #161f2f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0f8;
  --text-dim: #9dabc2;
  --text-faint: #64718a;
  --brand: #1f6e9f;
  --brand-light: #4fa8d8;
  --brand-glow: #7fd0ff;
  --cyan: #52e3d1;
  --gold: #cda35c;
  --whatsapp: #25d366;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --maxw: 1280px;
  --shadow-glow: 0 0 0 1px rgba(79, 168, 216, 0.15), 0 20px 60px -20px rgba(31, 110, 159, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-glow);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-glow), transparent);
}

.grad-text {
  background: linear-gradient(100deg, var(--brand-glow) 0%, var(--cyan) 55%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn i, .btn svg { font-size: 1.05em; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--whatsapp);
  color: #06210f;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(37, 211, 102, 0.7); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--brand-light); background: rgba(79, 168, 216, 0.08); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--brand-light); color: var(--brand-glow); }

.btn--sm { padding: 11px 18px; font-size: 13.5px; }

/* ===== Scrollbar ===== */
::selection { background: var(--brand); color: #fff; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 12px 0;
  background: rgba(9, 13, 20, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand-mark { height: 38px; width: auto; }
.nav__brand-name { height: 17px; width: auto; margin-top: 2px; }

@media (max-width: 560px) {
  .nav__brand-name { display: none; }
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav__list a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--border-strong);
  width: 42px; height: 42px; border-radius: 10px;
  color: var(--text); align-items: center; justify-content: center;
  font-size: 18px;
}
.nav__close { margin-left: auto; margin-bottom: 10px; }

@media (max-width: 960px) {
  .nav__list {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 84vw);
    background: var(--bg-alt); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 26px; transition: right 0.35s ease;
    border-left: 1px solid var(--border); z-index: 90;
  }
  .nav__list.is-open { right: 0; }
  .nav__list a { font-size: 18px; }
  .nav__toggle { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 140px;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,14,.55) 0%, rgba(7,10,16,.45) 30%, rgba(7,10,16,.82) 78%, #090d14 100%),
    linear-gradient(100deg, rgba(6,9,14,.75) 0%, rgba(6,9,14,.25) 45%, rgba(6,9,14,.55) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: 74px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  color: #fff;
  margin-bottom: 22px;
}
.hero__desc {
  font-size: 17.5px;
  color: rgba(234, 240, 248, 0.82);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero__credentials {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.credential-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}
.credential-chip i { color: var(--cyan); font-size: 12px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__aside {
  justify-self: end;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 340px;
}
.hero__stat-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(18, 26, 40, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.hero__stat-card .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem; font-weight: 600;
  color: #fff;
}
.hero__stat-card .label {
  font-size: 12.5px; color: var(--text-dim); margin-top: 2px;
}

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(234,240,248,.55);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.hero__scroll .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50% { transform: scaleY(1.25); opacity: 1; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { justify-self: start; flex-direction: row; max-width: 100%; overflow-x: auto; }
}

/* ===== Marquee ===== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 40px;
}
.marquee__track span i { color: var(--brand-light); font-size: 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section basics ===== */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }
.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 16px; color: #fff; }
.section__head p { color: var(--text-dim); font-size: 16.5px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-alt { background: var(--bg-alt); }

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.about__media img { width: 100%; height: 620px; object-fit: cover; }
.about__media .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,9,14,.75) 100%);
}
.about__badge {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.6);
  z-index: 2;
}
.about__badge i { font-size: 22px; color: var(--cyan); }
.about__badge b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.about__badge span { font-size: 12px; color: var(--text-dim); }

.about__content h3 { font-size: 1.05rem; color: var(--text-dim); font-weight: 500; margin-bottom: 10px; }
.about__lede { font-size: 1.55rem; color: #fff; margin-bottom: 22px; }
.about__body { color: var(--text-dim); font-size: 16px; margin-bottom: 34px; }
.about__body + .about__body { margin-top: -18px; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
.timeline__item {
  display: grid; grid-template-columns: 26px 1fr;
  gap: 18px; padding-bottom: 26px; position: relative;
}
.timeline__item:not(:last-child)::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0;
  width: 1px; background: var(--border-strong);
}
.timeline__dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-glow); font-size: 11px;
}
.timeline__item h4 { font-size: 15.5px; margin-bottom: 3px; color: #fff; }
.timeline__item p { font-size: 14px; color: var(--text-dim); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-row .stat {
  padding: 20px; border-radius: var(--radius-md);
  background: var(--panel); border: 1px solid var(--border);
}
.stat-row .num {
  font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 600;
}
.stat-row .lbl { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media img { height: 420px; }
  .about__badge { left: 16px; }
}

/* ===== Statement / Quote break ===== */
.statement {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
}
.statement__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  filter: grayscale(35%) brightness(.5);
}
.statement__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,9,14,.96) 15%, rgba(6,9,14,.72) 55%, rgba(6,9,14,.35) 100%);
}
.statement__content { position: relative; z-index: 2; max-width: 780px; }
.statement blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  color: #fff;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 28px;
}
.statement cite {
  font-style: normal; color: var(--text-dim); font-size: 14px;
  display: flex; align-items: center; gap: 12px;
}
.statement cite::before { content: ""; width: 34px; height: 1px; background: var(--brand-light); }

/* ===== Specialties bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
.bento .card--lg { grid-column: span 2; grid-row: span 2; }
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-alt) 100%);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,168,216,.45);
  box-shadow: var(--shadow-glow);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(79,168,216,.12);
  border: 1px solid rgba(79,168,216,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-glow); font-size: 20px;
  margin-bottom: 22px;
}
.card h3 { font-size: 1.25rem; color: #fff; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.card ul { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.card ul li {
  font-size: 13.5px; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
}
.card ul li i { color: var(--cyan); font-size: 11px; }
.card--lg .card__icon { width: 60px; height: 60px; font-size: 24px; }
.card--lg h3 { font-size: 1.6rem; }
.card--lg p { font-size: 15.5px; max-width: 420px; }
.card--glow { position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,168,216,.25), transparent 70%);
  right: -80px; bottom: -80px; pointer-events: none;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card--lg { grid-column: span 1; grid-row: span 1; }
}

/* ===== Tech section ===== */
.tech {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.tech__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.tech__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,13,20,.97) 30%, rgba(9,13,20,.55) 100%);
}
.tech__content {
  position: relative; z-index: 2;
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.tech__list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.tech__list li { display: flex; gap: 16px; align-items: flex-start; }
.tech__list .n {
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-glow); font-weight: 600; font-size: 14px;
  border: 1px solid rgba(79,168,216,.35); border-radius: 8px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tech__list b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 3px; }
.tech__list span { color: var(--text-dim); font-size: 14px; }

.wave { width: 100%; height: 180px; }
.wave-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.wave-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.wave-card__head b { font-family: "Space Grotesk", sans-serif; color: #fff; font-size: 14px; }
.wave-card__head span { font-size: 12px; color: var(--cyan); }

@media (max-width: 900px) {
  .tech__content { grid-template-columns: 1fr; padding: 44px 26px; }
}

/* ===== Videos ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color .3s ease, transform .3s ease;
}
.video-card:hover { border-color: rgba(79,168,216,.4); transform: translateY(-4px); }
.video-card__frame { position: relative; aspect-ratio: 16/9; background: #000; }
.video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__body { padding: 22px 24px 26px; }
.video-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
  background: rgba(79,168,216,.14); color: var(--brand-glow); margin-bottom: 12px;
}
.video-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.video-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.video-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-faint); }
.video-meta i { margin-right: 5px; color: var(--brand-light); }

@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(79,168,216,.4); }
.blog-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(205,163,92,.14); color: var(--gold); font-size: 18px;
  margin-bottom: 20px;
}
.blog-card .video-tag { background: rgba(205,163,92,.14); color: var(--gold); }
.blog-card h3 { font-size: 1.1rem; color: #fff; margin: 12px 0 10px; }
.blog-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; flex-grow: 1; }
.blog-card .link { font-size: 13.5px; font-weight: 600; color: var(--brand-glow); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.contact__media { position: relative; min-height: 480px; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.contact__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(9,13,20,.5) 100%);
}
.contact__panel {
  background: var(--panel);
  padding: 60px 52px;
}
.contact__panel h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; margin-bottom: 14px; }
.contact__panel > p { color: var(--text-dim); margin-bottom: 34px; }
.contact__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 36px; }
.contact__row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--border);
}
.contact__row:last-child { border-bottom: none; }
.contact__row .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(79,168,216,.12); color: var(--brand-glow);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact__row b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 3px; }
.contact__row a, .contact__row span.val { font-size: 15px; color: var(--text); font-weight: 500; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__media { min-height: 260px; }
  .contact__panel { padding: 40px 26px; }
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
.footer__brand img { height: 40px; margin-bottom: 16px; }
.footer__brand p { color: var(--text-dim); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all .2s ease;
}
.footer__social a:hover { color: var(--brand-glow); border-color: var(--brand-light); }
.footer h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); margin-bottom: 18px; font-weight: 600;
}
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul li a, .footer ul li { font-size: 14.5px; color: var(--text-dim); }
.footer ul li a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding-top: 26px;
  font-size: 13px; color: var(--text-faint);
}
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--brand-glow); }
.footer__legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ===== Scroll to top ===== */
.scrolltop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--border-strong);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.scrolltop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scrolltop:hover { border-color: var(--brand-light); color: var(--brand-glow); }

/* ===== Simple pages (privacy policy) ===== */
.legal {
  padding: 160px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin-bottom: 14px; }
.legal .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 50px; }
.legal h2 {
  font-size: 1.3rem; color: #fff; margin-top: 46px; margin-bottom: 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal p { color: var(--text-dim); margin-bottom: 14px; font-size: 15.5px; }
.legal ul { margin: 14px 0 14px 0; display: flex; flex-direction: column; gap: 10px; }
.legal ul li {
  color: var(--text-dim); font-size: 15px; padding-left: 22px; position: relative;
}
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light);
}
.legal strong { color: var(--text); }
.legal a { color: var(--brand-glow); text-decoration: underline; text-underline-offset: 3px; }
.legal .callout {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 22px 24px; margin: 30px 0;
  font-size: 14.5px; color: var(--text-dim);
}
.legal .callout b { color: var(--text); }

/* ===== Responsive type scale ===== */
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .contact__panel { padding: 36px 22px; }
}

/* ==========================================================================
   ADIÇÕES 2026 — ícones SVG, consultório, FAQ, cross-brand, avisos
   ========================================================================== */

/* Ícones inline (substituem o Font Awesome) -------------------------------
   Classe .svg-ic — deliberadamente diferente de .ic, que já era usada
   como contêiner em .contact__row .ic e causaria colisão de especificidade. */
.icon-sprite { display: none !important; }
.svg-ic {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
  fill: none;
}

/* Tamanhos que antes vinham das regras de <i> do Font Awesome */
.btn .svg-ic { font-size: 1.05em; }
.credential-chip .svg-ic { color: var(--cyan); font-size: 13px; }
.marquee__track span .svg-ic { color: var(--brand-light); font-size: 8px; }
.card ul li .svg-ic { color: var(--cyan); font-size: 12px; }
.video-meta .svg-ic { margin-right: 5px; color: var(--brand-light); font-size: 13px; }
.contact__row .ic .svg-ic { width: 18px; height: 18px; }
.timeline__dot .svg-ic { font-size: 12px; }
.card__icon .svg-ic { font-size: 20px; }
.card--lg .card__icon .svg-ic { font-size: 24px; }
.blog-card__icon .svg-ic { font-size: 18px; }
.footer__social a .svg-ic { font-size: 16px; }
.scrolltop .svg-ic, .nav__toggle .svg-ic { font-size: 17px; }
.blog-card .link .svg-ic, .hero__buttons .svg-ic { font-size: 1em; }


/* Compatibilidade retroativa ---------------------------------------------
   Versões anteriores do HTML usavam class="ic" nos ícones. Se o index.html
   do servidor estiver defasado em relação a este CSS, os ícones continuam
   corretos. O seletor é svg.ic (elemento + classe), então nunca atinge o
   <div class="ic"> que serve de contêiner no bloco de contato. */
svg.ic {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
  fill: none;
}
.contact__row svg.ic { width: 18px; height: 18px; background: none; border: 0; border-radius: 0; }
.credential-chip svg.ic { color: var(--cyan); font-size: 13px; }
.marquee__track span svg.ic { color: var(--brand-light); font-size: 8px; }
.card ul li svg.ic { color: var(--cyan); font-size: 12px; }
.video-meta svg.ic { margin-right: 5px; color: var(--brand-light); font-size: 13px; }
.timeline__dot svg.ic { font-size: 12px; }
.card__icon svg.ic { font-size: 20px; }
.card--lg .card__icon svg.ic { font-size: 24px; }
.blog-card__icon svg.ic { font-size: 18px; }
.footer__social a svg.ic { font-size: 16px; }
.scrolltop svg.ic, .nav__toggle svg.ic { font-size: 17px; }
.crossbrand__list svg.ic { color: var(--cyan); font-size: 13px; margin-top: 4px; }
.office__facts svg.ic { color: var(--brand-glow); font-size: 15px; margin-top: 2px; }
.prep h3 svg.ic { color: var(--cyan); font-size: 16px; }
.faq__item summary svg.ic { color: var(--brand-glow); font-size: 16px; transition: transform .3s ease; }
.faq__item[open] summary svg.ic { transform: rotate(180deg); }
svg[style*="display:none"], svg.icon-sprite { display: none !important; }

/* Hero: pôster sempre visível, vídeo entra depois ------------------------- */
.hero__poster {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero__media video {
  opacity: 0;
  transition: opacity .9s ease;
}
.hero__media video.is-ready { opacity: 1; }
.hero__stat-card .num { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }

/* Nota do bloco "sobre" --------------------------------------------------- */
.about__note {
  margin-top: 26px; padding: 16px 20px;
  border-left: 2px solid var(--brand-light);
  background: rgba(79,168,216,.06);
  border-radius: 0 12px 12px 0;
  font-size: 14.5px; color: var(--text-dim);
}
.about__note strong { color: var(--text); }

/* Cross-brand Dr. Diabetes ----------------------------------------------- */
.crossbrand {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center;
  padding: 46px; border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(79,168,216,.10), rgba(10,14,20,.4));
}
.crossbrand h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: #fff; margin: 14px 0 16px; }
.crossbrand p { color: var(--text-dim); font-size: 15.5px; }
.crossbrand strong { color: var(--text); }
.crossbrand__list { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.crossbrand__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.crossbrand__list .svg-ic { color: var(--cyan); font-size: 13px; margin-top: 4px; }
.crossbrand__card {
  padding: 30px; border-radius: 20px; text-align: center;
  border: 1px solid var(--border-strong); background: rgba(6,9,14,.5);
}
.crossbrand__icon { width: 34px; height: 34px; font-size: 34px; color: var(--brand-glow); margin-bottom: 16px; }
.crossbrand__card b { display: block; color: #fff; font-size: 16px; margin-bottom: 10px; }
.crossbrand__card span { font-size: 13.5px; color: var(--text-faint); line-height: 1.6; }
@media (max-width: 900px) {
  .crossbrand { grid-template-columns: 1fr; padding: 30px 24px; gap: 28px; }
}

/* Consultório ------------------------------------------------------------- */
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 900px) { .office { grid-template-columns: 1fr; } }
.office__card {
  padding: 34px; border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  display: flex; flex-direction: column;
}
.office__head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.ic-box {
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  background: rgba(79,168,216,.12); border: 1px solid rgba(79,168,216,.3);
  color: var(--brand-glow); font-size: 21px;
  display: flex; align-items: center; justify-content: center;
}
.office__head h3 { font-size: 1.25rem; color: #fff; margin: 0; }
.office__sub { font-size: 13px; color: var(--text-faint); margin: 2px 0 0; }
.office__address {
  font-style: normal; font-size: 15.5px; line-height: 1.75; color: var(--text-dim);
  padding: 18px 20px; margin-bottom: 22px;
  border-radius: 14px; background: rgba(6,9,14,.45);
  border: 1px solid var(--border);
}
.office__address strong { color: #fff; }
.office__text { font-size: 15px; color: var(--text-dim); margin-bottom: 22px; }
.office__facts { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.office__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.office__facts .svg-ic { color: var(--brand-glow); font-size: 15px; margin-top: 2px; }
.office__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* Preparo para a consulta ------------------------------------------------- */
.prep {
  margin-top: 26px; padding: 34px;
  border-radius: 22px; border: 1px solid var(--border-strong);
  background: rgba(6,9,14,.4);
}
.prep h3 { font-size: 1.1rem; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.prep h3 .svg-ic { color: var(--cyan); font-size: 16px; }
.prep__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .prep__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prep__grid { grid-template-columns: 1fr; } .prep, .office__card { padding: 26px 22px; } }
.prep__grid b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 7px; }
.prep__grid span { font-size: 13.5px; color: var(--text-faint); line-height: 1.65; }

/* FAQ --------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--border-strong); border-radius: 16px;
  background: rgba(255,255,255,.025);
  transition: border-color .25s ease, background .25s ease;
}
.faq__item[open] { border-color: rgba(79,168,216,.4); background: rgba(79,168,216,.05); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 21px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-display, inherit);
  font-size: 16px; font-weight: 600; color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .svg-ic { color: var(--brand-glow); font-size: 16px; transition: transform .3s ease; }
.faq__item[open] summary .svg-ic { transform: rotate(180deg); }
.faq__item summary:hover { color: #fff; }
.faq__body { padding: 0 24px 24px; }
.faq__body p { font-size: 14.8px; color: var(--text-dim); line-height: 1.75; }

/* Avisos ------------------------------------------------------------------ */
.contact__note {
  margin-top: 22px; padding: 14px 18px;
  border-radius: 12px; border: 1px solid var(--border);
  border-left: 2px solid #d9a441;
  background: rgba(217,164,65,.05);
  font-size: 13px; color: var(--text-faint); line-height: 1.65;
}
.footer__disclaimer {
  margin: 34px 0 0; padding: 20px 24px;
  border-radius: 14px; border: 1px solid var(--border);
  background: rgba(6,9,14,.5);
  font-size: 12.8px; color: var(--text-faint); line-height: 1.7;
}
.footer__disclaimer strong { color: var(--text-dim); }

/* Acessibilidade ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 20px; background: var(--brand-glow); color: #061018;
  font-weight: 600; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .marquee__track { animation: none !important; }
}
