:root {
  --brand-red: #f40000;
  --brand-red-dark: #c40000;
  --ink: #242326;
  --muted: #6f6b6b;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --line: #e7e7e7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  width: calc(100% - 32px);
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 0 48px;
  text-align: center;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: min(100%, 330px);
  height: auto;
}

.eyebrow {
  margin-top: 18px;
  color: var(--brand-red-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consultation {
  margin: 38px auto 0;
  padding: 28px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgb(0 0 0 / 8%);
}

.title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  line-height: 1.1;
  font-weight: 800;
}

.text {
  margin: 10px 0 0;
  color: var(--brand-red-dark);
  font-size: 1rem;
  font-weight: 700;
}

.supporting-text {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.button-container {
  display: grid;
  gap: 12px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 18px;
  border: 2px solid var(--brand-red);
  border-radius: 12px;
  color: #fff;
  background: var(--brand-red);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.document-link:hover,
.document-link:focus-visible {
  background: var(--brand-red-dark);
  box-shadow: 0 8px 18px rgb(196 0 0 / 18%);
  transform: translateY(-2px);
}

.document-link:focus-visible {
  outline: 3px solid #ffb4b4;
  outline-offset: 3px;
}

.document-label {
  font-size: 1rem;
  font-weight: 800;
}

.document-action {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.92;
}

.group-title {
  margin: 30px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
}

.group-title:first-of-type {
  margin-top: 4px;
}

.group-note {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
}

.document-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.document-meta {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}

.document-link--outline {
  color: var(--brand-red-dark);
  background: #fff;
}

.document-link--outline:hover,
.document-link--outline:focus-visible {
  color: #fff;
}

.emergency {
  margin: 22px auto 0;
  padding: 20px 18px;
  border-radius: 14px;
  background: #fff4f4;
  text-align: left;
}

.emergency-title {
  margin: 0 0 10px;
  color: var(--brand-red-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.emergency-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.emergency-list a {
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.emergency-list strong {
  display: inline-block;
  min-width: 118px;
  color: var(--brand-red-dark);
}

.emergency-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  margin-top: auto;
  padding: 24px 16px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  max-width: 720px;
  margin: 0 auto;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--brand-red-dark);
  font-weight: 800;
  text-decoration: none;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .content {
    padding-top: 44px;
  }

  .consultation {
    padding: 34px 44px 30px;
  }

  .document-link {
    padding-inline: 22px;
  }

  .emergency {
    padding: 22px 44px;
  }
}

@media print {
  .consultation,
  .document-link {
    box-shadow: none;
  }

  .document-link {
    color: #000;
    background: #fff;
    border-color: #999;
  }

  .document-action {
    display: none;
  }

  .document-link::after {
    content: "fds.levadieselmarioroberto.com.br/" attr(href);
    font-size: 0.7rem;
  }
}
