*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: rgb(12, 31, 63);
  --primary-hover: rgb(8, 22, 48);
  --white: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--primary);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 2rem 1.5rem;
}

.content .spacer {
  width: 100%;
  height: 0;
}

/* —— Top —— */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.top h1 {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-inline: auto;
  color: var(--white);
}

.top h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.55;
  text-align: center;
  margin-top: 1.75rem;
  max-width: 52rem;
  color: var(--white);
}

/* —— Bottom / Cards —— */
.content > .bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background-color: transparent;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  background-color: var(--primary-hover);
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(2.75rem, 5vw, 4.25rem);
  object-fit: contain;
}

.logo-acf img {
  filter: brightness(0) invert(1);
}

.logo-accs img {
  mix-blend-mode: screen;
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  line-height: 1.45;
}

.card-info p {
  color: var(--white);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 1.5rem 1.25rem;
    gap: 5rem !important;
  }

  .content .spacer {
    display: none;
  }

  .top h1 {
    letter-spacing: 0.08em;
  }

  .top h2 br {
    display: none;
  }

  .card {
    padding: 1.75rem 1.25rem;
  }
}
