/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Melhora a navegação de âncora */
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

:root {
  --bg: #111;
  --text: #fff;
  --primary: #fff;
  --secondary: #111;
  --accent: #ddd; /* Leve ajuste para hover */
  --card-bg: #181818;
  --card-shadow: rgba(255,255,255,0.07);
}

body.light {
  --bg: #fff;
  --text: #111;
  --primary: #111;
  --secondary: #fff;
  --accent: #333; /* Leve ajuste para hover */
  --card-bg: #f7f7f7;
  --card-shadow: rgba(0,0,0,0.07);
}

/* NAVBAR E LOGO */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg);
  box-shadow: 0 2px 8px var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  padding: 0 16px;
  transition: background 0.3s, color 0.3s;
}

.logo-link {
  height: 40px; /* Altura do logo */
  display: flex;
  align-items: center;
}

.logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ESTILOS DE NAVEGAÇÃO MOBILE-FIRST */
.nav-links {
  position: fixed;
  top: 64px; /* Abaixo da navbar */
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(100%); /* Esconde o menu fora da tela */
  transition: transform 0.3s ease-in-out;
}

.nav-links.active {
  transform: translateX(0); /* Mostra o menu */
}

.nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: column; /* Menu vertical no mobile */
  align-items: center;
  gap: 32px;
}

.nav-links ul li a, .nav-links ul li button {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem; /* Fonte maior para mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s;
  border-radius: 20px;
}

.nav-links ul li a:hover, .nav-links ul li button:hover {
  background: var(--card-bg);
  border-radius: 20px;
}

/* BOTÃO HAMBÚRGUER */
.hamburger-menu {
  display: flex; /* Visível por padrão (mobile-first) */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Animação do botão para "X" */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* SEÇÕES */
.section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 32px 16px;
  position: relative;
}

/* HERO */
.hero-section {
  background: linear-gradient(120deg, var(--bg) 60%, var(--card-bg) 100%);
  overflow: hidden;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Fonte fluida */
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.3;
  max-width: 700px;
}

.btn-primary, .btn-secondary {
  padding: 12px 32px;
  border: 2px solid var(--primary);
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* SOBRE */
.about-section {
  background: var(--card-bg);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2, .prices-section h2, .contact-section h2 {
  font-size: clamp(1.8rem, 5vw, 2.2rem); /* Fonte fluida */
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* PREÇOS */
.prices-section {
  background: var(--bg);
}

.cards-container {
  display: flex;
  flex-direction: column; /* Padrão mobile */
  gap: 32px;
  align-items: center;
  width: 100%;
}

.price-card {
  background: var(--card-bg);
  box-shadow: 0 4px 24px var(--card-shadow);
  border-radius: 16px;
  padding: 32px 24px;
  width: 90%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 420px;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px var(--card-shadow);
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  text-align: center;
}

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
  width: 100%;
  padding-left: 0;
  flex-grow: 1; /* Faz a lista crescer para alinhar os botões */
}

.price-card ul li {
  font-size: 1rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
}

.price-card ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-size: 1rem;
}

.price-card .btn-secondary {
  margin-top: auto;
  width: 100%;
}

/* CONTATO */
.contact-section {
  background: var(--card-bg);
}

#contact-form {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg);
  padding: 40px 24px;
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid transparent; /* Borda inicial transparente */
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* EFEITOS DE ANIMAÇÃO */
.hero-section::before, .hero-section::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.6; z-index: 0; pointer-events: none;
}
.hero-section::before {
  width: 40vw; height: 40vw; top: 10%; left: -10%; background: #333; animation: heroBlob1 12s ease-in-out infinite alternate;
}
.hero-section::after {
  width: 35vw; height: 35vw; bottom: 10%; right: -10%; background: #888; animation: heroBlob2 14s ease-in-out infinite alternate;
}
@keyframes heroBlob1 { 100% { transform: scale(1.2) translate(40px, -40px); } }
@keyframes heroBlob2 { 100% { transform: scale(1.1) translate(-40px, 40px); } }


/* MEDIA QUERIES PARA TABLETS E DESKTOPS */

/* Tablet (e telas maiores) */
@media (min-width: 768px) {
  .navbar {
    padding: 0 32px;
  }

  .hamburger-menu {
    display: none; /* Esconde o botão no desktop */
  }

  .nav-links {
    position: static;
    transform: translateX(0);
    background: none;
    width: auto;
    height: auto;
  }

  .nav-links ul {
    flex-direction: row; /* Menu horizontal */
    gap: 24px;
  }

  .nav-links ul li a, .nav-links ul li button {
    font-size: 1rem; /* Restaura o tamanho da fonte */
  }

  .cards-container {
    flex-direction: row; /* Cards lado a lado */
    flex-wrap: wrap; /* Permite que os cards quebrem a linha */
    justify-content: center;
    align-items: stretch; /* Faz os cards terem a mesma altura */
  }

  .price-card {
    width: 45%; /* Dois cards por linha */
  }
}

/* Desktop (telas grandes) */
@media (min-width: 1024px) {
  .price-card {
    width: 30%; /* Três cards por linha */
    max-width: 320px;
  }

  .hero-section::before { width: 600px; height: 600px; top: -200px; left: -200px; }
  .hero-section::after { width: 500px; height: 500px; bottom: -180px; right: -180px; }
}