/* Reset / Base */
html, body {
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed navbar */
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #126a6a; /* base blue-green */
  min-height: 100vh;
  padding-top: 70px; /* for fixed navbar */
  box-sizing: border-box;
  color: #f1f5f9; /* subtle off-white for readability */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure containers are max width 100% with padding */
.container,
.container-fluid {
  max-width: 100% !important;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  background-color: #ffffff !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.navbar-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  max-width: 100% !important;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  max-height: 60px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.logo-img {
  max-height: 120px;
  object-fit: contain;
  display: block;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover,
.logo-img:focus {
  transform: scale(1.05);
}

.nav-link {
  color: #222222 !important;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5em 0.75em;
  border-radius: 6px;
  user-select: none;
}

.nav-link:hover,
.nav-link:focus {
  color: #22c55e !important;
  background-color: rgba(34, 197, 94, 0.1);
  outline-offset: 2px;
  outline: 2px solid rgba(34, 197, 94, 0.3);
  text-decoration: none;
  z-index: 1;
}

.btn-gradient {
  background: linear-gradient(90deg, #22c55e 0%, #22a6f3 100%);
  border: none;
  color: white;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgb(34 197 94 / 0.4);
  border-radius: 12px;
  font-weight: 700;
  user-select: none;
  white-space: nowrap;
}

.btn-gradient:hover,
.btn-gradient:focus {
  background: linear-gradient(90deg, #1f9e4a 0%, #1d82d1 100%);
  color: white;
  outline: none;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.7), 0 0 8px rgba(34, 197, 94, 0.6);
}

.btn-gradient:active {
  transform: scale(0.97);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.btn-dark {
  --bs-btn-bg: #000;
  --bs-btn-hover-bg: #333;
  --bs-btn-border-color: #000;
  font-weight: 700;
  color: #fff !important;
  border-radius: 12px;
  user-select: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.4);
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: #333;
  box-shadow: 0 6px 25px rgb(0 0 0 / 0.7);
  color: #fff !important;
  outline: none;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - 70px);
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.blue-green-gradient {
  background: linear-gradient(135deg, #126a6a, #22c55e);
}

.hero-container {
  max-width: 1140px;
  margin: 0 auto;
}

.location-card {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  background: rgba(255 255 255 / 0.05);
  user-select: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
  will-change: transform;
}

.location-card:focus-visible,
.location-card:hover {
  background-color: rgba(34, 197, 94, 0.15);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.6);
  transform: translateY(-6px) scale(1.03);
  outline: none;
}

.hero-heading {
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  font-size: clamp(2.75rem, 5vw, 4rem);
}

.gradient-text {
  background: linear-gradient(90deg, #22c55e, #22a6f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
  user-select: text;
}

.hero-btn-group {
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  justify-content: flex-start;
}

.image-container {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 10px 25px rgb(33 33 51 / 0.2);
  position: relative;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}

.image-container:hover,
.image-container:focus-within {
  box-shadow: 0 15px 40px rgb(34 197 94 / 0.35);
}

.image-container img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  user-select: none;
}

.ribbon-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(45deg, #22c55e 0%, #22a6f3 100%);
  border-radius: 50%;
  top: -20px;
  right: -20px;
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.6);
  cursor: default;
  position: absolute;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-light-secondary {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.icon-bg {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #22c55e 0%, #22a6f3 100%);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 6px 15px rgba(34, 197, 94, 0.4);
  transition: background 0.3s ease;
  user-select: none;
}

.icon-bg i {
  font-size: 1.75rem;
  pointer-events: none;
}

.bg-gradient-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  border-radius: 16px;
  padding: 1.5rem;
  user-select: none;
  box-shadow: 0 4px 12px rgb(34 197 94 / 0.15);
  will-change: transform;
}

.bg-gradient-card:hover,
.bg-gradient-card:focus-within {
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 10px 35px rgba(34, 197, 94, 0.5);
  transform: translateY(-4px);
  outline: none;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.4;
}

.ongoing-support-list li {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.3;
}

.ongoing-support-list li i {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: #22c55e;
  text-shadow: 0 0 3px rgba(34, 197, 94, 0.7);
}

/* Video styles */
.video-wrapper {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 25px rgb(33 33 51 / 0.2);
  border-radius: 20px;
  overflow: hidden;
  background-color: #000;
  user-select: none;
}

/* Animate.css slower */
.animate__animated.slower {
  --animate-duration: 1.5s;
}

/* Contact form */
.contact-form label {
  font-weight: 600;
  color: #e5e7eb;
  user-select: none;
}

.contact-form .form-control,
.contact-form .form-select,
.contact-form textarea {
  background: rgba(255 255 255 / 0.12);
  border: 1.5px solid rgba(255 255 255 / 0.35);
  color: white;
  border-radius: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
}

.contact-form .form-control::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255 255 255 / 0.6);
  font-style: italic;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form textarea:focus {
  border-color: #22c55e;
  outline: none;
  background: rgba(255 255 255 / 0.20);
  color: white;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.75);
  font-weight: 600;
}

.contact-form .btn-gradient {
  width: 100%;
  padding: 14px;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.7);
  user-select: none;
}

.contact-form .btn-gradient:hover,
.contact-form .btn-gradient:focus {
  box-shadow: 0 8px 25px rgba(34, 197, 94, 1);
  transform: scale(1.02);
}

.modal-content.bg-gradient-card {
  background: rgba(34 197 94 / 0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

/* Close button in modals */
.btn-close-white {
  filter: invert(1);
  transition: filter 0.3s ease;
}

.btn-close-white:hover,
.btn-close-white:focus {
  filter: invert(0.7);
  outline-offset: 2px;
}

/* Footer */
.footer a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer a:hover,
.footer a:focus {
  color: #22c55e; /* Go2Meds branding green on hover */
  text-decoration: none;
}

.footer p,
.footer h5,
.footer span {
  color: #a1a1aa; /* lighter gray text */
  user-select: none;
  line-height: 1.4;
}

/* Center carousel on small screens */
#fbVideoCarousel .carousel-inner {
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(33 33 51 / 0.3);
  overflow: hidden;
}

/* Responsive and Mobile Improvements */

@media (max-width: 991.98px) {
  /* Hero section adjustments */
  .hero-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-section .row {
    flex-direction: column !important;
  }
  .hero-section .row.flex-column-reverse {
    flex-direction: column !important;
  }
  .hero-section .col-lg-6 {
    text-align: center !important;
    max-width: 100% !important;
  }
  .image-container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 10px;
  }
  .hero-btn-group {
    flex-direction: column !important;
    align-items: center;
  }
  .hero-btn-group a {
    max-width: 280px;
    width: 100%;
  }
  /* Other sections padding */
  #why-choose,
  #franchise-benefits,
  #ongoing-support {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .ongoing-support-list li {
    justify-content: center;
    text-align: center;
  }
  .video-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  h2,
  .hero-heading {
    font-size: 1.75rem !important;
  }
  #why-choose ul li,
  #ongoing-support .ongoing-support-list li {
    flex-direction: column;
    text-align: center;
  }
  #why-choose ul li .icon-bg {
    margin-bottom: 0.75rem;
  }
  #why-choose ul li > div {
    text-align: center;
  }
}