/* Custom CSS for Your Name Health - Modern & Fresh Look */

/* Import Google Fonts - Example: Montserrat for headings, Lato for body */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;600;700&display=swap");

/* General Body Styles */
body {
  font-family: "Lato", sans-serif; /* Body font */
  color: #495057; /* Slightly softer black for body text */
  line-height: 1.6;
  background-color: #f8f9fa; /* Soft off-white background for the page content */
  margin: 0; /* Remove default body margin */
  padding: 0; /* Remove default body padding */
}

/* Customizing Bootstrap Primary Color to a fresh, soft tone */
:root {
  --bs-primary: rgba(233, 146, 173); /* A soft, calming blue */
  --bs-btn-hover-bg: rgb(246, 220, 227); /* Slightly darker on hover */
  --bs-primary-rgb: 152, 193, 217;
  --bs-secondary: #e0fbfc; /* A very light, airy blue/green */
  --bs-secondary-rgb: 224, 251, 252;
  --bs-success: #428b6a; /* A darker blue for success/stronger accents */
  --bs-success-rgb: 61, 90, 128;
  --bs-dark: #192e48; /* Very dark blue for footer/strong text */
  --bs-light: #eef3f8; /* Lighter background than default */

  --bs-btn-active-bg: #569ff7 !important;
  --bs-btn-active-border-color: #569ff7 !important;
  /* Typography Overrides */
  --bs-body-font-family: "Lato", sans-serif;
  --bs-heading-font-family: "Montserrat", sans-serif;
  --bs-font-sans-serif: var(--bs-body-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bs-heading-font-family);
  font-weight: 700;
  color: var(--bs-dark); /* Darker headings for contrast */
}

/* Hero Section Specific Styles */
.hero-section {
  position: relative;
  min-height: 70vh; /* Taller hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 5rem 0; /* More padding top/bottom */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.2)
  ); /* Softer gradient overlay */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: calc(1.8rem + 1.5vw); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white; /* Ensure headings are white */
}

.hero-section .lead {
  font-size: calc(0.9rem + 0.3vw); /* Responsive lead text */
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar Customization */
.navbar {
  background-color: white !important; /* Ensure crisp white background - !important for aggressive override */
  border-bottom: 1px solid var(--bs-light); /* Subtle border for clean separation */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Refined shadow */
  width: 100%;
  border-radius: 0 !important; /* Force no rounded corners on the main nav bar */
  padding-left: 0;
  padding-right: 0;
  left: 0; /* Ensure it starts from the very left edge */
  right: 0; /* Ensure it ends at the very right edge */
}

.navbar .container {
  padding-left: var(
    --bs-gutter-x,
    0.75rem
  ); /* Align with Bootstrap's default container padding */
  padding-right: var(--bs-gutter-x, 0.75rem);
}

.navbar-brand {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--bs-dark) !important; /* Darker brand text */
}

/* Ensure navbar-nav items are vertically aligned */
.navbar-nav {
  align-items: center; /* Vertically align items in the navbar */
}

.nav-link {
  font-weight: 600;
  color: var(--bs-dark) !important;
  transition: color 0.3s ease;
  padding-left: 1rem;
  padding-right: 1rem;
  /* Add this to help vertically align text links with the button */
  padding-top: 0.5rem; /* Match button's default vertical padding for better alignment */
  padding-bottom: 0.5rem;
}

.nav-link:hover {
  color: var(--bs-primary) !important;
}

.nav-link.active {
  color: var(--bs-primary) !important;
  font-weight: 700;
}

/* Modern Hamburger Icon (Customized) */
.navbar-toggler {
  border: none; /* Remove default border */
  padding: 0.75rem 0.5rem; /* Adjust padding for click area */
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: none; /* Hide default icon */
  position: relative;
  width: 28px; /* Custom width */
  height: 2px; /* Custom thickness */
  background-color: var(--bs-dark); /* Color of lines */
  transition: background-color 0.3s ease;
  display: block;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--bs-dark);
  transition: transform 0.3s ease;
  left: 0;
}

.navbar-toggler .navbar-toggler-icon::before {
  transform: translateY(-8px); /* Top line */
}

.navbar-toggler .navbar-toggler-icon::after {
  transform: translateY(8px); /* Bottom line */
}

/* Animation for 'X' icon when collapsed */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-color: transparent; /* Hide middle bar */
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: translateY(0) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: translateY(0) rotate(-45deg);
}

.navbar-nav .nav-item {
  margin-bottom: 0.5rem;
}

/* Specific styling for the 'Book Consultation' button */
.navbar-nav .nav-link.btn {
  width: auto; /* Allow button to size naturally on desktop */
  margin-left: 1rem !important; /* Add spacing to its left for desktop */
  /* Adjust vertical margins to align better with other links */
  margin-top: 0 !important; /* Remove top margin */
  margin-bottom: 0 !important; /* Remove bottom margin */
  padding-top: 0.375rem; /* Bootstrap's default btn-sm padding-y, common for compact buttons */
  padding-bottom: 0.375rem;
  padding-left: 1.25rem; /* Keep existing horizontal padding */
  padding-right: 1.25rem;
}

/* General Buttons */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem; /* More rounded */
  transition: all 0.3s ease;
}

.btn-primary:hover {
  --bs-btn-hover-bg: rgb(246, 220, 227);
  color: #000;
  transform: translateY(-2px); /* Slight lift */
}

.btn-outline-primary {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

/* About Section - Rounded Image */
.rounded-circle {
  border: 5px solid rgba(var(--bs-primary-rgb), 0.3); /* Softer border for profile pic */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.card {
  border: 1px solid var(--bs-light); /* Subtle light border */
  border-radius: 1rem; /* More rounded corners */
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: white; /* Ensure white background */
}

.card:hover {
  transform: translateY(-8px); /* More pronounced lift */
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important; /* Stronger, softer shadow */
}

.card-img-top {
  height: 220px; /* Consistent image height for cards */
  object-fit: cover;
  border-bottom: 1px solid var(--bs-light); /* Separator for image */
}

.card-body {
  padding: 1.75rem; /* More padding inside card body */
}

.card-title {
  color: var(--bs-dark);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: #6c757d;
  font-size: 0.95rem;
}

.list-unstyled li {
  font-size: 0.9rem;
  color: #555;
}

/* Testimonial Carousel */
#testimonialCarousel {
  background-color: rgb(141, 153, 174);
  padding: 3rem 0;
  border-radius: 1rem;
}

#testimonialCarousel .blockquote {
  font-style: italic;
  font-size: 1.5rem; /* Larger font size */
  line-height: 1.7;
  color: var(--bs-dark);
}

#testimonialCarousel .blockquote-footer {
  font-size: 1rem;
  color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(30%) sepia(100%) saturate(1000%) hue-rotate(190deg)
    brightness(90%) contrast(90%); /* Example to color icons */
}

/* Footer Customization */
.footer {
  background-color: var(--bs-dark) !important;
  color: #dee2e6; /* Lighter text color */
}

.footer h5 {
  color: white; /* White headings in footer */
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--bs-primary); /* Primary color on hover */
}

hr.border-light {
  border-color: rgba(255, 255, 255, 0.1) !important; /* Very subtle divider */
}

/* General Spacing and Typography */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.my-5 {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
}

/* For contact form validation styles */
.needs-validation .form-control:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.needs-validation .form-control:valid:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Media Queries for fine-tuning responsive behavior */
@media (max-width: 991.98px) {
  /* This is typically Bootstrap's 'lg' breakpoint */
  .navbar-collapse {
    margin-top: 0.5rem; /* Closer to navbar toggle */
    padding: 1.5rem; /* More padding for mobile menu */
  }
  .navbar-nav .nav-item {
    margin-bottom: 0.75rem;
  }
  .navbar-nav .nav-link.btn {
    width: 100%; /* Make button full width in collapsed menu on mobile */
    margin-left: 0 !important; /* Override Bootstrap margin */
    margin-top: 0.5rem !important; /* Add space for buttons */
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 60vh;
  }
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
}

.message-box {
  padding: 2rem;
  background-color: #fff;
  color: #000;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: none;
  text-align: center;
}

.message-box-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: #2563eb;
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  --bs-btn-active-bg: #569ff7 !important;
  --bs-btn-active-border-color: #569ff7 !important;
}

.grecaptcha-badge {
  display: none !important;
}

.carousel-item {
  position: relative;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* adjust opacity for lighter/darker tint */
  z-index: 1;
}

/* Caption styling */
.carousel-caption.custom-caption {
  bottom: 12%; /* a bit above the bottom */
  z-index: 2; /* ensures it's above the tint */
}

.carousel-caption.custom-caption h2,
.carousel-caption.custom-caption a {
  color: #fff;
}

.timeline {
  position: relative;
  padding-left: 4px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: 3px;
  height: 100%;
  background: #dee2e6;
}
.timeline-step {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-icon {
  position: absolute;
  top: 0;
  left: -3px;
  width: 18px;
  height: 18px;
  background: #6c757d; /* default gray */
  border-radius: 50%;
  border: 3px solid #fff;
}
.timeline-step.completed .timeline-icon {
  background: #dc3545;
} /* red */
.timeline-step.active .timeline-icon {
  background: #0d6efd;
} /* blue */
.timeline-step.upcoming .timeline-icon {
  background: #6c757d;
} /* gray */
.timeline-step.rescheduled .timeline-icon {
  background: #ffc107; /* amber for rescheduled */
}

.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.custom-modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.custom-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
