/* MFG Trading Group: estilos comuns. Cores tiradas do logótipo (azul e cinzento-ardósia), com laranja para as ações. */
:root {
  --blue: #0062af; --navy: #082b4c; --slate: #43525a; --sky: #e8f2fa; --orange: #f5871f;
  --ink: #1c2a33; --muted: #566571; --line: #d5dfe6; --paper: #fff;
  --accent: var(--blue); --on-accent: #fff; --soft: var(--sky); --soft-ink: var(--blue);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem; --gutter: clamp(1rem, 4vw, 2.5rem); --radius: 12px;
}
.p-ship { --accent: var(--orange); --on-accent: var(--navy); --soft: #fdeeda; --soft-ink: #b25300; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-stretch: 110%; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 780; letter-spacing: -0.015em; max-width: 17ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 740; margin-bottom: 1rem; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--navy); }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999rem; top: 0; background: var(--orange); color: var(--navy); padding: 0.6rem 1rem; }
.skip:focus { left: 0; z-index: 30; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Cabeçalho */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; max-width: var(--wrap); margin: 0 auto; padding: 0.8rem var(--gutter); }
.mark img { height: 40px; width: auto; }
.area { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--on-accent); background: var(--accent); padding: 0.2rem 0.65rem; border-radius: 99px; margin-right: auto; }
.mark:only-of-type { margin-right: auto; }
.p-hub .mark { margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--accent); }
.nav .nav-login { background: var(--navy); color: #fff; padding: 0.35rem 0.9rem; border-radius: 99px; border-bottom: 0; }
.menu-btn { display: none; }
/* Escolha de língua: globo com a língua atual, que abre a lista. Funciona sem JavaScript (details). */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.5rem; padding: 0 0.7rem; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--navy); background: var(--paper); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--navy); }
.lang svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang .globe { width: 1.15rem; height: 1.15rem; }
.lang .caret { width: 0.75rem; height: 0.75rem; stroke-width: 1.8; transition: transform 0.2s; }
.lang[open] .caret { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30; min-width: 14rem; margin: 0; padding: 0.35rem; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(8, 43, 76, 0.16); }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.lang-list a span { color: var(--muted); font-size: 0.8rem; }
.lang-list a:hover { background: var(--sky); }
.lang-list a[aria-current] { color: var(--blue); background: var(--sky); }
.lang-list a[aria-current] span { color: var(--blue); }

/* Botões */
.btn { display: inline-block; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--orange); color: var(--navy); border: 2px solid var(--orange); border-radius: 99px; padding: 0.8rem 1.5rem; }
.btn:hover { background: #ff9d3d; border-color: #ff9d3d; }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* Abertura com fotografia */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 43, 76, 0.94) 0%, rgba(0, 98, 175, 0.82) 50%, rgba(0, 98, 175, 0.38) 100%); }
.p-ship .hero::after { background: linear-gradient(100deg, rgba(8, 43, 76, 0.95) 0%, rgba(8, 43, 76, 0.8) 50%, rgba(245, 135, 31, 0.5) 100%); }
.hero-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.p-hub .hero-in { padding-bottom: clamp(8rem, 16vw, 12rem); }
.hero h1 { color: #fff; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: 1.2rem; max-width: 46ch; color: #e3eef8; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

/* Página do grupo: as duas portas */
.doors-wrap { position: relative; z-index: 2; margin-top: clamp(-9rem, -11vw, -5rem); padding: 0 var(--gutter); }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; }
.door { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 44px rgba(8, 43, 76, 0.22); transition: transform 0.15s ease; }
.door:hover { transform: translateY(-4px); }
.door-photo { width: 100%; height: 11rem; object-fit: cover; }
.door-body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 0 1.5rem 1.6rem; }
.door-biz .door-body { background: var(--blue); color: #fff; }
.door-ship .door-body { background: var(--orange); color: var(--navy); }
.door .ico { margin-top: -1.75rem; background: #fff; color: var(--blue); box-shadow: 0 6px 16px rgba(8, 43, 76, 0.2); }
.door-ship .ico { color: #b25300; }
.door-for { font-size: 0.95rem; }
.door-for span { font-weight: 700; }
.door-title { font-family: var(--display); font-stretch: 110%; font-weight: 780; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.door-text { max-width: 40ch; }
.door-cta { align-self: flex-start; margin-top: auto; font-weight: 700; padding: 0.7rem 1.3rem; border-radius: 99px; }
.door-biz .door-cta { background: var(--orange); color: var(--navy); margin-top: 0.8rem; }
.door-ship .door-cta { background: var(--navy); color: #fff; margin-top: 0.8rem; }

/* Secções */
.band { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.tint { background: var(--sky); }
.p-ship .tint { background: #fff6ea; }
.dark { background: var(--navy); color: #dbe8f3; }
.dark h2 { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 16px 16px 0 var(--accent); }

.ico { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--soft); color: var(--soft-ink); flex: none; }
.ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 0 var(--line), 0 10px 26px rgba(8, 43, 76, 0.07); border-top: 4px solid var(--accent); }
.card .ico { margin-bottom: 1rem; }
.card p { margin: 0; color: var(--muted); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop { background: var(--soft); }
.shop .lead-in { max-width: 46rem; }
.shop .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 0; }
.card.soon { position: relative; border-top-style: dashed; }
.card .badge { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 1.75rem 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.steps li::after { content: ""; position: absolute; top: 1.6rem; left: 4rem; right: -1rem; border-top: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps p { margin: 0; color: var(--muted); }

.netmap { width: 100%; height: auto; }
.netmap .grid { color: #2a5682; }
.netmap pattern circle { fill: #2a5682; }
.netmap .arc { fill: none; stroke: #7dc1f5; stroke-width: 2; }
.netmap .arc.far { stroke: var(--orange); stroke-dasharray: 6 6; }
.netmap .node { fill: #7dc1f5; stroke: var(--navy); stroke-width: 2; }
.netmap circle.base { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.netmap text { fill: #fff; font: 600 13px var(--body); }
.netmap text.base { font-size: 15px; font-weight: 700; }

.cta-band { background: linear-gradient(100deg, var(--blue), var(--navy)); color: #e3eef8; }
.p-ship .cta-band { background: linear-gradient(100deg, var(--navy), #0d3b66); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { margin: 0; }

.panel { background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 26px rgba(8, 43, 76, 0.08); }
.quote .split { align-items: start; }
.quote form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.quote form p { margin: 0; max-width: none; }
.quote .wide { grid-column: 1 / -1; }
::placeholder { color: #7a8892; opacity: 1; }
.trap { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.75rem 1rem; border-radius: 8px; background: #e5f4e4; color: #1d6b3a; font-weight: 600; }
.form-status.bad { background: #fbebeb; color: #b3261e; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
input, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8d9aa3; border-radius: 8px; padding: 0.65rem 0.75rem; }
input:focus, textarea:focus { border-color: var(--blue); }
.count { display: block; margin-top: 0.3rem; text-align: right; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.near { color: var(--soft-ink, #b25300); font-weight: 600; }

.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

.also { background: var(--sky); padding: 2rem 0; }
.also h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.also p { margin: 0; }

/* Rodapé */
.foot { background: #061f38; color: #dbe8f3; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem; }
.foot > * { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.foot-logo { display: block; height: 50px; width: auto; margin-bottom: 1.75rem; }
.foot h2 { color: #fff; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.5rem 2rem; margin-top: 1rem; }
.foot h3 { font-family: var(--body); font-stretch: 100%; font-size: 0.9rem; font-weight: 600; color: #8fb0cc; margin-bottom: 0.2rem; }
.foot p { margin-bottom: 1.1rem; }
.foot .offices-h { margin: 0; padding-top: 1.5rem; border-top: 1px solid #1d3d5c; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.75rem; margin-top: 0.9rem; }
.foot .offices h3 { color: #fff; font-size: 1rem; margin-bottom: 0.15rem; }
.foot .offices p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: #b9cde0; }
.reach { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.1rem; }
.reach li { display: flex; align-items: center; gap: 0.9rem; }
.reach li[hidden] { display: none; }
.reach .ico { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #0e3355; color: var(--orange); }
.reach h3 { margin: 0 0 0.1rem; }
.reach a { font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.reach a:hover { text-decoration: underline; }
.reach p { margin: 0; }
.foot-social a { margin-right: 1rem; }
.legal { font-size: 0.9rem; color: #8fb0cc; border-top: 1px solid #1d3d5c; padding-top: 1.25rem; margin-top: clamp(2rem, 5vw, 3rem); }

.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 20; max-width: 44rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: 0 12px 40px rgba(8, 43, 76, 0.3); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 16rem; margin: 0; font-size: 0.95rem; }
.cookie button { font: inherit; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 99px; padding: 0.5rem 1.1rem; }
.cookie button.ghost { background: #fff; color: var(--navy); }

/* Página O grupo */
.more { font-weight: 700; }
.h-next { margin-top: 2.25rem; }
/* Página de texto corrido (privacidade) */
.prose h1 { color: var(--navy); font-size: clamp(2rem, 4.5vw, 3rem); max-width: none; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 2.25rem 0 0.6rem; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose .updated { color: var(--muted); margin-top: 0.75rem; }
.statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; color: var(--navy); }
.narrow { max-width: 52rem; }
.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.values blockquote { margin: 0; padding-left: 1.5rem; border-left: 4px solid var(--orange); font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; color: #fff; }

@media (max-width: 820px) {
  .doors, .split, .values, .cards, .steps, .quote form { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .shot { box-shadow: 10px 10px 0 var(--accent); }
}
/* Cabeçalho compacto (tablet e telemóvel): logótipo, área, língua e botão do menu numa linha; as páginas e o
   botão de entrada abrem por baixo. Sem JavaScript as páginas ficam sempre à vista. Abaixo de 1100 px o menu
   completo, com o nome da área, já não cabe numa linha em alemão. */
@media (max-width: 1100px) {
  .top { gap: 0 0.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .top .mark, .top .area { margin-right: 0; }
  .area { margin-left: 0.25rem; }
  .lang { margin-left: auto; }
  @media (max-width: 600px) { .area { display: none; } .mark img { height: 34px; } }
  @media (max-width: 360px) { .mark img { height: 28px; } .lang summary { padding: 0 0.55rem; } }
  .js .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--navy); background: var(--paper); border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .top.open .menu-icon { background: transparent; }
  .top.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .top.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { order: 3; flex: 1 1 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0.25rem 0 0.75rem; }
  .js .nav { display: none; }
  .js .top.open .nav { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 3rem; padding: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--accent); padding-left: 0.75rem; }
  .nav .nav-login { align-self: flex-start; justify-content: center; min-height: 2.75rem; margin-top: 0.9rem; padding: 0 1.4rem; border-bottom: 0; }
  .lang summary { min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .door, .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; } }
/* Contactos: dados à esquerda, mensagem à direita */
.foot-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.foot-info h2 { margin: 0; }
.foot .panel { color: var(--ink); }
.foot .panel a { color: var(--blue); }
.foot .panel .msg-h { font-family: inherit; font-size: 1.2rem; font-weight: 700; color: var(--navy, #082b4c); margin: 0 0 0.4rem; }
.foot .panel p { margin-bottom: 0; }
.foot .panel .msg-hint { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.1rem; }
.ask { margin-top: 0.4rem; }
/* Telemóvel: telefone e email, depois a mensagem, e só no fim os escritórios. */
@media (max-width: 860px) {
  .foot-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-info { display: contents; }
  .foot-split .panel { margin-bottom: 2.25rem; }
  .foot .offices-h, .offices { order: 2; }
}
@media (max-width: 330px) { .offices { grid-template-columns: minmax(0, 1fr); } }
.credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: #8fb0cc; margin-top: 0.5rem; }
.credits .wisify { display: inline-flex; align-items: center; gap: 0.4rem; color: #dbe8f3; text-decoration: none; }
.credits .wisify:hover { color: #fff; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards.four { grid-template-columns: minmax(0, 1fr); } }
