/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--accent-gold);
  cursor: pointer;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--accent-gold-light);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--accent-glow);
  color: var(--bg-primary);
}

.btn:hover::before {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline::before {
  background: var(--accent-gold);
}

.btn-outline:hover {
  color: var(--bg-primary);
}


/* Team Section */
.team-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
}

.team-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: 12px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  margin-bottom: var(--space-sm);
  border-radius: 12px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin: 0.5rem 0 0.2rem;
}

.team-role {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.team-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(25, 25, 25, 0.7);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Section Headings */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-xs);
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
}



/* Loading Screen */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-gold);
  letter-spacing: 4px;
  opacity: 0;
}

.loader-line-wrap {
  width: 150px;
  height: 1px;
  background: var(--glass-border);
  margin-top: 20px;
  overflow: hidden;
}

.loader-line {
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  transform: translateX(-100%);
}

/* Chatbot Premium */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 110px; /* ao lado do whatsapp */
  z-index: 1000;
  font-family: var(--font-body);
}

.chat-toggle {
  width: 116px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  margin: 0;
}

.chat-toggle:hover {
  transform: translateY(-8px) scale(1.05);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.5);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: bold;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.chat-close:hover {
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Custom Scrollbar for Chat */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: message-pop 0.3s ease-out forwards;
}

@keyframes message-pop {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.message.bot {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.message.user {
  background: rgba(212, 175, 55, 0.15);
  color: var(--text-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border-radius: 12px 12px 12px 4px;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); background: var(--accent-gold); }
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.5);
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  padding: 10px 15px;
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255,255,255,0.1);
}

.chat-send {
  background: var(--accent-gold);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

@media (max-width: 480px) {
  .chat-toggle {
    width: 80px; /* Reduz proporção no mobile */
    height: 120px;
  }
  .chat-window {
    width: 300px;
    height: 400px;
    right: -10px;
  }
}

/* Static Map Styles */
.static-map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.static-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.static-map-link:hover .static-map-img {
  transform: scale(1.05);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.static-map-link:hover .map-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.map-btn {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.static-map-link:hover .map-btn {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 10px 20px var(--accent-glow);
}

/* CTA Intermediário Section */
#historia {
  padding: var(--space-lg) 0;
}

.cta-mid-section {
  padding: calc(var(--space-lg) * 1.5) var(--space-md);
  margin-top: 0;
  margin-bottom: calc(var(--space-md) * 1.5);
}

.cta-mid-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-lg) var(--space-md) !important;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 70%), var(--bg-card) !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.cta-mid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

.cta-mid-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-mid-subtitle {
  color: var(--accent-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.cta-mid-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  line-height: 1.2;
}

.cta-mid-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.btn-cta {
  font-size: 1.1rem;
  padding: 18px 45px;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
  border-radius: 8px;
}


