/* css/style.css */

/* --- Variáveis de Cor --- */
:root {
  --primary-blue: #193695;
  --accent-gold: #d4af37;
  --text-dark: #333333;
  --light-bg: #f8f9fa;
}

/* --- Tipografia Global --- */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Merriweather", serif;
  font-weight: 700;
}

/* --- Utilitários --- */
.background {
  background-color: var(--primary-blue) !important;
}

/* --- Navbar --- */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section (Desktop) --- */
.hero-section {
  /* Imagem padrão (pode ser sobrescrita inline no HTML) */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)),
    url("../img/azul/azulgolfinho.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* Botão de Destaque */
.btn-accent {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #b3932a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- Cards --- */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.card-img-top {
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
}
.card-text {
  font-size: 0.95rem;
}

/* --- Carrossel (Desktop) --- */
#myCarousel {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
#myCarousel .carousel-item img {
  height: 500px; /* Altura fixa desktop */
  width: 100%;
  object-fit: cover;
}
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 10px 20px;
  bottom: 30px;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-blue) !important;
  color: white !important;
  padding: 30px 0;
}
.footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s;
}
.footer a:hover {
  color: white !important;
}

/* --- WhatsApp Widget --- */
.whatsapp-btn {
  position: fixed;
  right: 25px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  z-index: 100;
  transition: transform 0.3s;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}
.whatsapp-alert {
  position: fixed;
  right: 30px;
  bottom: 90px;
  width: 17px;
  height: 17px;
  background: red;
  z-index: 101;
  font-size: 11px;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  font-weight: bold;
  line-height: normal;
  visibility: hidden;
}
.whatsapp-msg {
  position: fixed;
  right: 90px;
  bottom: 52px;
  width: 200px;
  height: 32px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 31px;
  border-radius: 100px;
  z-index: 100;
  visibility: visible;
  cursor: pointer;
}

/* =========================================
   AJUSTES PARA DISPOSITIVOS MÓVEIS (RESPONSIVIDADE)
   ========================================= */
@media (max-width: 768px) {
  /* Hero menor no celular */
  .hero-section {
    padding: 60px 0;
  }
  .hero-section h1 {
    font-size: 2rem; /* Título menor */
  }
  .hero-section p.lead {
    font-size: 1rem;
  }

  /* Carrossel menor no celular */
  #myCarousel .carousel-item img {
    height: 250px; /* Metade da altura do desktop */
  }
  .carousel-caption {
    padding: 5px 10px;
    bottom: 10px;
  }
  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  /* Botões grandes para toque fácil */
  .btn-lg,
  .btn-accent {
    width: 100%;
    margin-bottom: 10px;
    display: block;
  }

  /* Ajuste de margens gerais */
  .content-section {
    padding: 40px 0;
  }

  /* Ícones da barra azul menores e empilhados se precisar */
  .background.py-2 .d-flex.gap-4 {
    gap: 1rem !important; /* Diminui espaço entre ícones */
    justify-content: space-around !important;
  }
}
