/* =====================================================
   GP Locadora de Veículos -
   Folha de Estilos Principal
   =====================================================

   ÍNDICE:
   1. Variáveis CSS (cores, sombras, etc.)
   2. Reset e Base
   3. Tipografia
   4. Botões
   5. Header/Navegação
   6. Hero Section
   7. Seção Sobre
   8. Seção Serviços
   9. Seção Destaques
   10. Seção Benefícios
   11. Seção Depoimentos
   12. Seção FAQ
   13. Seção Contato
   14. Footer
   15. Responsividade

   ===================================================== */

/* ========== 1. VARIÁVEIS CSS ========== */
/* EDITÁVEL: Personalize as cores principais do tema aqui */
:root {
  /* Cores principais - tons de dourado, preto e rosa */
  --primary: #d4af37; /* Dourado principal */
  --primary-dark: #b8960f; /* Dourado escuro */
  --secondary: #ff6b9d; /* Rosa vibrante */
  --accent: #1a1a1a; /* Preto elegante */

  /* Cores de fundo */
  --bg: #fefefe; /* Fundo principal (quase branco) */
  --bg-alt: #fff5e6; /* Fundo alternativo (creme dourado) */

  /* Cores de texto */
  --text: #1a1a1a; /* Texto principal (preto) */
  --text-light: #6b6b6b; /* Texto secundário (cinza) */
  --white: #ffffff; /* Branco puro */

  /* Efeitos */
  --shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-hover: 0 8px 30px rgba(212, 175, 55, 0.25);

  /* Bordas e transições */
  --radius: 16px; /* Bordas arredondadas */
  --radius-sm: 10px; /* Bordas menores */
  --transition: all 0.3s ease; /* Transição suave */
}

/* ========== 2. RESET E BASE ========== */
/* Remove margens e paddings padrão do navegador */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Rolagem suave ao clicar em links de âncora */
html {
  scroll-behavior: smooth;
}

/* Configurações base do body */
body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Container centralizado com largura máxima */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e61919;
  color: #fff;
  padding: 15px 30px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* Remove decoração de links */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove marcadores de lista */
ul {
  list-style: none;
}

/* ========== 3. TIPOGRAFIA ========== */
/* Título principal (Hero) */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Tamanho responsivo */
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Títulos de seção */
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Subtítulos */
h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Títulos menores */
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Parágrafos */
p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.banner {
  width: 100%;
  height: auto;
  object-fit: cover;
}

nav a {
  color: #d4c4c4;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo {
  width: 120px;
  height: auto;
  margin-right: 10px;
  object-fit: cover;
}

.search-bar button {
  padding: 20px 20px;
  background: #ffa500;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease, filter 0.3s ease;
}

.search-bar button img {
  width: 22px;
  transition: filter 0.3s ease;
}

/* HOVER */
.search-bar button:hover {
  color: #ffffff;          /* texto fica branco */
}

.search-bar button:hover img {
  filter: brightness(0) invert(1);  /* ícone fica branco */
}

/*========Carrosel=========*/
.carousel-primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto; /* altura fixa pode distorcer */
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.carousel-slide-primary {
  display: flex;
  width: 100%;
  transition: transform 1s ease-in-out;
}

.carousel-item-primary {
  width: 100%;
  flex-shrink: 0;
}

.carousel-item-primary img {
  width: 100%;
  height: auto;          /* ocupar toda a altura */
  object-fit: cover;     /* mantém proporção sem estourar */
}

/* Botões de navegação */
.carousel-primary button { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: none; /* remove fundo */ 
  color: #f1c40f; /* cor da seta */
  font-size: 32px; /* tamanho maior */
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%; 
}

.carousel-primary button.prev { left: 10px; }
.carousel-primary button.next { right: 10px; }

/* Indicadores */
.indicators-primary { 
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px; }

.indicators-primary span { 
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer; }

.indicators-primary .active { 
  background: #f1c40f; 
}



/* ========== 8. SEÇÃO SOBRE ========== */
.sobre {
  background: var(--white);
  margin-top: 81px;
}

.sobre h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Grid da seção sobre */
.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* EDITÁVEL: Imagem da seção sobre */
.sobre-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sobre-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sobre-image:hover img {
  transform: scale(1.05);
}

.sobre-text p {
  font-size: 1.2rem;
  text-indent: 30px; /* recuo na primeira linha */
  line-height: 1.8;
  text-align: justify;
  color: black;
}

/* Features da seção sobre */
.sobre-features {
  display: grid;
  gap: 30px;
}

.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.feature h3 {
  color: var(--text);
  margin-bottom: 5px;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
}

/*=========WhatsApp-CSS ==========*/

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.7);
  z-index: 1000;
  animation: pulse 1.5s infinite;
  transition: transform 0.3s;

  img {
    border-radius: 50%;
    width: 70px;
  }
}

.whatsapp-btn: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 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/*======catalogo de carros=======*/
.catalogo {
  padding: 40px;
}

.catalogo h2 {
  text-align: center;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 0.2fr);
  justify-items: center;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 360px;
  height: auto; /* deixa altura flexível */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.card:hover img {
  transform: scale(1.05);
}

.box-price p {
  font-size: 1rem;
  font-weight: 600;
  color: #e61919;
  margin-bottom: 15px;
}

.card button {
  padding: 10px 18px;
  background: #e61919;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.card button:hover {
  background-color: #c23126;
  transform: scale(1.05);
}

.box-btn {
  display: flex;
  flex-direction: column; /* botões um abaixo do outro */
  gap: 12px;
  margin-top: 10px;
}

.details-link {
  display: inline-block;
  color: #e74c3c;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.details-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.details-link:hover {
  color: #c0392b;
}

.details-link:hover::after {
  width: 100%;
}

.card-visual {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

/* Apenas imagem principal */
.card-visual > img,
.card-visual .detalhes-opcionais {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 10px;
  transition: opacity 0.8s ease;
  opacity: 0;
}


/* Mostrar principal */
.card-visual .car-img.active {
  opacity: 1;
}

/* Mostrar detalhes */
.card-visual .detalhes-opcionais.active {
  opacity: 1;
}

/* imagem interna */
.detalhes-opcionais img {
  width: 300px;
  height: auto;
  object-fit: contain;
}


/* ========== 11. SEÇÃO BENEFÍCIOS ========== */
.beneficios {
  background: #fff;
  color: var(--white);
  padding: 100px 0;
}

/* Textos brancos na seção de benefícios */
.beneficios .section-header h2,
.beneficios .section-header p {
  color: var(--accent);
  text-align: center;
}

/* Grid de benefícios */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card de benefício */
.beneficio-card {
  background: rgba(211, 211, 211, 1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(211, 211, 211, 1);
  transition: var(--transition);
}

.beneficio-card:hover {
  background: rgba(211, 211, 211, 1);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.beneficio-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.beneficio-card h3 {
  color: #1a1a1a;
  margin-bottom: 10px;
}

.beneficio-card p {
  color: #1a1a1a;
  margin: 0;
  font-size: 0.95rem;
}

/* ========== 13. SEÇÃO FAQ ========== */
.faq {
  background: var(--white);
}

/* Lista de perguntas */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* Item individual do FAQ */
.faq-item {
  margin-bottom: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Botão da pergunta */
.faq-question {
  width: 100%;
  background: rgba(211, 211, 211, 1);
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-alt);
}

/* Ícone de expandir/colapsar */
.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: var(--transition);
  color: var(--primary);
}

/* Rotação do ícone quando ativo */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Container da resposta (escondido por padrão) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background: var(--white);
}

/* Resposta expandida */
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px 25px;
}

.faq-answer p {
  margin: 0;
}

/* ========== 14. SEÇÃO CONTATO ========== */
.contato {
  background: rgba(211, 211, 211, 1);
  height: 500px;

}

/* Grid do contato */
.section-header h2 {
  text-align: center;
 
}

.section-header p {
  color: var(--text);
}

.contato-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Lista de informações */
.contato-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Item de informação */
.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-item h4 {
  color: var(--text);
  margin-bottom: 10px;
}

.info-item p {
  margin: 0;
  color: var(--text);
}

/* Container do mapa */
.contato-mapa {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contato-mapa iframe {
  position: relative;
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -40px;
}

/* ========== ÁREA DO AGENTE DE IA ========== */
/* Área reservada para integração futura */
.ai-agent-area {
  min-height: 0;
  padding: 0;
}

footer {
  background: #e61919;
  color: #000;
  text-align: center;
  padding: 20px;
  font-weight: 500;
}

footer p{
  color: #000;
  font-weight: 500;
}
  
/* ========== 15. RESPONSIVIDADE ========== */

/* Telas grandes (desktop padrão) já estão cobertas pelo layout atual */

/* Tablets (até 1024px) */
@media (max-width: 1024px) {
  .sobre-content {
    grid-template-columns: 1fr; /* imagem e texto empilhados */
    gap: 40px;
  }

  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas */
  }

  .contato-content {
    grid-template-columns: 1fr; /* empilha mapa e informações */
    gap: 40px;
  }

  nav ul {
    gap: 25px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr); /* catálogo com 2 colunas */
  }
}

/* Smartphones grandes (até 768px) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .carousel img {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr; /* catálogo com 1 coluna */
  }

  .beneficios-grid {
    grid-template-columns: 1fr; /* benefícios em uma coluna */
  }

  .faq-list {
    padding: 0 15px;
  }
}

/* Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  header {
    padding: 10px 20px;
  }

  .search-bar button {
    font-size: 1rem;
    padding: 12px;
  }

  .card {
    width: 100%;
  }

  .carDescription {
    font-size: 0.95rem;
    padding: 15px;
  }

  .carTitle {
    font-size: 1.6rem;
  }

  .contato-mapa iframe {
    height: 250px;
  }
}


