/* VARIÁVEIS E RESET */
:root {
  --primary-color: #003366; /* Azul Escuro Institucional */
  --secondary-color: #007bff; /* Azul Claro Action */
  --text-color: #333333;
  --light-bg: #f4f6f9;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
}

/* CONTAINER GERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
#header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.btn-nav {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 5px;
}

.btn-nav:hover {
  background: var(--secondary-color);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* HERO SECTION */
#hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #f9fbfd 0%, #eef2f7 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-text .highlight {
  color: var(--secondary-color);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: #25d366; /* Cor WhatsApp Oficial */
  color: var(--white);
}

.btn-primary:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image img {
  width: 100%;
  /* TRAVA A PROPORÇÃO: Mantém o formato retangular (600x500) do placeholder original */
  aspect-ratio: 6 / 5;
  /* PREENCHIMENTO INTELIGENTE: Corta as bordas da foto se necessário para não esticar */
  object-fit: cover;
  /* Mantém o estilo original */
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Sombra ligeiramente melhorada para a foto */
}

/* SERVICES SECTION */
#services {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.card i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* HOW IT WORKS */
#how-it-works {
  padding: 80px 0;
  background-color: #f8faff;
}

.timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.timeline-content {
  flex: 1;
}

.timeline-content h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.timeline {
  list-style: none;
}

.timeline li {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-text h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-image {
  flex: 1;
}

.timeline-image img {
  width: 100%;
  border-radius: 10px;

  /* --- NOVAS LINHAS PARA TRAVAR O FORMATO --- */

  /* Força a proporção vertical (retrato) similar ao placeholder original de 500x600 */
  aspect-ratio: 5 / 6;

  /* Garante que a imagem preencha o espaço cortando os excessos laterais, sem esticar */
  object-fit: cover;

  /* Adiciona uma sombra suave para destacar a imagem do fundo */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* CONTACT SECTION */
#contact {
  padding: 80px 0;
  background: var(--primary-color);
}

.contact-container {
  display: flex;
  justify-content: center;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 10px;
}

.contact-form-wrapper p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.btn-submit {
  width: 100%;
  background: #25d366;
  color: white;
  font-size: 1.1rem;
  border: none;
}

.btn-submit:hover {
  background: #128c7e;
}

.security-note {
  font-size: 0.8rem !important;
  margin-top: 15px;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* LOCATION */
#location {
  padding: 60px 0;
  background: #fff;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 40%; /* Proporção do mapa */
  position: relative;
  height: 0;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

/* FOOTER */
footer {
  background: #002244;
  color: #ccc;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RESPONSIVO (MOBILE) */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 80px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    padding: 40px 0;
    transition: 0.3s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .map-responsive {
    padding-bottom: 70%;
  }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  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;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}
