/* ==========================================================
   Clínica de Olhos Dr. Heleno — estilos
   Paleta inspirada no logotipo: vermelho da íris + prata/azul.
   ========================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d4e89;
  --sky: #8da9c4;
  --ice: #eef3f9;
  --red: #d7263d;
  --red-2: #b81d31;
  --ink: #1b2433;
  --muted: #5b6676;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 69, .06);
  --shadow: 0 18px 45px -18px rgba(11, 37, 69, .28);
  --shadow-lg: 0 30px 70px -25px rgba(11, 37, 69, .45);
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --topbar-h: 40px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: hidden; }
#main { overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; }
img { max-width: 100%; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid rgba(215, 38, 61, .45); outline-offset: 3px; border-radius: 6px; }

section { padding: 110px 0; position: relative; }
.section-soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn-brand, .btn-ghost, .btn-white, .btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: .95rem; border-radius: 999px;
  padding: .8rem 1.5rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-brand {
  background: linear-gradient(135deg, var(--red) 0%, #e8445a 100%);
  color: #fff; box-shadow: 0 10px 24px -10px rgba(215, 38, 61, .7);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(215, 38, 61, .8); }
.btn-lg-brand { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-ghost { color: var(--navy); background: rgba(255, 255, 255, .7); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost i { transition: transform .25s var(--ease); }
.btn-ghost:hover i { transform: translateX(4px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--red); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { color: var(--navy); background: #fff; border-color: #fff; }

/* ---------- Section titles ---------- */
.section-title { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.section-kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title .section-kicker::after { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em;
  margin-bottom: 1.1rem;
}
.section-title p, .about p, .exams p, .when > .container p, .faq p { color: var(--muted); font-size: 1.05rem; }
.section-title.light .section-heading { color: #fff; }

/* ---------- Top bar ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 998;
  height: var(--topbar-h); background: var(--navy); color: rgba(255, 255, 255, .78);
  font-size: .82rem; display: flex; align-items: center;
  transition: transform .35s var(--ease);
}
#topbar .container { height: 100%; }
#topbar i { color: var(--sky); margin-right: .35rem; }
#topbar a { color: rgba(255, 255, 255, .9); font-weight: 600; }
#topbar a:hover { color: #fff; }
body.scrolled #topbar { transform: translateY(-100%); }

/* ---------- Header ---------- */
#header {
  position: fixed; left: 0; right: 0; top: var(--topbar-h); z-index: 997;
  padding: 18px 0; transition: all .35s var(--ease);
}
#header.header-scrolled {
  top: 0; padding: 10px 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(11, 37, 69, .08), 0 10px 30px -18px rgba(11, 37, 69, .35);
}
.logo { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo img { height: 46px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo-text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.btn-header { margin-left: 1.2rem; padding: .65rem 1.2rem; font-size: .88rem; }

/* Navbar desktop */
.navbar { padding: 0; }
.navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; gap: .15rem; }
.navbar a.nav-link {
  position: relative; display: block; padding: .5rem .85rem;
  font-size: .93rem; font-weight: 600; color: var(--ink); border-radius: 999px;
}
.navbar a.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--red); border-radius: 2px; transform: translateX(-50%); transition: width .3s var(--ease);
}
.navbar a.nav-link:hover, .navbar a.nav-link.active { color: var(--navy); }
.navbar a.nav-link:hover::after, .navbar a.nav-link.active::after { width: 18px; }
.nav-cta-mobile { display: none; }
.mobile-nav-toggle {
  display: none; background: none; border: 0; font-size: 1.9rem; color: var(--navy);
  line-height: 1; padding: .2rem; cursor: pointer;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle { display: block; position: relative; z-index: 1001; }
  .navbar ul { display: none; }
  .navbar-mobile ul {
    display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
    position: fixed; inset: 0; z-index: 1000; padding: 90px 24px 32px;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px);
    overflow-y: auto; animation: menuIn .35s var(--ease);
  }
  .navbar-mobile a.nav-link { font-size: 1.25rem; padding: .85rem 1rem; border-radius: 14px; }
  .navbar-mobile a.nav-link::after { display: none; }
  .navbar-mobile a.nav-link.active, .navbar-mobile a.nav-link:hover { background: var(--ice); }
  .navbar-mobile .nav-cta-mobile { display: block; margin-top: 1rem; }
  .navbar-mobile .nav-cta-mobile .btn-brand { width: 100%; padding: 1rem; }
  .navbar-mobile .mobile-nav-toggle { position: fixed; top: 22px; right: 18px; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
#hero {
  padding: calc(var(--topbar-h) + 150px) 0 110px;
  background: linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: #cfe0f5; top: -140px; right: -120px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: #fbd5da; bottom: -140px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
.grid-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11, 37, 69, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.08); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

#hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
#hero h1 em {
  font-style: italic; color: var(--red);
  background: linear-gradient(transparent 70%, rgba(215, 38, 61, .14) 70%);
}
#hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.hero-chips li { font-size: .92rem; font-weight: 600; color: var(--navy-2); }
.hero-chips i { color: var(--red); margin-right: .25rem; }

.hero-visual { --mx: 0; --my: 0; position: relative; max-width: 560px; margin: 0 auto; padding: 30px; }
.hero-img {
  position: relative; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg);
  transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -8px));
  transition: transform .4s var(--ease);
  animation: morph 12s ease-in-out infinite;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform: scale(1.05); }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(11, 37, 69, .25)); }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  50% { border-radius: 55% 45% 42% 58% / 42% 55% 45% 58%; }
}
.eye-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(29, 78, 137, .25);
  z-index: -1; animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-radius: 16px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.float-card strong { display: block; font-size: .92rem; color: var(--navy); line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--ice); color: var(--blue); font-size: 1.2rem;
}
.fc-icon.red { background: #fde8eb; color: var(--red); }
.fc-1 { top: 12%; left: -4%; transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px)); animation: bob 6s ease-in-out infinite; }
.fc-2 { bottom: 10%; right: -4%; transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 18px)); animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }

/* ---------- Highlights ---------- */
.highlights { padding: 0; margin-top: -40px; z-index: 2; }
.highlights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  overflow: hidden;
}
.highlight { display: flex; gap: 1rem; padding: 1.8rem 1.6rem; border-right: 1px solid var(--line); transition: background .3s; }
.highlight:last-child { border-right: 0; }
.highlight:hover { background: var(--bg-soft); }
.highlight > i {
  font-size: 1.4rem; color: var(--red); width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 14px; background: #fde8eb;
}
.highlight h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.highlight p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 60px 70px 0; }
.about-media .img-main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 50%; }
.about-media .img-sub {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: .7rem;
  max-width: 250px; padding: .8rem 1rem; border-radius: 16px;
  background: rgba(11, 37, 69, .88); backdrop-filter: blur(10px); color: #fff;
  font-size: .82rem; font-weight: 600; line-height: 1.35;
}
.about-badge img { width: 38px; }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 500; }
.check-list i {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: .8rem; margin-top: 1px;
}
.doctor-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; margin-top: 1.8rem;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--ice), #fff);
  border: 1px solid var(--line);
}
.doctor-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 1.5rem;
}
.doctor-role { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.doctor-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin: .1rem 0; }
.doctor-card p { margin: 0; font-size: .88rem !important; }

/* ---------- Services ---------- */
.service-card {
  position: relative; height: 100%; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 100% 0%, rgba(215, 38, 61, .08), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 1.6rem; margin-bottom: 1.3rem;
  transition: transform .5s var(--ease), background .4s;
}
.service-card:hover .service-icon { background: var(--red); transform: rotate(-8deg) scale(1.06); }
.service-tag {
  position: absolute; top: 1.8rem; right: 1.6rem; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  background: var(--ice); padding: .3rem .7rem; border-radius: 999px;
}
.service-card h3 { font-size: 1.18rem; line-height: 1.3; margin-bottom: .7rem; }
.service-card p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.service-link { font-weight: 700; font-size: .9rem; color: var(--navy); display: inline-flex; align-items: center; gap: .35rem; }
.service-link i { transition: transform .3s var(--ease); }
.service-card:hover .service-link { color: var(--red); }
.service-card:hover .service-link i { transform: translate(3px, -3px); }

/* ---------- Exams ---------- */
.exams-img { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.exams-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.exams-img:hover img { transform: scale(1.05); }
.exam-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.exam-item {
  display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.exam-item:hover { background: #fff; border-color: var(--line); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.exam-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--red); line-height: 1; min-width: 34px; }
.exam-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.exam-item p { font-size: .9rem; margin: 0; color: var(--muted); line-height: 1.55; }

/* ---------- Steps (dark) ---------- */
.section-dark {
  background: radial-gradient(circle at 15% 0%, #1d4e89 0%, transparent 45%), radial-gradient(circle at 90% 100%, rgba(215, 38, 61, .35) 0%, transparent 40%), var(--navy);
  color: rgba(255, 255, 255, .78);
}
.section-dark .section-kicker { color: #ff8a99; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); transition: background .3s, transform .4s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .1); transform: translateY(-6px); }
.step-n {
  position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display);
  font-size: 3rem; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .1);
}
.step > i { font-size: 1.8rem; color: #fff; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .1); margin-bottom: 1.2rem; }
.step h3 { color: #fff; font-size: 1.15rem; }
.step p { margin: 0; font-size: .93rem; }

/* ---------- When ---------- */
.alert-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.alert-list li {
  display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: #fff7f8; border: 1px solid #fbdde2; font-weight: 600; color: var(--ink);
  transition: transform .3s var(--ease);
}
.alert-list li:hover { transform: translateX(6px); }
.alert-list i { color: var(--red); font-size: 1.1rem; }
.age-card { padding: 2.2rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); height: 100%; }
.age-card h3 { font-size: 1.2rem; margin-bottom: 1.4rem; }
.age-card h3 i { color: var(--red); margin-right: .4rem; }
.age-row { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed #d4dde9; }
.age-row span { font-weight: 800; color: var(--navy); font-size: .92rem; }
.age-row p { margin: 0; color: var(--muted); font-size: .92rem; }
.age-card small { display: block; margin-top: 1.1rem; color: var(--muted); font-style: italic; }

/* ---------- Health tabs ---------- */
.health-tabs .nav-pills { gap: .6rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.health-tabs .nav-link {
  border-radius: 999px; padding: .75rem 1.4rem; font-weight: 700; color: var(--navy);
  background: #fff; border: 1px solid var(--line); transition: all .3s var(--ease);
}
.health-tabs .nav-link i { margin-right: .35rem; }
.health-tabs .nav-link:hover { border-color: var(--navy); }
.health-tabs .nav-link.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 10px 22px -10px rgba(11, 37, 69, .6); }
.tab-intro { text-align: center; max-width: 720px; margin: 0 auto 1.6rem; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.topic {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer;
  transition: all .3s var(--ease);
}
.topic i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--navy); font-size: .8rem; transition: all .3s var(--ease); flex-shrink: 0; }
.topic:hover { border-color: var(--red); color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.topic:hover i { background: var(--red); color: #fff; transform: rotate(90deg); }

.modal-content { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header { border: 0; padding: 1.6rem 1.8rem .4rem; }
.modal-title { font-family: var(--font-display); font-size: 1.6rem; }
.modal-body { padding: .6rem 1.8rem; color: var(--muted); }
.modal-body strong { color: var(--ink); }
.modal-footer { border: 0; padding: .8rem 1.8rem 1.6rem; justify-content: flex-start; }
.topic-note { font-size: .82rem; font-style: italic; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-accordion { display: grid; gap: .8rem; }
.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: 16px !important; overflow: hidden; background: #fff; transition: box-shadow .3s, border-color .3s; }
.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: transparent; box-shadow: var(--shadow); }
.faq-accordion .accordion-button {
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--navy);
  padding: 1.25rem 1.4rem; background: #fff; box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--red); background: #fff; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button::after {
  background-image: none; content: '\F64D'; font-family: 'bootstrap-icons'; font-size: 1rem;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ice); color: var(--navy); transition: transform .3s var(--ease), background .3s;
}
.faq-accordion .accordion-button:not(.collapsed)::after { content: '\F63B'; background: var(--red); color: #fff; transform: rotate(180deg); }
.faq-accordion .accordion-body { padding: 0 1.4rem 1.4rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 110px; }
.cta-box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 3.2rem 3.4rem; border-radius: 28px;
  background: linear-gradient(120deg, var(--red) 0%, #a3172a 100%); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(215, 38, 61, .8);
}
.cta-box::before, .cta-box::after {
  content: ''; position: absolute; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07);
}
.cta-box::before { width: 300px; height: 300px; right: -80px; top: -140px; }
.cta-box::after { width: 200px; height: 200px; left: 30%; bottom: -150px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.info-list { display: grid; gap: 1rem; height: 100%; }
.info-item {
  display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: #fff; }
.info-item > i { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: #fff; font-size: 1.2rem; }
.info-item h3 { font-size: 1rem; margin-bottom: .15rem; }
.info-item p { margin: 0; color: var(--muted); font-size: .93rem; }
.contact-form { padding: 2.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); height: 100%; }
.contact-form label { font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.contact-form .form-control, .contact-form .form-select {
  border-radius: 12px; border: 1.5px solid var(--line); padding: .8rem 1rem; font-size: .95rem; background-color: var(--bg-soft);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 137, .12); }
.contact-form .form-control.is-invalid { border-color: var(--red); background-image: none; }
.form-note { color: var(--muted); }
.map-wrap { margin-top: 2.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- Footer ---------- */
#footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 80px 0 0; font-size: .93rem; }
#footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
#footer a { color: rgba(255, 255, 255, .78); }
#footer a:hover { color: #fff; }
.footer-logo .logo-text strong { color: #fff; }
.footer-logo .logo-text small { color: var(--sky); }
.footer-logo img { background: #fff; border-radius: 12px; padding: 4px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { position: relative; transition: padding .3s var(--ease), color .3s; }
.footer-links a:hover { padding-left: 8px; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact i { color: var(--sky); }
.footer-bottom { margin-top: 3.2rem; padding: 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .82rem; }
.footer-bottom p { margin: .25rem 0; }
.footer-bottom .disclaimer { color: rgba(255, 255, 255, .5); font-style: italic; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 996; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.8rem;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease);
}
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: ripple 2.4s ease-out infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.back-to-top {
  position: fixed; right: 31px; bottom: 96px; z-index: 995; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.6rem;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease);
}
.back-to-top.active { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  section { padding: 80px 0; }
  .cta { padding-bottom: 80px; }
  #hero { padding-top: calc(var(--topbar-h) + 120px); text-align: center; }
  #hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-visual { max-width: 440px; }
  .exam-list { grid-template-columns: 1fr; }
  .cta-box { padding: 2.4rem; text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
}
@media (max-width: 767px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .highlight:last-child { border-bottom: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .about-media { padding: 0 30px 50px 0; }
  .about-badge { display: none; }
  .age-row { grid-template-columns: 1fr; gap: .2rem; }
  .float-card { padding: .65rem .8rem; }
  .float-card small { display: none; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .contact-form, .age-card { padding: 1.5rem; }
  .logo img { height: 40px; }
  .logo-text strong { font-size: 1.2rem; }
}
@media (max-width: 575px) {
  #topbar { font-size: .78rem; }
  .hero-actions > a { width: 100%; }
  .cta-actions > a { width: 100%; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .back-to-top { right: 22px; bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
