/* =========================================================
   DENTAL MAX — style.css
   Estilos base (mobile-first) + componentes.
   Breakpoints específicos ficam em responsive.css
   ========================================================= */

:root {
  /* Cores da marca (extraídas do logotipo) */
  --navy: #0B3358;
  --navy-dark: #082644;
  --navy-light: #114a7a;
  --red: #E43A3A;
  --red-dark: #c92e2e;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f4;
  --gray-200: #e2e6eb;
  --text: #1c2b3a;
  --text-light: #5b6b7a;

  /* Tipografia */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Espaçamento / forma */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(11, 51, 88, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 51, 88, 0.10);
  --container-w: 1180px;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); margin: 0; line-height: 1.2; }
p { margin: 0; line-height: 1.65; color: var(--text-light); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

section { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(228, 58, 58, 0.28);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(228, 58, 58, 0.36); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp {
  background: var(--navy);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--navy-light); }
.icon-whatsapp { width: 18px; height: 18px; flex-shrink: 0; }

.btn-facebook {
  background: #1877F2;
  color: var(--white);
}
.btn-facebook:hover { background: #145fc4; }
.icon-facebook { width: 18px; height: 18px; flex-shrink: 0; }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 51, 88, 0.08); }

/* Barra de progresso de leitura, colada ao fundo do header. Largura controlada por js/main.js. */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo-img,
.brand-logo-fallback {
  transition: transform .25s ease;
  transform-origin: left center;
}
.site-header.is-scrolled .brand-logo-img,
.site-header.is-scrolled .brand-logo-fallback {
  transform: scale(0.88);
}
.brand-logo-img { height: 46px; width: auto; }
.brand-logo-fallback { display: none; align-items: center; gap: 8px; }
.brand-tooth { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.brand-text .accent { color: var(--red); }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); font-weight: 600; }

.main-nav ul { display: flex; gap: 8px; align-items: center; }
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color .18s ease, background-color .18s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--gray-100); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a.is-active {
  color: var(--navy);
  font-weight: 600;
}
.main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-header-cta { padding: 11px 22px; min-height: 42px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 56px 0 64px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-text {
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; width: 100%; }
/* Enquadramento com overflow:hidden separado do badge, para conter o Ken Burns sem cortar o badge flutuante. */
.hero-img-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero-media.img-fallback .hero-img-frame { display: none; }
.hero-media.img-fallback {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  min-height: 300px;
  box-shadow: var(--shadow-md);
}
.hero-media-badge {
  position: absolute;
  left: 18px;
  bottom: -18px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-media-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .6; }
}

/* ---------- Highlights ---------- */
.highlights { padding: 84px 0 56px; }
.highlights-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 720px;
  margin: 0 auto 48px;
}
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.highlight-card {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.highlight-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(11, 51, 88, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.highlight-card:hover::after,
.highlight-card:focus-within::after { opacity: 1; }
.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.highlight-card:hover .highlight-icon,
.highlight-card:focus-within .highlight-icon {
  background: var(--red);
  color: var(--white);
  transform: scale(1.08);
}
.highlight-icon svg { width: 26px; height: 26px; }
.highlight-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.highlight-card p { font-size: 0.94rem; }

/* ---------- Secções genéricas ---------- */
.section-eyebrow {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-eyebrow-light { color: #ff8a8a; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}
.section-title-light { color: var(--white); }
.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

/* ---------- Serviços ---------- */
.services { padding: 88px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(11, 51, 88, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.service-card:hover::after,
.service-card:focus-within::after { opacity: 1; }
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background-color .18s ease, transform .18s ease;
}
.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  background: var(--red);
  transform: scale(1.08);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; }

/* Link discreto para pré-preencher o formulário com este serviço (ver B2). */
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding: 4px 2px;
  border: none;
  background: none;
  color: var(--red);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color .18s ease;
}
.service-card-cta:hover,
.service-card-cta:focus-visible { color: var(--red-dark); }
.service-card-cta span {
  display: inline-block;
  transition: transform .18s ease;
}
.service-card-cta:hover span,
.service-card-cta:focus-visible span { transform: translateX(3px); }

.services-note { text-align: center; margin-top: 36px; }
.services-note p { font-size: 0.8rem; color: #93a2af; font-style: italic; }

/* ---------- Resultados ---------- */
.results { padding: 88px 0; background: var(--gray-50); }
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start; /* cada card mantém a sua própria altura (rácios diferentes) */
}
.result-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Botão que envolve a foto (activa o lightbox) — reset visual de <button>. */
.result-card-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.result-card-trigger img {
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}
/* Rácio de cada montagem antes/depois (ficheiro único, não recortar a zona útil). */
.result-card--landscape .result-card-trigger img { aspect-ratio: 1402 / 1122; }
.result-card--square .result-card-trigger img { aspect-ratio: 1254 / 1254; }
.result-card--portrait .result-card-trigger img { aspect-ratio: 662 / 1241; }

.result-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 51, 88, 0.72);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  pointer-events: none;
}

.result-card figcaption {
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  text-align: center;
}

/* Pontos indicadores do carrossel (visíveis só em mobile, ver responsive.css) */
.results-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.results-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background-color .2s ease, transform .2s ease;
}
.results-dot.is-active {
  background: var(--red);
  transform: scale(1.3);
}

/* ---------- Sobre ---------- */
.about { padding: 88px 0; background: var(--gray-50); }
.about-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
}
.about-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-media.img-fallback img { display: none; }
.about-media.img-fallback {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border-radius: var(--radius-lg);
  min-height: 260px;
  box-shadow: var(--shadow-md);
}
.about-content { text-align: center; }
.about-content .section-title, .about-content .section-eyebrow { text-align: center; }
.about-text { margin: 0 auto 28px; max-width: 52ch; font-size: 1.02rem; }

/* ---------- Marcar consulta ---------- */
.booking {
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 15%, rgba(228,58,58,0.18), transparent 45%);
  padding: 88px 0;
}
.booking-inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.booking-text { color: #cfdcea; margin-bottom: 26px; max-width: 50ch; }
.booking-intro { text-align: center; }
.booking-intro .section-eyebrow, .booking-intro .section-title { text-align: center; }
.booking-text { margin-left: auto; margin-right: auto; }

.booking-alt-contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 20px 26px;
  border-radius: var(--radius-md);
}
.booking-alt-contact p { color: #cfdcea; font-size: 0.9rem; margin-bottom: 2px; }

.booking-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group .required { color: var(--red); }
.form-group .optional { color: var(--text-light); font-weight: 400; font-size: 0.8rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--text);
  transition: border-color .18s ease, background-color .18s ease;
  width: 100%;
  min-height: 48px;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--red);
  background: #fff5f5;
}
/* Destaque temporário quando um card de serviço pré-seleciona este campo. */
.field-highlight { animation: fieldHighlight 1.2s ease-out; }
@keyframes fieldHighlight {
  0% { box-shadow: 0 0 0 4px rgba(11, 51, 88, 0.35); }
  100% { box-shadow: 0 0 0 4px rgba(11, 51, 88, 0); }
}
.form-error {
  display: none;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 500;
}
.form-group.has-error .form-error { display: block; }
.form-hint { color: var(--text-light); font-size: 0.76rem; margin-top: 6px; }
.form-privacy { text-align: center; font-size: 0.78rem; margin-top: 16px; color: var(--text-light); }

/* ---------- Contactos ---------- */
.contacts { padding: 88px 0; background: var(--white); }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 32px 20px;
}
.contact-icon { font-size: 1.8rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.96rem; font-weight: 500; color: var(--text); word-break: break-word; }
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 360px;
  margin: 0 auto;
}
.contact-actions .btn { width: 100%; }

/* ---------- Localização ---------- */
.location { padding: 0 0 88px; background: var(--white); }
.location-block {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.location-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.location-caption { padding: 30px 20px; }
.location-pin { font-size: 2.4rem; margin-bottom: 12px; }
.location-city { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.location-note { font-size: 0.85rem; }

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(228, 58, 58, 0.16);
}
.final-cta-inner {
  position: relative;
  text-align: center;
  padding: 80px 0;
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 14px;
}
.final-cta p { color: #cfdcea; margin-bottom: 30px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfdcea; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 56px 0 32px;
}
.footer-brand strong { display: block; color: var(--white); font-family: var(--font-heading); font-size: 1.2rem; }
.footer-brand span { font-size: 0.82rem; color: #9db2c6; }
.footer-info { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.footer-info a:hover { color: var(--white); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.78rem;
  color: #7f96ac;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 38, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.modal-close { z-index: 1; }
.modal-close:hover { background: var(--gray-100); color: var(--navy); }
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e9f6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.modal-icon svg { width: 30px; height: 30px; }
.modal-box h3 { font-size: 1.25rem; margin-bottom: 10px; }
.modal-box p { font-size: 0.92rem; margin-bottom: 24px; }

/* ---------- Lightbox de Resultados (reaproveita .modal-overlay e a animação modalIn) ---------- */
.lightbox-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 44px 26px;
  max-width: min(92vw, 760px);
  width: 100%;
  box-shadow: var(--shadow-md);
  animation: modalIn .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-media { position: relative; width: 100%; text-align: center; }
.lightbox-img {
  max-width: 100%;
  max-height: 64vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin: 0 auto;
  display: block;
}
.lightbox-caption {
  margin-top: 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  text-align: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, color .18s ease;
}
.lightbox-nav:hover,
.lightbox-nav:focus-visible { background: var(--navy); color: var(--white); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }

  /* Toda a animação/transição nova (tarefas de hierarquia de movimento) fica desactivada aqui. */
  .hero-img,
  .hero-media-badge-dot,
  .lightbox-box,
  .field-highlight { animation: none; }
  .site-header,
  .brand-logo-img,
  .brand-logo-fallback,
  .main-nav a::after,
  .service-icon,
  .highlight-icon,
  .service-card::after,
  .highlight-card::after,
  .service-card-cta span,
  .lightbox-nav,
  .results-dot { transition: none; }
  .scroll-progress { display: none; }
}
