/* Tipografia alojada localmente (sem pedidos a servidores externos) */
@font-face {
  font-family: 'FLM Display';
  src: url('../assets/fonts/flm-display-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FLM Display';
  src: url('../assets/fonts/flm-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FLM Display';
  src: url('../assets/fonts/flm-display-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FLM Sans';
  src: url('../assets/fonts/flm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FLM Sans';
  src: url('../assets/fonts/flm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FLM Sans';
  src: url('../assets/fonts/flm-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FLM Sans';
  src: url('../assets/fonts/flm-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   FLM Clinic — Instituto Médico | Unidade de Telemedicina
   Identidade Editorial: Marfim Quente, Preto Obsidiana & Dourado Champanhe
   Tipografia de Alta Legibilidade alojada localmente: Noto Serif Display + Lato (.woff2)
   Contraste calibrado WCAG AA+/AAA em todo o site
   ========================================================================== */

:root {
  --ivory: #FAF8F4;
  --ivory-soft: #F3EEE6;
  --ivory-card: #FFFFFF;
  --sand-line: #E4DAC8;
  --sand-strong: #CEC0A7;

  --ink: #141311;
  --ink-soft: #34302A;
  --stone: #575148;

  --obsidian: #0B0B0D;
  --obsidian-elev: #141418;
  --obsidian-line: rgba(232, 206, 150, 0.28);

  --gold: #B89146;
  --gold-light: #E8CE96;
  --gold-deep: #78591E;
  --gold-tint: rgba(184, 145, 70, 0.10);

  --font-display: 'FLM Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'FLM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 3px;
  --radius-md: 5px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  overflow-x: clip;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.section-dark,
.site-footer,
.dark-modal,
.info-panel-dark,
.btn-primary,
.mobile-sticky-bar {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Typography */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 16px;
}

.section-dark .eyebrow { color: var(--gold-light); }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}

.section-dark h1,
.section-dark h2,
.section-dark .display {
  color: var(--ivory);
}

.hero h1 {
  line-height: 1.09;
}

h1 { font-size: clamp(2.45rem, 4.5vw, 3.85rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); }

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.75vw, 1.52rem);
  line-height: 1.26;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--ink);
}

em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.section-dark em { color: var(--gold-light); }

.lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0;
}

.section-dark .lead { color: rgba(250, 248, 244, 0.90); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--obsidian);
  color: var(--ivory);
  border-color: var(--obsidian);
}

.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--sand-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(20, 19, 17, 0.04);
}

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(232, 206, 150, 0.58);
}

.btn-outline-light:hover {
  border-color: var(--gold-light);
  background: rgba(232, 206, 150, 0.12);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 12px;
  letter-spacing: 0.09em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand-line);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.main-nav a {
  position: relative;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.active { color: var(--ink); }

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--sand-strong);
  color: var(--ink);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px 28px;
  background: var(--ivory);
  border-bottom: 1px solid var(--sand-line);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 13px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(206, 192, 167, 0.55);
}

.mobile-nav .btn { margin-top: 14px; width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 96px) 0 clamp(60px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  left: -1%;
  top: 50%;
  transform: translateY(-48%);
  width: clamp(260px, 28vw, 420px);
  aspect-ratio: 1 / 2;
  background: url("../assets/fenix-fundo-suave.webp") no-repeat left center / contain;
  opacity: 0.68;
  filter: saturate(1.15) contrast(1.06);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.45vw, 1.26rem);
  color: var(--ink);
  margin: 22px 0 14px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.reassurance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--sand-line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.reassurance-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reassurance-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
  flex-shrink: 0;
}

.editorial-frame {
  position: relative;
  margin: 0;
  background: var(--ivory-soft);
  border: 1px solid var(--sand-line);
  padding: 12px;
}

.editorial-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.editorial-frame-tall img {
  aspect-ratio: 4 / 3;
}

/* Pillars Band */
.pillars-band {
  background: var(--ivory-soft);
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
  padding: 36px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.pillar-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.pillar-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Sections */
.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-soft {
  background: var(--ivory-soft);
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
}

.section-dark {
  background: var(--obsidian);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head-copy { max-width: 600px; }
.section-head-note {
  max-width: 380px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(20, 19, 17, 0.07);
}

.service-card-media {
  overflow: hidden;
  border-bottom: 1px solid var(--sand-line);
  background: var(--ivory-soft);
}

.service-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-card:hover .service-card-media img { transform: scale(1.03); }

.service-card-body {
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1.5px;
  background: var(--gold-deep);
}

.fee-box {
  margin-top: auto;
  padding: 14px 18px;
  background: var(--ivory);
  border: 1px dashed var(--sand-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.fee-box-hero {
  width: 100%;
  max-width: 490px;
  margin-top: 26px;
}

.fee-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fee-meta:last-child {
  flex-shrink: 0;
}

.fee-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

.fee-val {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.service-card .fee-val {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

.service-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Clinical Note Banner */
.clinical-note {
  margin-top: 34px;
  padding: 26px 28px;
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  border-left: 3px solid var(--gold-deep);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.clinical-note-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.clinical-note-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.62;
}

/* Split Editorial Blocks */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.split-grid.reverse .split-media { order: 2; }

.split-copy p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 18px 0 24px;
}

/* Process Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  padding: 34px 28px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.step-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.doctor-card {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.doctor-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(20, 19, 17, 0.06);
}

/* Moldura editorial compacta e uniforme para os 3 médicos (176 x 210 px) */
.doctor-photo-frame {
  position: relative;
  width: 176px;
  height: 210px;
  margin: 0 auto 22px;
  padding: 5px;
  background: var(--ivory);
  border: 1px solid var(--sand-strong);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(20, 19, 17, 0.06);
}

.doctor-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 2px;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.65s var(--ease);
}

.doctor-card:hover .doctor-photo-frame img {
  transform: scale(1.03);
}

.doctor-photo-slot {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 32%, rgba(184, 145, 70, 0.14), transparent 68%),
    linear-gradient(165deg, #F8F4EC 0%, #ECE4D6 100%);
  border: 1px solid rgba(184, 145, 70, 0.22);
  text-align: center;
}

.doctor-slot-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.78);
}

.doctor-slot-caption {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--stone);
}

.doctor-card h3 {
  font-size: clamp(1.32rem, 1.65vw, 1.56rem);
  line-height: 1.22;
  margin-bottom: 12px;
}

.doctor-card h3 .doctor-surname {
  display: inline-block;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.doctor-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.doctor-om {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--stone);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sand-line);
}

.doctor-creds {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 9px;
  flex: 1;
}

.doctor-creds li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 15px;
  position: relative;
}

.doctor-creds li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.lang-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: var(--ivory-soft);
  border: 1px solid var(--sand-line);
  color: var(--ink);
}

/* FAQ Accordion */
.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--sand-line);
}

.faq-item {
  border-bottom: 1px solid var(--sand-line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }

.faq-plus {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] .faq-plus { transform: rotate(45deg); }

.faq-answer {
  padding: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 65ch;
}

.faq-answer p { margin: 0; }

/* Dark Institutional Block */
.dark-editorial-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.phoenix-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #000000;
  border: 1px solid var(--obsidian-line);
  padding: 0;
  overflow: hidden;
}

.phoenix-showcase img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  object-position: left center;
  background: #000000;
  padding: 18px 20px 10px 0;
}

.phoenix-motto {
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid rgba(232, 206, 150, 0.18);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.ers-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--obsidian-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.92);
}

.ers-pill strong { color: var(--gold-light); font-weight: 700; }

.dark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Final CTA Band */
.cta-band {
  text-align: center;
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--ivory-soft);
  border-top: 1px solid var(--sand-line);
}

.cta-band .lead {
  max-width: 580px;
  margin: 18px auto 34px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Page Sub-hero (Dedicated Service / Team Pages) */
.subhero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--sand-line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 24px;
  line-height: 1.45;
}

.breadcrumb a:hover { color: var(--gold-deep); }

.info-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-panel {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  padding: 32px 30px;
}

.info-panel-dark {
  background: var(--obsidian);
  color: var(--ivory);
  border: 1px solid var(--obsidian-line);
  padding: 32px 30px;
}

.info-panel-dark h3 { color: var(--gold-light); }
.info-panel-dark p,
.info-panel-dark li {
  color: rgba(250, 248, 244, 0.90);
}

.info-panel-dark .check-list li::before {
  background: var(--gold-light);
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: rgba(250, 248, 244, 0.88);
  border-top: 1px solid var(--obsidian-line);
  padding: 64px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(232, 206, 150, 0.16);
}

.footer-brand-link {
  display: inline-block;
  width: min(100%, 620px);
  line-height: 0;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .footer-brand {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .footer-brand-link {
    width: min(100%, 320px);
  }
}

.footer-col h4,
.footer-col .footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
  font-size: 14.5px;
}

.footer-links a {
  color: rgba(250, 248, 244, 0.88);
  transition: color 0.25s var(--ease);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-ers {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.84);
  margin: 0;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: rgba(250, 248, 244, 0.78);
}

.emergency-note {
  color: var(--gold-light);
  font-weight: 600;
}

/* Dialog / Modals */
dialog.flm-modal {
  border: 1px solid var(--sand-strong);
  background: var(--ivory);
  color: var(--ink);
  padding: 0;
  width: min(94vw, 660px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

dialog.flm-modal::backdrop {
  background: rgba(11, 11, 13, 0.74);
  backdrop-filter: blur(4px);
}

dialog.flm-modal.dark-modal {
  background: #0B0B0D;
  color: var(--ivory);
  border-color: var(--obsidian-line);
  width: min(94vw, 620px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 30px 18px;
  border-bottom: 1px solid var(--sand-line);
}

.dark-modal .modal-header { border-bottom-color: rgba(255, 255, 255, 0.12); }

.modal-close {
  background: transparent;
  border: 1px solid var(--sand-strong);
  color: inherit;
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.dark-modal .modal-close { border-color: var(--obsidian-line); color: var(--ivory); }

.modal-body { padding: 24px 30px 30px; }

.service-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.service-pill {
  padding: 13px 10px;
  background: var(--ivory-card);
  border: 1px solid var(--sand-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

.service-pill.active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--gold-light);
}

.channel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--sand-line);
  margin-bottom: 22px;
}

.channel-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  transition: all 0.25s var(--ease);
}

.channel-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold-deep);
}

.channel-panel { display: none; }
.channel-panel.active { display: block; }

.channel-box {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--sand-strong);
  background: var(--ivory-card);
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--stone);
  opacity: 0.9;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.travel-extra { display: none; }
.travel-extra.visible { display: contents; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-deep);
  min-height: 20px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.chapter-grid img {
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(11, 11, 13, 0.97);
  border-top: 1px solid var(--obsidian-line);
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}

.mobile-sticky-bar.visible { transform: translateY(0); }

.mobile-sticky-bar span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.35;
}

.mobile-sticky-bar small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-light);
}

/* SPA View Container (used only in standalone preview) */
.spa-view { display: none; }
.spa-view.active { display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split-grid, .dark-editorial-grid, .faq-layout { grid-template-columns: 1fr; }
  .split-grid.reverse .split-media { order: 0; }
  .services-grid, .team-grid, .steps-grid, .clinical-note { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .info-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-actions .btn { display: none; }
  .service-pills, .form-grid, .chapter-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* Language Switcher (Top-Right Flags) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--ivory-soft);
  border: 1px solid var(--sand-strong);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  line-height: 1;
  transition: all 0.2s var(--ease);
}

.lang-btn svg {
  border-radius: 1.5px;
  box-shadow: 0 0 0 0.5px rgba(20, 19, 17, 0.18);
  flex-shrink: 0;
}

.lang-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
  background: var(--ivory-card);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 19, 17, 0.08);
}

/* Enhanced Mobile Adaptation (cascata limpa: 1210 -> 1040 -> 820 -> 480 -> 350) */
@media (max-width: 1210px) {
  .header-inner { gap: 14px; min-height: 86px; }
  .brand-logo { height: 56px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 11px; letter-spacing: 0.04em; }
  .header-actions { gap: 10px; }
  .header-actions .btn-sm { padding: 10px 15px; font-size: 11.5px; letter-spacing: 0.07em; }
  .lang-btn { padding: 6px 6px; min-height: 32px; }
  .lang-btn span { display: none; }
}

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 78px; gap: 14px; }
  .brand-logo { height: 54px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 32px, var(--container)); }
  .header-inner { gap: 10px; min-height: 72px; }
  .brand-logo { height: 50px; }
  .header-actions { gap: 8px; }
  .lang-btn { padding: 6px 6px; min-height: 34px; }
  .lang-btn span { display: none; }
  .hero { padding: 36px 0 44px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 52px 0; }
  .service-card-body { padding: 24px 20px; }
  .service-card-actions { flex-wrap: wrap; }
  .clinical-note { padding: 20px 18px; }
  .step-card, .info-panel, .info-panel-dark { padding: 24px 20px; }
  .modal-header { padding: 22px 20px 14px; }
  .modal-body { padding: 18px 20px 24px; }
  .channel-box { padding: 18px 16px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }
  .dark-actions { flex-direction: column; align-items: stretch; }
  .dark-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 68px; }
  .brand-logo { height: 46px; }
  .menu-toggle { width: 38px; height: 38px; }
  .lang-btn { padding: 5px 5px; }
  .lang-btn svg { width: 18px; height: 12px; }
  .reassurance-strip { gap: 8px 14px; font-size: 13px; }
  .fee-box { padding: 12px 13px; gap: 12px; }
  .fee-label { font-size: 10px; letter-spacing: 0.05em; }
  .fee-val { font-size: 0.95rem; }
}

.channel-tabs.channel-tabs-two { grid-template-columns: repeat(2, 1fr); }


/* Smooth View & Tab Transitions */
@keyframes flmViewEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spa-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
}

.spa-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: flmViewEnter 0.38s var(--ease) both;
}

.channel-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.channel-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: flmViewEnter 0.30s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .spa-view,
  .spa-view.active,
  .channel-panel,
  .channel-panel.active {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
  flex-shrink: 0;
  cursor: pointer;
}

/* Páginas Legais e Privacidade */
.legal-stack {
  display: grid;
  gap: 28px;
}

.legal-card {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  padding: clamp(24px, 3.5vw, 36px);
}

.legal-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin-bottom: 16px;
}

.legal-card p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal-card p:last-child { margin-bottom: 0; }

.legal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.legal-meta-box {
  background: var(--ivory);
  border: 1px solid var(--sand-line);
  border-left: 2.5px solid var(--gold-deep);
  padding: 14px 16px;
}

.legal-meta-box strong {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 5px;
}

.legal-meta-box span {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--sand-line);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--ivory-card);
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sand-line);
  vertical-align: top;
  line-height: 1.55;
}

.legal-table th {
  background: var(--ivory-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal-table tr:last-child td { border-bottom: none; }

.privacy-layer-note {
  margin-top: 12px;
  padding: 11px 13px;
  background: var(--ivory);
  border: 1px solid var(--sand-line);
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--stone);
}

.privacy-layer-note a {
  color: var(--gold-deep);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 820px) {
  .legal-meta-grid { grid-template-columns: 1fr; }
}

/* Acessibilidade: Skip Link & SR-Only */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  background: var(--obsidian);
  color: var(--ivory);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
}

.skip-link:focus {
  left: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Folha de Impressão Limpa (Documentos Legais, Privacidade e Preparação de Consulta) */
@media print {
  .site-header,
  .mobile-nav,
  .mobile-sticky-bar,
  .lang-switcher,
  .hero-actions,
  .service-card-actions,
  .dark-actions,
  .cta-band,
  dialog,
  .skip-link {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.5;
    padding-bottom: 0 !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
  }

  .section,
  .subhero {
    padding: 18px 0 !important;
  }

  .legal-card,
  .info-panel,
  .info-panel-dark,
  .service-card,
  .doctor-card {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .info-panel-dark h3,
  .info-panel-dark p,
  .info-panel-dark li,
  .site-footer,
  .site-footer a,
  .site-footer p,
  .site-footer span {
    color: #000000 !important;
  }

  .site-footer {
    background: #FFFFFF !important;
    border-top: 1px solid #999999 !important;
    padding: 18px 0 !important;
  }

  .footer-brand,
  .footer-logo {
    display: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444444;
  }
}


/* Estado ativo na navegação móvel */
.mobile-nav a.active {
  color: var(--gold-deep);
  font-weight: 700;
  padding-left: 12px;
  border-left: 2.5px solid var(--gold-deep);
}

/* Faixa final de conversão em fundo marfim (páginas de especialidade) */
.cta-band-light {
  background: var(--ivory);
  border-top: 1px solid var(--sand-line);
}

.cross-service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--sand-line);
  font-size: 13px;
  color: var(--stone);
}

.cross-service-links a {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cross-service-links a:hover {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* Índice rápido nas páginas legais e privacidade */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 16px 18px;
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  border-left: 3px solid var(--gold-deep);
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--ivory);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.legal-toc a:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
  background: var(--ivory-card);
}

.legal-card {
  scroll-margin-top: 104px;
}

@media (max-width: 820px) {
  .header-actions .btn.btn-keep-mobile {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 11.5px;
  }
}

@media print {
  .legal-toc,
  .cross-service-links {
    display: none !important;
  }
}


/* ==========================================================================
   v31 — Iconografia Linear Dourada, Selos sobre Imagens, FAQ Sticky & Reveal
   ========================================================================== */
.flm-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.reassurance-strip.has-icons span::before {
  display: none;
}

.reassurance-strip.has-icons .flm-icon {
  width: 15px;
  height: 15px;
  color: var(--gold-deep);
}

/* Ícones editoriais na faixa de pilares */
.pillar-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--ivory-card);
  border: 1px solid rgba(184, 145, 70, 0.34);
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.pillar-icon .flm-icon {
  width: 18px;
  height: 18px;
}

/* Etiqueta discreta em vidro fosco sobre a imagem dos serviços */
.service-card-media {
  position: relative;
}

.service-media-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 11px;
  background: rgba(250, 248, 244, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 145, 70, 0.45);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(11, 11, 13, 0.12);
}

/* Passos 01 -> 02 -> 03 com linha conectora dourada fina e ícones */
.steps-grid {
  position: relative;
}

@media (min-width: 1025px) {
  .steps-grid::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 52px;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 145, 70, 0.25) 0%, rgba(184, 145, 70, 0.65) 50%, rgba(184, 145, 70, 0.25) 100%);
    pointer-events: none;
    z-index: 0;
  }
}

.step-card {
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(20, 19, 17, 0.06);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.step-head .step-num {
  margin-bottom: 0;
}

.step-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--ivory);
  border: 1px solid rgba(184, 145, 70, 0.32);
  color: var(--gold-deep);
}

.step-icon .flm-icon {
  width: 18px;
  height: 18px;
}

/* Selo regulatório ERS com escudo dourado */
.ers-pill .flm-icon {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

/* Coluna esquerda fixa no FAQ em ecrãs largos */
.faq-aside {
  position: sticky;
  top: 108px;
}

@media (max-width: 1024px) {
  .faq-aside {
    position: static;
  }
}

/* Continuidade editorial com marca de água subtil da Fénix nos sub-heros sem foto */
.subhero-editorial {
  position: relative;
  overflow: hidden;
}

.subhero-editorial::before {
  content: "";
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(190px, 22vw, 310px);
  aspect-ratio: 1 / 2;
  background: url("../assets/fenix-fundo-suave.webp") no-repeat right center / contain;
  opacity: 0.58;
  filter: saturate(1.15) contrast(1.06);
  pointer-events: none;
  z-index: 0;
}

.subhero-editorial .container {
  position: relative;
  z-index: 1;
}

/* Animações subtis de revelação ao scroll (ativadas apenas com JS ativo) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal .reveal-delay-1 { transition-delay: 0.07s; }
.js-reveal .reveal-delay-2 { transition-delay: 0.14s; }
.js-reveal .reveal-delay-3 { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media print {
  .js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .subhero-editorial::before,
  .service-media-badge {
    display: none !important;
  }
}


/* ==========================================================================
   v33 — Fluidez Contemporânea: View Transitions, Coreografia, Modais & Micro-interações
   100% GPU-acelerado (transform / opacity), zero bibliotecas externas, WCAG motion-safe
   ========================================================================== */

/* 1. Cross-Document View Transitions (navegação fluida tipo app nativa) */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
  transition: background-color 0.32s var(--ease), box-shadow 0.36s var(--ease), border-color 0.32s var(--ease);
}

main {
  view-transition-name: main-content;
}

@keyframes flmPageOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

@keyframes flmPageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

::view-transition-old(main-content) {
  animation: flmPageOut 0.24s var(--ease) both;
}

::view-transition-new(main-content) {
  animation: flmPageIn 0.36s var(--ease) both;
}

/* 2. Cabeçalho Dinâmico ao Scroll + Linha Dourada de Progresso de Leitura */
.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(20, 19, 17, 0.06);
  border-bottom-color: rgba(206, 192, 167, 0.72);
}

.header-inner {
  transition: min-height 0.32s var(--ease);
}

.site-header.is-scrolled .header-inner {
  min-height: 74px;
}

.brand-logo {
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
}

.site-header.is-scrolled .brand-logo {
  transform: scale(0.90);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 55%, var(--gold-light) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 95;
  will-change: transform;
}

@media (min-width: 1041px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 1040px) {
  .site-header.is-scrolled .header-inner {
    min-height: 66px;
  }
  .site-header.is-scrolled .brand-logo {
    transform: scale(0.92);
  }
}

@media (max-width: 820px) {
  .site-header.is-scrolled .header-inner {
    min-height: 62px;
  }
}

@media (max-width: 480px) {
  .site-header.is-scrolled .header-inner {
    min-height: 58px;
  }
}

@media (max-width: 350px) {
  .brand-logo {
    height: 40px;
  }
}

/* 3. Coreografia de Abertura no Hero e Sub-heros */
@keyframes flmHeroRise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flmMediaSettle {
  from {
    opacity: 0;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero .hero-grid > div > *,
.subhero .hero-grid > div > *,
.subhero-editorial .container > * {
  animation: flmHeroRise 0.68s var(--ease) both;
}

.hero .hero-grid > div > :nth-child(1),
.subhero .hero-grid > div > :nth-child(1),
.subhero-editorial .container > :nth-child(1) { animation-delay: 0.03s; }

.hero .hero-grid > div > :nth-child(2),
.subhero .hero-grid > div > :nth-child(2),
.subhero-editorial .container > :nth-child(2) { animation-delay: 0.09s; }

.hero .hero-grid > div > :nth-child(3),
.subhero .hero-grid > div > :nth-child(3),
.subhero-editorial .container > :nth-child(3) { animation-delay: 0.15s; }

.hero .hero-grid > div > :nth-child(4),
.subhero .hero-grid > div > :nth-child(4),
.subhero-editorial .container > :nth-child(4) { animation-delay: 0.21s; }

.hero .hero-grid > div > :nth-child(5),
.subhero .hero-grid > div > :nth-child(5),
.subhero-editorial .container > :nth-child(5) { animation-delay: 0.27s; }

.hero .hero-grid > div > :nth-child(6),
.subhero .hero-grid > div > :nth-child(6) { animation-delay: 0.33s; }

.hero .editorial-frame,
.subhero .editorial-frame {
  overflow: hidden;
  animation: flmHeroRise 0.72s var(--ease) 0.12s both;
}

.hero .editorial-frame img,
.subhero .editorial-frame img {
  animation: flmMediaSettle 0.92s var(--ease) 0.12s both;
  will-change: transform, opacity;
}

/* 4. Parallax GPU subtil na marca de água da Fénix */
.hero::before {
  transform: translate3d(0, calc(-48% + var(--phoenix-y, 0px)), 0);
  will-change: transform;
}

.subhero-editorial::before {
  transform: translate3d(0, calc(-50% + var(--phoenix-y, 0px)), 0);
  will-change: transform;
}

/* 5. Revelação ao Scroll refinada (transform: none no estado final preserva position: sticky) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal-delay-1 { transition-delay: 0.06s; }
.js-reveal .reveal-delay-2 { transition-delay: 0.13s; }
.js-reveal .reveal-delay-3 { transition-delay: 0.20s; }

/* 6. Desenho progressivo da linha dourada conectora dos passos 01 -> 02 -> 03 */
@media (min-width: 1025px) {
  .js-reveal .steps-grid::before {
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.85s var(--ease) 0.12s, opacity 0.45s var(--ease) 0.12s;
  }

  .js-reveal .steps-grid.is-visible::before {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* 7. Modais <dialog> Fluidos (@starting-style + allow-discrete + backdrop blur progressivo) */
dialog.flm-modal {
  opacity: 0;
  transform: translateY(12px) scale(0.975);
  transition:
    opacity 0.28s var(--ease),
    transform 0.34s var(--ease),
    overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

dialog.flm-modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  dialog.flm-modal[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }
}

dialog.flm-modal::backdrop {
  background: rgba(11, 11, 13, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    background-color 0.28s var(--ease),
    backdrop-filter 0.28s var(--ease),
    overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

dialog.flm-modal[open]::backdrop {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@starting-style {
  dialog.flm-modal[open]::backdrop {
    background: rgba(11, 11, 13, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

/* 8. Acordeão FAQ Suave (combinado com Web Animations API em js/main.js) */
.faq-item {
  overflow: hidden;
  transition: background-color 0.25s var(--ease);
}

.faq-item .faq-answer {
  transition: opacity 0.28s var(--ease);
}

/* 9. Menu Móvel Deslizante + Transformação Animada do Ícone (≡ <-> ×) */
.menu-toggle svg line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-bottom: 1px solid transparent;
  transition:
    max-height 0.42s var(--ease),
    opacity 0.28s var(--ease),
    padding 0.36s var(--ease),
    border-color 0.28s var(--ease),
    visibility 0s linear 0.42s;
}

.mobile-nav.open {
  display: flex;
  max-height: 480px;
  padding: 18px 24px 28px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-bottom-color: var(--sand-line);
  transition:
    max-height 0.46s var(--ease),
    opacity 0.30s var(--ease),
    padding 0.36s var(--ease),
    border-color 0.28s var(--ease),
    visibility 0s;
}

.mobile-nav > a,
.mobile-nav > .btn {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.30s var(--ease), transform 0.34s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.mobile-nav.open > a,
.mobile-nav.open > .btn {
  opacity: 1;
  transform: none;
}

.mobile-nav.open > :nth-child(1) { transition-delay: 0.04s; }
.mobile-nav.open > :nth-child(2) { transition-delay: 0.08s; }
.mobile-nav.open > :nth-child(3) { transition-delay: 0.12s; }
.mobile-nav.open > :nth-child(4) { transition-delay: 0.16s; }
.mobile-nav.open > :nth-child(5) { transition-delay: 0.20s; }
.mobile-nav.open > :nth-child(6) { transition-delay: 0.24s; }

/* 10. Micro-interações Táteis: Brilho Champanhe nos Botões, Pressão Tátil & Indicador nas Abas */
.btn-primary,
.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after,
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(232, 206, 150, 0.24) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.62s var(--ease);
  pointer-events: none;
}

.btn-gold::after {
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 100%
  );
}

.btn-primary:hover::after,
.btn-gold:hover::after {
  left: 155%;
}

.btn:active,
.service-pill:active,
.lang-btn:active {
  transform: scale(0.985);
}

.modal-close {
  transition: transform 0.28s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.modal-close:hover {
  transform: rotate(90deg);
  border-color: var(--gold);
}

/* Indicador deslizante suave nas abas do modal */
.channel-tabs {
  position: relative;
}

.channel-tabs.has-indicator .channel-tab.active {
  border-bottom-color: transparent;
}

.channel-tab-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 1px;
  pointer-events: none;
  transition: transform 0.34s var(--ease), width 0.34s var(--ease), opacity 0.22s var(--ease);
  will-change: transform, width;
}

/* Respeito rigoroso a prefers-reduced-motion e impressão */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(main-content),
  ::view-transition-new(main-content),
  .hero .hero-grid > div > *,
  .subhero .hero-grid > div > *,
  .subhero-editorial .container > *,
  .hero .editorial-frame,
  .subhero .editorial-frame,
  .hero .editorial-frame img,
  .subhero .editorial-frame img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .js-reveal .steps-grid::before {
    transform: none !important;
    opacity: 1 !important;
  }

  .btn-primary::after,
  .btn-gold::after {
    display: none !important;
  }

  .mobile-nav {
    transition: none !important;
  }
}

@media print {
  .scroll-progress,
  .channel-tab-indicator {
    display: none !important;
  }
}


/* ==========================================================================
   v35 — Polimento Visual & Ergonomia Mobile (320px–820px · iOS / Android)
   ========================================================================== */

a, button, summary, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(184, 145, 70, 0.18);
}

h1, h2 {
  overflow-wrap: break-word;
}

dialog.flm-modal {
  max-height: 90vh;
  max-height: 90dvh;
  overscroll-behavior: contain;
}

/* Sombra subtil indicadora de scroll lateral nas tabelas legais/privacidade */
.legal-table-wrap {
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--ivory-card) 30%, rgba(255, 255, 255, 0)) left center / 36px 100% no-repeat local,
    linear-gradient(to left, var(--ivory-card) 30%, rgba(255, 255, 255, 0)) right center / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(20, 19, 17, 0.14), rgba(20, 19, 17, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(20, 19, 17, 0.14), rgba(20, 19, 17, 0)) right center / 14px 100% no-repeat scroll;
}

.legal-table {
  background: transparent;
}

/* Menu móvel com scroll seguro em orientação horizontal (landscape) */
.mobile-nav.open {
  max-height: min(480px, calc(100vh - 64px));
  max-height: min(480px, calc(100dvh - 64px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  /* Quebra de linha limpa em botões longos (modais, FAQ, páginas FR/EN) */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  /* Alvos táteis confortáveis (>= 42px) */
  .modal-close {
    width: 42px;
    height: 42px;
  }

  .lang-btn {
    min-height: 36px;
    padding: 6px 7px;
  }

  .footer-links {
    gap: 6px;
  }

  .footer-links a {
    display: inline-block;
    padding: 4px 0;
  }

  .legal-toc a {
    min-height: 38px;
    padding: 8px 12px;
  }

  /* Barra fixa inferior com safe-area e encaixe confortável em PT/FR/EN */
  .mobile-sticky-bar {
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .mobile-sticky-bar span {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 12.5px;
    line-height: 1.32;
  }

  .mobile-sticky-bar small {
    font-size: 11px;
    line-height: 1.3;
  }

  .mobile-sticky-bar .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 480px) {

  .btn {
    padding: 13px 18px;
    font-size: 12.5px;
    letter-spacing: 0.07em;
  }

  .btn-sm {
    padding: 10px 16px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }

  /* Manter botão de menu com alvo tátil de 42px mesmo em telemóveis compactos */
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .lang-btn {
    padding: 6px 6px;
    min-height: 36px;
  }

  /* Caixa de honorários sem aperto/transbordo em Receituário Crónico (PT/FR) */
  .fee-box {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 13px 14px;
    gap: 10px 14px;
  }

  .fee-meta {
    flex: 1 1 auto;
  }

  .fee-meta:last-child {
    margin-left: auto;
  }

  .fee-label,
  .fee-val {
    white-space: normal;
  }

  /* Separadores do modal alinhados, centrados e com alvo tátil de 44px */
  .channel-tabs {
    align-items: stretch;
  }

  .channel-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding: 10px 4px;
    min-height: 44px;
  }

  .modal-header {
    padding: 20px 18px 14px;
  }

  .modal-header h2 {
    font-size: clamp(1.75rem, 6.4vw, 2.05rem) !important;
  }

  .modal-body {
    padding: 16px 18px 22px;
  }

  /* Enquadramento mais compacto da Fénix em mobile pequeno */
  .phoenix-showcase img {
    max-height: 310px;
  }

  .ers-pill {
    padding: 12px 14px;
    font-size: 13px;
  }
}

@media (max-width: 350px) {
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .lang-btn {
    padding: 5px 5px;
    min-height: 34px;
  }
}


/* ==========================================================================
   v37 — Moldura Editorial Multigeracional no Hero (Todas as Idades · Língua Nativa)
   ========================================================================== */
.editorial-frame-media {
  overflow: hidden;
}

.editorial-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 6px 3px;
  border-top: 1px solid var(--sand-line);
  margin-top: 12px;
}

.editorial-caption-main {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.editorial-caption-lang {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1.45;
}

@media (max-width: 480px) {
  .editorial-caption {
    padding: 11px 2px 2px;
    margin-top: 10px;
  }
  .editorial-caption-main {
    font-size: 12.5px;
  }
  .editorial-caption-lang {
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }
}


/* ==========================================================================
   v40 — Conformidade Clínica ERS, Hero com Preços, FAQ Temático, Mobile & A11y
   ========================================================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(120, 89, 30, 0.16);
}

/* Faixa rápida de serviços e preços visível no Hero (#42) */
.hero-quick-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.hero-quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 13px;
  background: var(--ivory-card);
  border: 1px solid var(--sand-strong);
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--ink);
  min-height: 44px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-quick-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 19, 17, 0.06);
}

.hero-quick-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.hero-quick-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

/* Nota concisa de cancelamento junto ao botão de marcação (#29) */
.cancel-micro-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--stone);
  line-height: 1.5;
}

.cancel-micro-note a {
  color: var(--gold-deep);
  text-decoration: underline;
  font-weight: 600;
}

/* Barra institucional de confiança sob o Hero (#44) */
.trust-bar {
  background: var(--ivory-card);
  border-top: 1px solid var(--sand-line);
  padding: 16px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.trust-item .flm-icon {
  color: var(--gold-deep);
  width: 16px;
  height: 16px;
}

.trust-item a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--sand-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.trust-item a:hover {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* Caixa de sinais de alarme / segurança clínica (#9, #13, #14) */
.alarm-banner {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--ivory-card);
  border: 1px solid var(--sand-strong);
  border-left: 3.5px solid var(--gold-deep);
  border-radius: var(--radius-sm);
}

.alarm-banner-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.alarm-banner-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  color: var(--ink);
  margin: 0;
}

.alarm-banner-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.alarm-banner p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.alarm-banner p:last-child {
  margin-bottom: 0;
}

/* Nota de cobrança da avaliação médica no cartão de Receituário (#22) */


/* Linha do tempo horizontal para Receituário Crónico (#45) */
.rx-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 28px;
}

.rx-timeline-step {
  background: var(--ivory-card);
  border: 1px solid var(--sand-line);
  border-top: 2.5px solid var(--gold-deep);
  padding: 20px 18px;
}

.rx-timeline-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.rx-timeline-step h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.rx-timeline-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Faixa de idiomas por médico (#17) */
.lang-availability-bar {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--ivory-soft);
  border: 1px solid var(--sand-line);
  border-left: 3px solid var(--gold-deep);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.lang-availability-bar strong {
  color: var(--ink);
}

/* Ação de marcação direta no cartão do médico (#47) */
.doctor-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-line);
}

.doctor-actions .btn {
  width: 100%;
  min-height: 44px;
}

/* Grupos temáticos no FAQ (#19d) */
.faq-group-title {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 26px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--sand-strong);
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq-list.faq-grouped {
  border-top: none;
}

/* Consentimento informado obrigatório no modal (#1) */
.consent-box-inline {
  margin: 14px 0 16px;
  padding: 13px 14px;
  background: var(--ivory);
  border: 1px solid var(--sand-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.consent-box-inline.is-error {
  border-color: #9E2A2B;
  background: #FFF8F7;
}

.consent-box-inline .consent-check {
  font-size: 12.5px;
  line-height: 1.52;
}

.consent-feedback {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #8A1F1F;
  min-height: 0;
}

/* Caixa de Contactos Oficiais (#4) */
.official-contacts-box {
  margin: 18px 0 0;
  padding: 18px 20px;
  background: var(--ivory);
  border: 1px solid var(--sand-strong);
  border-left: 3px solid var(--gold-deep);
}

.official-contacts-box h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* Barra fixa inferior no telemóvel: Marcar + WhatsApp (#48, #49) */
.mobile-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-sticky-actions .btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .rx-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-quick-services {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-quick-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
  }
  .rx-timeline {
    grid-template-columns: 1fr;
  }
  .alarm-banner {
    padding: 18px 16px;
  }
  .trust-bar-inner {
    gap: 8px 16px;
  }
}

@media (max-width: 480px) {
  .mobile-sticky-bar {
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-sticky-bar > span {
    font-size: 12px;
  }
  .mobile-sticky-actions .btn {
    padding: 10px 11px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .mobile-sticky-bar > span {
    display: none;
  }
  .mobile-sticky-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* v51 — Imagem do Hero posicionada entre título ("Your health...") e subtítulo ("Medical teleconsultation...") no mobile */
.hero-mobile-inline {
  display: none;
}

@media (max-width: 1024px) {
  .hero-mobile-inline {
    display: block;
    margin: 22px 0 20px;
  }
  .hero-desktop-frame {
    display: none;
  }
}

/* v67 — Transparência extra da Fénix em mobile para máxima legibilidade */
@media (max-width: 820px) {
  .hero::before {
    opacity: 0.38;
    width: clamp(180px, 46vw, 250px);
  }
  .subhero-editorial::before {
    opacity: 0.32;
    width: clamp(130px, 34vw, 190px);
  }
}


/* ==========================================================================
   v70-B — Fénix Dourada com sobreposição parcial em degradê (mask-image)
   ========================================================================== */
.hero::before {
  left: -1%;
  width: clamp(250px, 26vw, 400px);
  opacity: 0.68;
  filter: saturate(1.22) contrast(1.06);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.88) 34%, rgba(0, 0, 0, 0.34) 68%, rgba(0, 0, 0, 0.12) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.88) 34%, rgba(0, 0, 0, 0.34) 68%, rgba(0, 0, 0, 0.12) 100%);
}

.subhero-editorial::before {
  right: 1%;
  width: clamp(190px, 21vw, 310px);
  opacity: 0.64;
  filter: saturate(1.22) contrast(1.06);
  -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.86) 36%, rgba(0, 0, 0, 0.32) 70%, rgba(0, 0, 0, 0.10) 100%);
  mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.86) 36%, rgba(0, 0, 0, 0.32) 70%, rgba(0, 0, 0, 0.10) 100%);
}

/* v72 — Mobile/Tablet: Fénix maior e a começar imediatamente após o quadrado da foto e legenda */
@media (max-width: 1024px) {
  .hero::before {
    top: var(--hero-mobile-phoenix-top, 460px);
    bottom: auto;
    left: -2%;
    width: clamp(240px, 58vw, 330px);
    transform: none;
    will-change: auto;
    opacity: 0.44;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.84) 34%, rgba(0, 0, 0, 0.30) 68%, rgba(0, 0, 0, 0.08) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.84) 34%, rgba(0, 0, 0, 0.30) 68%, rgba(0, 0, 0, 0.08) 100%);
  }
}

@media (max-width: 820px) {
  .hero::before {
    width: clamp(235px, 64vw, 320px);
    opacity: 0.40;
  }
  .subhero-editorial::before {
    width: clamp(140px, 36vw, 200px);
    opacity: 0.30;
  }
}


.hero-sub {
  font-size: clamp(1.18rem, 1.42vw, 1.28rem);
  font-weight: 500;
  line-height: 1.46;
  margin: 20px 0 12px;
  max-width: 52ch;
}

.hero .lead {
  font-size: 1.02rem;
  line-height: 1.66;
  max-width: 50ch;
}

.fee-note,
.hero-payment-note,
.payment-note {
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero-reassurance,
.reassurance-strip span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.hero-card-meta,
.hero-card-price,
.fee-val {
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}


.rx-fee-disclaimer {
  margin-top: auto;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--stone);
}

.service-card .rx-fee-disclaimer + .fee-box {
  margin-top: 0;
  margin-bottom: 20px;
}


.alarm-banner-title,
h3.alarm-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.25vw, 1.92rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}


h1,
.hero h1,
.subhero h1,
.spa-view h1,
main h1 {
  font-size: clamp(2.45rem, 4.5vw, 3.85rem);
}

/* v94 — Hierarquia tipográfica mobile reforçada (sem transbordo em PT/FR/EN) */
@media (max-width: 820px) {
  h1,
  .subhero h1,
  .spa-view h1,
  main h1 {
    font-size: clamp(2.25rem, 9.6vw, 2.95rem);
    line-height: 1.1;
  }

  .hero h1,
  .spa-view .hero h1,
  main .hero h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.2rem);
    line-height: 1.07;
  }

  h2 {
    font-size: clamp(2.05rem, 8.6vw, 2.55rem);
    line-height: 1.15;
  }

  .legal-card h2 {
    font-size: clamp(1.68rem, 6.8vw, 2.05rem);
  }

  h3 {
    font-size: clamp(1.48rem, 5.8vw, 1.75rem);
    line-height: 1.24;
  }

  .doctor-card h3 {
    font-size: clamp(1.52rem, 6vw, 1.78rem);
  }

  .alarm-banner-title,
  h3.alarm-banner-title {
    font-size: clamp(1.65rem, 6.2vw, 1.95rem);
  }
}

@media (max-width: 480px) {
  .hero-sub {
    font-size: 1.08rem;
    line-height: 1.5;
  }
}

@media (max-width: 350px) {
  h1,
  .subhero h1,
  .spa-view h1,
  main h1 {
    font-size: 2rem;
  }

  .hero h1,
  .spa-view .hero h1,
  main .hero h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .legal-card h2 {
    font-size: 1.55rem;
  }
}
