/*==============================================================
  ACCOUNTECH — Camada de Design Refinado
  --------------------------------------------------------------
  Carregada SEMPRE depois de assets/css/main.css.
  Não substitui o main.css: redefine tokens e componentes
  partilhados por todas as páginas (header, hero, títulos de
  secção, cartões, formulários, rodapé, páginas legais).

  Tipografia: Manrope (títulos) + Inter (texto corrido)
  Paleta: tinta profunda + azul da marca com halos suaves
==============================================================*/

/*--------------------------------------------------------------
  1. Tokens de design
--------------------------------------------------------------*/
:root {
  /* Superfícies claras */
  --rf-canvas: #fbfcfe;
  --rf-canvas-2: #f4f7fc;
  --rf-surface: #ffffff;
  --rf-line: rgba(14, 26, 50, 0.09);
  --rf-line-strong: rgba(14, 26, 50, 0.16);

  /* Superfícies escuras */
  --rf-ink: #060b16;
  --rf-ink-2: #0b1424;
  --rf-ink-3: #111d33;
  --rf-line-dark: rgba(255, 255, 255, 0.09);

  /* Texto */
  --rf-text: #151d2c;
  --rf-heading: #0a1222;
  --rf-muted: #59637a;
  --rf-muted-dark: rgba(233, 239, 250, 0.68);

  /* Marca */
  --rf-accent: #1741e0;
  --rf-accent-2: #4c8dff;
  --rf-accent-deep: #0d2aa0;
  --rf-accent-soft: rgba(23, 65, 224, 0.08);
  --rf-gradient: linear-gradient(135deg, #1741e0 0%, #3a72f5 55%, #5c9bff 100%);
  --rf-gradient-soft: linear-gradient(135deg, rgba(23, 65, 224, 0.12), rgba(92, 155, 255, 0.06));

  /* Raios e sombras */
  --rf-r-sm: 10px;
  --rf-r-md: 16px;
  --rf-r-lg: 22px;
  --rf-r-xl: 28px;
  --rf-r-pill: 999px;

  --rf-shadow-xs: 0 1px 2px rgba(10, 20, 45, 0.05);
  --rf-shadow-sm: 0 1px 2px rgba(10, 20, 45, 0.04), 0 10px 24px -14px rgba(10, 20, 45, 0.22);
  --rf-shadow-md: 0 2px 6px rgba(10, 20, 45, 0.05), 0 26px 52px -28px rgba(10, 20, 45, 0.35);
  --rf-shadow-lg: 0 4px 10px rgba(10, 20, 45, 0.06), 0 44px 80px -36px rgba(10, 20, 45, 0.45);
  --rf-glow: 0 14px 34px -12px rgba(23, 65, 224, 0.45);

  /* Movimento */
  --rf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Malha decorativa usada em fundos escuros */
  --rf-grid: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
             linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

/* Tokens do template redefinidos pela nova identidade */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Manrope", "Inter", system-ui, sans-serif;
  --nav-font: "Inter", system-ui, sans-serif;

  --background-color: var(--rf-surface);
  --default-color: var(--rf-text);
  --heading-color: var(--rf-heading);
  --accent-color: var(--rf-accent);
  --surface-color: var(--rf-surface);
  --contrast-color: #ffffff;

  --nav-color: rgba(255, 255, 255, 0.74);
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: var(--rf-ink-2);
  --nav-dropdown-background-color: var(--rf-surface);
  --nav-dropdown-color: var(--rf-text);
}

.light-background {
  --background-color: var(--rf-canvas);
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: var(--rf-ink);
  --default-color: #e8eefa;
  --heading-color: #ffffff;
  --surface-color: var(--rf-ink-3);
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
  2. Base e tipografia
--------------------------------------------------------------*/
body {
  font-family: var(--default-font);
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: -0.004em;
  color: var(--default-color);
  background-color: var(--rf-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.16;
}

h4, h5, h6 {
  letter-spacing: -0.018em;
}

p {
  color: color-mix(in srgb, var(--default-color), transparent 12%);
}

strong, b {
  font-weight: 650;
  color: color-mix(in srgb, var(--heading-color), transparent 4%);
}

a {
  transition: color 0.28s var(--rf-ease), opacity 0.28s var(--rf-ease);
}

::selection {
  background: color-mix(in srgb, var(--rf-accent), transparent 78%);
  color: var(--rf-heading);
}

:focus-visible {
  outline: 2px solid var(--rf-accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
}

/* Barra de deslocamento discreta */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 26, 50, 0.22) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(14, 26, 50, 0.2);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 26, 50, 0.34);
  background-clip: content-box;
}

/* Contentor com respiração superior */
@media (min-width: 1400px) {
  .container,
  .container-xl {
    max-width: 1260px;
  }
}

/* Limpeza de espaçadores herdados do template */
.section > br,
.main > br {
  display: none;
}

.section > p:empty {
  display: none;
}

/*--------------------------------------------------------------
  3. Elementos utilitários da camada refinada
--------------------------------------------------------------*/
/* Indicador de leitura no topo da página (injetado por refined.js) */
.rf-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--rf-gradient);
  box-shadow: 0 0 18px rgba(76, 141, 255, 0.6);
  z-index: 1000;
  pointer-events: none;
  will-change: transform;
}

/* Halo que segue o cursor nos cartões */
.rf-spot {
  position: relative;
  isolation: isolate;
}

.rf-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--rf-mx, 50%) var(--rf-my, 0%),
              rgba(23, 65, 224, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--rf-ease);
  pointer-events: none;
  /* Fica atrás do conteúdo do cartão (contido pelo isolation acima) */
  z-index: -1;
}

.rf-spot:hover::after {
  opacity: 1;
}

.dark-background .rf-spot::after {
  background: radial-gradient(340px circle at var(--rf-mx, 50%) var(--rf-my, 0%),
              rgba(92, 155, 255, 0.16), transparent 62%);
}

/*--------------------------------------------------------------
  4. Cabeçalho e navegação
--------------------------------------------------------------*/
.header {
  padding: 20px 0;
  transition: padding 0.45s var(--rf-ease), background-color 0.45s var(--rf-ease),
              box-shadow 0.45s var(--rf-ease), backdrop-filter 0.45s var(--rf-ease);
}

.scrolled .header {
  --background-color: rgba(6, 11, 22, 0.72);
  padding: 12px 0;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}

/* Logótipo normalizado (o markup traz larguras em linha) */
.header img {
  width: auto !important;
  height: 38px;
  max-height: 38px;
  transition: height 0.45s var(--rf-ease), opacity 0.3s var(--rf-ease);
}

.scrolled .header img {
  height: 32px;
}

.header a:hover img {
  opacity: 0.82;
}

@media (max-width: 575px) {
  .header img {
    height: 30px;
  }
}

/* Botão de ação do cabeçalho */
.header .cta-btn,
.header .cta-btn:focus {
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 11px 26px;
  border: 0;
  border-radius: var(--rf-r-pill);
  background: var(--rf-gradient);
  color: #fff;
  box-shadow: var(--rf-glow);
  transition: transform 0.35s var(--rf-ease), box-shadow 0.35s var(--rf-ease),
              filter 0.35s var(--rf-ease);
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  background: var(--rf-gradient);
  border: 0;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 44px -14px rgba(23, 65, 224, 0.6);
}

@media (min-width: 1200px) {
  .navmenu > ul > li {
    padding: 12px 16px;
  }

  .navmenu a,
  .navmenu a:focus {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--nav-color);
  }

  .navmenu > ul > li > a:before {
    height: 1.5px;
    bottom: -8px;
    border-radius: 2px;
    background: var(--rf-gradient);
    box-shadow: 0 0 12px rgba(92, 155, 255, 0.75);
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #ffffff;
  }

  .navmenu .dropdown ul {
    padding: 8px;
    border-radius: var(--rf-r-md);
    border: 1px solid var(--rf-line);
    box-shadow: var(--rf-shadow-md);
  }

  .navmenu .dropdown ul a {
    border-radius: var(--rf-r-sm);
    font-size: 14px;
    padding: 10px 14px;
  }

  .navmenu .dropdown ul li:hover > a {
    background: var(--rf-accent-soft);
  }
}

/* Navegação em ecrãs pequenos */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    font-size: 26px;
    color: #fff;
  }

  .navmenu ul {
    border-radius: var(--rf-r-lg);
    border: 1px solid var(--rf-line-dark);
    background: var(--rf-ink-2);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
    padding: 14px;
  }

  .navmenu a,
  .navmenu a:focus {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--rf-r-sm);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }
}

/*--------------------------------------------------------------
  5. Pré-carregamento, botão de topo e botão flutuante
--------------------------------------------------------------*/
#preloader {
  background: var(--rf-ink);
}

#preloader:before {
  border-width: 2px;
  width: 54px;
  height: 54px;
  top: calc(50% - 27px);
  left: calc(50% - 27px);
  border-color: var(--rf-accent-2) transparent rgba(255, 255, 255, 0.18) transparent;
}

.scroll-top {
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--rf-gradient);
  background-color: transparent;
  box-shadow: var(--rf-glow);
  transform: translateY(10px);
  transition: opacity 0.4s var(--rf-ease), transform 0.4s var(--rf-ease),
              visibility 0.4s var(--rf-ease), filter 0.3s var(--rf-ease);
}

.scroll-top.active {
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: transparent;
  filter: brightness(1.1);
  transform: translateY(-3px);
}

.floating-book-btn {
  width: 168px !important;
  filter: drop-shadow(0 18px 30px rgba(6, 11, 22, 0.28)) !important;
}

/* Sem arte alternativa disponível, a imagem principal mantém-se visível */
.floating-book-btn.rf-no-hover-art:hover .book-img-default {
  opacity: 1;
}

@media (max-width: 991px) {
  .floating-book-btn {
    width: 118px !important;
    bottom: 96px !important;
    right: 18px !important;
  }
}

/*--------------------------------------------------------------
  6. Secção de entrada (hero)
--------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 90px;
  background-color: var(--rf-ink);
}

.hero img {
  filter: saturate(0.82) contrast(1.06) brightness(0.6);
  transform: scale(1.08);
  will-change: transform;
}

/* Camada de tinta + halo da marca.
   As duas camadas decorativas NUNCA podem receber cliques nem tapar o
   conteúdo: o texto e os botões vivem no .container com z-index acima. */
.hero:before {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(75% 55% at 50% 8%, rgba(23, 65, 224, 0.32) 0%, transparent 62%),
    radial-gradient(60% 50% at 85% 90%, rgba(92, 155, 255, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.88) 0%, rgba(4, 8, 18, 0.5) 45%, rgba(4, 8, 18, 0.9) 100%);
}

/* Malha técnica ténue sobre o fundo */
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--rf-grid);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 6;
  text-align: center;
  max-width: 1080px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.038em;
  margin: 0 auto;
  max-width: 20ch;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 30%, #c3d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none;
}

/* Salvaguarda: sem recorte de fundo no texto, o título fica branco sólido */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1,
  .rf-hero h1 em {
    -webkit-text-fill-color: #ffffff;
    background: none;
    color: #ffffff;
  }
}

.hero p {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.65;
  color: rgba(232, 238, 250, 0.74);
  max-width: 680px;
  margin: 26px auto 0;
  font-weight: 350;
}

.hero .btn-get-started {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 15px 38px;
  border-radius: var(--rf-r-pill);
  background: var(--rf-gradient);
  box-shadow: var(--rf-glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--rf-ease), box-shadow 0.4s var(--rf-ease),
              filter 0.4s var(--rf-ease);
}

.hero .btn-get-started:hover {
  background: var(--rf-gradient);
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 26px 54px -18px rgba(23, 65, 224, 0.66);
}

/* Reflexo subtil ao passar o cursor */
.hero .btn-get-started::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--rf-ease-out);
}

.hero .btn-get-started:hover::before {
  transform: translateX(120%);
}

/* Indicador de deslocamento no fim do hero */
.index-page .hero:not(.rf-hero) .container::after {
  content: "";
  display: block;
  width: 1px;
  height: 62px;
  margin: 62px auto 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  animation: rf-scroll-cue 2.6s var(--rf-ease) infinite;
}

@keyframes rf-scroll-cue {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.9; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .index-page .hero:not(.rf-hero) .container::after {
    height: 40px;
    margin-top: 40px;
  }
}

/*--------------------------------------------------------------
  7. Cabeçalho interior das páginas
--------------------------------------------------------------*/
.page-title {
  padding: clamp(150px, 16vw, 200px) 0 clamp(72px, 9vw, 108px);
  background-color: var(--rf-ink);
  overflow: hidden;
}

.page-title:before {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(23, 65, 224, 0.38) 0%, transparent 65%),
    radial-gradient(50% 50% at 92% 100%, rgba(92, 155, 255, 0.16) 0%, transparent 62%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.92) 0%, rgba(5, 9, 20, 0.78) 45%, rgba(5, 9, 20, 0.96) 100%);
}

.page-title:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--rf-grid);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  opacity: 0.65;
  pointer-events: none;
}

.page-title .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-title h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
  color: #fff;
}

.page-title p {
  color: rgba(232, 238, 250, 0.7);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 350;
}

.page-title .rf-badge {
  margin-bottom: 26px;
}

.page-title .rf-actions {
  justify-content: center;
  margin-top: 32px;
}

.page-title .breadcrumbs {
  margin-top: 32px;
}

.page-title .breadcrumbs ol {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  display: inline-flex;
  padding: 9px 20px;
  border-radius: var(--rf-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-title .breadcrumbs ol li a {
  color: rgba(255, 255, 255, 0.62);
}

.page-title .breadcrumbs ol li a:hover {
  color: #fff;
}

.page-title .breadcrumbs ol li.current {
  color: var(--rf-accent-2);
}

.page-title .breadcrumbs ol li + li::before {
  color: rgba(255, 255, 255, 0.28);
}

/*--------------------------------------------------------------
  8. Ritmo das secções e títulos
--------------------------------------------------------------*/
section,
.section {
  padding: clamp(74px, 8vw, 128px) 0;
  scroll-margin-top: 96px;
}

/* Fundos escuros interiores ganham halo e malha */
section.dark-background:not(.hero) {
  position: relative;
  isolation: isolate;
  background-color: var(--rf-ink);
}

section.dark-background:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(23, 65, 224, 0.3) 0%, transparent 60%),
    radial-gradient(55% 70% at 88% 100%, rgba(92, 155, 255, 0.14) 0%, transparent 62%),
    var(--rf-grid);
  /* Quatro camadas: dois halos + as duas direções da malha */
  background-size: auto, auto, 64px 64px, 64px 64px;
  opacity: 0.95;
  pointer-events: none;
}

/* Títulos de secção */
.section-title {
  padding-bottom: clamp(42px, 5vw, 66px);
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rf-accent);
  margin: 0 0 20px;
  padding: 0;
}

.dark-background .section-title h2 {
  color: var(--rf-accent-2);
}

.section-title h2::before,
.section-title h2::after {
  content: "";
  width: 34px;
  height: 1px;
  margin: 0;
  display: inline-block;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.55;
}

.section-title h2::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

/* Quando não existe h3, o h2 assume o papel de título principal */
.section-title:not(:has(h3)) h2 {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.032em;
  text-transform: none;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.section-title:not(:has(h3)) h2::before,
.section-title:not(:has(h3)) h2::after {
  display: none;
}

.section-title h3 {
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.034em;
  color: var(--heading-color);
  margin: 0;
  text-transform: none;
}

.section-title p {
  margin: 18px auto 0;
  max-width: 680px;
  font-family: var(--default-font);
  font-size: 1.05rem;
  font-weight: 350;
  line-height: 1.7;
  text-transform: none;
  color: color-mix(in srgb, var(--default-color), transparent 26%);
}

/*--------------------------------------------------------------
  9. Secção "sobre"
--------------------------------------------------------------*/
.about h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  letter-spacing: -0.034em;
  line-height: 1.14;
  margin-bottom: 24px;
}

.about h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  letter-spacing: -0.032em;
  line-height: 1.18;
  margin-bottom: 24px;
}

/* Parágrafo de abertura das páginas de produto */
.main .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 350;
  line-height: 1.78;
  color: color-mix(in srgb, var(--default-color), transparent 14%);
  max-width: 900px;
  margin-inline: auto;
}

.about p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .content {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  background: linear-gradient(180deg, var(--rf-canvas), #fff);
  box-shadow: var(--rf-shadow-sm);
}

.dark-background .about .content,
.about.dark-background .content {
  border-color: var(--rf-line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.about .content .fst-italic {
  font-style: normal !important;
  font-family: var(--heading-font);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin-bottom: 22px;
}

.about .content ul li {
  padding: 0 0 16px 34px;
  line-height: 1.7;
}

.about .content ul i {
  font-size: 17px;
  top: 3px;
  color: var(--rf-accent);
}

/*--------------------------------------------------------------
  10. Cartões de serviços e produtos
--------------------------------------------------------------*/
.services .service-item {
  margin-top: 0;
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-sm);
  transition: transform 0.45s var(--rf-ease), box-shadow 0.45s var(--rf-ease),
              border-color 0.45s var(--rf-ease);
}

/* Fio de luz superior revelado ao passar o cursor */
.services .service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rf-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--rf-ease);
  z-index: 2;
}

.services .service-item:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 72%);
  box-shadow: var(--rf-shadow-md);
}

.services .service-item:hover::before {
  transform: scaleX(1);
}

.services .details {
  padding: clamp(28px, 3vw, 38px);
  text-align: left;
  border-radius: 0;
  background: transparent;
  flex: 1;
}

.services .details .icon {
  position: static;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: var(--rf-r-md);
  background: var(--rf-gradient);
  box-shadow: 0 12px 26px -10px rgba(23, 65, 224, 0.55);
  font-size: 25px;
  margin: 0 0 24px;
  transition: transform 0.45s var(--rf-ease), box-shadow 0.45s var(--rf-ease);
}

.services .service-item:hover .details .icon {
  background: var(--rf-gradient);
  border: 0;
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 18px 34px -12px rgba(23, 65, 224, 0.62);
}

.services .service-item:hover .details .icon i {
  color: #fff;
}

.services .details h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
}

.services .details p {
  font-size: 0.965rem;
  line-height: 1.75;
  color: var(--rf-muted);
}

/* Listas dentro dos cartões de produto */
.services .details ul {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0 0;
}

.services .details ul li {
  position: relative;
  padding: 0 0 9px 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--rf-muted);
}

.services .details ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rf-accent);
  opacity: 0.6;
}

.services .products-grid {
  padding-top: 0;
}

/* Barra de ações dos produtos */
.services .service-item .product-actions {
  padding: 20px clamp(28px, 3vw, 38px);
  border-top: 1px solid var(--rf-line);
  background: linear-gradient(180deg, transparent, var(--rf-canvas-2));
  border-radius: 0;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.services .service-item .product-actions .btn-primary-action {
  border-radius: var(--rf-r-pill);
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--rf-gradient);
  box-shadow: 0 12px 26px -14px rgba(23, 65, 224, 0.7);
  transition: transform 0.35s var(--rf-ease), box-shadow 0.35s var(--rf-ease),
              filter 0.35s var(--rf-ease);
}

.services .service-item .product-actions .btn-primary-action:hover {
  background: var(--rf-gradient);
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(23, 65, 224, 0.75);
}

.services .service-item .product-actions .btn-secondary-action {
  border-radius: var(--rf-r-pill);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 550;
  border: 1px solid var(--rf-line-strong);
  color: var(--rf-text);
  transition: all 0.35s var(--rf-ease);
}

.services .service-item .product-actions .btn-secondary-action:hover {
  border-color: var(--rf-accent);
  color: var(--rf-accent);
  background: var(--rf-accent-soft);
  transform: translateY(-2px);
}

/* Imagens dentro de cartões: o ícone deixou de flutuar, logo não há sobreposição */
.services .img {
  border-radius: var(--rf-r-lg) var(--rf-r-lg) 0 0;
}

.services .service-item:has(.img) .details {
  margin-top: 0;
}

/*--------------------------------------------------------------
  11. Serviços adicionais (lista em duas colunas)
--------------------------------------------------------------*/
.services-2 .service-item {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 2.6vw, 34px);
  gap: 22px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-xs);
  transition: transform 0.45s var(--rf-ease), box-shadow 0.45s var(--rf-ease),
              border-color 0.45s var(--rf-ease);
}

.services-2 .service-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 74%);
  box-shadow: var(--rf-shadow-md);
}

.services-2 .service-item .icon {
  width: 54px;
  height: 54px;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  border-radius: var(--rf-r-md);
  color: var(--rf-accent);
  background: var(--rf-gradient-soft);
  border: 1px solid color-mix(in srgb, var(--rf-accent), transparent 85%);
  transition: all 0.45s var(--rf-ease);
}

.services-2 .service-item:hover .icon {
  color: #fff;
  background: var(--rf-gradient);
  border-color: transparent;
  box-shadow: 0 14px 28px -12px rgba(23, 65, 224, 0.6);
}

.services-2 .service-item .title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.026em;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.services-2 .service-item .description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--rf-muted);
}

/*--------------------------------------------------------------
  12. Separadores de funcionalidades
--------------------------------------------------------------*/
.features .nav-tabs {
  --bs-gutter-y: 14px;
}

.features .nav-link {
  flex-direction: column;
  gap: 12px;
  padding: 26px 18px;
  border-radius: var(--rf-r-md);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-xs);
  text-align: center;
  transition: all 0.4s var(--rf-ease);
}

.features .nav-link i {
  padding-right: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--rf-accent);
  transition: color 0.4s var(--rf-ease);
}

.features .nav-link h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: var(--heading-color);
}

.features .nav-link:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 74%);
  box-shadow: var(--rf-shadow-sm);
}

.features .nav-link.active {
  background: linear-gradient(160deg, var(--rf-ink-2), var(--rf-ink));
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(6, 11, 22, 0.65);
}

.features .nav-link.active i,
.features .nav-link.active h4 {
  color: #fff;
}

.features .tab-content {
  margin-top: clamp(32px, 4vw, 54px);
}

.features .tab-pane h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  letter-spacing: -0.032em;
  margin-bottom: 18px;
}

.features .tab-pane .fst-italic {
  font-style: normal !important;
  font-size: 1.02rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  border-left: 2px solid var(--rf-accent);
  padding-left: 18px;
}

.features .tab-pane ul li {
  position: relative;
  padding: 0 0 14px 32px;
  line-height: 1.72;
}

.features .tab-pane ul i {
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 18px;
  padding-right: 0;
}

.features .tab-pane img {
  border-radius: var(--rf-r-lg);
  box-shadow: var(--rf-shadow-md);
}

@media (max-width: 767px) {
  .features .nav-link {
    padding: 18px 10px;
  }

  .features .nav-link i {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
  13. Contacto e formulários
--------------------------------------------------------------*/
.contact .info-item {
  height: 100%;
  padding: 34px 24px;
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-xs);
  transition: transform 0.45s var(--rf-ease), box-shadow 0.45s var(--rf-ease),
              border-color 0.45s var(--rf-ease);
}

.contact .info-item:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 76%);
  box-shadow: var(--rf-shadow-sm);
}

.contact .info-item i {
  width: 56px;
  height: 56px;
  font-size: 22px;
  border: 0;
  border-radius: var(--rf-r-md);
  color: var(--rf-accent);
  background: var(--rf-gradient-soft);
  transition: all 0.45s var(--rf-ease);
}

.contact .info-item:hover i {
  color: #fff;
  background: var(--rf-gradient);
  box-shadow: 0 14px 28px -12px rgba(23, 65, 224, 0.55);
}

.contact .info-item h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-muted);
  margin: 18px 0 8px;
}

.contact .info-item p,
.contact .info-item p a {
  font-size: 1rem;
  color: var(--heading-color);
  font-weight: 500;
}

.contact .info-item p a:hover {
  color: var(--rf-accent);
}

.contact .php-email-form {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-md);
}

.dark-background .php-email-form {
  border-color: var(--rf-line-dark);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.php-email-form label,
.php-email-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rf-muted);
  margin-bottom: 8px;
}

.dark-background .php-email-form label,
.dark-background .php-email-form .form-label {
  color: rgba(232, 238, 250, 0.7);
}

.php-email-form .form-control,
.php-email-form .form-select,
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: var(--rf-r-sm);
  border: 1px solid var(--rf-line-strong);
  background-color: var(--rf-canvas);
  color: var(--rf-text);
  transition: border-color 0.3s var(--rf-ease), box-shadow 0.3s var(--rf-ease),
              background-color 0.3s var(--rf-ease);
}

.php-email-form .form-control:focus,
.php-email-form .form-select:focus,
.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--rf-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(23, 65, 224, 0.12);
  outline: none;
}

.dark-background .php-email-form .form-control,
.dark-background .php-email-form .form-select,
.dark-background .php-email-form textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dark-background .php-email-form .form-control:focus,
.dark-background .php-email-form .form-select:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--rf-accent-2);
  box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.16);
}

.php-email-form ::placeholder {
  color: color-mix(in srgb, var(--rf-muted), transparent 40%);
}

.php-email-form button[type=submit],
.contact .php-email-form button[type=submit] {
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--rf-r-pill);
  background: var(--rf-gradient);
  box-shadow: var(--rf-glow);
  transition: transform 0.35s var(--rf-ease), filter 0.35s var(--rf-ease),
              box-shadow 0.35s var(--rf-ease);
}

.php-email-form button[type=submit]:hover,
.contact .php-email-form button[type=submit]:hover {
  background: var(--rf-gradient);
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -18px rgba(23, 65, 224, 0.6);
}

.php-email-form .error-message,
.php-email-form .sent-message,
.php-email-form .loading {
  border-radius: var(--rf-r-sm);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Secções escuras usadas como chamada à ação */
.contact.dark-background .container,
section.dark-background .container {
  position: relative;
  z-index: 1;
}

section.dark-background h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  letter-spacing: -0.034em;
  line-height: 1.14;
}

section.dark-background .btn-get-started {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--rf-r-pill);
  background: var(--rf-gradient);
  box-shadow: var(--rf-glow);
  transition: transform 0.35s var(--rf-ease), filter 0.35s var(--rf-ease);
}

section.dark-background .btn-get-started:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

/*--------------------------------------------------------------
  14. Rodapé
--------------------------------------------------------------*/
.footer {
  background-color: var(--rf-ink);
  font-size: 15px;
  position: relative;
  isolation: isolate;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 70% at 12% 0%, rgba(23, 65, 224, 0.22) 0%, transparent 62%);
  pointer-events: none;
}

.footer .footer-top {
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: 20px;
  border-top: 1px solid var(--rf-line-dark);
}

.footer .footer-about img {
  width: auto !important;
  max-height: 40px;
}

.footer .footer-about p,
.footer .footer-contact p {
  font-family: var(--default-font);
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(232, 238, 250, 0.62);
}

.footer .footer-contact a {
  color: rgba(232, 238, 250, 0.82);
}

.footer .footer-contact a:hover {
  color: var(--rf-accent-2);
}

.footer h4 {
  font-family: var(--nav-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 18px;
  margin-bottom: 4px;
}

.footer .footer-links ul li {
  padding: 7px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul i {
  color: var(--rf-accent-2);
  opacity: 0.55;
  font-size: 12px;
  margin-right: 6px;
  transition: transform 0.3s var(--rf-ease), opacity 0.3s var(--rf-ease);
}

.footer .footer-links ul a {
  color: rgba(232, 238, 250, 0.72);
  font-size: 0.93rem;
}

.footer .footer-links ul li:hover i {
  opacity: 1;
  transform: translateX(2px);
}

.footer .footer-links ul a:hover {
  color: #fff;
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  border-radius: var(--rf-r-sm);
  border: 1px solid var(--rf-line-dark);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 238, 250, 0.72);
  transition: all 0.35s var(--rf-ease);
}

.footer .social-links a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--rf-gradient);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(23, 65, 224, 0.6);
}

.footer .copyright {
  padding: 26px 0 34px;
  border-top: 1px solid var(--rf-line-dark);
  margin-top: 26px !important;
}

.footer .copyright p {
  font-size: 0.85rem;
  color: rgba(232, 238, 250, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.footer .copyright img {
  width: auto !important;
  height: 20px;
  opacity: 0.75;
}

/*--------------------------------------------------------------
  15. Páginas de conteúdo (legais, serviços, portefólio)
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 12px 22px;
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  background: var(--rf-canvas);
  box-shadow: var(--rf-shadow-xs);
  position: sticky;
  top: 110px;
}

.service-details .services-list a {
  border-left: 0;
  border-radius: var(--rf-r-sm);
  margin: 8px 0;
  padding: 12px 16px;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--rf-muted);
  transition: all 0.3s var(--rf-ease);
}

.service-details .services-list a:hover {
  background: var(--rf-accent-soft);
  color: var(--rf-accent);
}

.service-details .services-list a.active {
  background: var(--rf-gradient);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 24px -14px rgba(23, 65, 224, 0.7);
}

.service-details h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 42px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rf-line);
  /* Compensa o cabeçalho fixo quando se salta pelo índice */
  scroll-margin-top: 120px;
}

.service-details .col-lg-8 > h3:first-child,
.service-details .col-lg-12 > h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.service-details h4 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 28px;
  margin-bottom: 12px;
}

.service-details p,
.service-details ul {
  font-size: 1rem;
  line-height: 1.85;
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.service-details ul li {
  display: list-item;
  position: relative;
  padding: 6px 0 6px 26px;
  align-items: initial;
}

.service-details ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rf-accent);
  opacity: 0.55;
}

.service-details ul li i {
  position: relative;
  top: 2px;
}

.service-details ul li:has(i)::before {
  display: none;
}

.service-details ul li:has(i) {
  padding-left: 0;
  display: flex;
  align-items: center;
}

.service-details a {
  color: var(--rf-accent);
  border-bottom: 1px solid color-mix(in srgb, var(--rf-accent), transparent 72%);
}

.service-details a:hover {
  border-bottom-color: var(--rf-accent);
}

.service-details .services-list a,
.service-details .services-list a:hover {
  border-bottom: 0;
}

/* Coluna lateral dos documentos legais, com índice --------- */
.rf-doc-side {
  position: sticky;
  top: 108px;
}

.rf-doc-side .services-list {
  position: static;
}

.rf-toc {
  margin-top: 24px;
  padding: 22px 20px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-xs);
  max-height: 44vh;
  overflow-y: auto;
}

.rf-toc-title {
  font-family: var(--nav-font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rf-muted);
  margin: 0 0 14px 14px;
}

.rf-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rf-toc li {
  padding: 0;
}

.rf-toc li::before {
  display: none;
}

.service-details .rf-toc a {
  display: block;
  padding: 8px 10px 8px 14px;
  margin: 0;
  border: 0;
  border-left: 2px solid var(--rf-line);
  border-radius: 0 var(--rf-r-sm) var(--rf-r-sm) 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--rf-muted);
  transition: all 0.3s var(--rf-ease);
}

.service-details .rf-toc a:hover {
  color: var(--rf-accent);
  border-left-color: var(--rf-accent);
  background: var(--rf-accent-soft);
}

.service-details .rf-toc a.rf-toc-active {
  color: var(--rf-heading);
  font-weight: 600;
  border-left-color: var(--rf-accent);
  background: var(--rf-accent-soft);
}

@media (max-width: 991px) {
  .rf-doc-side {
    position: static;
  }

  .rf-toc {
    max-height: none;
  }
}

/* Coluna lateral de contacto nas páginas legais */
.service-details .col-lg-4 h4 {
  margin-top: 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-muted);
}

.service-details .social-links a {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rf-r-sm);
  border: 1px solid var(--rf-line);
  color: var(--rf-muted);
  transition: all 0.35s var(--rf-ease);
}

.service-details .social-links a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--rf-gradient);
  transform: translateY(-3px);
}

/* Portefólio */
.portfolio-details .portfolio-details-slider img,
.portfolio-details .portfolio-info,
.portfolio-details .portfolio-description img {
  border-radius: var(--rf-r-lg);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  border: 1px solid var(--rf-line);
  background: var(--rf-canvas);
  box-shadow: var(--rf-shadow-xs);
}

/*--------------------------------------------------------------
  16. Harmonização de blocos com estilos em linha (Bootstrap)
--------------------------------------------------------------*/
.main .rounded-3 {
  border-radius: var(--rf-r-lg) !important;
}

.main .p-3.rounded-3:not(.form-check),
.main .p-4.rounded-3:not(.form-check) {
  border: 1px solid var(--rf-line) !important;
  background: linear-gradient(180deg, #ffffff, var(--rf-canvas)) !important;
  box-shadow: var(--rf-shadow-xs);
  transition: transform 0.4s var(--rf-ease), box-shadow 0.4s var(--rf-ease),
              border-color 0.4s var(--rf-ease);
}

.main .p-3.rounded-3:not(.form-check):hover,
.main .p-4.rounded-3:not(.form-check):hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 76%) !important;
  box-shadow: var(--rf-shadow-sm);
}

.main .p-3.rounded-3:not(.form-check) i,
.main .p-4.rounded-3:not(.form-check) i {
  margin-bottom: 10px;
}

/* Seleção de módulos nos formulários: cartão que reage ao estado */
.main .form-check.p-3.rounded-3 {
  background: var(--rf-canvas) !important;
  border: 1px solid var(--rf-line) !important;
  transition: border-color 0.35s var(--rf-ease), background 0.35s var(--rf-ease),
              box-shadow 0.35s var(--rf-ease);
}

.main .form-check.p-3.rounded-3:hover {
  border-color: color-mix(in srgb, var(--rf-accent), transparent 70%) !important;
}

.main .form-check.p-3.rounded-3:has(input:checked) {
  background: var(--rf-accent-soft) !important;
  border-color: var(--rf-accent) !important;
  box-shadow: 0 0 0 3px rgba(23, 65, 224, 0.08);
}

.main .form-check-input:checked {
  background-color: var(--rf-accent);
  border-color: var(--rf-accent);
}

.main .form-check-input:focus {
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 3px rgba(23, 65, 224, 0.14);
}

.main .form-check-label strong {
  font-family: var(--heading-font);
  letter-spacing: -0.018em;
}

/* Botão dentro de grupo de campos mantém a forma do campo */
.main .input-group .btn,
.main .input-group .btn-primary {
  padding: 0 18px;
  border-radius: 0 var(--rf-r-sm) var(--rf-r-sm) 0;
  box-shadow: none;
}

.main .input-group .btn:hover,
.main .input-group .btn-primary:hover {
  transform: none;
}

.main .input-group .form-control {
  border-radius: var(--rf-r-sm) 0 0 var(--rf-r-sm);
}

.main .btn-primary,
.main .btn-primary:focus {
  border-radius: var(--rf-r-pill);
  padding: 13px 34px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 0 !important;
  background: var(--rf-gradient) !important;
  box-shadow: var(--rf-glow);
  transition: transform 0.35s var(--rf-ease), filter 0.35s var(--rf-ease);
}

.main .btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.main .btn-outline-primary,
.main .btn-outline-light,
.main .btn-outline-secondary {
  border-radius: var(--rf-r-pill);
  padding: 13px 30px;
  font-size: 0.92rem;
  font-weight: 600;
  border-width: 1px;
  transition: transform 0.35s var(--rf-ease);
}

.main .btn-outline-primary:hover,
.main .btn-outline-light:hover,
.main .btn-outline-secondary:hover {
  transform: translateY(-3px);
}

.main .badge {
  border-radius: var(--rf-r-pill);
  padding: 7px 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.main .card {
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  box-shadow: var(--rf-shadow-xs);
}

.main .table {
  border-radius: var(--rf-r-md);
  overflow: hidden;
}

.main .table th {
  font-family: var(--heading-font);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-muted);
}

/*--------------------------------------------------------------
  17. Banner de cookies (especificidade acima de cookie-consent.css)
--------------------------------------------------------------*/
body .cookie-consent-banner {
  bottom: 22px;
  margin: 0 22px;
  padding: 20px 24px;
  gap: 20px;
  border-radius: var(--rf-r-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 11, 22, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  font-size: 0.9rem;
  line-height: 1.65;
}

body .cookie-consent-banner .cc-text {
  color: rgba(232, 238, 250, 0.78);
}

body .cookie-consent-btn {
  padding: 11px 22px;
  border-radius: var(--rf-r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--rf-gradient);
  box-shadow: 0 14px 28px -14px rgba(23, 65, 224, 0.7);
  transition: transform 0.3s var(--rf-ease), filter 0.3s var(--rf-ease);
}

body .cookie-consent-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

body .cookie-consent-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

body .cookie-consent-pref {
  color: rgba(232, 238, 250, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
}

body .cc-modal {
  border-radius: var(--rf-r-xl);
  padding: 32px;
  border: 1px solid var(--rf-line);
  box-shadow: var(--rf-shadow-lg);
}

body .cc-modal h4 {
  font-size: 1.25rem;
  letter-spacing: -0.028em;
  margin-bottom: 6px;
}

body .cc-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--rf-line);
}

body .cc-note {
  color: var(--rf-muted);
  font-size: 0.85rem;
}

body .cc-modal-backdrop {
  background: rgba(6, 11, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/*--------------------------------------------------------------
  18. Revelação suave de conteúdo (complemento ao AOS)
--------------------------------------------------------------*/
[data-rf-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--rf-ease-out), transform 0.8s var(--rf-ease-out);
  will-change: opacity, transform;
}

[data-rf-reveal].rf-visible {
  opacity: 1;
  transform: none;
}

/*==============================================================
  19. Componentes estruturais (markup próprio, prefixo .rf-)
  --------------------------------------------------------------
  Blocos independentes do template, usados nas páginas
  reestruturadas. Não dependem de nenhuma regra do main.css.
==============================================================*/

/* Distintivo ----------------------------------------------- */
.rf-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: var(--rf-r-pill);
  border: 1px solid var(--rf-line);
  background: var(--rf-accent-soft);
  font-family: var(--nav-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-accent);
  line-height: 1;
}

.rf-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor, transparent 82%);
}

.dark-background .rf-badge,
.rf-hero .rf-badge {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #a9c6ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Botões ---------------------------------------------------- */
.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 0;
  border-radius: var(--rf-r-pill);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rf-gradient);
  box-shadow: var(--rf-glow);
  cursor: pointer;
  transition: transform 0.38s var(--rf-ease), filter 0.38s var(--rf-ease),
              box-shadow 0.38s var(--rf-ease), border-color 0.38s var(--rf-ease);
}

.rf-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 26px 52px -18px rgba(23, 65, 224, 0.62);
}

.rf-btn i {
  font-size: 15px;
  line-height: 1;
}

.rf-btn--ghost {
  background: transparent;
  box-shadow: none;
  color: var(--rf-heading);
  border: 1px solid var(--rf-line-strong);
}

.rf-btn--ghost:hover {
  color: var(--rf-accent);
  border-color: var(--rf-accent);
  background: var(--rf-accent-soft);
  filter: none;
  box-shadow: none;
}

.dark-background .rf-btn--ghost,
.rf-hero .rf-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-background .rf-btn--ghost:hover,
.rf-hero .rf-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

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

.rf-actions--center {
  justify-content: center;
}

/* Secção de entrada: composição de marca --------------------
   Sem fotografia de arquivo. O fundo é construído com os halos
   da marca sobre tinta, e a peça gráfica é o próprio símbolo
   da Accountech rodeado das áreas de trabalho da empresa.     */
.rf-hero {
  background-color: var(--rf-ink);
  padding: 150px 0 100px;
}

.rf-hero:before {
  background:
    radial-gradient(58% 55% at 76% 34%, rgba(23, 65, 224, 0.45) 0%, transparent 62%),
    radial-gradient(46% 46% at 10% 80%, rgba(92, 155, 255, 0.16) 0%, transparent 62%),
    linear-gradient(180deg, rgba(6, 11, 22, 0.72) 0%, rgba(6, 11, 22, 0.32) 42%, rgba(6, 11, 22, 0.9) 100%);
}

.rf-hero:after {
  -webkit-mask-image: radial-gradient(85% 75% at 60% 45%, #000 0%, transparent 82%);
  mask-image: radial-gradient(85% 75% at 60% 45%, #000 0%, transparent 82%);
  opacity: 0.85;
}

.rf-hero .container {
  position: relative;
  z-index: 6;
  text-align: left;
  max-width: 1240px;
}

/* Coluna da mensagem --------------------------------------- */
.rf-hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 28px 0 0;
  max-width: 16ch;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.rf-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #8fb6ff 0%, #4c8dff 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rf-hero .rf-hero-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 350;
  line-height: 1.7;
  color: rgba(232, 238, 250, 0.76);
  max-width: 520px;
  margin: 24px 0 0;
}

.rf-hero .rf-actions {
  margin-top: 34px;
}

/* Palco da marca -------------------------------------------- */
.rf-hero-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Especificidade acima de `.hero img` do main.css, que estica
   qualquer imagem do hero para ocupar toda a secção. */
.rf-hero .rf-hero-mark {
  position: relative;
  inset: auto;
  width: 44%;
  height: auto;
  max-width: none;
  object-fit: contain;
  z-index: 2;
  /* Marca a branco: halo azul em vez de sombra escura */
  filter: drop-shadow(0 0 46px rgba(76, 141, 255, 0.5))
          drop-shadow(0 20px 40px rgba(6, 11, 22, 0.6));
  animation: rf-float 7s var(--rf-ease) infinite;
}

.rf-hero-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.rf-hero-ring--outer {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 100px rgba(76, 141, 255, 0.12);
}

.rf-hero-ring--inner {
  inset: 19%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 38%, rgba(23, 65, 224, 0.26), transparent 72%);
}

/* Ponto em órbita, eco das linhas de circuito do símbolo */
.rf-hero-orbit {
  position: absolute;
  inset: 0;
  animation: rf-orbit 20s linear infinite;
  pointer-events: none;
}

.rf-hero-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--rf-accent-2);
  box-shadow: 0 0 20px 5px rgba(76, 141, 255, 0.65);
}

/* Áreas de trabalho em cartões flutuantes */
.rf-hero-chip {
  position: absolute;
  /* Sempre à frente do símbolo, que está em z-index 2 */
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--rf-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(10, 18, 34, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--nav-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  box-shadow: 0 20px 38px -20px rgba(0, 0, 0, 0.95);
  animation: rf-float 6s var(--rf-ease) infinite;
}

.rf-hero-chip i {
  color: var(--rf-accent-2);
  font-size: 15px;
  line-height: 1;
}

/* Quatro áreas distribuídas à volta do símbolo, como num mostrador */
.rf-hero-chip--1 {
  top: 2%;
  left: -6%;
  animation-delay: -1s;
}

.rf-hero-chip--2 {
  bottom: 22%;
  right: -9%;
  animation-delay: -3s;
}

.rf-hero-chip--3 {
  bottom: -1%;
  left: 2%;
  animation-delay: -5s;
}

.rf-hero-chip--4 {
  top: 6%;
  right: -8%;
  animation-delay: -2s;
}

@keyframes rf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rf-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
  .rf-hero {
    padding: 130px 0 80px;
  }

  .rf-hero-copy h1,
  .rf-hero .rf-hero-lead {
    max-width: none;
  }

  .rf-hero-stage {
    max-width: 380px;
  }

  .rf-hero-chip--1 { left: -2%; }
  .rf-hero-chip--2 { right: -2%; }
  .rf-hero-chip--3 { left: 4%; }
  .rf-hero-chip--4 { right: -1%; }
}

@media (max-width: 575px) {
  .rf-hero-stage {
    max-width: 300px;
  }

  .rf-hero-chip {
    font-size: 11px;
    padding: 9px 14px;
  }

  /* Em ecrãs estreitos ficam apenas duas, para não sobrecarregar */
  .rf-hero-chip--3,
  .rf-hero-chip--4 {
    display: none;
  }
}

/* Faixa de confiança/produtos próprios */
.rf-hero .rf-trust {
  text-align: center;
}

.rf-trust {
  margin-top: clamp(48px, 6vw, 78px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rf-hero .rf-trust-label {
  font-family: var(--nav-font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 238, 250, 0.4);
  margin-bottom: 18px;
}

.rf-trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 34px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rf-trust-items li {
  font-family: var(--heading-font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(232, 238, 250, 0.62);
  transition: color 0.35s var(--rf-ease);
}

.rf-trust-items li:hover {
  color: #fff;
}

/* Cabeçalho de secção alinhado à esquerda ------------------- */
.rf-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 4.6vw, 64px);
}

.rf-head--center {
  margin-inline: auto;
  text-align: center;
}

.rf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rf-accent);
  margin-bottom: 18px;
}

.rf-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
}

.dark-background .rf-eyebrow {
  color: var(--rf-accent-2);
}

.rf-head h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.034em;
  margin: 0;
}

.rf-head p {
  margin: 18px 0 0;
  font-size: 1.05rem;
  font-weight: 350;
  line-height: 1.75;
  color: color-mix(in srgb, var(--default-color), transparent 24%);
}

.rf-head--center p {
  margin-inline: auto;
  max-width: 640px;
}

/* Pilares / indicadores ------------------------------------- */
.rf-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rf-line);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  overflow: hidden;
}

.rf-pillar {
  background: var(--rf-surface);
  padding: clamp(26px, 3vw, 36px);
  transition: background 0.4s var(--rf-ease);
}

.rf-pillar:hover {
  background: linear-gradient(180deg, #fff, var(--rf-canvas));
}

.rf-pillar i {
  font-size: 24px;
  color: var(--rf-accent);
  line-height: 1;
}

.rf-pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.024em;
  margin: 18px 0 10px;
}

.rf-pillar p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--rf-muted);
  margin: 0;
}

.dark-background .rf-pillars {
  background: var(--rf-line-dark);
  border-color: var(--rf-line-dark);
}

.dark-background .rf-pillar {
  background: rgba(255, 255, 255, 0.035);
}

.dark-background .rf-pillar:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dark-background .rf-pillar i {
  color: var(--rf-accent-2);
}

.dark-background .rf-pillar p {
  color: rgba(232, 238, 250, 0.62);
}

/* Método em etapas ------------------------------------------ */
.rf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  counter-reset: rf-step;
}

.rf-step {
  position: relative;
  padding: clamp(26px, 2.8vw, 34px);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-xs);
  transition: transform 0.45s var(--rf-ease), box-shadow 0.45s var(--rf-ease),
              border-color 0.45s var(--rf-ease);
}

.rf-step:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 74%);
  box-shadow: var(--rf-shadow-md);
}

.rf-step::before {
  counter-increment: rf-step;
  content: "0" counter(rf-step);
  font-family: var(--heading-font);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rf-accent);
  display: block;
  margin-bottom: 20px;
}

.rf-step h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.026em;
  margin: 0 0 12px;
}

.rf-step p {
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--rf-muted);
  margin: 0;
}

/* Bloco de destaque de plataforma --------------------------- */
.rf-showcase {
  position: relative;
  overflow: hidden;
  border-radius: var(--rf-r-xl);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(150deg, var(--rf-ink-2) 0%, var(--rf-ink) 60%);
  padding: clamp(34px, 5vw, 68px);
  isolation: isolate;
}

.rf-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 88% 10%, rgba(23, 65, 224, 0.42) 0%, transparent 62%),
    radial-gradient(50% 60% at 0% 100%, rgba(92, 155, 255, 0.16) 0%, transparent 62%),
    var(--rf-grid);
  background-size: auto, auto, 56px 56px, 56px 56px;
  pointer-events: none;
}

.rf-showcase h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  letter-spacing: -0.034em;
  line-height: 1.14;
  margin: 20px 0 0;
}

.rf-showcase p {
  color: rgba(232, 238, 250, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 350;
  margin: 20px 0 0;
}

.rf-showcase .rf-actions {
  margin-top: 34px;
}

.rf-showcase .rf-eyebrow {
  color: var(--rf-accent-2);
}

.rf-showcase .rf-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.rf-showcase .rf-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

/* Imagem de apresentação da plataforma dentro do destaque.
   O .rf-showcase tem overflow oculto, por isso a imagem pode
   transbordar da coluna sem provocar deslocamento horizontal. */
.rf-showcase-media {
  margin: 0;
  position: relative;
  isolation: isolate;
}

.rf-showcase-media::before {
  content: "";
  position: absolute;
  inset: 8% 6% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 141, 255, 0.42), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.rf-showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.55));
}

@media (min-width: 992px) {
  .rf-showcase-media img {
    width: 120%;
    max-width: none;
    margin-left: -6%;
  }
}

.rf-showcase-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: rgba(232, 238, 250, 0.6);
}

.rf-showcase-note i {
  color: var(--rf-accent-2);
  font-size: 16px;
}

/* Lista de características com marca */
.rf-feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.rf-feature-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(232, 238, 250, 0.78);
}

.rf-feature-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 17px;
  color: var(--rf-accent-2);
}

.rf-panel {
  border-radius: var(--rf-r-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(26px, 3vw, 38px);
  text-align: center;
}

.rf-panel i {
  font-size: 40px;
  color: var(--rf-accent-2);
  line-height: 1;
}

.rf-panel h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

.rf-panel p {
  color: rgba(232, 238, 250, 0.66);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

/* Chamada à ação em faixa ----------------------------------- */
.rf-cta {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.rf-cta h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.034em;
  margin: 16px 0 0;
}

.rf-cta p {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: 1.05rem;
  font-weight: 350;
  line-height: 1.75;
}

.dark-background .rf-cta h2 {
  color: #fff;
}

.dark-background .rf-cta p {
  color: rgba(232, 238, 250, 0.72);
}

.rf-cta .rf-actions {
  margin-top: 34px;
  justify-content: center;
}

/* Cartões de produto compactos ------------------------------ */
.rf-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}

.rf-product {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.8vw, 34px);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-xs);
  transition: transform 0.45s var(--rf-ease), box-shadow 0.45s var(--rf-ease),
              border-color 0.45s var(--rf-ease);
}

.rf-product:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--rf-accent), transparent 72%);
  box-shadow: var(--rf-shadow-md);
}

.rf-product i.rf-product-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: var(--rf-r-md);
  color: var(--rf-accent);
  background: var(--rf-gradient-soft);
  border: 1px solid color-mix(in srgb, var(--rf-accent), transparent 86%);
  margin-bottom: 22px;
}

.rf-product h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.rf-product p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--rf-muted);
  margin: 0 0 22px;
}

.rf-product-link {
  margin-top: auto;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rf-product-link i {
  transition: transform 0.35s var(--rf-ease);
}

.rf-product:hover .rf-product-link i {
  transform: translateX(4px);
}

/* Contacto em duas colunas ---------------------------------- */
.rf-contact-panel {
  height: 100%;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--rf-r-lg);
  border: 1px solid var(--rf-line);
  background: linear-gradient(180deg, var(--rf-canvas), #fff);
  box-shadow: var(--rf-shadow-xs);
}

.rf-contact-panel h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0;
}

.rf-contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 22px;
}

.rf-contact-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.rf-contact-list i {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border-radius: var(--rf-r-md);
  color: var(--rf-accent);
  background: var(--rf-gradient-soft);
  border: 1px solid color-mix(in srgb, var(--rf-accent), transparent 86%);
}

.rf-contact-list span {
  display: block;
  font-family: var(--nav-font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rf-muted);
  margin-bottom: 4px;
}

.rf-contact-list a,
.rf-contact-list p {
  color: var(--rf-heading);
  font-weight: 500;
  margin: 0;
  font-size: 1rem;
}

.rf-contact-list a:hover {
  color: var(--rf-accent);
}

@media (max-width: 575px) {
  .rf-btn {
    width: 100%;
  }

  .rf-actions {
    gap: 10px;
  }
}

/*--------------------------------------------------------------
  20. Responsivo e acessibilidade
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .service-details .services-list {
    position: static;
  }

  .about .content {
    margin-top: 8px;
  }
}

@media (max-width: 575px) {
  .services .details,
  .services .service-item .product-actions {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact .php-email-form button[type=submit] {
    width: 100%;
  }

  body .cookie-consent-banner {
    margin: 0 12px;
    bottom: 12px;
    padding: 16px;
  }
}

@media print {
  .header,
  .footer,
  .scroll-top,
  .floating-book-btn,
  .cookie-consent-banner,
  .rf-progress {
    display: none !important;
  }
}

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

  .hero img {
    transform: none;
  }
}
