/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ========================================================================== */

:root {
  --primary: #6C63FF;
  --secondary: #FFB74D;
  --dark: #2D3436;
  --light: #F9F9F9;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Garante que o header fixo não cubra o título ao navegar */
  scroll-padding-top: 90px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. NAVEGAÇÃO (HEADER)
   ========================================================================== */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-nav:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   3. SEÇÃO HERO (DESTAQUE)
   ========================================================================== */

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.1rem;
  color: #636e72;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.btn-primary, 
.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Efeito de sobreposição de imagem */
.image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  border-radius: 30px;
  position: relative;
  z-index: 2;
  transform: rotate(-3deg);
  transition: var(--transition);
}

.image-wrapper:hover img {
  transform: rotate(0deg);
}

.shape-overlay {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  border-radius: 30px;
  z-index: 1;
}

/* ==========================================================================
   4. SEÇÃO SOBRE
   ========================================================================== */

.about {
  padding: 100px 0;
  background: var(--white);
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin-top: 10px;
  border-radius: 2px;
}

.about-content p {
  font-size: 1.1rem;
  color: #636e72;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--light);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border-bottom: 4px solid var(--primary);
}

.stat-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #b2bec3;
}

.about-images {
  flex: 1;
}

.about-images img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 15px 15px 0px var(--primary);
}

/* ==========================================================================
   5. SEÇÃO SERVIÇOS (CARDS)
   ========================================================================== */

.services {
  padding: 100px 0;
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  color: #636e72;
  font-size: 0.95rem;
}

/* ==========================================================================
   6. SEÇÃO CONTATO (FORMULÁRIO)
   ========================================================================== */

.contact {
  padding: 100px 0;
  background: var(--primary);
}

.contact-box {
  background: var(--white);
  padding: 50px;
  border-radius: 30px;
  max-width: 750px;
  margin: 0 auto;
}

.contact-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark);
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

input, 
select {
  width: 100%;
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

input:focus, 
select:focus {
  border-color: var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--secondary);
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
}

.btn-submit:hover {
  filter: brightness(0.95);
  transform: scale(0.99);
}

.status-msg {
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
}

.hidden {
  display: none;
}

/* ==========================================================================
   7. FOOTER E RESPONSIVIDADE
   ========================================================================== */

footer {
  padding: 50px 0;
  text-align: center;
  background: var(--white);
  color: #b2bec3;
}

@media (max-width: 992px) {
  .hero-text h1 { font-size: 2.8rem; }
  .hero-grid, .about-flex { gap: 30px; }
}

@media (max-width: 768px) {
  .hero-grid, .about-flex {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }

  .nav-links, .btn-nav {
    display: none; /* Em um projeto real, aqui entraria um menu hamburguer */
  }

  .hero-text h1 { font-size: 2.5rem; }
  .hero-btns { justify-content: center; }
  
  .input-group {
    grid-template-columns: 1fr;
  }

  .about-content h2::after {
    margin: 10px auto;
  }

  .about-images {
    order: -1; /* Imagem aparece acima do texto no mobile */
    margin-bottom: 40px;
  }

  .image-wrapper img {
    transform: rotate(0);
  }
  
  .shape-overlay {
    display: none;
  }
}