:root {
  --blue-950: #003e64;
  --blue-900: #005785;
  --blue-800: #006c9e;
  --blue-700: #0082aa;
  --cyan-500: #05a5b9;
  --cyan-100: #dff8fa;
  --gold-500: #f4b900;
  --gold-200: #ffe793;
  --ink: #173849;
  --muted: #667b86;
  --surface: #ffffff;
  --surface-soft: #f5fbfc;
  --border: rgba(0, 108, 158, 0.14);
  --danger: #c94040;
  --danger-dark: #9f2929;
  --shadow: 0 24px 70px rgba(0, 68, 101, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(5, 165, 185, 0.15), transparent 35%),
    linear-gradient(150deg, #eefbfc 0%, #f8fcfd 46%, #fff9e8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.48;
  pointer-events: none;
}

.ambient-one {
  top: -150px;
  right: -120px;
  background: rgba(0, 130, 170, 0.22);
}

.ambient-two {
  bottom: -170px;
  left: -130px;
  background: rgba(244, 185, 0, 0.18);
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 16px max(24px, env(safe-area-inset-bottom));
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--blue-900), var(--cyan-500) 64%, var(--gold-500));
}

.hero {
  padding: 38px 30px 24px;
  background:
    linear-gradient(180deg, rgba(223, 248, 250, 0.52), transparent 84%),
    var(--surface);
}

.logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 88, 133, 0.1);
}

.brand-logo {
  display: block;
  width: min(100%, 610px);
  max-height: 155px;
  object-fit: contain;
}

.hero-copy {
  max-width: 620px;
  margin: 26px auto 0;
  text-align: center;
}

.eyebrow,
.feature-kicker {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.catalog-header h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-text,
.catalog-header > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.quick-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
}

.info-chip svg {
  width: 16px;
  height: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2bae66;
  box-shadow: 0 0 0 4px rgba(43, 174, 102, 0.14);
}

.info-chip.is-plantao .status-dot {
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(244, 185, 0, 0.17);
}

.priority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 24px 22px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.feature-taxi {
  color: var(--blue-950);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 240, 176, 0.74)),
    var(--gold-200);
  border: 1px solid rgba(219, 160, 0, 0.26);
}

.feature-emergency {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.19), transparent 35%),
    linear-gradient(145deg, var(--danger), var(--danger-dark));
  box-shadow: 0 16px 30px rgba(160, 41, 41, 0.2);
}

.feature-emergency .feature-kicker,
.feature-emergency p {
  color: rgba(255, 255, 255, 0.83);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  border-radius: 15px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.85);
}

.feature-emergency .feature-icon {
  color: var(--danger);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.feature p {
  margin: 8px 0 0;
  color: #58717d;
  font-size: 0.88rem;
}

.feature-action,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue-900);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.feature-emergency .feature-action {
  color: var(--danger-dark);
  background: #fff;
}

.feature-action svg,
.cta-button svg {
  width: 18px;
  height: 18px;
}

.actions {
  display: grid;
  gap: 11px;
  padding: 0 24px 22px;
}

.action-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(0, 77, 113, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.action-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-900), var(--cyan-500));
  box-shadow: 0 15px 28px rgba(0, 108, 158, 0.22);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--blue-900);
  background: var(--cyan-100);
}

.action-primary .action-icon {
  color: var(--blue-900);
  background: #fff;
}

.action-icon svg {
  width: 25px;
  height: 25px;
}

.action-button strong,
.action-button small {
  display: block;
}

.action-button strong {
  font-size: 0.98rem;
}

.action-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.35;
}

.action-primary small {
  color: rgba(255, 255, 255, 0.78);
}

.action-arrow {
  width: 20px;
  height: 20px;
  color: var(--blue-700);
}

.action-primary .action-arrow {
  color: #fff;
}

.schedule-box {
  margin: 0 24px 26px;
  padding: 20px;
  border: 1px dashed rgba(0, 108, 158, 0.28);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.schedule-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.schedule-heading > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--blue-700);
}

.schedule-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1rem;
}

.schedule-heading p,
.schedule-lines p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.schedule-lines {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-left: 36px;
}

.footer {
  padding: 18px 10px 2px;
  text-align: center;
}

.footer a {
  color: #58717d;
  font-size: 0.76rem;
  text-decoration: none;
}

.footer strong {
  color: var(--blue-900);
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 11px 15px;
  border-radius: 12px;
  color: #fff;
  background: rgba(18, 44, 57, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-click-locked {
  pointer-events: none !important;
  opacity: 0.7 !important;
}

/* Catálogo */
.catalog-header {
  position: relative;
  padding: 36px 30px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(223, 248, 250, 0.62), transparent);
}

.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.back-button svg {
  width: 17px;
  height: 17px;
}

.catalog-logo {
  display: block;
  width: min(76%, 420px);
  max-height: 112px;
  margin: 42px auto 22px;
  object-fit: contain;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 0 24px 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 74, 108, 0.06);
}

.service-card-wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.service-number {
  position: absolute;
  top: 12px;
  right: 15px;
  color: rgba(0, 108, 158, 0.12);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--blue-800);
  background: var(--cyan-100);
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-card h2 {
  margin: 16px 0 7px;
  color: var(--blue-950);
  font-size: 1.04rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 24px 26px;
  padding: 23px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.2), transparent 35%),
    linear-gradient(135deg, var(--blue-900), var(--cyan-500));
}

.catalog-cta .feature-kicker,
.catalog-cta p {
  color: rgba(255, 255, 255, 0.8);
}

.catalog-cta h2 {
  margin: 0;
  font-size: 1.18rem;
}

.catalog-cta p {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.cta-button {
  width: auto;
  min-width: 176px;
  color: var(--blue-900);
  background: #fff;
}

@media (hover: hover) {
  .action-button:hover,
  .feature-action:hover,
  .cta-button:hover,
  .back-button:hover {
    transform: translateY(-2px);
  }

  .action-button:hover {
    border-color: rgba(0, 130, 170, 0.32);
    box-shadow: 0 13px 28px rgba(0, 77, 113, 0.1);
  }
}

.action-button:focus-visible,
.feature-action:focus-visible,
.cta-button:focus-visible,
.back-button:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(244, 185, 0, 0.55);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px 10px max(18px, env(safe-area-inset-bottom));
  }

  .card {
    border-radius: 24px;
  }

  .hero {
    padding: 28px 16px 18px;
  }

  .logo-panel {
    min-height: 120px;
    padding: 13px;
    border-radius: 19px;
  }

  .brand-logo {
    max-height: 118px;
  }

  .hero-copy {
    margin-top: 21px;
  }

  .hero h1,
  .catalog-header h1 {
    font-size: 1.7rem;
  }

  .priority-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 16px;
  }

  .feature {
    padding: 19px;
  }

  .actions {
    padding: 0 14px 16px;
  }

  .action-button {
    grid-template-columns: 44px minmax(0, 1fr) 19px;
    gap: 11px;
    min-height: 72px;
    padding: 12px;
  }

  .action-icon {
    width: 44px;
    height: 44px;
  }

  .schedule-box {
    margin: 0 14px 18px;
    padding: 17px;
  }

  .schedule-lines {
    padding-left: 0;
  }

  .catalog-header {
    padding: 28px 17px 22px;
  }

  .back-button {
    top: 19px;
    left: 16px;
  }

  .catalog-logo {
    width: min(88%, 390px);
    margin-top: 47px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
  }

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: 0;
  }

  .catalog-cta {
    grid-template-columns: 1fr;
    margin: 0 14px 18px;
    padding: 20px;
  }

  .cta-button {
    width: 100%;
  }
}

@media (max-width: 370px) {
  .hero h1,
  .catalog-header h1 {
    font-size: 1.5rem;
  }

  .action-button small {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Mantém o texto legível no bloco vermelho, mesmo após a atualização dinâmica do JavaScript. */
.feature.feature-emergency p {
  color: rgba(255, 255, 255, 0.86);
}

/* Ajustes da versão 20260715-3 */
.emergency-action-button {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.action-icon-gold {
  color: #8b6500;
  background: #fff3c4;
}

.action-icon-emergency {
  color: var(--danger-dark);
  background: #ffe8e8;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  margin-top: 18px;
  padding: 10px 13px;
  border: 1px solid rgba(0, 108, 158, 0.16);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--cyan-500));
  box-shadow: 0 9px 18px rgba(0, 108, 158, 0.15);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.service-whatsapp svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (hover: hover) {
  .service-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 24px rgba(0, 108, 158, 0.2);
  }
}

.service-whatsapp:focus-visible,
.emergency-action-button:focus-visible {
  outline: 3px solid rgba(244, 185, 0, 0.55);
  outline-offset: 3px;
}
