/* https://aderaldogit.github.io/NichoDecor/ */

:root {
  --primary: #6b4b2a;
  --secondary: #a67c52;
  --bg: #eee4d8;
  --text: #3e2f21;
  --light: #ffffff;
  --muted: #7a6a5a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

nav a {
  margin: 0 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--primary);
}

.btn {
  border: transparent;
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  background: #52381f;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  background: var(--bg);
  gap: 40px;
  position: relative;
}

.hero-text {
  z-index: 2;
  max-width: 520px;
  text-align: center;
}

.hero-text h1 {
  z-index: 2;
  font-size: 56px;
  margin-bottom: 10px;
  color: black;
}

.hero-text span {
  z-index: 2;
  display: block;
  font-size: 14px;
  letter-spacing: 3px;
  color: black;
  margin-bottom: 15px;
}

.hero-text p {
  background-color: rgba(255, 255, 255, 0.842);
  border-radius: 20px 2px 20px 2px;
  padding: 10px;
  z-index: 2;
  margin: 20px 0 30px;
  color: black;
}

.hero img {
  width: 100%;
  height: 100%;
  left: 0;
  /* max-width: 550px; */
  border-radius: 12px;
  position: absolute;
  z-index: 0;
}

.section {
  padding: 80px 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--secondary);
  margin: 10px auto 0;
}

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--muted);
}

.about img {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature {
  background: var(--bg);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
}

.feature h3 {
  margin: 15px 0 10px;
  font-size: 16px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  transition: 0.3s;
}

.portfolio img:hover {
  transform: scale(1.03);
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  text-align: center;
}

.contact div {
  padding: 20px;
}

.contact h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.contact p {
  font-size: 14px;
  color: var(--muted);
}

footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 14px;
}

/* RESPONSIVO */

@media (max-width: 1024px) {
  .features,
  .portfolio,
  .contact {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .section {
    padding: 60px 25px;
  }

  .about {
    flex-direction: column;
  }

  .features,
  .portfolio,
  .contact {
    grid-template-columns: 1fr;
  }
}
