:root {
  --navy: #071d3b;
  --navy-soft: #123a6b;
  --red: #ef2f3d;
  --white: #ffffff;
  --ice: #f4f8fb;
  --line: rgba(255, 255, 255, 0.24);
  --ink: #102033;
  --muted: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 0%, rgba(239, 47, 61, 0.2), transparent 24rem),
    linear-gradient(160deg, #020814 0%, #061326 42%, #020814 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.links-page {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 34px 16px 72px;
}

.brand-header {
  display: grid;
  place-items: center;
  padding: 0 0 20px;
}

.brand-header img {
  width: min(190px, 48vw);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
}

.showroom-links {
  display: grid;
  gap: 18px;
}

.showroom-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 286px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: #101010;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.showroom-card:hover {
  border-color: rgba(255, 255, 255, 0.46);
  transform: translateY(-2px);
}

.showroom-card::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08)),
    var(--card-image) center/cover;
  opacity: 0.98;
}

.catalog-card {
  --card-image: url("assets/banner-catalogo.png");
}

.service-card {
  --card-image: url("assets/banner-atendimento.png");
}

.booking-card {
  --card-image: url("assets/banner-agendamento.png");
}

.location-card {
  --card-image: url("assets/banner-localizacao.png");
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 29, 59, 0.72), rgba(7, 29, 59, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
}

.card-cta {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  width: min(360px, calc(100% - 42px));
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
}

.card-cta strong {
  justify-self: center;
  min-width: 260px;
  padding: 8px 16px;
  border-radius: 4px 4px 0 0;
  background: var(--navy-soft);
  color: var(--white);
  font-size: clamp(0.86rem, 2.4vw, 1.2rem);
  font-weight: 800;
  line-height: 1;
}

.catalog-card .card-cta strong,
.booking-card .card-cta strong {
  background: var(--red);
}

.card-cta span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(16, 32, 51, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: clamp(0.86rem, 2.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.card-cta span::before,
.card-cta span::after {
  color: var(--red);
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .links-page {
    padding-inline: 12px;
  }

  .showroom-card {
    min-height: 228px;
  }

  .card-cta {
    bottom: 18px;
  }

}

@media (max-width: 540px) {
  .brand-header img {
    width: min(148px, 44vw);
  }

  .showroom-links {
    gap: 12px;
  }

  .showroom-card {
    min-height: 190px;
    border-width: 2px;
  }

  .card-cta {
    bottom: 12px;
    width: min(310px, calc(100% - 24px));
  }

  .card-cta strong {
    min-width: 210px;
    padding: 7px 12px;
  }

  .card-cta span {
    min-height: 34px;
    padding-inline: 12px;
  }

}
