/* Worten Institucional — single stylesheet, aligned with the worten.pt visual language */
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/OpenSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/OpenSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/OpenSans-Bold.woff2") format("woff2"); }

:root {
  --red: #E51B15;          /* Worten red (worten.pt) */
  --red-dark: #B81410;
  --ink: #141414;          /* primary text (worten.pt) */
  --ink-2: #4C4C4C;        /* secondary text */
  --ink-3: #9E9E9E;        /* tertiary text / placeholders */
  --navy: #000729;         /* institutional blue (Sonae) */
  --line: #EDEDED;         /* borders */
  --line-2: #DDE2E7;
  --surface: #F6F6F6;      /* backgrounds */
  --white: #FFFFFF;
  --yellow: #FFCC33;
  --success-bg: #E6F4EA; --success-fg: #1E5E2E;
  --error-bg: #FDECEA; --error-fg: #8A1C12;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1312px;
  --narrow: 880px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 8px 24px rgba(20, 20, 20, .08);
  --shadow-lg: 0 16px 40px rgba(20, 20, 20, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 3.6vw, 40px); }
h2 { font-size: clamp(22px, 2.3vw, 26px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; z-index: 1000; }
.skip-link:focus { top: 0; }
.ext { font-size: .8em; }

/* ---------- Header: white row with the logo + red bar with the menu (as on worten.pt) ---------- */
.site-header { position: relative; z-index: 50; background: var(--white); }
.site-header__top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 150px; height: auto; }
.site-header__bar { background: var(--red); color: #fff; }
.site-header__barinner { display: flex; align-items: center; min-height: 52px; gap: 12px; }
.site-nav { flex: 1; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: stretch; min-height: 52px; }
.site-nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav__list > li.lang { margin-left: auto; }
.site-nav__list > li.lang[hidden] { display: none; }
.site-nav__link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; background: none; border: 0; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 6px; line-height: 1.2; }
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
li.is-current > .site-nav__link { background: rgba(0, 0, 0, .18); }
.site-nav__link img { width: 20px; height: auto; border-radius: 2px; }
.has-sub > .site-nav__link::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-sub > .site-nav__link[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.sub-menu { list-style: none; margin: 0; padding: 8px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 280px; position: absolute; top: 100%; left: 0; display: none; box-shadow: var(--shadow-lg); z-index: 60; }
/* invisible bridge between the button and the submenu so the pointer does not "fall" while crossing the gap */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.lang .sub-menu { left: auto; right: 0; min-width: 180px; }
.has-sub.is-open > .sub-menu { display: block; }
@media (hover: hover) and (min-width: 1025px) { .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; } }
.sub-menu a { display: flex; gap: 8px; align-items: center; padding: 11px 20px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.sub-menu a:hover, .sub-menu a[aria-current] { color: var(--red); background: var(--surface); }
.sub-menu a img { width: 20px; height: auto; border-radius: 2px; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 8px; color: #fff; font-weight: 600; cursor: pointer; }
.nav-toggle__bars { position: relative; width: 22px; height: 2px; background: currentColor; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
@media (max-width: 1024px) {
  .site-header__top { min-height: 64px; }
  .brand img { width: 124px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li.lang { margin-left: 0; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .site-nav__link:hover, .site-nav__link[aria-expanded="true"], li.is-current > .site-nav__link { background: none; color: var(--red); }
  .sub-menu, .lang .sub-menu { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; margin: 0; background: var(--surface); }
  .has-sub.is-open > .sub-menu { display: block; }
}

/* ---------- Breadcrumb / headings ---------- */
.breadcrumb { width: min(var(--container), 100% - 32px); margin: 16px auto 0; font-size: 13px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.breadcrumb span { color: var(--ink-2); }
.page-head { text-align: center; padding: 28px 0 12px; }
.page-head .lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 720px; margin-inline: auto; }
.site-main { min-height: 50vh; padding-bottom: 72px; }
.section { padding: 32px 0; }
.text-center { text-align: center; }
.updated { font-size: 13px; color: var(--ink-2); margin-top: 32px; }

/* ---------- Prose ---------- */
.prose { font-size: 16px; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { margin-top: 1.8em; padding-top: .4em; }
.prose h3 { margin-top: 1.5em; font-size: 18px; }
.prose h4 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .45em; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1em 0 1.6em; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--surface); font-weight: 700; }
.prose tbody th { font-weight: 600; background: #FBFBFB; width: 32%; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow: auto; font-size: 13px; line-height: 1.45; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { background: var(--ink-3); border-color: var(--ink-3); cursor: not-allowed; }

/* ---------- Home ---------- */
.home-intro { padding: 32px 0 20px; }
.home-intro h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: .3em; }
.home-intro p { max-width: 720px; font-size: 17px; color: var(--ink-2); margin: 0; }
.tiles { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr 1.25fr; grid-template-areas: "worten worten sonae" "carreiras compliance sonae"; padding-bottom: 24px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 304px; padding: 32px 36px; border-radius: var(--radius-lg); color: #fff; text-decoration: none; background-size: cover; background-position: center; overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .62) 100%); z-index: -1; }
.tile::after { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .35s; z-index: -2; }
.tile:hover, .tile:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.tile p { font-size: 16px; line-height: 1.4; margin: 0 0 14px; max-width: 36ch; }
.tile .btn { align-self: flex-start; background: #fff; color: var(--ink); border-color: #fff; }
.tile:hover .btn { background: var(--red); color: #fff; border-color: var(--red); }
.tile--worten { grid-area: worten; background-image: url("/assets/uploads/2022/07/Rectangle-32.png"); }
.tile--worten::after { background-image: url("/assets/uploads/2022/07/Rectangle-3.png"); }
.tile--carreiras { grid-area: carreiras; background-image: url("/assets/uploads/2022/07/Rectangle-41.png"); }
.tile--carreiras::after { background-image: url("/assets/uploads/2022/07/Rectangle-4.png"); }
.tile--compliance { grid-area: compliance; background-image: url("/assets/uploads/2022/07/Rectangle-51.png"); }
.tile--compliance::after { background-image: url("/assets/uploads/2022/07/Rectangle-5.png"); }
.tile--sonae { grid-area: sonae; background-image: url("/assets/uploads/2022/07/Rectangle-61.png"); min-height: 624px; }
.tile--sonae::after { background-image: url("/assets/uploads/2022/07/Rectangle-6.png"); }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; grid-template-areas: "worten" "carreiras" "compliance" "sonae"; }
  .tile, .tile--sonae { min-height: 240px; padding: 24px 22px; }
  .tile h2 { font-size: 26px; }
}
.home-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 8px 0 24px; }
.home-link { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; background: #fff; transition: box-shadow .2s, border-color .2s; }
.home-link:hover { box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.home-link__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--red); }
.home-link__icon svg { width: 22px; height: 22px; }
.home-link strong { display: block; font-size: 15px; }
.home-link span { font-size: 13px; color: var(--ink-2); }

/* ---------- Alerts ---------- */
.alert { display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--radius); margin: 16px auto; border: 1px solid transparent; }
.alert.is-visible { display: flex; }
.alert--success { background: var(--success-bg); color: var(--success-fg); border-color: #BFE3C8; }
.alert--error { background: var(--error-bg); color: var(--error-fg); border-color: #F5C6C2; }
.alert__close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }

/* ---------- History ---------- */
.timeline { list-style: none; margin: 40px auto 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 22px; align-items: center; padding: 14px 0; position: relative; }
.timeline__year { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--red); background: #fff; font-weight: 700; font-size: 17px; color: var(--red); position: relative; }
.timeline p { margin: 0; }

/* ---------- Brands / contacts / logos ---------- */
.logo-grid { list-style: none; margin: 28px auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.logo-grid li { display: flex; }
.logo-card { flex: 1; display: grid; place-items: center; min-height: 128px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.logo-card:hover, .logo-card:focus-visible { border-color: var(--line-2); box-shadow: var(--shadow); }
.logo-card img { max-height: 44px; width: auto; object-fit: contain; }
.logo-card img.is-small { max-height: 22px; }

/* ---------- Team ---------- */
.team { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; justify-items: stretch; }
.team li { text-align: center; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.avatar { position: relative; width: 180px; height: 180px; margin: 0 auto 20px; border-radius: 50%; padding: 5px; background: linear-gradient(135deg, var(--red), var(--yellow)); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.team h2 { font-size: 20px; margin-bottom: 4px; }
.team p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.team a { font-weight: 700; font-size: 14px; }

/* ---------- Whistleblowing channel ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.choice { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; color: var(--ink); font-size: 20px; font-weight: 700; text-align: left; transition: border-color .2s, box-shadow .2s; }
.choice:hover, .choice[aria-expanded="true"] { border-color: var(--red); box-shadow: var(--shadow); }
.choice__icon { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }
.choice__icon svg { width: 30px; height: 30px; }
.company-grid { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.company-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; cursor: pointer; text-align: center; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.company-card:hover, .company-card:focus-visible, .company-card[aria-pressed="true"] { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); }
.company-card img { max-height: 36px; width: auto; object-fit: contain; }
.company-card img.is-small { max-height: 22px; }
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
.form { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; margin: 28px 0; }
.form h2 { font-size: 22px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font: inherit; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(20, 20, 20, .08); }
.field textarea { min-height: 160px; resize: vertical; }
.field input[readonly] { background: #EFEFEF; color: var(--ink-2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field__error { color: var(--error-fg); font-size: 13px; margin: 6px 0 0; }
.field__hint { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form { padding: 20px; } }
.phone { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.files { border: 0; padding: 0; margin: 0 0 18px; }
.files .field { margin-bottom: 12px; }
.files input[type="file"] { font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.radio-group label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.radio-group input { width: 18px; height: 18px; accent-color: var(--red); }
.form__footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__status { margin-top: 16px; }
.cf-turnstile { margin: 8px 0 16px; }
.step { margin: 28px 0; }
.step h2 { font-size: 20px; margin-bottom: 12px; }
.brand-picker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.brand-picker button { width: 100%; min-height: 110px; display: grid; place-items: center; gap: 6px; padding: 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.brand-picker button img { max-height: 28px; width: auto; object-fit: contain; }
.brand-picker button img.is-small { max-height: 16px; }
.brand-picker button[aria-pressed="true"], .brand-picker button:hover { border-color: var(--red); box-shadow: var(--shadow); }
.notice { background: var(--surface); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 20px 24px; font-size: 16px; }
.success-panel { text-align: center; padding: 48px 24px; background: var(--success-bg); border-radius: var(--radius-lg); }
.success-panel h2 { color: var(--success-fg); }

/* Tabs (point of contact) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs button img { width: 20px; height: auto; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.site-footer__brand { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__brand img { width: 120px; }
.site-footer__copy { margin: 0; color: var(--ink-2); }
.site-footer__nav ul, .site-footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--red); }
.site-footer__social { flex-direction: column; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__social { flex-direction: row; } }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 64px 0; }
.error-page h1 { font-size: clamp(36px, 6vw, 64px); }
.error-page .btn + .btn { margin-left: 8px; }

/* Language badge for menu entries that exist only in Portuguese (ES menu) */
