/* globals */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}
:root {
  --color-primary: #040508;
  --color-secondary: #d8d4bd;
  --color-span: #8f7a2a;

  /* TEXTOS */
  --color-text: #1a1a1a;
  --color-text-light: #4a4038;
  --color-text-subtitle: #5c4a12;
  --color-text-subtitle-light: #e6c65c;
  --color-text-description: #3a3835;

  /* BACKGROUND */
  --color-bg: #fcf8f2;
  --color-white: #ffffff;

  --font-heading: "Cormorant Garamond", serif;
  --font-base: "Inter", sans-serif;

  --width-container: 1400px;
}
/* aplicadas nos subtitle de acordo com o fundo */

html {
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* scroll colorido */
  scrollbar-color: #b8945a #f6f1e9;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background-color: #b8945a;
  border-radius: 20px; /* Deixa arredondado */
  border: 3px solid #f1f1f1; /* Cria um espaço entre o polegar e o trilho */
}
::-webkit-scrollbar-thumb:hover {
  background-color: #d4b07a;
}
body {
  min-height: 100vh;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75rem 1.25rem;
  background: #000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}
a:focus-visible {
  outline: 3px solid #033b17;
  outline-offset: 2px;
}

section {
  padding: 2rem;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
}
h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.subtitle::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--color-span);
  flex-shrink: 0;
}
.sub-dark {
  color: var(--color-text-subtitle);
}
.sub-light {
  color: var(--color-text-subtitle-light);
}
.sub-light::before {
  background: var(--color-text-subtitle-light);
}
.description {
  font-size: 1.25rem;
  color: var(--color-text-description);
  font-weight: 300;
}
.container {
  width: 100%;
  max-width: var(--width-container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* BUTTONS */

.btn {
  padding: 1rem 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: ease-in-out 0.3s;
  font-family: var(--font-base);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 35, 50, 0.2);
}
.btn--primary:hover {
  background-color: #040508d0;
}

/* IMAGE */
.image {
  max-width: 480px;
  width: 90%;
  position: relative;
}

.image::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 55%;
  height: 55%;
  border-top: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
  pointer-events: none;
  z-index: 1;
}
.image::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 55%;
  height: 55%;
  border-bottom: 2px solid var(--color-secondary);
  border-left: 2px solid var(--color-secondary);
  pointer-events: none;
  z-index: 1;
}

.image img {
  width: 100%;
  height: auto;
  display: block;
}

/* WHATSAPP FLOAT */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #033b17;
  color: var(--color-white);
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.whatsapp-float svg {
  font-size: 2rem;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(184, 148, 90, 0.35);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
/* HEADER */
.header {
  width: 100%;
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(184, 148, 90, 0.12);
}
.header__container {
  max-width: var(--width-container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
}
.header__logo {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.05em;
}
.header__logo-color {
  color: var(--color-span);
  font-style: italic;
}

.navbar {
  position: absolute;
  z-index: 99;
  background: #040508ef;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  width: 36vw;
  top: 100%;
  right: 0;
  text-align: center;
  padding-block: 1.25rem;
  display: none;
}
.navbar.active {
  display: block;
}
.menu-hamburguer {
  background: none;
  border: none;
}
.menu-hamburguer .icon-close {
  display: none;
}
.menu-hamburguer.active .icon-open {
  display: none;
}
.menu-hamburguer.active .icon-close {
  display: block;
}

.menu-hamburguer svg {
  transition: transform 0.3s ease;
  stroke: var(--color-span);
}
.navbar__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.navbar__link {
  color: var(--color-secondary);
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
  font-size: 0.75rem;
}
.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-span);
  transition: width 0.3s;
}
.navbar__link:hover,
.navbar__link:focus {
  color: var(--color-span);
}

.navbar__link:hover::after,
.navbar__link:focus::after {
  width: 100%;
}

/* HERO */
.hero {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;

  background: linear-gradient(
    135deg,
    var(--color-bg) 0%,
    var(--color-secondary) 100%
  );
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  gap: 3rem;
  animation: fadeInUp 1s ease-out;
}
.hero__content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__title {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__contacts {
  display: flex;
  text-align: center;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn--secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SERVICES */

.services__container {
  text-align: center;
}
.services__header {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services__header .subtitle {
  justify-content: center;
}
.services__header .subtitle::before {
  display: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 4rem;
}
.card {
  padding: 2rem;
  border: 1px solid rgba(151, 123, 58, 0.122);
  text-align: left;
  transition: all 0.3s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(151, 123, 58, 0.2);
  background-color: rgba(151, 123, 58, 0.1);
}
.card svg {
  color: var(--color-span);
}
.card h3 {
  font-size: 1.75rem;
  margin-block: 1rem;
}
.card_description {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* CTA */

.cta {
  background: linear-gradient(120deg, #6e5a2f, #9e8442, #b69a52);
  padding-block: 6rem;
  color: var(--color-secondary);
  text-align: center;
}
.cta__title {
  color: var(--color-white);
  font-size: clamp(2.75rem, 6vw, 4rem);
}
.cta__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: white;
  margin: 20px auto 0;
}
.cta__description {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  margin-bottom: 3rem;
}
.btn__cta {
  border: 1px solid var(--color-white);

  color: var(--color-white);
  font-size: 1rem;
  padding: 1rem;

  position: relative;
  overflow: hidden;
}
.btn__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shine 3s infinite;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
/* ABOUT */
.about {
  padding: 0 !important;
  background-color: var(--color-primary);
}
.about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.about .image {
  max-width: 90%;
  width: 100%;
  padding-top: 3rem;
}
.about .image::before,
.about .image::after {
  display: none;
}
.about .image img {
  width: 100%;
  height: auto;
}

.about__content {
  width: 100%;
  background-color: var(--color-primary);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.about__content h2 {
  color: var(--color-bg);
}
.about__text {
  margin-bottom: 0.5rem;
  line-height: 1.9;
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 300;
}
.about__list {
  margin-block: 1rem;
}

.about__list-item {
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-secondary);
}
.about__list-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-span);
  font-weight: bold;
}

/* CONTACT, FORM */

.contact {
  background: var(--color-white);
}
.contact__header {
  text-align: center;
  margin-bottom: 2rem;
}
.contact__header .subtitle {
  justify-content: center;
}
.contact__header .subtitle::before {
  display: none;
}
form {
  background-color: var(--color-bg);
  padding: 4rem 2rem;
  max-width: 800px;
  width: 100%;
}
.formGroup {
  display: flex;
  flex-direction: column;
  margin-block: 1rem;
}
label {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-text-light);
  text-transform: uppercase;
}
label span {
  color: var(--color-text-description);
}
input,
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 2px;
  font-family: var(--font-base);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--color-white);
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #c9aa61c0;
}
textarea {
  resize: none;
  min-height: 150px;
}
.contact__button {
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
}

.input-error {
  border: 1px solid #c0392b;
}

.error-message {
  display: block;
  font-size: 0.875rem;
  color: #c0392b;
  margin-top: 4px;
  min-height: 18px;
}

/* FOOTER */

.footer {
  background: var(--color-primary);

  padding: 2rem;
}
.footer__container {
  gap: 4rem;
}

.footer__section-title {
  color: var(--color-span);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer__text {
  color: var(--color-secondary);
  line-height: 1.7;
}

.footer__list-item {
  margin-bottom: 0.5rem;
}
.footer__link {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;

  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__link:hover,
.footer__link:focus {
  color: var(--color-span);
}
.footer__bottom {
  text-align: center;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-bg);
  font-size: 0.9rem;
}

@media (width>= 1024px) {
  section {
    padding: 6rem 2rem;
  }
  .image {
    width: 100%;
  }
  .menu-hamburguer {
    display: none;
  }
  .navbar {
    display: block;
    position: static;
    width: auto;
    margin-left: auto;
    background: transparent;
    padding: 0;
  }
  .navbar__list {
    flex-direction: row;
    gap: 2.5rem;
  }
  .hero .container {
    flex-direction: row;
    width: 100%;
  }

  .hero__contacts {
    flex-direction: row;
  }
  .description {
    max-width: 550px;
  }
  .services__header {
    width: 600px;
  }
  .btn__cta {
    padding: 1rem 2rem;
    font-size: 1.25rem;
  }
  .about__container {
    flex-direction: row;
    justify-content: center;
  }
  .about .image {
    padding-top: 0;
  }
  form {
    padding: 4rem;
  }
  .footer__top {
    max-width: var(--width-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
  }
  .text {
    width: 500px;
  }
}
