/* Vortal Sistemas — layout B (institucional, editorial) */
:root {
  --paper: #F4F3EF;
  --paper-2: #E9E6DD;
  --line: #CFCBC0;
  --navy: #13294B;
  --navy-2: #1D3A66;
  --ink: #0F2342;
  --muted: #3B4B63;
  --soft: #C9D4E5;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius-lg: 20px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3A6FD8; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip { position: absolute; left: -9999px; top: 12px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 243, 239, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { font-family: var(--serif); font-size: 30px; font-weight: 500; text-decoration: none; color: var(--navy); white-space: nowrap; letter-spacing: -0.3px; }
.logo span { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #52627A; margin-left: 4px; }
.logo-light { color: #fff; }
.logo-light span { color: var(--soft); }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px; }
.nav-link:hover { color: var(--navy-2); background: var(--paper-2); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-cta:hover { background: var(--navy-2); }

.has-sub { position: relative; }
.sub-head { display: flex; align-items: center; }
.sub-toggle { width: 32px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 8px); left: -12px; display: none; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 32px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 35, 66, 0.12); }
.has-sub.is-open .mega { display: grid; }
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover .mega, .has-sub:focus-within .mega { display: grid; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
.mega-title { display: block; font-family: var(--serif); font-size: 22px; text-decoration: none; color: var(--navy); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--paper-2); }
.mega-title:hover { text-decoration: underline; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 7px 0; text-decoration: none; font-size: 15px; color: var(--muted); }
.mega li a:hover, .mega li a[aria-current="page"] { color: var(--navy); text-decoration: underline; }

.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--navy); border-radius: 999px; background: none; color: var(--navy); font: 600 15px var(--sans); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .main-nav > ul > li { border-bottom: 1px solid var(--paper-2); }
  .nav-link { width: 100%; font-size: 18px; padding: 0; min-height: 56px; }
  .nav-link.is-active { box-shadow: none; font-weight: 700; }
  .sub-head { justify-content: space-between; }
  .sub-toggle { width: 56px; height: 56px; }
  .mega { position: static; box-shadow: none; border: 0; border-radius: 0; background: transparent; padding: 0 0 20px 12px; grid-template-columns: 1fr; gap: 16px; }
  .mega-title { font-size: 20px; border-bottom: 0; padding-bottom: 0; }
  .mega li a { padding: 10px 0; min-height: 44px; }
  .nav-cta { margin: 20px 0 0; justify-content: center; min-height: 52px; }
  .main-nav > ul > li:last-child { border-bottom: 0; }
}

/* Type ---------------------------------------------------------------- */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8.4vw, 124px); line-height: 0.96; letter-spacing: -0.03em; color: var(--navy); max-width: 12ch; }
.display-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -0.02em; color: var(--navy); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--navy); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--muted); max-width: 40em; }
.kicker { font-size: 15px; font-weight: 600; color: #52627A; }

.prose > * + * { margin-top: 18px; }
.prose > .h2 + p { margin-top: 16px; }
.prose > p + .h2 { margin-top: 48px; }
.prose p { color: var(--muted); max-width: 68ch; }
.prose strong { color: var(--ink); }
.prose-lg p { font-size: 18px; line-height: 1.75; }
.pull { font-family: var(--serif); font-size: 30px !important; line-height: 1.3 !important; color: var(--navy) !important; padding-top: 12px; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--navy-2); }

.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding: 8px 0 8px 30px; color: var(--muted); border-top: 1px solid var(--paper-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }

/* Buttons ------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font: 600 16px var(--sans); border: 1.5px solid var(--navy); cursor: pointer; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--paper); border-color: var(--paper); }

/* Sections ------------------------------------------------------------ */
.section { padding-block: clamp(72px, 9vw, 130px); }
.section-tight { padding-block: clamp(48px, 5vw, 72px) clamp(72px, 8vw, 110px); }
.section-flush { padding-block: 0; }
.section-tint { background: var(--paper-2); }
.section-title { margin-bottom: 48px; }

.hero { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero .kicker { margin-bottom: 28px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin: 40px 0 clamp(48px, 6vw, 72px); }

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.6vw, 92px); line-height: 1; letter-spacing: -0.025em; color: var(--navy); max-width: 16ch; }
.page-head .lead { margin-top: 24px; }

.crumbs { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 0; font-size: 14px; color: #52627A; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--navy); }
.crumbs .sep { color: var(--line); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.media-rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .media { grid-template-columns: 1fr; }
  .media-rev > :first-child { order: 0; }
}

/* Image frames: se o arquivo ainda não foi copiado, o rótulo aparece */
.shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); }
.shot img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.shot::before { content: "Imagem: " attr(data-label); position: absolute; inset: auto 24px 20px; color: var(--soft); font-size: 14px; }
.shot-hero img { object-position: top center; }
.shot-phone { max-width: 320px; justify-self: center; border-radius: 32px; }

/* Segments ------------------------------------------------------------ */
.segments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .segments { grid-template-columns: 1fr; } }
.segment { padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.segment h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.segment h3 a { text-decoration: none; }
.segment h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.segment p { color: var(--muted); }
.segment-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.segment-dark p { color: var(--soft); }
.seg-links { list-style: none; margin: 8px 0 0; padding: 0; }
.seg-links li { border-top: 1px solid var(--paper-2); }
.segment-dark .seg-links li { border-top-color: #2C4468; }
.seg-links a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; font-size: 16px; }
.seg-links a::after { content: ""; width: 8px; height: 8px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); }
.seg-links a:hover { text-decoration: underline; }

/* Rows / modules --------------------------------------------------------- */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.row h3, .row h2 { font-size: 21px; font-weight: 600; line-height: 1.35; font-family: var(--sans); color: var(--ink); }
.row p { color: var(--muted); }
.rows-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.rows-3 .row { grid-template-columns: 1fr; align-content: start; }
@media (max-width: 900px) { .row, .rows-3 { grid-template-columns: 1fr; } }

.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.module { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.module + .module { padding-left: 0; }
.module h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.module p { color: var(--muted); font-size: 16px; }
@media (min-width: 901px) {
  .module:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .module:not(:nth-child(3n + 1)) { padding-left: 32px; }
}
@media (max-width: 900px) { .modules { grid-template-columns: 1fr; } .module { padding-right: 0; } }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; min-height: 64px; font-family: var(--serif); font-size: 26px; color: var(--navy); text-decoration: none; }
.link-list a::after { content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.link-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 640px) { .link-list { grid-template-columns: 1fr; } }

.feature-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; text-decoration: none; }
.feature-link:hover { background: var(--navy-2); }
.fl-title { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.fl-text { color: var(--soft); grid-column: 1; }
.fl-go { grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }

.story .prose { padding-top: 12px; }

/* Contact --------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 96px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; font: 400 17px var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; min-height: 52px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(19, 41, 75, 0.15); }
.field.has-error input, .field.has-error textarea { border-color: #B42318; }
.field .err { color: #B42318; font-size: 14px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #146C43; }
.form-status.fail { color: #B42318; }
.contact-side { display: grid; gap: 16px; }
.contact-side ul { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-side li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.contact-side li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-side li a:hover { text-decoration: underline; }

/* CTA band + footer -------------------------------------------------------- */
.cta-band { background: var(--paper); padding-bottom: clamp(48px, 6vw, 80px); }
.cta-inner { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px) clamp(28px, 6vw, 88px); display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.wrap.cta-inner { margin-inline: auto; width: calc(100% - 2 * var(--gutter)); max-width: var(--wrap); }
.cta-inner h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; color: var(--navy); max-width: 18ch; }
.cta-inner .btn-light { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta-inner .btn-light:hover { background: var(--navy-2); }

.site-footer { background: var(--navy); color: #fff; padding-top: clamp(56px, 7vw, 88px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--soft); margin-top: 14px; max-width: 28ch; }
.site-footer h3 { font-size: 14px; font-weight: 700; color: var(--soft); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; color: #E3E9F2; font-size: 15px; }
.site-footer li a { text-decoration: none; color: #fff; }
.site-footer li a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-block: 28px; border-top: 1px solid #2C4468; font-size: 14px; color: #B9C6DA; }
.foot-base a { color: #B9C6DA; }
.site-footer .wrap.foot-base { width: calc(100% - 2 * var(--gutter)); max-width: var(--wrap); padding-inline: 0; }

/* Ajustes pós-revisão */
.hero .lead { max-width: 34em; flex: 1 1 420px; }
.display { max-width: 13ch; }
.shot-phone { width: 100%; }
@media (max-width: 1100px) { .nav-cta { display: flex; width: 100%; } }
