:root {
  --navy-950: #041231;
  --navy-900: #061a44;
  --navy: #0a2e6e;
  --green: #0b9444;
  --green-700: #087636;
  --yellow: #ffd100;
  --gold: #c9a45c;
  --gold-300: #e8c76a;
  --white: #fff;
  --mist: #f1f4f9;
  --line: #d9e0ec;
  --text: #16233f;
  --muted: #4c5a78;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --pad: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.015em; color: var(--navy); }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--yellow); color: var(--navy-900); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.head p { margin-top: 18px; color: var(--muted); font-size: 1.2rem; max-width: 56ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 1.5px solid transparent; border-radius: 4px; font: 700 1rem/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.btn-gold { background: var(--gold-300); color: var(--navy-900); }
.btn-gold:hover { background: var(--yellow); }
.btn-ghost { border-color: rgb(255 255 255 / .45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / .1); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: #065f2b; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-900); }

/* header */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.topbar.scrolled { box-shadow: 0 8px 28px rgb(6 26 68 / .1); }
.topbar-in { width: min(1360px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { flex: none; }
.brand img { width: 214px; height: auto; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu nav { display: flex; gap: 20px; }
.menu nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu nav a:hover { border-color: var(--green); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 4px; padding: 2px; }
.lang button { border: 0; background: none; font: 700 .8rem/1 var(--body); color: var(--muted); padding: 8px 9px; border-radius: 2px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.menu .btn { white-space: nowrap; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--navy); content: ""; }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }

/* hero */
.hero { position: relative; color: var(--white); background: radial-gradient(90% 110% at 76% 44%, #0f3b8c 0%, var(--navy-900) 52%, var(--navy-950) 100%); overflow: hidden; border-bottom: 4px solid var(--gold); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 24px; min-height: min(760px, calc(100svh - 80px)); padding-block: 48px; }
.hero h1 { font-size: clamp(2.2rem, .9rem + 3.9vw, 4.5rem); font-weight: 800; font-stretch: 122%; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; }
.hero-lead { margin-top: 28px; font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); line-height: 1.35; font-weight: 600; color: var(--gold-300); max-width: 24ch; }
.hero-sub { margin-top: 14px; font-size: 1.15rem; color: #c8d4ee; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.globe-box { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; justify-self: end; }
#globe { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }

/* about */
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::before { content: ""; position: absolute; inset: 20px -16px -16px 20px; border: 2px solid var(--gold); border-radius: 6px; }
.about-photo img { position: relative; width: 100%; height: auto; border-radius: 6px; }
.about-intro p { margin-top: 24px; font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.creed { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }
.creed-item { position: relative; padding-top: 40px; }
.creed-item::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--green); z-index: 1; }
.creed-item:nth-child(2)::before { background: var(--navy); }
.creed-item:nth-child(3)::before { background: var(--yellow); }
.creed-item:not(:last-child)::after { content: ""; position: absolute; left: 14px; right: -40px; top: 6px; height: 2px; background: var(--line); }
.creed h3 { color: var(--navy); margin-bottom: 8px; }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.values li { padding: 5px 14px; border: 1px solid var(--gold); border-radius: 99px; font-weight: 600; font-size: .95rem; }

/* faixa com foto */
.band { position: relative; display: grid; align-items: end; min-height: clamp(360px, 46vw, 600px); background: var(--navy-900); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(4 18 49 / .88) 0%, rgb(4 18 49 / .35) 48%, transparent 75%); }
.band .wrap { position: relative; z-index: 1; padding-bottom: clamp(32px, 5vw, 64px); }
.band h2 { color: var(--white); max-width: 20ch; }

/* areas */
.areas { background: var(--mist); }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.area { padding: 36px 28px 8px; border-left: 1px solid var(--line); }
.area:first-child { border-left: 0; padding-left: 0; }
.area:last-child { padding-right: 0; }
.area svg { width: 46px; height: 46px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { color: var(--navy); margin: 24px 0 16px; min-height: 2.2em; }
.area li { padding-block: 11px; border-top: 1px solid var(--line); line-height: 1.45; }

/* services */
.services-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.services .head { position: sticky; top: 120px; margin: 0; }
.services .head .btn { margin-top: 32px; }
.serv-list { border-top: 2px solid var(--navy); }
.serv-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: center; padding: 22px 12px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.serv-list > div:hover { background: var(--mist); }
.serv-list dt { font: 700 1.2rem/1.25 var(--display); font-stretch: 108%; color: var(--navy); }
.serv-list dd { color: var(--muted); line-height: 1.5; }

/* hub */
.hub { background: var(--navy-900); color: var(--white); }
.hub h2 { color: var(--white); }
.hub .head p { color: #c8d4ee; }
.hub .head .status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: .95rem; font-weight: 600; color: var(--gold-300); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgb(255 209 0 / .18); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; margin-bottom: 56px; }
.flow li { counter-increment: step; position: relative; padding: 76px 32px 0 0; }
.flow li::before { content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold-300); background: var(--navy-900); color: var(--gold-300); font: 700 1.1rem var(--display); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 48px; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--green)); opacity: .65; }
.flow h3 { margin-bottom: 10px; }
.flow p { color: #b9c7e6; font-size: 1rem; }

/* opportunities */
.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.opp { display: flex; flex-direction: column; background: var(--navy-900); color: var(--white); text-decoration: none; border-radius: 6px; overflow: hidden; }
.opp > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.opp:hover > img { transform: scale(1.04); }
.opp-body { position: relative; display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 26px 26px 28px; background: var(--navy-900); }
.opp strong { font: 700 1.5rem/1.2 var(--display); font-stretch: 112%; }
.opp-body > span { color: #c8d4ee; font-size: 1rem; }
.opp em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 700; color: var(--gold-300); text-decoration: underline; text-underline-offset: 5px; }

/* join */
.join { background: linear-gradient(90deg, rgb(5 78 38 / .96) 0%, rgb(6 94 45 / .9) 50%, rgb(6 94 45 / .76) 100%), url("assets/img/porto.jpg") center / cover var(--green-700); color: var(--white); padding-block: clamp(64px, 8vw, 104px); }
.join-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.join h2 { color: var(--white); }
.join p { margin: 18px 0 32px; font-size: 1.25rem; }
.benefits li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid rgb(255 255 255 / .28); font-weight: 600; line-height: 1.45; }
.benefits li:first-child { border-top: 1px solid rgb(255 255 255 / .28); }
.benefits li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 7px; height: 13px; border: solid var(--yellow); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* contact */
.contact { background: var(--mist); }
.contact-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info p { margin-top: 20px; color: var(--muted); font-size: 1.15rem; }
.mail { display: block; width: fit-content; max-width: 100%; margin-top: 32px; font: 700 clamp(1.05rem, .7rem + 1.2vw, 1.4rem)/1.4 var(--display); color: var(--navy); overflow-wrap: anywhere; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-btn { margin-top: 14px; padding: 4px 0; border: 0; background: none; font: 600 .95rem var(--body); color: var(--green-700); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(22px, 3.5vw, 44px); background: var(--white); border-radius: 8px; border-top: 4px solid var(--gold); box-shadow: 0 24px 60px rgb(6 26 68 / .09); }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: .95rem; min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b9c4d8; border-radius: 4px; background: var(--white); color: var(--text); font: 400 1rem var(--body); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.full { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot p { color: var(--muted); font-size: .92rem; max-width: 28ch; line-height: 1.45; }
.form-status { font-weight: 600; color: var(--green-700); }
.form-status:empty { display: none; }

/* footer */
.footer { background: var(--navy-950); color: #c8d4ee; padding-top: 64px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 44px; }
.footer img { width: 240px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.legal { padding-block: 22px 28px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .88rem; color: #8fa1c8; }

@media (max-width: 1220px) {
  .menu-btn { display: grid; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100dvh - 80px); overflow: auto; padding: 16px var(--gutter) 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgb(6 26 68 / .14); }
  .menu.open { display: flex; }
  .menu nav { flex-direction: column; gap: 0; }
  .menu nav a { padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .lang { align-self: flex-start; }
  .lang button { padding: 11px 16px; }
}

@media (max-width: 1020px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
  .area { padding: 32px 24px 24px; }
  .area:nth-child(odd) { border-left: 0; padding-left: 0; }
  .area:nth-child(even) { padding-right: 0; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .flow li:nth-child(2)::after { display: none; }
  .creed { grid-template-columns: 1fr; gap: 28px; }
  .creed-item { padding: 0 0 0 36px; }
  .creed-item::before { top: 4px; }
  .creed-item:not(:last-child)::after { left: 6px; right: auto; top: 18px; bottom: -32px; width: 2px; height: auto; }
  .opp-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 24px; }
  .globe-box { justify-self: center; max-width: 520px; }
  .about-in, .services-in, .join-in, .contact-in { grid-template-columns: 1fr; }
  .services .head { position: static; }
}

@media (max-width: 600px) {
  .brand img { width: 180px; }
  .actions .btn { width: 100%; }
  .area-grid, .flow, .form { grid-template-columns: 1fr; }
  .area { border-left: 0; border-bottom: 1px solid var(--line); padding: 28px 0 20px; }
  .area:last-child { border-bottom: 0; }
  .area h3 { min-height: 0; }
  .flow { row-gap: 0; }
  .flow li { padding: 8px 0 34px 70px; min-height: 80px; }
  .flow li:not(:last-child)::after { display: block; top: 48px; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; }
  .serv-list > div { grid-template-columns: 1fr; gap: 6px; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
