@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&family=Poppins:wght@300;400;700&display=swap');

:root {
  --blue: #015bd7;
  --blue-dark: #0146a4;
  --blue-soft: #edf6fe;
  --ink: #212529;
  --muted: #667085;
  --line: #dee2e6;
  --surface: #ffffff;
  --page: #ffffff;
  --footer: #f1f1f1;
  --green: #168a48;
  --green-soft: #eefaf3;
  --amber: #a85b00;
  --amber-soft: #fff7e8;
  --red: #bd2c35;
  --red-soft: #fff1f2;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shell: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input { font: inherit; }

.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }
.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-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; background: var(--surface); box-shadow: 0 1px 0 rgba(33, 37, 41, 0.08); }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 54px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.topbar-inner > a, .top-contact { font-size: 0.875rem; }
.top-contact { margin-right: auto; color: #444b54; }
.site-search { display: flex; width: 210px; }
.site-search input { min-width: 0; width: 100%; border: 1px solid var(--line); border-right: 0; border-radius: 4px 0 0 4px; padding: 8px 10px; }
.site-search button { width: 42px; color: white; background: var(--blue); border: 0; border-radius: 0 4px 4px 0; cursor: pointer; }
.location-button { padding: 8px 12px; color: var(--ink); background: white; border: 1px solid #b5bbc3; border-radius: 4px; cursor: pointer; }

.mainbar { min-height: 120px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 160px; height: auto; max-height: 82px; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex: 1; }
.nav-group { position: relative; }
.nav-group summary { list-style: none; cursor: pointer; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary > a, .secondary-link { display: block; padding: 13px 4px; color: #6e6e6e; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.nav-group summary::after { content: none; }
.nav-group summary > a { padding-right: 4px; }
.nav-dropdown { position: absolute; z-index: 20; top: calc(100% + 12px); left: 0; display: grid; min-width: 310px; max-height: min(66vh, 560px); padding: 10px; overflow-y: auto; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-group:not([open]) .nav-dropdown { display: none; }
.nav-dropdown a { padding: 8px 10px; border-radius: 3px; font-size: 0.9rem; }
.nav-dropdown a:hover { color: white; background: var(--blue); }
.quote-button, .verify-button, .download-button { color: white; background: var(--blue); border: 0; border-radius: 4px; font-weight: 700; }
.quote-button { flex: 0 0 auto; min-width: 130px; padding: 12px 16px; text-align: center; text-transform: uppercase; }
.quote-button:hover, .download-button:hover { color: white; background: var(--blue-dark); }
.menu-button { display: none; width: 46px; height: 46px; padding: 9px 7px; background: transparent; border: 0; cursor: pointer; }
.menu-button span { display: block; width: 30px; height: 2px; margin: 6px auto; background: var(--blue); }

.verification-main { min-height: 520px; padding: 30px 20px 70px; background: #ffffff; }
.verification-card { width: min(100%, 930px); min-height: 298px; margin: 0 auto; padding: 95px 33px 78px; background: #ffffff; border: 1px solid #dddddd; border-radius: 4px; box-shadow: var(--shadow); }
.verification-form { display: grid; grid-template-columns: minmax(0, 404px) minmax(0, 317px); align-items: start; justify-content: space-between; gap: 28px; margin: 0; }
.field-group { display: grid; justify-items: start; gap: 0; }
.field-group label { margin-bottom: 1px; color: #111111; font-size: 1.05rem; font-weight: 400; }
.field-group input { width: 321px; max-width: 100%; height: 39px; min-height: 39px; padding: 6px 12px; color: var(--ink); background: #ffffff; border: 1px solid #b8c1cc; border-radius: 4px; letter-spacing: 0; text-transform: none; }
.field-group input:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.field-group small { display: block; max-width: 404px; margin-top: 5px; color: #6c757d; font-size: 0.8rem; line-height: 1.45; }
.verify-button { width: 317px; min-height: 49px; padding: 10px 17px; font-size: 1.2rem; font-weight: 400; cursor: pointer; white-space: nowrap; }
.verify-button:hover { background: var(--blue-dark); }
.result { margin-top: 47px; padding: 0 15px; }
.result-banner { display: flex; align-items: center; gap: 17px; min-height: 64px; padding: 10px 27px; border: 1px solid; border-radius: 4px; }
.result-banner strong { display: block; font-size: 1.85rem; font-weight: 400; line-height: 1.25; }
.result-icon { display: grid; flex: 0 0 auto; width: 29px; height: 34px; place-items: center; font-size: 2rem; font-weight: 800; line-height: 1; }
.result-vigente { color: #006522; background: #d5efdd; border-color: #b8dfc4; }
.result-suspendido, .result-warning { color: var(--amber); background: var(--amber-soft); border-color: #f0c47c; }
.result-retirado, .result-vencido, .result-error { color: var(--red); background: var(--red-soft); border-color: #efb0b5; }
.download-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 8px 13px; font-size: 1rem; font-weight: 400; box-shadow: 0 0 0 3px rgba(1, 91, 215, 0.28); }
.download-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { color: #4d5660; background: var(--footer); }
.footer-grid { display: grid; grid-template-columns: 2.1fr 0.9fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding-block: 70px 52px; }
.footer-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-grid h2 { margin: 0 0 12px; color: var(--ink); font-size: 1rem; }
.footer-grid h3 { margin: 12px 0 0; color: var(--ink); font-size: 0.85rem; }
.footer-grid p { margin: 0 0 10px; }
.footer-brand { display: block; width: min(100%, 190px); margin-bottom: 14px; }
.footer-brand img { display: block; width: 100%; height: auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; width: 100%; margin-top: 16px; }
.legal-copy { max-width: 600px; font-size: 0.82rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid #d5d9de; font-size: 0.84rem; }
.footer-bottom p { margin: 0; }

.location-dialog { width: min(calc(100% - 32px), 1100px); max-height: 86vh; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35); }
.location-dialog::backdrop { background: rgba(12, 24, 44, 0.68); }
.dialog-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: white; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.25rem; }
.dialog-header button { display: grid; width: 38px; height: 38px; place-items: center; background: white; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 28px; }
.location-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.location-grid h3 { margin: 0 0 8px; color: var(--blue); }
.location-grid a { font-size: 0.9rem; }

@media (min-width: 1121px) and (max-width: 1399px) {
  .mainbar { gap: 20px; }
  .main-nav { order: 1; gap: 10px; }
  .main-nav .secondary-link { display: none; }
  .menu-button { display: block; order: 2; flex: 0 0 auto; }
  .quote-button { order: 3; }
}

@media (max-width: 1120px) {
  .mainbar { min-height: 84px; }
  .menu-button { display: block; margin-left: auto; }
  .main-nav { position: absolute; inset: 100% 0 auto; display: none; align-items: stretch; padding: 14px 20px 24px; background: white; border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20, 35, 60, 0.12); }
  .main-nav.is-open { display: grid; }
  .nav-group summary > a, .secondary-link { padding: 10px 0; }
  .nav-group summary::after { right: 8px; top: 9px; }
  .nav-dropdown { position: static; min-width: 0; max-height: 260px; margin: 3px 0 10px; box-shadow: none; }
  .quote-button { display: none; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: static; }
  .topbar-inner { min-height: 48px; gap: 12px; }
  .top-contact, .topbar-inner > a, .site-search { display: none; }
  .location-button { margin-left: auto; }
  .brand-logo { width: 150px; max-height: 74px; }
  .verification-main { min-height: 0; padding: 22px 14px 60px; }
  .verification-card { min-height: 0; padding: 46px 28px; }
  .verification-form { grid-template-columns: 1fr; gap: 24px; margin: 0; }
  .field-group, .field-group input, .verify-button { width: 100%; }
  .verify-button { width: 100%; white-space: normal; }
  .result { margin-top: 36px; padding: 0; }
  .result-banner { padding: 12px 18px; }
  .result-banner strong { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 52px 38px; }
  .footer-company { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 4px; }
  .footer-bottom { flex-direction: column; }
  .location-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .brand-logo { width: 140px; }
  .footer-grid, .location-grid { grid-template-columns: 1fr; }
  .footer-company { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
