:root {
  --navy-950: #071b38;
  --navy-850: #0d2a4d;
  --blue-650: #1269ad;
  --cyan-500: #21a7c8;
  --red-600: #c92f3c;
  --green-650: #17705d;
  --ink: #17202f;
  --muted: #5c6878;
  --soft: #f3f6fa;
  --soft-blue: #e9f4fb;
  --line: #dce5ee;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(7, 27, 56, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -44px;
  z-index: 100;
  background: var(--white);
  color: var(--navy-950);
  border: 2px solid var(--blue-650);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__item svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-500);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: "Oswald", Arial, sans-serif;
  color: var(--navy-950);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--soft-blue);
  color: var(--blue-650);
}

.site-nav .nav-cta {
  background: var(--red-600);
  color: var(--white);
  margin-left: 8px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--navy-950);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-950);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background: url("assets/hero-ambulance.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(7, 27, 56, 0.94) 0%, rgba(7, 27, 56, 0.78) 42%, rgba(7, 27, 56, 0.24) 100%),
    linear-gradient(180deg, rgba(7, 27, 56, 0.1) 0%, rgba(7, 27, 56, 0.36) 100%);
}

.hero__content {
  position: relative;
  padding: 74px 0 98px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.site-footer h2 {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.06;
}

.hero h1 {
  max-width: 780px;
  font-size: 4rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--red-600);
  color: var(--white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #a9222d;
}

.button--light {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--white);
  color: var(--navy-950);
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.proof-strip article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 122px;
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.proof-strip article:last-child {
  border-right: 1px solid var(--line);
}

.proof-strip svg {
  width: 34px;
  height: 34px;
  color: var(--blue-650);
  flex: 0 0 auto;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--navy-950);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.proof-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section {
  padding: 86px 0;
}

.section--muted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section h2 {
  color: var(--navy-950);
  font-size: 2.4rem;
}

.section p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: start;
}

.split__copy p:not(.section-kicker) {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.split__panel {
  border-top: 5px solid var(--red-600);
  border-radius: var(--radius);
  background: var(--navy-950);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 28px;
}

.facts-list {
  margin: 0;
}

.facts-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.facts-list div:first-child {
  padding-top: 0;
}

.facts-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts-list dt {
  color: var(--cyan-500);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.document-card,
.person-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  min-height: 264px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(18, 105, 173, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card svg {
  width: 38px;
  height: 38px;
  color: var(--red-600);
}

.service-card h3 {
  margin: 22px 0 10px;
  color: var(--navy-950);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.service-card p {
  margin: 0;
  font-size: 0.94rem;
}

.callout {
  background: var(--navy-950);
  color: var(--white);
}

.callout .section-kicker {
  color: #7bd9ef;
}

.callout h2 {
  color: var(--white);
}

.callout p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.callout__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.filiacao {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.filiacao__copy p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.document-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy-950);
  font-weight: 800;
  padding: 12px 14px;
}

.document-link svg {
  color: var(--green-650);
}

.lead-form {
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form label span {
  color: var(--navy-950);
  font-size: 0.84rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lead-form textarea {
  resize: vertical;
  min-height: 118px;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue-650);
  box-shadow: 0 0 0 3px rgba(18, 105, 173, 0.14);
}

.form-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  margin: 18px 0 20px;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--blue-650);
  flex: 0 0 auto;
}

.form-check span {
  color: var(--muted) !important;
  font-weight: 600 !important;
  line-height: 1.45;
}

.form-submit {
  width: 100%;
  position: relative;
}

.form-submit[disabled],
.form-submit[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.form-submit[disabled]:hover {
  transform: none;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--green-650);
  font-weight: 800;
}

.form-status:empty {
  display: none;
}

.form-status[data-form-status-tone="error"] {
  color: var(--red-600);
}

.form-status[data-form-status-tone="success"] {
  color: var(--green-650);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.document-card {
  min-height: 162px;
  padding: 24px;
  border-left: 5px solid var(--blue-650);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.document-card:hover,
.document-card:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.document-card strong,
.document-card span {
  display: block;
}

.document-card strong {
  color: var(--navy-950);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.document-card span {
  margin-top: 12px;
  color: var(--muted);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.person-card > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue-650);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.person-card h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.1rem;
}

.person-card p {
  margin: 2px 0 0;
}

.site-footer {
  background: var(--navy-950);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
  padding: 54px 0;
}

.footer-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer small,
.footer-list,
.footer-actions {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  max-width: 320px;
  margin: 0 0 8px;
}

.site-footer h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li + li {
  margin-top: 10px;
}

.footer-list a:hover,
.footer-actions a:hover {
  color: var(--white);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-actions a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  padding: 16px 0;
}

:focus-visible {
  outline: 3px solid rgba(33, 167, 200, 0.55);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .topbar__inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .site-header__inner {
    min-height: 76px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 570px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: 3rem;
  }

  .proof-strip__grid,
  .service-grid,
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip article:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .split,
  .filiacao,
  .callout__inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-heading__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.admin-panel__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 0 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-panel__search:focus-within {
  border-color: var(--blue-650);
  box-shadow: 0 0 0 3px rgba(18, 105, 173, 0.14);
}

.admin-panel__search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: 0 0 auto;
}

.admin-panel__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 0;
  outline: none;
  color: var(--ink);
  font-size: 0.94rem;
}

.admin-panel__stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-panel__stats strong {
  color: var(--navy-950);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.15rem;
  margin-right: 4px;
}

.button--ghost {
  background: transparent;
  color: var(--navy-950);
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 9px 14px;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--soft);
  border-color: var(--blue-650);
  color: var(--blue-650);
}

.button--danger {
  color: var(--red-600);
  border-color: rgba(201, 47, 60, 0.3);
}

.button--danger:hover,
.button--danger:focus-visible {
  background: var(--red-600);
  color: var(--white);
  border-color: var(--red-600);
}

.admin-panel__table-wrap {
  overflow-x: auto;
}

.admin-panel__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-panel__table thead th {
  text-align: left;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.admin-panel__table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.admin-panel__table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-panel__table tbody tr:hover {
  background: var(--soft-blue);
}

.admin-panel__table .cve-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-panel__table .cve-pill--sim {
  background: rgba(23, 112, 93, 0.12);
  color: var(--green-650);
}

.admin-panel__table .cve-pill--nao {
  background: rgba(201, 47, 60, 0.12);
  color: var(--red-600);
}

.admin-panel__table .row-actions {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.admin-panel__table .row-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-panel__table .row-actions button:hover,
.admin-panel__table .row-actions button:focus-visible {
  background: var(--soft);
  border-color: var(--blue-650);
  color: var(--blue-650);
}

.admin-panel__table .row-actions .remove-btn:hover,
.admin-panel__table .row-actions .remove-btn:focus-visible {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--white);
}

.admin-panel__empty {
  padding: 56px 24px 60px;
  text-align: center;
  color: var(--muted);
}

.admin-panel__empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  color: var(--blue-650);
  opacity: 0.55;
}

.admin-panel__empty h3 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.25rem;
}

.admin-panel__empty p {
  margin: 0;
  max-width: 360px;
  margin-inline: auto;
  font-size: 0.95rem;
}

.admin-panel__status {
  min-height: 22px;
  margin: 0;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--green-650);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-panel__status:empty {
  display: none;
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .topbar__item {
    white-space: normal;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero__overlay {
    background: rgba(7, 27, 56, 0.82);
  }

  .hero__content {
    padding: 48px 0 62px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: 1.88rem;
  }

  .hero__lead {
    max-width: 34ch;
    font-size: 0.94rem;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .proof-strip__grid,
  .service-grid,
  .document-grid,
  .people-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip article,
  .proof-strip article:last-child {
    min-height: auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 22px 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .facts-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .lead-form {
    padding: 18px;
  }

  .person-card {
    align-items: flex-start;
  }
}
