/* --- Variáveis de Cor --- */
:root {
  --primary: #5f8d78; /* Verde Sálvia */
  --primary-dark: #466959;
  --secondary: #f7f5f0; /* Creme/Off-white */
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CORREÇÃO 1: Adicionado html e width 100% para evitar scroll lateral */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--secondary);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
}
ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* --- Botão Padrão --- */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(95, 141, 120, 0.4);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Header --- */
header {
  background-color: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Menu Desktop */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Menu Mobile Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero {
  padding: 120px 5% 60px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 40px;
  min-height: 90vh;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hero-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* --- Sobre Mim --- */
.about {
  background-color: var(--white);
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-img img {
  border-radius: 12px;
  height: 400px;
  width: 100%;
  object-fit: cover;
}

/* --- Serviços --- */
.services {
  padding: 80px 5%;
  text-align: center;
}

.section-title {
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 50px 5% 20px;
  text-align: center;
}

.footer-content {
  margin-bottom: 30px;
}

.social-icons a {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.7;
}

/* --- Botão WhatsApp Flutuante --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- Media Queries (Responsividade) --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    /* CORREÇÃO 2: Posição ajustada */
    top: 100%; /* Pega exatamente o final do header */
    left: 0; /* Garante o alinhamento à esquerda */
    width: 100%; /* Ocupa a tela inteira */
    background: var(--white);
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

@media (min-width: 769px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .hero-text {
    max-width: 50%;
    text-align: left;
  }
  .hero-img {
    max-width: 45%;
  }

  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
