:root {
  --ink: #071820;
  --teal: #009bd3;
  --green: #8fcf50;
  --yellow: #f2e500;
  --paper: #f7f8f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 229, 0, 0.22), transparent 28%),
    radial-gradient(circle at 80% 86%, rgba(0, 155, 211, 0.2), transparent 30%),
    linear-gradient(135deg, #eef5f2, var(--paper));
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.layout-home {
  display: grid;
  align-content: start;
  gap: clamp(22px, 3.5vw, 52px);
  min-height: 100vh;
  padding: clamp(26px, 5vw, 76px);
}

.home-header {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}

.home-header img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
}

.home-header p,
.option {
  margin: 0 0 8px;
  color: #49666f;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6.2vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.layout-card {
  position: relative;
  display: grid;
  min-height: clamp(280px, 31vw, 440px);
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  padding: clamp(24px, 3.2vw, 44px);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 28px 80px rgba(7, 24, 32, 0.14);
}

.layout-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.95;
  transition: transform 220ms ease;
}

.layout-card:hover::before,
.layout-card:focus-visible::before {
  transform: scale(1.03);
}

.layout-card-wide::before {
  background:
    linear-gradient(90deg, rgba(7, 24, 32, 0.9) 0 42%, transparent 42%),
    linear-gradient(120deg, rgba(242, 229, 0, 0.28), rgba(0, 155, 211, 0.22)),
    url("1987 - 1989 - Waldir Amaral Bedê - DME de Volta Redonda-RJ.jpg") center / cover;
}

.layout-card-square::before {
  background:
    radial-gradient(circle at 50% 36%, rgba(242, 229, 0, 0.36), transparent 20%),
    linear-gradient(145deg, rgba(7, 24, 32, 0.92), rgba(0, 155, 211, 0.7)),
    url("2023 - 2025 - Alessio Costa Lima - DME de Ibaretama-CE.jpg") center / cover;
}

.layout-card-modern::before {
  background:
    linear-gradient(90deg, rgba(242, 229, 0, 0.82) 0 16%, rgba(143, 207, 80, 0.82) 16% 34%, rgba(0, 155, 211, 0.82) 34% 68%, rgba(248, 189, 89, 0.82) 68%),
    linear-gradient(180deg, rgba(7, 24, 32, 0.08), rgba(7, 24, 32, 0.78)),
    url("2015 - 2017 - Alessio Costa Lima - DME de Tabuleiro do Norte-CE.jpg") center / cover;
  background-blend-mode: multiply, normal, normal;
}

.layout-card-orbit::before {
  background:
    radial-gradient(circle at 50% 38%, rgba(242, 229, 0, 0.34), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(0, 155, 211, 0.42), transparent 34%),
    linear-gradient(145deg, rgba(7, 24, 32, 0.92), rgba(19, 82, 82, 0.84)),
    url("2009 - 2011 - Carlos Eduardo Sanchez - DME de Castro-PR.jpg") center / cover;
}

.layout-card-circuit::before {
  background:
    linear-gradient(180deg, rgba(130, 145, 146, 0.7), rgba(7, 24, 32, 0.78)),
    url("2011 - 2013 - Cleuza Rodrigues Repulho - DME de São Bernardo do Campo-SP.jpg") center / cover;
}

.layout-card-circles::before {
  background:
    linear-gradient(180deg, rgba(36, 53, 66, 0.88) 0 24%, rgba(221, 232, 229, 0.72) 24%),
    url("2021 - 2023 - Luiz Miguel Martins Garcia - DME de Sub Mennucci-SP.jpg") center / cover;
}

.layout-card-gradient::before {
  background:
    linear-gradient(125deg, rgba(22, 38, 112, 0.9), rgba(0, 155, 211, 0.56) 42%, rgba(143, 207, 80, 0.92)),
    url("2005 -2007 - Maria do Pilar Lacerda Almeida e Silva - DME de Belo Horizonte-MG.jpg") center / cover;
}

.layout-card::after {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 24, 32, 0.88));
}

.layout-card > * {
  position: relative;
  z-index: 1;
}

.option {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--teal));
  color: var(--ink);
}

.layout-card strong {
  max-width: 540px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 4.2rem);
  line-height: 0.94;
}

.layout-card small {
  max-width: 560px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 650;
  line-height: 1.25;
}

@media (max-width: 850px) {
  .home-header,
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 851px) and (max-width: 1180px) {
  .layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
