/*
 * file-ui.css — linguagem visual comum do site FILE
 * (a mesma das páginas Início, Sobre nós, Contabilidade, Recursos Humanos e Seguros).
 *
 *  .fx-hero    topo escuro de cada página (título Playfair + itálico dourado)
 *  .fx-old     secções do antigo tema Betheme, re-estilizadas (conteúdo intacto)
 *  .fx-guide   páginas do Guia Fiscal (IRS, IRC, IVA, Minutas)
 */

:root {
  --fx-navy: #07101f;
  --fx-navy-2: #0c1726;
  --fx-navy-3: #101d31;
  --fx-gold: #bf9963;
  --fx-gold-hover: #d4b07a;
  --fx-gold-soft: rgba(191, 153, 99, .4);
  --fx-line-gold: rgba(191, 153, 99, .16);
  --fx-cream: #f7f5f0;
  --fx-cream-2: #f9f8f5;
  --fx-ink: #1a1a2e;
  --fx-muted: #5a6072;
  --fx-border: #e2ddd4;
  --fx-t2: rgba(255, 255, 255, .6);
  --fx-serif: 'Playfair Display', serif;
  --fx-sans: 'DM Sans', sans-serif;
}

/* ═════════════════════════ HERO ═════════════════════════ */
.fx-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
  min-height: 78vh;
  padding: 150px 8vw 110px;
  overflow: hidden;
  background: var(--fx-navy);
  font-family: var(--fx-sans);
}
.fx-hero--text { grid-template-columns: 1fr; min-height: 56vh; }
.fx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(191, 153, 99, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 153, 99, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.fx-hero-glow {
  position: absolute;
  top: 50%;
  left: 32%;
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(191, 153, 99, .16) 0%, rgba(191, 153, 99, .05) 45%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.fx-hero-txt { position: relative; z-index: 2; max-width: 760px; animation: fx-rise .9s cubic-bezier(.22, 1, .36, 1) both; }
.fx-eyebrow {
  display: block;
  margin-bottom: 24px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(191, 153, 99, .75);
}
html body .fx-hero h1.fx-h1 {
  margin: 0;
  font-family: var(--fx-serif);
  font-size: clamp(40px, 5.6vw, 82px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
}
.fx-h1 > span { display: block; }
html body .fx-hero h1.fx-h1--long { font-size: clamp(32px, 4.2vw, 60px); }
html body .fx-h1 em { color: var(--fx-gold); font-style: italic; font-family: var(--fx-serif); }
.fx-rule { display: block; width: 110px; height: 2px; margin: 28px 0; background: linear-gradient(90deg, var(--fx-gold), transparent); }
html body .fx-hero .fx-sub {
  max-width: 520px;
  margin: 0;
  font-family: var(--fx-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--fx-t2);
}
.fx-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fx-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--fx-line-gold);
  border-radius: 50px;
  background: rgba(191, 153, 99, .08);
  font-size: 12px;
  color: #e6d3b0;
}
.fx-updated { display: block; margin-top: 16px; font-size: 11px; color: rgba(255, 255, 255, .38); }
.fx-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.fx-btn-g, .fx-btn-o {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--fx-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background .2s, transform .15s, border-color .2s, color .2s;
}
.fx-btn-g { background: var(--fx-gold); color: var(--fx-navy) !important; }
.fx-btn-g:hover { background: var(--fx-gold-hover); transform: translateY(-2px); }
.fx-btn-o { border: 1px solid rgba(255, 255, 255, .16); color: #fff !important; }
.fx-btn-o:hover { border-color: var(--fx-gold-soft); color: var(--fx-gold) !important; }
.fx-hero-media { position: relative; z-index: 2; display: flex; justify-content: center; animation: fx-rise 1.1s .1s cubic-bezier(.22, 1, .36, 1) both; }
.fx-photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 780 / 828;
  overflow: hidden;
  border: 1px solid var(--fx-line-gold);
  border-radius: 24px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
}
.fx-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 16, 31, 0) 58%, rgba(7, 16, 31, .55) 100%); }
.fx-photo-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.fx-photo-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-gold); }
@keyframes fx-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-hero-txt, .fx-hero-media { animation: none; } }
@media (max-width: 900px) {
  .fx-hero { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding: 120px 24px 80px; }
  .fx-photo { max-width: 360px; margin: 0 auto; }
}

/* ═════════════ SECÇÕES DO ANTIGO TEMA (conteúdo intacto, novo visual) ═════════════ */
html body .fx-old {
  background-color: var(--fx-cream) !important;
  background-image: none !important;
  font-family: var(--fx-sans);
  color: var(--fx-muted);
}
html body .fx-old + .fx-old { border-top: 1px solid var(--fx-border); }
html body .fx-old .column_attr { background-color: transparent !important; }
html body .fx-old h1, html body .fx-old h2, html body .fx-old h3, html body .fx-old h4 {
  font-family: var(--fx-serif);
  font-weight: 700;
  color: var(--fx-ink);
  letter-spacing: -.015em;
}
html body .fx-old h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; }
html body .fx-old h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }
html body .fx-old h4 { font-size: 20px; line-height: 1.3; }
/* partes de títulos com cor própria (ex.: texto branco pensado para fundo escuro) -> destaque dourado */
html body .fx-old :is(h1, h2, h3, h4) span[style*="color"] { color: var(--fx-gold) !important; font-style: italic; font-family: var(--fx-serif); }
html body .fx-old :is(h1, h2, h3, h4)[style*="color"] { color: var(--fx-ink) !important; }
html body .fx-old .themecolor, html body .fx-old h2 span.themecolor { color: var(--fx-gold) !important; font-style: italic; font-family: var(--fx-serif); }
html body .fx-old h5 {
  font-family: var(--fx-sans);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fx-muted);
}
html body .fx-old h6 {
  font-family: var(--fx-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fx-gold);
}
html body .fx-old p, html body .fx-old li, html body .fx-old td { font-family: var(--fx-sans); font-size: 15px; line-height: 1.85; color: var(--fx-muted); }
html body .fx-old b, html body .fx-old strong { color: var(--fx-ink); font-weight: 600; }
html body .fx-old a:not(.button):not(.fx-btn-g):not(.fx-btn-o) { color: var(--fx-ink); text-decoration: underline; text-decoration-color: var(--fx-gold-soft); text-underline-offset: 3px; }
html body .fx-old a:has(.mfn-icon-box) { text-decoration: none !important; }

/* botões */
html body .fx-old a.button, html body .fx-old .button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 14px 28px !important;
  border: 0 !important;
  border-radius: 50px !important;
  background: var(--fx-navy) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--fx-sans);
  font-size: 10.5px !important;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
}
html body .fx-old a.button:hover { background: var(--fx-gold) !important; color: var(--fx-navy) !important; transform: translateY(-2px); }
html body .fx-old .button .button_icon { background: transparent !important; border: 0 !important; padding: 0 !important; }
html body .fx-old .button .button_icon i, html body .fx-old .button .button_label { color: inherit !important; }
html body .fx-old .button .button_label { padding: 0 !important; }

/* cartões com ícone (tipos de seguro, serviços) */
html body .fx-old .mfn-icon-box {
  height: 100%;
  padding: 34px 22px 28px !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(7, 16, 31, .02);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .35s;
}
html body .fx-old a:hover .mfn-icon-box { transform: translateY(-6px); border-color: var(--fx-gold-soft) !important; box-shadow: 0 20px 44px -18px rgba(7, 16, 31, .25); }
html body .fx-old .mfn-icon-box .icon-wrapper { border: 0 !important; background: transparent !important; }
html body .fx-old .mfn-icon-box .icon-wrapper i { color: var(--fx-gold) !important; }
html body .fx-old .mfn-icon-box .title { margin-top: 14px; font-family: var(--fx-serif) !important; font-size: 19px !important; color: var(--fx-ink) !important; }
html body .fx-old .mfn-icon-box .desc { font-family: var(--fx-sans); color: var(--fx-muted); }

/* imagens */
html body .fx-old .image_frame, html body .fx-old .image_frame .image_wrapper {
  overflow: hidden;
  border: 0 !important;
  border-radius: 24px !important;
  background: transparent !important;
}
html body .fx-old .image_frame img { border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(7, 16, 31, .45); }

/* ═════════════ FORMULÁRIOS ═════════════ */
html body .fx-old .wpcf7 {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--fx-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px -40px rgba(7, 16, 31, .35);
}
html body .fx-old .wpcf7 h5, html body .fx-old .wpcf7 h4 {
  margin: 26px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fx-border);
  font-family: var(--fx-serif) !important;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--fx-ink) !important;
}
html body .fx-old .wpcf7 h6, html body .fx-old .wpcf7 label {
  margin-bottom: 6px;
  font-family: var(--fx-sans) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-muted) !important;
}
html body .fx-old .wpcf7 input[type="text"],
html body .fx-old .wpcf7 input[type="email"],
html body .fx-old .wpcf7 input[type="tel"],
html body .fx-old .wpcf7 input[type="date"],
html body .fx-old .wpcf7 input[type="number"],
html body .fx-old .wpcf7 input[type="url"],
html body .fx-old .wpcf7 select,
html body .fx-old .wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 12px !important;
  background: var(--fx-cream-2) !important;
  box-shadow: none !important;
  font-family: var(--fx-sans) !important;
  font-size: 14px !important;
  color: var(--fx-ink) !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
html body .fx-old .wpcf7 input:focus, html body .fx-old .wpcf7 select:focus, html body .fx-old .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--fx-gold) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(191, 153, 99, .15) !important;
}
html body .fx-old .wpcf7 input[type="checkbox"], html body .fx-old .wpcf7 input[type="radio"] { accent-color: var(--fx-gold); width: 16px; height: 16px; }
html body .fx-old .wpcf7 .wpcf7-list-item-label { font-family: var(--fx-sans); font-size: 14px; color: var(--fx-ink); }
html body .fx-old .wpcf7 input[type="submit"], html body .fx-old .wpcf7 .wpcf7-submit {
  margin-top: 10px;
  padding: 16px 40px !important;
  border: 0 !important;
  border-radius: 50px !important;
  background: var(--fx-gold) !important;
  color: var(--fx-navy) !important;
  font-family: var(--fx-sans) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
html body .fx-old .wpcf7 input[type="submit"]:hover { background: var(--fx-gold-hover) !important; transform: translateY(-2px); }
html body .fx-old .wpcf7 .wpcf7-not-valid { border-color: #b3261e !important; }
html body .fx-old .wpcf7 .wpcf7-not-valid-tip { font-family: var(--fx-sans); font-size: 12px; color: #b3261e; }
html body .fx-old .wpcf7 .wpcf7-response-output { border-radius: 12px; font-family: var(--fx-sans); font-size: 14px; }
html body .fx-old .wpcf7 form.sent .wpcf7-response-output { border-color: #1a6b4a !important; background: #e2f5ec; color: #1a6b4a; }

/* ═════════════ GUIA FISCAL (IRS, IRC, IVA, Minutas) ═════════════ */
html body .fx-guide, html body .fx-guide .page-body, html body .fx-guide .section p, html body .fx-guide td, html body .fx-guide li {
  font-family: var(--fx-sans);
}
html body .fx-guide .section h2 { font-family: var(--fx-serif); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.015em; color: var(--fx-ink); }
html body .fx-guide .section h3 { font-family: var(--fx-serif); color: var(--fx-ink); }
html body .fx-guide .toc-bar { top: 0; background: #fff; }
html body .fx-guide .page-body { max-width: 1040px; }

/* ═════════════ Linha de contactos (antes do rodapé) ═════════════ */
html body .fx-contactbar { background: #fff !important; }

/* ═════════════ MOBILE ═════════════ */
@media (max-width: 767px) {
  html body .fx-old .wpcf7 { padding: 24px 18px; border-radius: 20px; }
}
