:root {
  --primary: #0E2D5F;
  --secondary: #FFBF2C;
  --white: #fff;
  --muted: #bdcce2;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--primary); color: var(--white); }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.page { min-height: 100svh; display: flex; flex-direction: column; position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 42%, #173f78 0, transparent 47%); }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 6px; }
.brand-symbol { width: 44px; height: auto; }
.brand-wordmark { width: 202px; height: auto; }
.heritage { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; color: #e0e8f5; }
.heritage > span { width: 7px; height: 7px; background: var(--secondary); border-radius: 50%; }
.hero { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-block: 60px 80px; }
.maintenance-label { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: .15em; border: 1px solid #ffffff30; padding: 10px 13px; border-radius: 6px; }
.maintenance-label > span { width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; }
h1 { font-size: clamp(48px, 5.5vw, 76px); line-height: 1.06; letter-spacing: -.045em; margin: 28px 0 22px; font-weight: 750; }
h1 em { color: var(--secondary); font-style: normal; }
.hero-description { color: var(--muted); max-width: 470px; font-size: 17px; line-height: 1.8; margin: 0 0 32px; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; background: var(--secondary); color: var(--primary); padding: 15px 22px; border-radius: 8px; font-size: 15px; font-weight: 750; text-decoration: none; box-shadow: 0 8px 28px #061a3c25; transition: background .2s, transform .2s; }
.contact-button > svg { width: 24px; height: 24px; }
.button-arrow { margin-left: 15px; font-size: 21px; line-height: 1; }
.contact-button:hover { background: #ffcf61; transform: translateY(-2px); }
.contact-caption { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.brand-art { position: relative; min-height: 460px; display: grid; place-items: center; }
.brand-orbit { position: absolute; width: 390px; height: 390px; max-width: 100%; border: 1px solid #ffffff19; border-radius: 50%; }
.brand-orbit::after { content: ""; position: absolute; inset: 28px; border: 1px dashed #ffffff17; border-radius: 50%; }
.orbit-point { position: absolute; top: 16%; right: 15%; width: 11px; height: 11px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 7px #ffbf2c13; }
.hero-symbol { z-index: 1; width: min(305px, 80%); height: auto; filter: drop-shadow(0 28px 24px #03152c55); transform: rotate(-5deg); }
.art-signature { position: absolute; bottom: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.art-signature > span { width: 25px; height: 1px; background: var(--secondary); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; border-top: 1px solid #ffffff1c; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer strong { font-weight: 600; color: #fff; }
.site-domain { color: var(--secondary); letter-spacing: .02em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 5px; }
.contact-button:focus-visible { outline-color: white; }
body:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog { color-scheme: light; color: var(--primary); background: white; border: 0; padding: 0; border-radius: 18px; width: min(580px, calc(100% - 32px)); height: min(850px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); max-width: none; box-shadow: 0 30px 100px #020f2877; overflow: hidden; }
.contact-dialog[open] { display: flex; flex-direction: column; }
.contact-dialog::backdrop { background: #03142cbb; backdrop-filter: blur(7px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 24px; border-bottom: 1px solid #e6ebf1; flex-shrink: 0; }
.dialog-eyebrow { font-size: 9px; font-weight: 750; letter-spacing: .12em; color: #59708f; }
.dialog-heading h2 { font-size: 18px; margin: 6px 0 0; font-weight: 700; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; color: var(--primary); background: #f0f4f9; border: 0; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.dialog-close svg { width: 21px; height: 21px; }
.dialog-close:hover { background: #e4ebf5; }
.contact-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: white; }
.contact-loading { font-size: 13px; color: #526782; padding: 8px 24px; }
.contact-loading[hidden] { display: none; }
.dialog-fallback { text-align: center; font-size: 11px; padding: 13px 15px; margin: 0; border-top: 1px solid #e6ebf1; color: #61728a; flex-shrink: 0; }
.dialog-fallback a { color: var(--primary); font-weight: 650; text-underline-offset: 3px; }
.contact-dialog a:focus-visible, .contact-dialog button:focus-visible { outline-color: var(--primary); outline-offset: 2px; }
@media (min-width: 900px) and (min-height: 850px) { .hero { padding-block: 95px 115px; } }
@media (max-width: 800px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 25px; grid-template-columns: 1.2fr .8fr; padding-block: 60px; }
  .brand-art { min-height: 340px; }
  .brand-orbit { width: 290px; height: 290px; }
  .hero-symbol { width: 240px; max-width: 90%; }
  .hero-description { font-size: 16px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 40px); }
  .site-header { padding-top: 14px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-symbol { width: 32px; }
  .brand-wordmark { width: 158px; }
  .heritage { font-size: 10px; gap: 6px; }
  .heritage > span { width: 5px; height: 5px; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 30px; gap: 20px; }
  .hero-copy { text-align: center; }
  h1 { font-size: clamp(42px, 10.5vw, 60px); margin: 22px 0 18px; }
  .maintenance-label { font-size: 9px; }
  .hero-description { font-size: 15px; margin-inline: auto; max-width: 380px; margin-bottom: 25px; }
  .contact-button { min-height: 54px; }
  .brand-art { min-height: 255px; }
  .hero-symbol { width: 170px; }
  .brand-orbit { width: 230px; height: 230px; }
  .orbit-point { top: 14%; right: 23%; width: 8px; height: 8px; }
  .art-signature { font-size: 10px; }
  .site-footer { flex-direction: column; gap: 9px; text-align: center; padding-block: 20px; font-size: 11px; }
  .dialog-heading { padding: 16px 18px; }
  .dialog-heading h2 { font-size: 16px; }
}
@media (max-width: 350px) {
  .brand-wordmark { width: 140px; }
  .brand-symbol { width: 27px; }
  .heritage { font-size: 9px; }
  h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .brand-art { animation: arrive .55s ease-out both; }
  .brand-art { animation-delay: .1s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* A composição acompanha a altura disponível, sem esconder conteúdo da página. */
.hero { min-height: 0; padding-block: clamp(16px, 4svh, 60px); }
.brand-art { min-height: clamp(260px, 46svh, 460px); }
.hero-symbol { width: min(305px, 34svh, 80%); }
.brand-orbit { width: min(390px, 44svh); height: min(390px, 44svh); }
@media (min-width: 601px) and (max-height: 760px) {
  .site-header { padding-top: 12px; }
  .brand-wordmark { width: 165px; }
  .brand-symbol { width: 36px; }
  .hero { padding-block: 14px; }
  h1 { font-size: clamp(38px, 7.2svh, 58px); margin: 18px 0 14px; }
  .hero-description { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
  .maintenance-label { padding: 8px 11px; }
  .contact-button { min-height: 48px; padding-block: 12px; }
  .contact-caption { margin-top: 10px; font-size: 11px; }
  .site-footer { padding-block: 16px; }
}
@media (max-width: 600px) {
  .hero { padding-block: clamp(12px, 2svh, 24px); gap: 6px; }
  h1 { font-size: clamp(32px, min(10.5vw, 6svh), 60px); margin: 18px 0 14px; }
  .hero-description { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
  .brand-art { min-height: clamp(105px, 24svh, 230px); }
  .hero-symbol { width: clamp(75px, 18svh, 170px); }
  .brand-orbit { width: min(210px, 24svh); height: min(210px, 24svh); }
  .contact-button { min-height: 48px; padding-block: 12px; }
  .contact-caption { margin-top: 10px; font-size: 11px; }
  .site-footer { padding-block: 14px; gap: 6px; }
}
@media (max-width: 600px) and (max-height: 620px) {
  .brand-art { display: none; }
  .hero { gap: 0; }
}
@media (min-width: 601px) and (max-height: 500px) {
  .brand-art { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 10px; }
  .hero-copy { max-width: 760px; }
  h1 { font-size: clamp(30px, 4.7vw, 44px); margin: 12px 0; }
  h1 br { display: none; }
  h1 em::before { content: " "; }
  .hero-description { max-width: 700px; margin-bottom: 14px; }
  .maintenance-label { padding: 6px 10px; font-size: 9px; }
  .contact-caption { display: none; }
  .site-footer { padding-block: 12px; }
}

/* Marca superior maior, com espaço próprio para leitura do texto original. */
.site-header .brand { gap: 16px; }
.site-header .brand-symbol { width: 72px; flex-shrink: 0; }
.site-header .brand-wordmark { width: 320px; flex-shrink: 0; }
@media (min-width: 601px) and (max-height: 760px) {
  .site-header .brand { gap: 14px; }
  .site-header .brand-symbol { width: 58px; }
  .site-header .brand-wordmark { width: 270px; }
}
@media (max-width: 600px) {
  .site-header { justify-content: center; }
  .site-header .brand { gap: 12px; }
  .site-header .brand-symbol { width: 60px; }
  .site-header .brand-wordmark { width: min(250px, calc(100vw - 114px)); }
  .site-header .heritage { display: none; } /* Desde 2002 permanece no rodapé. */
}
@media (max-width: 600px) and (min-height: 621px) and (max-height: 700px) {
  .brand-art { min-height: clamp(80px, 18svh, 126px); }
  .hero-symbol { width: clamp(62px, 13svh, 96px); }
  .brand-orbit { width: 16svh; height: 16svh; }
}
@media (min-width: 601px) and (max-height: 500px) {
  .site-header .brand-symbol { width: 50px; }
  .site-header .brand-wordmark { width: 230px; }
}

@media (max-width: 600px) and (max-height: 500px) { .site-header { padding-top: 8px; } }
