/* MBS Ocupacional — shared system for the inner pages.
   Tokens come from the new home (navy fields, brand green actions, Poppins display, IBM Plex Sans text). */

:root {
  --navy-950: #0B2232;
  --navy-900: #12324A;
  --ink: #3D4F60;
  --ink-strong: #12324A;
  --muted: #5A6B7C;
  --line: #D2DBE3;
  --line-soft: #E1E7EC;
  --field: #7C8FA1;
  --surface: #F4F6F8;
  --surface-2: #E9EEF2;
  --white: #FFFFFF;
  --green: #3AAA35;
  --green-hover: #4CBA46;
  --green-ink: #2A7F26;
  --green-soft: #EAF6E9;
  --green-on-dark: #A8DCA4;
  --blue: #1B5FA8;
  --blue-line: #A9C2DE;
  --danger: #A34A3E;
  --on-dark: #DCE5EC;
  --on-dark-2: #B9C7D4;
  --on-dark-3: #8FA3B6;
  --line-dark: rgba(255, 255, 255, .14);

  --font-display: 'Poppins', sans-serif;
  --font-text: 'IBM Plex Sans', sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1280px;
  --section: clamp(88px, 10vw, 140px);
  --header-h: 92px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink-strong); text-wrap: balance; }
p, li, dd, figcaption, summary { text-wrap: pretty; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--ink-strong); }
::selection { background: #CDEBCB; color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--ink-strong); border-radius: 4px; font-weight: 600; }
.skip:focus { top: 16px; }
.num { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Wide canvas for long service pages: fills large screens instead of a narrow centred column. */
.container--wide { max-width: 1600px; padding: 0 clamp(20px, 4.5vw, 88px); }

/* ---------- Type roles ---------- */
.title-xl { font-size: clamp(38px, 4.9vw, 68px); line-height: 1.05; letter-spacing: -.025em; }
.title-lg { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.title-md { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.018em; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; }
.body-lg { font-size: 17px; line-height: 1.7; }
.on-dark { color: var(--on-dark-2); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }


/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 4px;
  font-family: var(--font-text); font-size: 15.5px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--primary { background: var(--green); color: var(--navy-950); }
.btn--primary:hover { background: var(--green-hover); color: var(--navy-950); }
.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--blue); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy-900); }
.btn--white:hover { background: #E6EDF2; color: var(--navy-900); }
.btn--block { display: flex; width: 100%; }
.btn--outline-dark { background: transparent; color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--navy-900); }
.btn--outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }

.ulink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--blue); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--blue-line); transition: color .2s ease, border-color .2s ease;
}
.ulink:hover { color: var(--ink-strong); border-color: var(--ink-strong); }
.ulink--light { color: var(--on-dark); font-weight: 500; border-color: rgba(255, 255, 255, .4); }
.ulink--light:hover { color: var(--white); border-color: var(--white); }
.ulink .ic { width: 17px; height: 17px; stroke-width: 2; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.site-header__logo img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.site-nav a, .site-header__phone { color: var(--on-dark); text-decoration: none; }
.site-nav a:hover, .site-header__phone:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--green); padding: 6px 0; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-header__phone { font-size: 15px; font-weight: 500; }
.site-header .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
.site-header__burger { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; background: transparent; color: var(--white); cursor: pointer; }
.site-header__burger .ic { width: 22px; height: 22px; }
.site-header.is-fixed { position: fixed; background: rgba(11, 34, 50, .97); box-shadow: 0 10px 30px rgba(11, 34, 50, .18); animation: header-drop .35s var(--ease-out) both; }
.site-header.is-fixed .site-header__bar { min-height: 72px; border-bottom-color: transparent; }
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: none; } }

.menu-mobile { background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 28px; max-width: var(--max); margin: 0 auto; }
.menu-mobile a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.menu-mobile a[aria-current="page"] { color: var(--white); }
.menu-mobile .btn { margin-top: 24px; min-height: 54px; font-size: 16px; }

/* ---------- Page hero (dark band that opens every inner page) ---------- */
.page-hero { position: relative; background: var(--navy-900); color: var(--on-dark-2); padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero--deep { background: var(--navy-950); }
/* Photo behind a hero: the scrim keeps white text legible over any image (title side darkest). */
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 34, 50, .95) 0%, rgba(11, 34, 50, .88) 42%, rgba(11, 34, 50, .62) 72%, rgba(11, 34, 50, .45) 100%), linear-gradient(0deg, rgba(11, 34, 50, .75) 0%, rgba(11, 34, 50, 0) 45%), linear-gradient(180deg, rgba(11, 34, 50, .6) 0%, rgba(11, 34, 50, 0) 30%); }
.page-hero > .container { position: relative; }
@media (max-width: 760px) { .hero-scrim { background: linear-gradient(180deg, rgba(11, 34, 50, .82), rgba(11, 34, 50, .92)); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; font-size: 13.5px; color: var(--on-dark-3); }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .3); }
.crumbs [aria-current] { color: var(--on-dark); }
.page-hero h1 { color: var(--white); }
.page-hero .lede { margin-top: 26px; max-width: 600px; color: #D3DDE6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* Document line: breadcrumb plus the page descriptor, set as meta rather than a kicker. */
.doc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 clamp(32px, 4vw, 48px); }
.doc-line .crumbs { margin: 0; }
.doc-line__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.doc-line__meta::before { content: ""; width: 1px; height: 14px; margin-right: 6px; background: var(--line); }
.doc-line--dark .doc-line__meta { color: var(--on-dark-2); }
.doc-line--dark .doc-line__meta::before { background: rgba(255, 255, 255, .25); }
.doc-line__meta .ic { width: 15px; height: 15px; stroke-width: 2; }

/* Section head with a running head in the margin, beside the heading. */
.sec-head { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px clamp(24px, 3vw, 48px); align-items: baseline; }
.sec-head > .runhead { grid-column: 1; grid-row: 1; }
.sec-head > :not(.runhead) { grid-column: 2; }
.runhead { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 820px) {
  .sec-head { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .sec-head > .runhead { order: 1; margin-top: 12px; padding-top: 0; border-top: 0; }
  .sec-head > :not(.runhead):not(h2) { order: 2; margin-top: 28px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: clamp(64px, 7vw, 96px) 0; }

/* Rule list: rows separated by hairlines (the home's list grammar). */
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule-list > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; color: var(--ink-strong); }
.check-list .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--green-ink); stroke-width: 2; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-strong); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 4px; background: var(--white);
  font-family: inherit; font-size: 16px; color: var(--ink-strong);
}
.field textarea { min-height: 128px; padding: 14px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #5F7081; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.form-note .ic { width: 16px; height: 16px; color: var(--green-ink); }
.form-status { display: none; padding: 16px 18px; border-radius: 6px; font-size: 15px; line-height: 1.55; }
.form-status.is-shown { display: flex; gap: 12px; }
.form-status--ok { background: var(--green-soft); color: #1E5E1B; }
.form-status--error { background: #F7E9E6; color: #7A3127; }
.form-status .ic { width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.2; }
.form-status strong { display: block; color: inherit; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.01em; }
.faq summary .ic { width: 22px; height: 22px; color: var(--ink-strong); transition: transform .25s ease; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 680px; font-size: 16px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9FB0C1; font-size: 15px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; padding: clamp(72px, 8vw, 104px) 0 clamp(44px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__top img { height: 52px; width: auto; }
.site-footer__claim { margin-top: 26px; max-width: 560px; font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -.02em; color: #E3EAF0; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 48px; padding: clamp(44px, 5vw, 64px) 0; }
.site-footer__cols > * { flex: 1 1 200px; min-width: 0; }
.site-footer h2 { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: #E3EAF0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.site-footer ul a, .site-footer__legal a { color: #9FB0C1; text-decoration: none; }
.site-footer ul a:hover, .site-footer__legal a:hover { color: var(--white); }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #C3D0DC; }
.social .ic { width: 18px; height: 18px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--on-dark-3); }
.site-footer__legal a { color: var(--on-dark-3); }

/* ---------- Fixed conversion ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--navy-950); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(11, 34, 50, .3); transition: transform .2s ease; }
.fab:hover { transform: scale(1.06); color: var(--navy-950); }
.fab .ic { width: 26px; height: 26px; stroke-width: 2; }
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 34, 50, .08); }
.mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 4px; text-decoration: none; font-size: 15px; font-weight: 600; }
.mbar a:first-child { border: 1px solid var(--ink-strong); color: var(--ink-strong); }
.mbar a:last-child { flex: 1.3; background: var(--green); color: var(--navy-950); }
.mbar .ic { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Responsive chrome ---------- */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .site-header__burger { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --header-h: 80px; }
  .site-header__phone, .site-header .btn { display: none; }
  .site-header__logo img { height: 38px; }
  .fab { display: none; }
  .mbar { display: flex; }
  .site-footer { padding-bottom: 76px; }
  .form { grid-template-columns: 1fr; }
}

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