/*
 * Custom CSS for ChatbotAI Landing Page
 * Built with Bootstrap 5.3
 */

/* Root variables for colour palette */
:root {
  --primary-color: #e8292d; /* vibrant red similar to ADVN site */
  --secondary-color: #092c4c; /* dark navy for contrast */
  --light-color: #f5f5f5; /* light grey background */
  --text-color: #333333;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar .navbar-brand {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.navbar .nav-link {
  color: var(--text-color);
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #fcf0f1 0%, #f7fafd 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Hover state for primary button: manually pick a slightly darker shade of primary */
.btn-primary:hover {
  background-color: #c61e22;
  border-color: #c61e22;
}

/* Features */
.feature-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-0.25rem);
}

.icon-circle {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing */
.pricing-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  position: relative;
}

.pricing-card .badge {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 1rem;
}

/* Footer */
.footer-link {
  color: #bbbbbb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: none;
}

footer hr {
  opacity: 0.2;
}

/* Utility classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }
  .icon-circle {
    margin-bottom: 0.5rem;
  }
}

/* Darken function simulation for hover (since CSS doesn't support darken natively) */
/* We'll implement darkening in-line using a slightly darker color manually. */
.social {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
}

.phone {
  position: fixed;
  right: 20px;
  bottom: 130px;
  width: 50px;
  height: 50px;
}
.zalo {
  position: fixed;
  right: 20px;
  bottom: 64px;
  width: 50px;
  height: 50px;
}

.pricing-card p {
  min-height: 120px; /* hoặc auto với flex-grow */
}