/*
* VARIÁVEIS & TEMAS (Paleta Premium: Sage & Stone)
*/
:root {
  /* Novas Cores - Mais sofisticadas */
  --color-primary: #4a6c58; /* Sage Green Profundo */
  --color-primary-dark: #354f40;
  --color-secondary: #e6e4dc; /* Warm Stone Light (Accent) */
  --color-text: #2c2c2c; /* Charcoal Suave */
  --color-text-light: #666;
  --color-bg-body: #f9f9f7; /* Stone White (não branco puro) */
  --color-bg-section: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-footer: #1e1e1e; /* Almost Black */
  --color-text-footer: #e0e0e0;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 50px rgba(74, 108, 88, 0.15);

  --font-main: "Poppins", sans-serif;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Curva mais elegante */
  --header-height: 90px;
}

[data-theme="dark"] {
  --color-primary: #7bb592; /* Sage mais claro para dark mode */
  --color-secondary: #2d3748;
  --color-text: #e0e0e0;
  --color-text-light: #a0a0a0;
  --color-bg-body: #121212;
  --color-bg-section: #1a1a1a;
  --color-bg-card: #242424;
  --color-bg-footer: #000000;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px rgba(123, 181, 146, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition:
    background-color 0.4s,
    color 0.4s;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.wrapper {
  max-width: 1280px; /* Largura maior para visual moderno */
  margin: 0 auto;
  padding: 0 24px;
}

/*
* UTILS & ANIMATIONS
*/
.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 4px; /* Mais arquitetônico que 50px */
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(74, 108, 88, 0.2);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 2.8rem;
  font-weight: 300; /* Mais leve = mais elegante */
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.section-title span {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 15px auto 0;
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-200 {
  transition-delay: 0.1s;
}
.delay-400 {
  transition-delay: 0.2s;
}

/*
* HEADER
*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(249, 249, 247, 0.85); /* Matches light bg */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

[data-theme="dark"] header {
  background-color: rgba(18, 18, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}
.logo span {
  font-weight: 300;
  color: var(--color-primary);
}

.nav-actions,
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a.link {
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}
.nav-links a.link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s;
}
.nav-links a.link:hover::after {
  width: 100%;
}
.nav-links a.link:hover {
  color: var(--color-primary);
}

.theme-switch,
.menu-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text);
  transition: transform 0.3s;
}
.theme-switch:hover {
  color: var(--color-primary);
  transform: rotate(15deg);
}
.menu-toggle {
  display: none;
}

/*
* HERO SECTION (Fullscreen)
*/
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Removed background gradient, now handled by slider */
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transform: scale(1);
}

.hero-slide.active img {
  animation: kenBurns 10s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.2) 70%,
    transparent
  );
  z-index: 1;
}

/* Hero Content on top of slider */
.hero-container {
  display: block; /* Removed grid */
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 60px; /* Offset header */
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  color: #fff;
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero-content h1 span {
  color: var(--color-secondary); /* Light Stone for better contrast */
  font-weight: 400;
  font-style: italic;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Cleanup old hero image styles */
.hero-image {
  display: none;
}

/*
* HERO SLIDER (Ken Burns)
*/
/* Decorative elements */
.hero-image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  z-index: -1;
  opacity: 0.3;
  border-radius: 4px;
}

/*
* FEATURES (Bento-ish Minimal)
*/
.features {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding-bottom: 100px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-bg-card);
  padding: 50px 30px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  text-align: left; /* Mais moderno que centralizado */
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg-body);
  color: var(--color-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/*
* PROJETOS & CARROSEL
*/
.projects {
  padding: 120px 0;
  background-color: var(--color-bg-section);
}

/* Styling for Carousel Structure */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px; /* Space for buttons */
}
.carousel-track-container {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0; /* Space for shadows */
}
.carousel-slide {
  min-width: 33.333%; /* Show 3 by default */
  padding: 0 15px; /* Gutter */
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.prev-btn {
  left: 0;
}
.next-btn {
  right: 0;
}

.project-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.project-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 40px 30px 30px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 5px;
}
.project-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
  font-weight: 300;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-link i {
  transition: transform 0.3s;
}
.project-link:hover i {
  transform: translateX(5px);
}

/*
* PERFIL
*/
.profile {
  padding: 120px 0;
}
.profile-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 60px;
  background-color: var(--color-bg-card);
  padding: 60px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.profile-img {
  height: 400px;
}
.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a imagem preencha o container sem distorcer ou vazar */
  object-position: top center; /* Garante que o rosto não seja cortado */
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.profile-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.profile-content h4 {
  color: var(--color-primary);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 500;
}
.profile-content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/*
* STATS
*/
.stats {
  padding: 80px 0;
  background-color: #1e1e1e; /* Estilo minimal dark para quebra visual */
  color: #fff;
}
[data-theme="dark"] .stats {
  background-color: #000;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 30px;
}
.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 0;
  color: var(--color-primary); /* Pop de cor */
}
.stat-item p {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/*
* FOOTER
*/
.footer {
  background-color: var(--color-bg-footer);
  color: var(--color-text-footer);
  padding: 100px 0 30px;
}
.footer h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.footer p {
  opacity: 0.7;
  font-weight: 300;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

/* FAQ Styles */
section.faq {
  padding: 80px 0;
  background-color: var(--color-bg-card);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}
.faq-item {
  margin-bottom: 20px;
}
.faq-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item h4 i {
  color: var(--color-primary);
  font-size: 1.3rem; /* Slightly larger icon */
}
.faq-item p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
  color: var(--color-text);
  padding-left: 0;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.copyright a {
  transition: color 0.3s;
}
.copyright a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-social a {
  display: inline-flex;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: var(--transition);
  color: #fff;
}
.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Form refinement */
.booking-form {
  background: transparent;
  padding: 0;
  color: #fff;
}
.booking-form input,
.booking-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px;
  border-radius: 4px;
}
.booking-form input:focus,
.booking-form textarea:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}
.booking-form label {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

/* Contact Form Stacked Layout */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  margin-bottom: 0;
  width: 100%;
}
button[type="submit"] {
  width: 100%;
}
#contactForm input[type="hidden"] {
  display: none;
}

/*
* WIDGETS
*/
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  animation: pulse 2s infinite;
  transition: transform 0.3s;
}
.wa-float:hover {
  transform: scale(1.1);
  animation: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Modal - Keeping logic but updating style */
/* Modal Overlay & Content */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  border-radius: 8px;
  padding: 50px;
  background: var(--color-bg-card);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: translateY(20px);
  transition: all 0.3s;
  color: var(--color-text);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.check-icon {
  width: 70px;
  height: 70px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 25px;
}

/*
* RESPONSIVE
*/
@media (max-width: 992px) {
  .carousel-slide {
    min-width: 50%;
  } /* Show 2 on tablet */

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-container {
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-content h1 {
    font-size: 3rem;
  }

  .profile-container {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .profile-img {
    width: 100%;
    height: 350px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .faq-grid {
    grid-template-columns: 1fr !important; /* Force stack on mobile */
    padding: 0 15px; /* Add side padding for mobile */
  }
  #contactForm {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  .form-group:nth-child(3),
  button[type="submit"] {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    min-width: 100%;
  } /* Show 1 on mobile */
  .carousel-container {
    padding: 0;
  } /* No side padding on mobile (buttons overlay?) not ideal, leaving padding for buttons */

  .nav-links {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--color-bg-card);
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 900;
    gap: 1.5rem;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}
