:root {
  --cor-fundo: #FAF6EE;
  --cor-ocre: #C98A2B;
  --cor-terracota: #B5532F;
  --cor-azul-colonial: #2F5D8A;
  --cor-verde-cerrado: #4B6B3F;
  --cor-texto: #2B2118;

  --fonte-titulos: Georgia, serif;
  --fonte-texto: system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 6rem 0 0;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--cor-texto);
  font-family: var(--fonte-titulos);
  line-height: 1.2;
}

a {
  color: var(--cor-azul-colonial);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

input::placeholder {
  color: var(--cor-texto);
  opacity: 1;
}

.site-header,
body > header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: flex;
  min-height: 5.625rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: var(--cor-fundo);
  box-shadow: 0 2px 10px rgb(43 33 24 / 12%);
}

.site-header::after,
body > header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.375rem;
  background: linear-gradient(
    90deg,
    var(--cor-ocre) 0 25%,
    var(--cor-terracota) 25% 50%,
    var(--cor-azul-colonial) 50% 75%,
    var(--cor-verde-cerrado) 75% 100%
  );
  content: "";
}

.site-header nav,
body > header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.color-stripe {
  height: 0.375rem;
  background: linear-gradient(
    90deg,
    var(--cor-ocre) 0 25%,
    var(--cor-terracota) 25% 50%,
    var(--cor-azul-colonial) 50% 75%,
    var(--cor-verde-cerrado) 75% 100%
  );
}

button,
.button,
input[type="button"],
input[type="submit"] {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  border: 2px solid var(--cor-terracota);
  border-radius: 999px;
  background: var(--cor-terracota);
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #984326;
  border-color: #984326;
}

button:disabled,
.button[aria-disabled="true"],
input[type="button"]:disabled,
input[type="submit"]:disabled {
  border-color: var(--cor-texto);
  background: var(--cor-fundo);
  color: var(--cor-texto);
  opacity: 1;
  cursor: not-allowed;
}

.house-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.house-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(43 33 24 / 18%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 3px 12px rgb(43 33 24 / 8%);
}

.house-card__image,
.house-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 50% 50% 0 0 / 16% 16% 0 0;
  object-fit: cover;
}

.house-card__content {
  padding: 1rem;
}

:focus-visible {
  outline: 3px solid var(--cor-azul-colonial);
  outline-offset: 3px;
}

@media (min-width: 40rem) {
  .house-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .house-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
