@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=EB+Garamond:wght@700&display=swap");

:root {
  --vinho: #741727;
  --dourado: #f1d987;
  --preto: #1a1a1a;
  --branco: #ffffff;
}

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

/* Tipografia */
body {
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  background-color: var(--branco);
  color: var(--preto);
  line-height: 1.8;
}

h1,
h2,
h3,
.footer-brand h2 {
  font-family: "Cinzel", "EB Garamond", serif;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Cabeçalho */
.header {
  background-color: var(--vinho);
  padding: 0.8rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Georgia", serif;
  position: relative;
  z-index: 1000;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--branco);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav a {
  color: var(--branco);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--dourado);
}

/* Botão do menu mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--branco);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
  position: relative;
  background: url("https://images.unsplash.com/photo-1720365522305-92ad8a7a3475?q=80&w=1170&auto=format&fit=crop")
    no-repeat right center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6%;
  color: var(--branco);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin-left: 5%;
}

.hero-content h2 {
  font-size: 2.6rem;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--branco);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.btn {
  padding: 0.85rem 1.8rem;
  background-color: var(--vinho);
  color: var(--branco);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
}

.btn:hover {
  background-color: var(--dourado);
  color: var(--preto);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Quem Somos */
.quem-somos-section {
  background: linear-gradient(to bottom, #741727 0%, #1a0b0b 100%);
  padding: 60px 20px;
}

.quem-somos-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-right: 450px;
}

.quem-somos-texto {
  color: #f1f1f1;
  font-size: 15px; /* menor que o original */
  line-height: 1.6;
}

.quem-somos-texto p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.titulo-destaque {
  font-size: 40px;
  color: var(--dourado);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quem-somos-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
}

.quem-somos-img img {
  width: 100%;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.quem-somos-img img:hover {
  transform: scale(1.03);
}

/* Valores */
.valores-section {
  background-color: var(--vinho);
  padding: 60px 20px;
  color: var(--dourado);
}

.centralizado {
  text-align: center;
}

.valores-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.valor-box {
  width: 180px;
  text-align: center;
  color: var(--branco);
}

.valor-icone {
  width: 40px;
  height: 40px;
  border: 6px solid var(--dourado);
  border-radius: 50%;
  margin: 0 auto;
}

.valor-box h3 {
  margin-top: 15px;
  font-size: 20px;
  color: var(--dourado);
}

.valor-box p {
  margin-top: 10px;
  font-size: 15px;
  color: #fefefe;
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-sobre h2,
.container-sobre p,
.container-sobre h3,
.valores li {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.container-sobre h2 {
  animation-delay: 0.1s;
}
.container-sobre p:nth-of-type(1) {
  animation-delay: 0.2s;
}
.container-sobre p:nth-of-type(2) {
  animation-delay: 0.3s;
}
.container-sobre h3 {
  animation-delay: 0.4s;
}
.valores li:nth-child(1) {
  animation-delay: 0.5s;
}
.valores li:nth-child(2) {
  animation-delay: 0.6s;
}
.valores li:nth-child(3) {
  animation-delay: 0.7s;
}
.valores li:nth-child(4) {
  animation-delay: 0.8s;
}
.valores li:nth-child(5) {
  animation-delay: 0.9s;
}

/* Carrossel Hero */
.carousel-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide.prev {
  transform: translateX(-100%);
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  max-width: 480px;
  margin-left: 5%;
  color: var(--branco);
}

.carousel-content h2 {
  font-size: 2.6rem;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--branco);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.carousel-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.carousel-content .btn {
  text-decoration: none;
}

/* Controles do carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(116, 23, 39, 0.8);
  color: var(--branco);
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 4;
  transition: background 0.3s ease;
  border-radius: 50%;
}

.carousel-btn:hover {
  background: rgba(116, 23, 39, 1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: var(--dourado);
}

/* Responsivo */
@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1.5rem;
  }

  /* Mostrar botão do menu mobile */
  .mobile-menu-btn {
    display: flex;
  }

  /* Logo responsivo */
  .logo-link {
    z-index: 1001;
    transition: opacity 0.3s ease;
  }

  /* Esconder logo quando menu mobile estiver ativo */
  .header.menu-open .logo-link {
    opacity: 0;
    pointer-events: none;
  }

  /* Menu mobile */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--vinho) 0%, #8b2635 100%);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding-bottom: 2rem;
  }

  .nav li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
  }

  .nav li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .nav a {
    font-size: 1.1rem;
    padding: 1rem 0;
    display: block;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav a:hover {
    color: var(--dourado);
    transform: translateX(10px);
  }

  /* Overlay para fechar menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Estilização do scroll no menu mobile */
  .nav::-webkit-scrollbar {
    width: 6px;
  }

  .nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.6rem 1rem;
  }

  .quem-somos-container {
    flex-direction: column;
    align-items: center;
    padding-right: 20px;
  }

  .quem-somos-img {
    position: static;
    width: 100%;
    margin-top: 30px;
  }

  .valores-container {
    flex-direction: column;
    align-items: center;
  }

  .valor-box {
    width: 100%;
    max-width: 300px;
  }

  .carousel-content h2 {
    font-size: 1.8rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .carousel-btn {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 20px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* Melhorias formulário de contato */
.contato-formulario form input,
.contato-formulario form select,
.contato-formulario form textarea {
  padding: 0.7rem 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
  margin-bottom: 8px;
}
.contato-formulario form input:focus,
.contato-formulario form select:focus,
.contato-formulario form textarea:focus {
  border-color: var(--vinho);
  outline: none;
}
.contato-formulario form .erro {
  border-color: #d32f2f;
  background: #fff0f0;
}
.contato-formulario .mensagem-sucesso {
  background: #e6ffe6;
  color: #256029;
  border: 1.5px solid #7ed957;
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  display: none;
}
@media (max-width: 600px) {
  .contato-formulario {
    padding: 15px !important;
  }
  .contato-formulario form input,
  .contato-formulario form select,
  .contato-formulario form textarea {
    font-size: 0.95rem;
    padding: 0.6rem 0.7rem;
  }

  /* Menu mobile para telas muito pequenas */
  .nav {
    width: 100%;
    right: -100%;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.2rem;
    padding: 1.2rem 0;
  }
}
