:root {
  --red-primary: #c70000;
  --red-dark: #800000;
  --background-light: #F6F4EF;
  --text-dark: #2c2c2c;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estrutura geral */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container principal */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Cabeçalho */
.tittle {
  height: 30vh;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

.tittle img {
  height: 80px;
  margin-bottom: 0.2rem;
  user-select: none;
}

.tittle h1 {
  font-size: 1.8rem;
  color: var(--red-primary);
  font-weight: bold;
}

.tittle p {
  font-size: 1.2rem;
  color: var(--red-dark);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Layout principal */
.columns {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  gap: 6rem;
  padding: 2rem;
  flex-wrap: wrap;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Cards */
.card {
  background-color: #fffdfa;
  border: 1px solid var(--text-dark);
  border-radius: 16px;
  width: 300px;
  height: 380px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Conteúdo do card */
.icon {
  font-size: 3.5rem;
  color: var(--red-primary);
}

.card h2 {
  font-size: 1.4rem;
  color: var(--red-primary);
  margin-top: 0.5rem;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem 0;
}

/* Botões */
.btn {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background-color: var(--red-primary);
  box-shadow: 0 4px 8px rgba(199, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(199, 0, 0, 0.4);
}

/* Rodapé */
.footer {
  background-color: var(--red-primary);
  color: white;
  text-align: center;
  padding: 1rem;
  height: 7vh;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ============================================================= */
/* 📱 MOBILE PEQUENO — 320px a 359px */
/* ============================================================= */
@media (max-width: 359px) {
  .tittle img {
    height: 60px;
  }

  .tittle h1 {
    font-size: 1.3rem;
  }

  .tittle p {
    font-size: 1rem;
  }

  .columns {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    height: auto;
  }

  .card {
    width: 95%;
    height: auto;
    padding: 1.5rem;
  }

  .icon {
    font-size: 2.5rem;
  }

  .btn {
    font-size: 0.9rem;
  }
}

/* ============================================================= */
/* 📱 MOBILE MÉDIO — 360px a 374px */
/* ============================================================= */
@media (min-width: 360px) and (max-width: 374px) {
  .columns {
    flex-direction: column;
    gap: 2rem;
    height: auto;
  }

  .card {
    width: 90%;
    height: auto;
  }

  .icon {
    font-size: 3rem;
  }
}

/* ============================================================= */
/* 📱 MOBILE PADRÃO — 375px a 425px */
/* ============================================================= */
@media (min-width: 375px) and (max-width: 425px) {
  .tittle img {
    height: 70px;
  }

  .tittle h1 {
    font-size: 1.5rem;
  }

  .columns {
    flex-direction: column;
    gap: 2rem;
    height: auto;
  }

  .card {
    width: 90%;
    height: auto;
    max-width: 330px;
  }
}

/* ============================================================= */
/* 📱 MOBILE GRANDE / PEQUENO TABLET — 426px a 767px */
/* ============================================================= */
@media (min-width: 426px) and (max-width: 767px) {
  .tittle h1 {
    font-size: 1.6rem;
  }

  .columns {
    flex-direction: column;
    gap: 2rem;
    height: auto;
  }

  .card {
    width: 85%;
    max-width: 350px;
    height: auto;
  }
}

/* ============================================================= */
/* 💻 TABLET MÉDIO — 768px a 1023px */
/* ============================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .tittle {
    height: auto;
  }

  .columns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    height: auto;
  }

  .card {
    width: 260px;
    height: 340px;
  }
}

/* ============================================================= */
/* 💻 NOTEBOOK / DESKTOP MÉDIO — 1024px a 1365px */
/* ============================================================= */
@media (min-width: 1024px) and (max-width: 1365px) {
  .columns {
    max-width: 900px;
    gap: 4rem;
    height: 60vh;
  }

  .card {
    width: 280px;
    height: 360px;
  }
}

/* ============================================================= */
/* 🖥️ DESKTOP GRANDE — 1366px a 1919px */
/* ============================================================= */
@media (min-width: 1366px) and (max-width: 1919px) {
  .columns {
    max-width: 1200px;
    gap: 5rem;
    height: 60vh;
  }

  .card {
    width: 300px;
    height: 320px;
  }
}

/* ============================================================= */
/* 🖥️ ULTRAWIDE — 1920px ou superior */
/* ============================================================= */
@media (min-width: 1920px) {
  .columns {
    max-width: 1400px;
    gap: 6rem;
    padding: 4rem;
  }

  .card {
    width: 320px;
    height: 400px;
    padding: 2.5rem;
  }

  .tittle img {
    height: 100px;
  }

  .tittle h1 {
    font-size: 2.2rem;
  }

  .tittle p {
    font-size: 1.4rem;
  }

  .btn {
    font-size: 1.1rem;
  }
}
