/* ==========================================================================
   COMPONENTS.CSS — Componentes reutilizáveis (Direção visual v2)
   Índice:
     1. Botões (pill + troca de texto no hover + seta)
     2. Pills / badges
     3. Header + Navegação
     4. Media / Frame / Placeholder
     5. Cards base
     6. Card de serviço (especialidade)
     7. Feature card (destaque)
     8. Testemunhos
     9. FAQ (acordeão)
    10. Info / contactos
    11. Footer
   Carregar depois de layout.css.
   ========================================================================== */

/* ======================================================================= */
/* 1. BOTÕES                                                               */
/* ======================================================================= */
.btn {
  --btn-bg: var(--brand-500);
  --btn-fg: #fff;
  --btn-ico-bg: rgba(255, 255, 255, 0.22);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem 0.7rem 1.4rem;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Troca de texto no hover (dois rótulos empilhados) */
.btn__text {
  position: relative;
  display: inline-block;
  height: 1.15em;
  overflow: hidden;
}
.btn__text span {
  display: block;
  height: 1.15em;
  line-height: 1.15em;
  white-space: nowrap;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn__text span { transform: translateY(-1.15em); }

/* Círculo da seta */
.btn__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--btn-ico-bg);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn__ico .icon { width: 16px; height: 16px; }
.btn:hover .btn__ico { transform: rotate(-45deg); }

/* Ícone simples (telefone antes do texto) */
.btn > .icon { width: 1.15em; height: 1.15em; }

/* Centragem do conteúdo dos botões (horizontal + vertical).
   Botões com seta (.btn__ico) mantêm a composição atual; botões só-texto
   (ex.: consentimento de cookies) passam a ter padding simétrico e texto centrado. */
.btn { justify-content: center; }
.btn:not(:has(.btn__ico)) { padding-left: 1.2rem; padding-right: 1.2rem; text-align: center; }

/* Variantes */
.btn--primary { box-shadow: var(--shadow-brand); }
.btn--primary:hover { --btn-bg: var(--brand-600); }

.btn--dark { --btn-bg: var(--navy-800); --btn-ico-bg: rgba(255,255,255,0.16); }
.btn--dark:hover { --btn-bg: var(--navy-700); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
  --btn-ico-bg: var(--brand-500);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--light .btn__ico { color: #fff; }
.btn--light:hover { --btn-bg: #fff; border-color: var(--brand-300); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-ico-bg: var(--brand-50);
  border-color: var(--line);
}
.btn--outline .btn__ico { color: var(--brand-600); }
.btn--outline:hover { --btn-bg: var(--surface-2); border-color: var(--brand-300); }

/* Sobre fundo escuro */
.btn--on-dark { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-ico-bg: var(--brand-500); }
.btn--on-dark .btn__ico { color: #fff; }
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-ico-bg: rgba(255,255,255,0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn--sm { padding: 0.55rem 0.6rem 0.55rem 1.1rem; font-size: var(--step--1); gap: 0.5rem; }
.btn--sm .btn__ico { width: 27px; height: 27px; }
.btn--block { width: 100%; justify-content: center; }

/* Link com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand-600);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ======================================================================= */
/* 2. PILLS / BADGES                                                       */
/* ======================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-pill);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.pill--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

/* Badge de seta (canto das imagens de serviço) */
.arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-600);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.arrow-badge .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }

/* ======================================================================= */
/* 3. HEADER + NAVEGAÇÃO                                                    */
/* ======================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.site-header.is-stuck .header-inner { height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
}
.brand__mark {
  width: 40px; height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
}
.brand__mark .icon { width: 24px; height: 24px; }
/* Logo oficial (wordmark) à direita do ícone azul */
.brand__logo { height: 38px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 32px; } }
/* No footer (fundo escuro) o logo azul renderiza a branco para manter contraste */
.site-footer .brand__logo { filter: brightness(0) invert(1); }
.brand__name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-400);
  line-height: 1;
  margin-top: 3px;
}

.primary-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.2rem; }
.nav-list a {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-list a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-list a[data-active] { color: var(--brand-700); background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}
.header-phone .icon { width: 1.1em; height: 1.1em; color: var(--brand-500); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--ink-900);
  color: #fff;
  border: none;
  border-radius: 12px;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Seletor de idioma PT / EN (integrado na navbar) */
.lang-switch { display: inline-flex; align-items: center; gap: 0.15rem; flex: none; }
.lang-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700;
  color: var(--ink-400); padding: 0.3rem 0.35rem; border-radius: 6px; line-height: 1;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease);
}
.lang-btn:hover { color: var(--brand-600); }
.lang-btn.is-active { color: var(--brand-700); }
.lang-sep { color: var(--line); font-size: 0.82rem; user-select: none; }
@media (max-width: 960px) { .lang-switch { margin-right: 0.5rem; } }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-desktop-only { display: none; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-drawer);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg) var(--gutter) var(--space-2xl);
    background: var(--surface);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 1rem 0.5rem; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav-list a:hover { background: transparent; }
  .nav-drawer-cta { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
  .nav-drawer-cta .btn { justify-content: center; }
}
@media (min-width: 961px) { .nav-drawer-cta { display: none; } }
body.nav-open { overflow: hidden; }
/* Com o menu mobile aberto, o header NÃO pode ter backdrop-filter: um filtro
   torna o header o bloco de contenção do drawer (position:fixed), fazendo-o
   colapsar para a altura da barra. Removemos o filtro e deixamos a barra opaca
   enquanto o menu está aberto (o efeito "vidro" mantém-se no estado normal). */
body.nav-open .site-header {
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---- Submenu "Especialidades" (dropdown) --------------------------------
   Integrado na linguagem da navbar. Desktop: dropdown em hover/focus.
   Mobile: integrado no drawer, indentado e sempre visível. */
.nav-has-sub { position: relative; }
.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  opacity: 0.65;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-has-sub:hover .nav-caret,
.nav-has-sub:focus-within .nav-caret { transform: rotate(180deg); }

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: var(--z-drawer);
}
.nav-has-sub:hover .nav-submenu,
.nav-has-sub:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-submenu a:hover { color: var(--brand-600); background: var(--brand-50); }

@media (max-width: 960px) {
  /* No drawer, "Especialidades" é um dropdown: toque no item expande/colapsa
     o submenu. A seta serve de indicador e roda quando expandido. */
  .nav-has-sub > a { display: flex; align-items: center; justify-content: space-between; }
  .nav-caret { display: inline-block; margin-left: auto; opacity: 0.7; }
  .nav-has-sub.is-expanded > a .nav-caret { transform: rotate(180deg); }
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 0 var(--space-md);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    max-height: 0;                 /* colapsado por defeito */
    transition: max-height var(--dur) var(--ease);
  }
  .nav-has-sub.is-expanded .nav-submenu { max-height: 40rem; }
  .nav-submenu a {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    color: var(--ink-600);
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-submenu a:hover { background: transparent; }
}
/* Padding do submenu com especificidade suficiente para vencer o reset ul[class] */
.nav-list .nav-submenu { padding: 0.4rem; }
@media (max-width: 960px) {
  .nav-list .nav-submenu { padding: 0 0 0 var(--space-md); }
}

/* ======================================================================= */
/* 4. MEDIA / FRAME / PLACEHOLDER                                           */
/* ======================================================================= */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-3);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder de imagem (substituir por <img> — ver PLACEHOLDERS.md) */
.img-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  height: 100%;
  min-height: 240px;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  color: var(--brand-800);
  background:
    radial-gradient(120% 120% at 20% 10%, var(--brand-100), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, var(--brand-200), transparent 55%),
    var(--surface-3);
  transition: transform var(--dur-slow) var(--ease);
}
.img-placeholder .icon { width: 26px; height: 26px; color: var(--brand-500); opacity: 0.85; }
.img-placeholder small {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-500);
}
.img-placeholder span { font-size: var(--step--1); font-weight: 500; line-height: 1.4; color: var(--brand-800); max-width: 40ch; }

/* Placeholder escuro (para painéis fotográficos com overlay claro) */
.img-placeholder--dark {
  color: rgba(255,255,255,0.85);
  background:
    linear-gradient(180deg, rgba(7,28,39,0.35), rgba(7,28,39,0.72)),
    radial-gradient(120% 120% at 30% 20%, var(--brand-500), var(--navy-800) 70%);
}
.img-placeholder--dark .icon { color: rgba(255,255,255,0.85); }
.img-placeholder--dark small { color: var(--brand-200); }
.img-placeholder--dark span { color: rgba(255,255,255,0.85); }

/* Placeholder compacto (miniaturas/círculos) */
.img-placeholder--mini { min-height: 0; justify-content: center; align-items: center; padding: 0; }
.img-placeholder--mini small, .img-placeholder--mini span { display: none; }

/* ======================================================================= */
/* 5. CARDS BASE                                                            */
/* ======================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }

/* ======================================================================= */
/* 6. CARD DE SERVIÇO (ESPECIALIDADE)                                       */
/* ======================================================================= */
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--brand-100), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { opacity: 0.7; }

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 16px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service__icon .icon { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--brand-500); color: #fff; transform: rotate(-6deg); }
.service:hover .arrow-badge { background: var(--brand-500); color: #fff; }
.service:hover .arrow-badge .icon { transform: rotate(-45deg); }

.service h3 { position: relative; font-size: var(--step-1); color: var(--ink-900); }
.service p { position: relative; font-size: var(--step--1); color: var(--ink-500); flex: 1; }
.service .link-arrow { position: relative; font-size: var(--step--1); margin-top: var(--space-xs); }

/* Card de serviço em destaque (um por grelha) */
.service--featured {
  background: linear-gradient(160deg, var(--brand-600), var(--brand-800));
  border-color: transparent;
  color: #fff;
}
.service--featured h3 { color: #fff; }
.service--featured p { color: rgba(255,255,255,0.82); }
.service--featured .service__icon { background: rgba(255,255,255,0.16); color: #fff; }
.service--featured .arrow-badge { background: #fff; color: var(--brand-700); }
.service--featured .link-arrow { color: #fff; }
.service--featured:hover .service__icon { background: #fff; color: var(--brand-700); }

/* ======================================================================= */
/* 7. FEATURE CARD (destaque — cartões sobrepostos)                        */
/* ======================================================================= */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 14px;
  margin-bottom: var(--space-xs);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: var(--step-1); color: var(--ink-900); }
.feature p { font-size: var(--step--1); color: var(--ink-500); }

/* Feature destacado (azul) */
.feature--accent {
  background: linear-gradient(160deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.feature--accent h3 { color: #fff; }
.feature--accent p { color: rgba(255,255,255,0.85); }
.feature--accent .feature__icon { background: rgba(255,255,255,0.18); color: #fff; }

/* ======================================================================= */
/* 8. TESTEMUNHOS                                                           */
/* ======================================================================= */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  height: 100%;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.testimonial .stars { display: inline-flex; gap: 2px; color: var(--star); }
.testimonial .stars .icon { width: 18px; height: 18px; }
.testimonial blockquote {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--ink-800, var(--ink-700));
  flex: 1;
}
.testimonial figcaption { display: flex; align-items: center; gap: var(--space-sm); }
.testimonial .avatar {
  width: 46px; height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-700);
  background: var(--brand-100);
  border-radius: 50%;
}
.testimonial .who strong { display: block; color: var(--ink-900); }
.testimonial .who span { font-size: var(--step--1); color: var(--ink-500); }

/* ======================================================================= */
/* 9. FAQ (ACORDEÃO)                                                        */
/* ======================================================================= */
.faq { display: grid; gap: var(--space-sm); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg);
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.4; /* perguntas em 2+ linhas mais legíveis (espaçamento entre linhas) */
  color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease);
}
.faq-trigger:hover { color: var(--brand-600); }
.faq-trigger .faq-icon {
  flex: none;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--brand-500); color: #fff; }
.faq-trigger .faq-icon .icon { width: 18px; height: 18px; }
.faq-panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.faq-panel__inner { padding: 0 var(--space-lg) var(--space-lg); color: var(--ink-500); }

/* ======================================================================= */
/* 10. INFO / CONTACTOS                                                     */
/* ======================================================================= */
.info-list { display: grid; gap: var(--space-md); }
.info-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.info-row:hover { border-color: var(--brand-200); transform: translateX(4px); }
.info-row .info-icon {
  flex: none;
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 14px;
}
.info-row .info-icon .icon { width: 22px; height: 22px; }
.info-row h3 { font-size: var(--step-0); color: var(--ink-900); }
.info-row p, .info-row a { font-size: var(--step--1); color: var(--ink-500); }
.info-row a:hover { color: var(--brand-600); }

/* ======================================================================= */
/* 11. FOOTER                                                               */
/* ======================================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, 0.66);
  /* O padding-top do footer faz o papel do "topo" da secção seguinte: somado
     ao padding-bottom da última secção, iguala o espaço entre secções. */
  padding-block: var(--space-4xl) var(--space-xl);
}
.footer-grid {
  display: grid;
  /* Coluna das especialidades (2.ª) mais larga para acomodar as 2 colunas da lista. */
  grid-template-columns: 1.4fr 1.9fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand__name small { color: rgba(255,255,255,0.5); }
.footer-brand p { margin-top: var(--space-md); font-size: var(--step--1); max-width: 34ch; }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social a {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--brand-500); color: #fff; transform: translateY(-3px); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: var(--step--1); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-bottom: var(--space-md); }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: var(--step--1); color: rgba(255,255,255,0.66); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
/* Itens de texto simples (ex.: morada) ao mesmo tamanho dos links do footer */
.footer-col li { font-size: var(--step--1); }
/* Lista de especialidades do footer em 2 colunas (menos alta / mais equilibrada).
   Colapsa para 1 coluna em ecrãs estreitos. */
.footer-col ul.footer-specialties {
  display: block;
  columns: 2;
  column-gap: var(--space-lg);
}
.footer-specialties li { margin-bottom: 0.7rem; break-inside: avoid; position: relative; padding-left: 1.25rem; }
.footer-specialties li:last-child { margin-bottom: 0; }
/* Bolinha decorativa antes de cada especialidade — mesma linguagem visual dos
   restantes pontos do site (eyebrow), adaptada ao footer escuro. */
.footer-specialties li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 0 4px rgba(151, 175, 195, 0.18);
}
@media (max-width: 520px) { .footer-col ul.footer-specialties { columns: 1; } }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  font-size: var(--step--1);
  color: rgba(255,255,255,0.5);
}
.footer-bottom nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ======================================================================= */
/* 12. SLIDER / CARROSSEL                                                   */
/* ======================================================================= */
.slider { position: relative; }
.slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: var(--space-lg); }
.slider__track > * { flex: 0 0 auto; scroll-snap-align: start; }

.slider__nav { display: flex; gap: var(--space-sm); }
.slider__btn {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur) var(--ease);
}
.slider__btn:hover { background: var(--brand-500); color: #fff; border-color: transparent; transform: translateY(-2px); }
.slider__btn:disabled { opacity: 0.35; pointer-events: none; }
.slider__btn .icon { width: 20px; height: 20px; }
.slider__btn--prev .icon { transform: rotate(180deg); }

.slider__dots { display: flex; align-items: center; gap: 9px; }
.slider__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--brand-200);
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.slider__dot[data-active] { width: 28px; border-radius: 999px; background: var(--brand-500); }

/* ==========================================================================
   PÁGINAS LEGAIS (prosa) — usa a tipografia/cores do sistema
   ========================================================================== */
.legal-hero .eyebrow { color: var(--brand-600); }
.legal-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); color: var(--ink-900); margin-top: var(--space-xs); letter-spacing: var(--tracking-tight); }
.legal-hero .legal-updated { margin-top: var(--space-sm); color: var(--ink-500); font-size: var(--step--1); }
.legal { max-width: 62rem; }
.legal > * + * { margin-top: var(--space-md); }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--ink-900); margin-top: var(--space-2xl); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--ink-900); margin-top: var(--space-lg); }
.legal p, .legal li { color: var(--ink-600); line-height: 1.75; }
.legal ul { padding-left: 1.3rem; list-style: disc; display: grid; gap: var(--space-2xs); }
.legal a { color: var(--brand-600); text-decoration: underline; }
.legal a:hover { color: var(--brand-700); }
.legal strong { color: var(--ink-900); }

/* ==========================================================================
   BOTÃO "VOLTAR AO TOPO" (injetado por totop.js)
   ========================================================================== */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 150;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur), background var(--dur-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-600); transform: translateY(-3px); }
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
@media (max-width: 560px) { .to-top { width: 42px; height: 42px; } }

/* ==========================================================================
   BANNER DE CONSENTIMENTO DE COOKIES (injetado por cookies.js)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: var(--space-md) var(--gutter);
  background: var(--navy-900);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 -10px 34px rgba(3,15,22,0.30);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1120px; margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 340px; margin: 0; font-size: var(--step--1); line-height: 1.6; }
.cookie-banner__text a { color: var(--brand-200); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--space-sm); flex: 0 0 auto; }
.cookie-banner__actions .btn { padding-block: 0.7rem; }
@media (max-width: 620px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: var(--space-md); }
  .cookie-banner__actions { flex-wrap: wrap; }
  .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Painel de gestão de preferências de cookies (modal) */
.cookie-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.cookie-modal.is-visible { opacity: 1; visibility: visible; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(3,15,22,0.55); }
.cookie-modal__panel {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); color: var(--ink-700);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--dur) var(--ease);
}
.cookie-modal.is-visible .cookie-modal__panel { transform: none; }
.cookie-modal__close {
  position: absolute; top: 0.6rem; right: 0.85rem;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--ink-500);
}
.cookie-modal__close:hover { color: var(--ink-900); }
.cookie-modal__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--ink-900); padding-right: 2rem; }
.cookie-modal__intro { margin-top: var(--space-sm); font-size: var(--step--1); color: var(--ink-600); line-height: 1.6; }
.cookie-modal__intro a, .cookie-opt__desc a { color: var(--brand-600); text-decoration: underline; }
.cookie-opt { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.cookie-opt__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.cookie-opt__name { font-weight: 700; color: var(--ink-900); }
.cookie-opt__badge { font-size: var(--step--1); font-weight: 600; color: var(--brand-600); flex: none; }
.cookie-opt__desc { margin-top: var(--space-2xs); font-size: var(--step--1); color: var(--ink-600); line-height: 1.55; }
.cookie-modal__actions { margin-top: var(--space-xl); display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: flex-end; }
/* Interruptor (toggle) */
.cookie-switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch__slider { position: absolute; inset: 0; background: #c9d4da; border-radius: 999px; transition: background var(--dur-fast) var(--ease); }
.cookie-switch__slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform var(--dur-fast) var(--ease); }
.cookie-switch input:checked + .cookie-switch__slider { background: var(--brand-500); }
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch__slider { outline: 2px solid var(--brand-400); outline-offset: 2px; }
body.cookie-lock { overflow: hidden; }
