/* ============================================
   Centro Médico Fátima — Premium Institucional
   Brand system: Antonio + DM Sans
   Navy #1B3F7A, Teal #3ABFBF, Green #4E9E6A
   ============================================ */

:root {
  /* Brand */
  --navy:        #1B3F7A;
  --navy-deep:   #0A1432;
  --navy-mid:    #142B56;
  --teal:        #3ABFBF;
  --heading:     #1B3F7A;
  --green:       #4E9E6A;
  --blue-light:  #8AC6F4;
  --gray-blue:   #BBCAD6;

  /* Neutrals */
  --paper:       #ffffff;
  --bone:        #F4F1EA;
  --ink:         #0E1A33;
  --ink-soft:    #3A4763;
  --ink-mute:    #6B7591;
  --hair:        rgba(14, 26, 51, 0.10);
  --hair-strong: rgba(14, 26, 51, 0.18);
  --hair-light:  rgba(255, 255, 255, 0.14);

  /* Surfaces */
  --grad-light:  linear-gradient(135deg, #8AC6F4 0%, #BBCAD6 100%);
  --grad-soft:   linear-gradient(180deg, #EAF2FB 0%, #DCE6EF 100%);
  --overlay:     rgba(10, 20, 50, 0.72);

  /* Type */
  --display:     'Antonio', 'Oswald', sans-serif;
  --body:        'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--navy); color: white; }

/* ============================================
   Layout helpers
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.on-dark { color: var(--teal); }
.eyebrow.on-dark::before { background: var(--teal); opacity: 0.6; }

/* Display headings — Antonio */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.04;
  text-transform: uppercase;
}
.display em {
  font-style: normal;
  color: var(--teal);
}
.display .grn { color: var(--green); }

h1.display { font-size: clamp(56px, 9vw, 132px); margin: 0; }
h2.display { font-size: clamp(40px, 6.5vw, 84px); margin: 0; }
h3.display { font-size: clamp(28px, 3.6vw, 48px); margin: 0; }

/* Body type */
p.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--hair);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo img { height: 46px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-active { color: var(--heading); }
.nav-links a.nav-active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(27, 63, 122, 0.5);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute;
  left: 0; right: 0; height: 1.5px;
  background: var(--ink);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after  { top: 5px; }

@media (max-width: 920px) {
  .nav-links { display: none !important; }
  .nav-cta   { display: none !important; }
  .nav-burger { display: inline-flex; }
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 96px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(.5,.05,.1,1);
  pointer-events: none;
}
.mobile-sheet.open { transform: translateY(0); pointer-events: auto; }
.mobile-sheet a {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--heading);
  letter-spacing: -0.005em;
}
.mobile-sheet a:last-of-type { border-bottom: 0; }
.mobile-sheet-cta {
  margin-top: 24px;
  background: var(--navy);
  color: white;
  padding: 18px 24px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--body);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--grad-light);
  padding: 140px var(--pad) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero::before {
  /* Subtle vignette + extra depth */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(27, 63, 122, 0.25), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(58, 191, 191, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 80px;
  position: relative;
  flex: 1;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.hero-eyebrow-row .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(78, 158, 106, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(78, 158, 106, 0.25); }
  50%      { box-shadow: 0 0 0 9px rgba(78, 158, 106, 0.08); }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 9.4vw, 148px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0;
  color: var(--heading);
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
  display: inline-block;
}
.hero h1 .lh {
  display: block;
  opacity: 0;
  transform: translateY(34px);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards;
  padding: 0.04em 0;
}
.hero h1 .lh + .lh { margin-top: 0.06em; }
.hero h1 .lh:nth-child(1) { animation-delay: 0.05s; }
.hero h1 .lh:nth-child(2) { animation-delay: 0.18s; }
.hero h1 .lh:nth-child(3) { animation-delay: 0.30s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}
.hero-right p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0;
  opacity: 0;
  animation: rise 1s 0.5s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s 0.65s cubic-bezier(.2,.7,.2,1) forwards;
}

.btn-primary, .btn-ghost, .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(27, 63, 122, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--heading);
}
.btn-ghost:hover { background: var(--heading); color: var(--paper); }
.btn-light {
  background: white;
  color: var(--heading);
  border: 1px solid var(--hair);
}
.btn-light:hover { background: var(--bone); transform: translateY(-1px); }
.btn-primary svg, .btn-ghost svg, .btn-light svg { width: 14px; height: 14px; }

/* Hero meta strip */
.hero-meta {
  border-top: 1px solid rgba(14, 26, 51, 0.14);
  padding: 32px 0 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  opacity: 0;
  animation: rise 1s 0.85s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-meta-item .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1;
  color: var(--heading);
  letter-spacing: -0.012em;
}
.hero-meta-item .num sup {
  font-size: 0.5em;
  vertical-align: top;
  color: var(--teal);
  margin-left: 4px;
}
.hero-meta-item .lbl {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 12px;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* Decorative dotted arc — recreated as SVG inline below */
.arc {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.arc-hero {
  bottom: -180px;
  right: -160px;
  width: 620px; height: 620px;
  color: var(--heading);
  opacity: 0.18;
}
@media (max-width: 600px) {
  .arc-hero { width: 360px; height: 360px; bottom: -120px; right: -120px; }
}

/* ============================================
   SECTIONS — generic
   ============================================ */
section { position: relative; }

.section {
  padding: clamp(80px, 11vw, 160px) var(--pad);
}
.section.bg-bone { background: var(--bone); }
.section.bg-paper { background: var(--paper); }
.section.bg-soft { background: #F5F8FC; }
.section.bg-dark { background: var(--navy-deep); color: white; }
.section.bg-dark .lead { color: rgba(255,255,255,0.7); }
.section.bg-dark .display { color: white; }

.section-head {
  max-width: var(--container);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
}
.section-head .left { display: flex; flex-direction: column; gap: 14px; }
.section-head .right { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 920px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================
   MARQUEE strip
   ============================================ */
.marquee {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  background: var(--paper);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scrollX 50s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  flex-shrink: 0;
}
.marquee-track span::after {
  content: "✦";
  font-size: 13px;
  color: var(--teal);
}
@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   DIFFERENTIALS GRID
   ============================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.diff-cell {
  padding: 56px 44px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}
.diff-cell:hover { background: #F8FAFD; }
.diff-cell .num-label {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.diff-cell h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.05;
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.005em;
}
.diff-cell p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.diff-cell .icon-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.diff-cell .icon-mark.green { background: linear-gradient(135deg, var(--green), var(--navy)); }
.diff-cell .icon-mark svg { width: 20px; height: 20px; }
@media (max-width: 980px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-cell { padding: 40px 28px; }
}

/* ============================================
   ABOUT / SOBRE
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.about-img {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--grad-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 28px;
}
.about-img.has-photo {
  aspect-ratio: 1/1;
  background: #0A1432;
}
.about-img.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.about-img.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 50, 0) 50%, rgba(10, 20, 50, 0.55) 100%);
  z-index: 1;
}
.about-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}
.about-img.has-photo > * { position: relative; z-index: 2; }
.about-img > * { position: relative; z-index: 1; }
.about-img .img-tag {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.about-img .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.about-img .arc-mini {
  position: absolute;
  top: 28px; right: 28px;
  width: 110px; height: 110px;
  color: white;
  opacity: 0.35;
  z-index: 1;
}
.about-body { display: flex; flex-direction: column; gap: 24px; }
.about-body h2 { color: var(--heading); }
.about-body .pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.about-body .pillar h5 {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 10px;
}
.about-body .pillar p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-img { aspect-ratio: 4/3; }
  .about-img.has-photo { aspect-ratio: 4/3; }
}

/* ============================================
   SPECIALTIES
   ============================================ */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.spec-cell {
  background: var(--paper);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.spec-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}
.spec-cell:hover {
  background: var(--navy);
  color: white;
}
.spec-cell:hover::before { transform: scaleY(1); transform-origin: top; }
.spec-cell:hover .spec-num,
.spec-cell:hover .spec-arrow { color: rgba(255,255,255,0.6); }
.spec-num {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  min-width: 24px;
  transition: color 0.3s ease;
}
.spec-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
  flex: 1;
  letter-spacing: 0.005em;
}
.spec-arrow {
  color: var(--ink-mute);
  transition: color 0.3s ease, transform 0.3s ease;
}
.spec-cell:hover .spec-arrow { transform: translate(2px, -2px); }
.spec-arrow svg { width: 14px; height: 14px; display: block; }

@media (max-width: 880px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { padding: 22px 18px; gap: 12px; }
  .spec-name { font-size: 18px; }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* ============================================
   EXAMES — large list on dark
   ============================================ */
.section.bg-dark { position: relative; overflow: hidden; }
.section.bg-dark .arc-bg {
  position: absolute;
  bottom: -200px; left: -200px;
  width: 700px; height: 700px;
  color: var(--teal);
  opacity: 0.08;
  pointer-events: none;
}
.exam-list {
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: var(--container);
  margin: 0 auto;
}
.exam-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  align-items: center;
  transition: padding 0.3s ease;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.exam-row .exam-cta {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.exam-row .exam-cta svg { width: 14px; height: 14px; display: block; }
.exam-row:hover .exam-cta {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy-deep);
  transform: translate(2px, -2px);
}
.exam-row .exam-num {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
}
.exam-row .exam-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  color: white;
  letter-spacing: -0.005em;
  transition: color 0.3s ease;
}
.exam-row .exam-tag {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.exam-row:hover { padding-left: 18px; }
.exam-row:hover .exam-name { color: var(--teal); }

/* ============================================
   AVALIAÇÃO GOOGLE
   ============================================ */
.review-cta {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.review-stars {
  display: flex;
  gap: 6px;
  color: #f5a623;
}
.review-cta h2 { margin: 0; }
.review-cta p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0;
}
.review-cta .btn-primary { margin-top: 8px; }

/* ============================================
   AUTORIDADE TÉCNICA
   ============================================ */
.auth-card {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(58, 191, 191, 0.12), transparent 70%);
  pointer-events: none;
}
.auth-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--display);
  font-size: 96px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.auth-portrait .placeholder-tag {
  position: absolute;
  bottom: 18px;
  left: 50%; transform: translateX(-50%);
  font-family: var(--body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.auth-body h3 { margin: 0 0 18px; color: var(--heading); }
.auth-body p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.55;
}
.auth-meta {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.auth-meta div .l {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.auth-meta div .v {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  color: var(--heading);
  margin-top: 6px;
  letter-spacing: -0.005em;
}

@media (max-width: 720px) {
  .auth-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .auth-portrait { width: 200px; margin: 0 auto; }
  .auth-body { text-align: center; }
  .auth-meta { justify-content: center; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.t-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.t-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(27, 63, 122, 0.25);
  border-color: var(--hair-strong);
}
.t-card .stars {
  display: flex;
  gap: 3px;
  color: var(--teal);
}
.t-card .quote {
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  flex: 1;
}
.t-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.t-avatar {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-light), var(--gray-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.t-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.t-loc  { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }

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

/* ============================================
   LOCATION
   ============================================ */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hair);
  max-width: var(--container);
  margin: 0 auto;
}
.loc-body {
  background: var(--paper);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.loc-map {
  background: #E6EEF7;
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.loc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.92) contrast(0.96);
}
.loc-map .map-label {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hair);
  padding: 11px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -12px rgba(14, 26, 51, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.loc-map .map-label:hover {
  transform: translateY(-1px);
  background: white;
}
.loc-map .map-label svg { color: var(--teal); }
.loc-body h3 { margin: 0; color: var(--heading); }
.loc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.loc-list li { display: flex; gap: 16px; align-items: start; }
.loc-list .icon {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  color: var(--heading);
  flex-shrink: 0;
}
.loc-list .icon svg { width: 16px; height: 16px; }
.loc-list .l {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.loc-list .v {
  font-size: 16px;
  color: var(--ink);
  margin-top: 2px;
  font-weight: 500;
}

@media (max-width: 880px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-map { min-height: 280px; order: -1; }
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  background: var(--navy-deep);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  position: relative;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(58, 191, 191, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(27, 63, 122, 0.5), transparent 60%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final .arc-cta {
  position: absolute;
  top: -160px; right: -160px;
  width: 540px; height: 540px;
  color: white;
  opacity: 0.08;
  z-index: 0;
}
.cta-final h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.012em;
}
.cta-final h2 em { font-style: normal; color: var(--teal); }
.cta-final p { color: rgba(255,255,255,0.7); max-width: 46ch; margin: 24px 0 0; }

.cta-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cta-channel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(3px);
}
.cta-channel .ch-icon {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cta-channel .ch-icon svg { width: 18px; height: 18px; }
.cta-channel.green .ch-icon { background: rgba(78, 158, 106, 0.18); color: #8FD1A8; }
.cta-channel.teal .ch-icon { background: rgba(58, 191, 191, 0.18); color: var(--teal); }
.cta-channel .ch-text { flex: 1; min-width: 0; }
.cta-channel .ch-label {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.cta-channel .ch-value {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.005em;
  margin-top: 4px;
  color: white;
}
.cta-channel .ch-arrow {
  margin-left: auto;
  opacity: 0.5;
  transition: opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.cta-channel:hover .ch-arrow { opacity: 1; transform: translate(3px, -3px); }

@media (max-width: 880px) {
  .cta-final { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-deep);
  color: white;
  padding: 80px var(--pad) 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-col h5 {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-brand .brand-logo {
  height: 56px;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; max-width: 38ch; line-height: 1.5; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .crm { color: rgba(255,255,255,0.7); font-weight: 500; }
.footer-legal-links { display: inline-flex; gap: 18px; }
.footer-legal-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover { color: var(--teal); }

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================
   Floating WhatsApp
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes wa-pulse {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}


/* ============================================================
   DARK THEME
   ============================================================ */
:root[data-theme="dark"] {
  --paper:       #0A1432;
  --bone:        #122042;
  --ink:         #EDF2F7;
  --ink-soft:    rgba(237, 242, 247, 0.78);
  --ink-mute:    rgba(237, 242, 247, 0.52);
  --hair:        rgba(255, 255, 255, 0.10);
  --hair-strong: rgba(255, 255, 255, 0.20);
  --heading:     #FFFFFF;
  --grad-light:  linear-gradient(135deg, #1B3F7A 0%, #0A1432 100%);
  --grad-soft:   linear-gradient(180deg, #122042 0%, #0A1432 100%);
}

/* Body bg sweep for dark */
:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }

/* Nav bg on scroll */
:root[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 20, 50, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Logo swap */
:root[data-theme="dark"] .nav-logo .logo-light { display: none; }
:root[data-theme="dark"] .nav-logo .logo-dark  { display: block; }
.nav-logo .logo-dark { display: none; }

/* Mobile sheet */
:root[data-theme="dark"] .mobile-sheet { background: var(--paper); }

/* Hero subtle gradient adjustment */
:root[data-theme="dark"] .hero { background: var(--grad-soft); }
:root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(58, 191, 191, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(58, 191, 191, 0.08), transparent 70%);
}
:root[data-theme="dark"] .arc-hero { color: var(--teal); opacity: 0.10; }

/* Section backgrounds */
:root[data-theme="dark"] .section.bg-paper { background: var(--paper); }
:root[data-theme="dark"] .section.bg-bone  { background: var(--bone); }
:root[data-theme="dark"] .section.bg-soft  { background: #122042; }

/* Marquee */
:root[data-theme="dark"] .marquee { background: var(--paper); border-color: var(--hair); }

/* Diff grid + spec grid: lighten the borders for dark */
:root[data-theme="dark"] .diff-grid,
:root[data-theme="dark"] .diff-cell { border-color: var(--hair); }
:root[data-theme="dark"] .diff-cell { background: var(--paper); }
:root[data-theme="dark"] .diff-cell:hover { background: rgba(255, 255, 255, 0.03); }

:root[data-theme="dark"] .spec-grid {
  background: var(--hair);
  border-color: var(--hair);
}
:root[data-theme="dark"] .spec-cell { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .spec-cell:hover { background: var(--navy); color: white; }

/* Map label legibility on dark */
:root[data-theme="dark"] .loc-map .map-label {
  background: rgba(10, 20, 50, 0.92);
  color: var(--heading);
  border-color: var(--hair-strong);
}
:root[data-theme="dark"] .loc-map { background: #0F1B3E; }
:root[data-theme="dark"] .loc-map iframe { filter: saturate(0.5) contrast(1.1) brightness(0.7) invert(0.92) hue-rotate(180deg); }

/* Loc-list icon: dark bone → use teal tint */
:root[data-theme="dark"] .loc-list .icon { background: rgba(58, 191, 191, 0.10); color: var(--teal); }

/* Buttons */
:root[data-theme="dark"] .btn-primary { background: var(--teal); color: var(--navy-deep); }
:root[data-theme="dark"] .btn-primary:hover { background: #4ED4D4; box-shadow: 0 16px 30px -12px rgba(58, 191, 191, 0.45); }
:root[data-theme="dark"] .nav-cta { background: var(--teal); color: var(--navy-deep); }
:root[data-theme="dark"] .nav-cta:hover { background: #4ED4D4; box-shadow: 0 12px 24px -10px rgba(58, 191, 191, 0.4); }
:root[data-theme="dark"] .btn-light { background: var(--bone); color: var(--heading); border-color: var(--hair); }
:root[data-theme="dark"] .btn-light:hover { background: var(--paper); }

/* Cards in dark */
:root[data-theme="dark"] .t-card,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .loc-grid {
  background: var(--paper);
  border-color: var(--hair);
}
:root[data-theme="dark"] .loc-body { background: var(--paper); }
:root[data-theme="dark"] .loc-grid { background: var(--paper); }

/* T-card hover shadow */
:root[data-theme="dark"] .t-card:hover {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  border-color: var(--hair-strong);
}

/* Auth portrait stays navy gradient — looks good in both modes */

/* Footer is already navy-deep — fine in both modes */

/* Selection */
:root[data-theme="dark"] ::selection { background: var(--teal); color: var(--navy-deep); }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--heading);
  border-color: var(--heading);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

@media (max-width: 920px) {
  /* Mostra o toggle de tema no mobile (fica no nav junto com o burger) */
  .nav-inner > .theme-toggle { display: inline-flex !important; }
}

/* Mobile sheet theme toggle */
.mobile-sheet .theme-toggle {
  margin-top: 14px;
  align-self: flex-start;
}


/* ============================================================
   LEGAL PAGES (Privacidade, Termos)
   ============================================================ */
.legal-hero {
  padding: 160px var(--pad) 80px;
  background: var(--bone);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(58, 191, 191, 0.10), transparent 70%);
  pointer-events: none;
}
.legal-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.legal-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 18px 0 18px;
  color: var(--heading);
}
.legal-hero h1 em { font-style: normal; color: var(--teal); }
.legal-hero p.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.legal-meta {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.legal-meta strong { color: var(--ink-soft); font-weight: 500; }

.legal-body {
  padding: 80px var(--pad) 120px;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--hair);
}
.legal-toc h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 16px 0 4px;
}
.legal-toc a {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}
.legal-toc a:hover { color: var(--heading); border-bottom-color: var(--hair-strong); }

.legal-content { display: flex; flex-direction: column; gap: 48px; }
.legal-section { display: flex; flex-direction: column; gap: 14px; }
.legal-section .num {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.legal-section h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.legal-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.legal-section ul {
  margin: 4px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.legal-section ul li { margin-bottom: 8px; }
.legal-section strong { color: var(--ink); font-weight: 600; }

.legal-callout {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--teal);
  padding: 22px 24px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.legal-callout strong { color: var(--heading); }

@media (max-width: 880px) {
  .legal-body { grid-template-columns: 1fr; gap: 32px; padding: 56px var(--pad) 80px; }
  .legal-toc { position: static; border-top: 0; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
}


/* ============================================================
   MOBILE — ajustes e melhorias
   ============================================================ */

/* Nav: garante que theme-toggle e burger ficam alinhados */
@media (max-width: 920px) {
  .nav-inner {
    gap: 12px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .nav-burger {
    width: 40px;
    height: 40px;
  }
}

/* Hero headline — reduzir no mobile pequeno */
@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }
  .hero h1 {
    font-size: clamp(44px, 13vw, 60px);
    letter-spacing: -0.018em;
  }
  .hero-right p {
    font-size: 16px;
  }
}

/* Hero CTAs — compactar e alinhar melhor */
@media (max-width: 920px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .btn-primary,
  .btn-ghost {
    padding: 13px 20px;
    font-size: 14px;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-ghost {
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }
}

/* Hero meta strip — 2 colunas no mobile */
@media (max-width: 520px) {
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .hero-meta-item .num {
    font-size: 42px;
  }
}

/* Animações — mais suaves e rápidas no mobile */
@media (max-width: 920px) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.25,.8,.25,1);
  }
  .reveal.d1 { transition-delay: 0.06s; }
  .reveal.d2 { transition-delay: 0.12s; }
  .reveal.d3 { transition-delay: 0.18s; }

  .hero h1 .lh {
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(.25,.8,.25,1);
  }
  .hero h1 .lh:nth-child(1) { animation-delay: 0.04s; }
  .hero h1 .lh:nth-child(2) { animation-delay: 0.14s; }
  .hero h1 .lh:nth-child(3) { animation-delay: 0.22s; }
}

/* Reduz animação de entrada dos elementos do hero no mobile */
@media (max-width: 920px) {
  .hero-right p  { animation-duration: 0.65s; animation-delay: 0.38s; }
  .hero-ctas     { animation-duration: 0.65s; animation-delay: 0.48s; }
  .hero-meta     { animation-duration: 0.65s; animation-delay: 0.58s; }
}

/* Marquee — fonte menor no mobile */
@media (max-width: 520px) {
  .marquee-track {
    gap: 40px;
    animation-duration: 35s;
  }
  .marquee-track span {
    font-size: 22px;
    gap: 40px;
  }
}

/* Mobile sheet — links menores em telas muito pequenas */
@media (max-width: 380px) {
  .mobile-sheet a {
    font-size: 34px;
    padding: 12px 0;
  }
}

/* CTA Final — padding e fontes menores no mobile */
@media (max-width: 880px) {
  .cta-final {
    padding: 36px 24px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-final h2 {
    font-size: clamp(32px, 9vw, 52px);
  }
  .cta-final p {
    font-size: 15px;
    max-width: 100%;
  }
  .cta-channel {
    padding: 16px 18px;
    gap: 14px;
  }
  .cta-channel .ch-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .cta-channel .ch-value {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cta-channel .ch-label {
    font-size: 9.5px;
  }
  .cta-channel .ch-arrow {
    display: none; /* libera espaço no mobile */
  }
}

/* WhatsApp flutuante — mover para não sobrepor conteúdo */
@media (max-width: 520px) {
  .wa-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Respeita preferência do sistema por menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .hero h1 .lh {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-right p,
  .hero-ctas,
  .hero-meta {
    animation: none !important;
    opacity: 1 !important;
  }
  .marquee-track {
    animation-duration: 80s;
  }
}
