/* Custom Responsive Header CSS */

/* Base Reset */
* {
  box-sizing: border-box;
}

/* Main Navbar Styles */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  /* padding: 0.75rem 0; */
  z-index: 1000;
  min-height: 75px;
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Container with custom width */
.navbar .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo Styles */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 2rem;
}

.navbar-brand .logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
  transform: scale(1.05);
}

/* Desktop Navigation Styles */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: row;
}

.navbar-nav .nav-item {
  margin: 0 0.25rem;
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;
  padding: 0.875rem 1.125rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: block;
  position: relative;
}

.nav_link {
  color: #333 !important;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;
  padding: 0.875rem 1.125rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: block;
  position: relative;
}

.nav_link:hover {
  color: #ff385c !important;
  background-color: #f1f8ff;
  transform: translateY(-1px);
}

.nav_link.active {
  color: #ff385c !important;
  background-color: #e7f3ff;
  font-weight: 600;
}

.nav_link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 3px;
  background: linear-gradient(135deg, #ff385c, #ff385c);
  border-radius: 2px;
}

/* Call Button Container */
.call_now_btn_box {
  margin: 0 0.375rem;
}

.call_now_btn_box:last-child {
  margin-right: 0;
}

/* Call Button Styles */
.call_now_btn {
  background: linear-gradient(135deg, #ff385c, #ff385c);
  color: white !important;
  border: none;
  padding: 11px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3); */
  white-space: nowrap;
  min-height: 42px;
}

.call_now_btn:hover {
  background: linear-gradient(135deg, #ff385c, #ff385c);
  transform: translateY(-2px);
  /* box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4); */
  color: white !important;
}

.call_now_btn:active {
  transform: translateY(0);
}

.call_now_btn i {
  font-size: 12px;
}

/* Navbar Toggler */
.navbar-toggler {
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  display: none;
  order: 3;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 22px;
  height: 22px;
}

/* Navbar Collapse */
.navbar-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

/* Desktop Hide Class */
.desk_hide {
  display: none !important;
}

/* Floating Call Button */
.call-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #dc3545, #fd7e14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.call-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.6);
}
.call-button.icon-phone{overflow: hidden;}
.call-button img {
border-radius: 100px;
}

.w-100 {
  width: 100% !important;
}

/* Pulse animation for floating button */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(220, 53, 69, 0.6);
  }
  100% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  }
}

/* Bootstrap utility classes */
.me-auto {
  margin-right: auto !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

/* =================================
   LARGE DESKTOP (1400px and above)
   ================================= */
@media (min-width: 1400px) {
  .navbar {
    padding: 1rem 0;
    min-height: 80px;
  }
  
  .navbar-brand .logo {
    height:40px;
  }
  
  .nav_link {
    font-size: 16px;
    padding: 1rem 1.25rem;
  }
  
  .call_now_btn {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 44px;
  }
  
  .navbar-nav .nav-item {
    margin: 0 0.5rem;
  }
  
  .call-button {
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
  }
  
  .call-button img {
    width: 40px;
    height: 40px;
  }
}

/* =================================
   DESKTOP (1200px - 1399px)
   ================================= */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .container {
    padding: 0 25px;
  }
  
  .navbar-brand .logo {
    height:80px;
  }
  
  .nav_link {
    font-size: 15px;
    padding: 0.875rem 1.125rem;
  }
  
  .call_now_btn {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* =================================
   TABLET LANDSCAPE (992px - 1199px)
   ================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .navbar-brand .logo {
    height:35px;
  }
  
  .nav_link {
    font-size: 14px;
    padding: 0.75rem 1rem;
  }
  
  .call_now_btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .navbar-nav .nav-item {
    margin: 0 0.125rem;
  }
}

/* =================================
   TABLET PORTRAIT (768px - 991px)
   ================================= */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.625rem 0;
    min-height: 65px;
  }
  
  .navbar .container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
  }
  
  .navbar-brand {
    margin-right: 1rem;
  }
  
  .navbar-brand .logo {
    height: 42px;
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .navbar-collapse {
    width: 100%;
    order: 4;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    flex-direction: column;
    align-items: stretch;
  }
  
  .navbar-collapse.collapse:not(.show) {
    display: none;
  }
  
  .navbar-collapse.show {
    display: flex;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
    width: 100%;
  }
  
  .nav_link {
    padding: 1rem 0;
    text-align: left;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 16px;
  }
  
  .nav_link.active::after {
    display: none;
  }
  
  .nav_link:hover {
    padding-left: 15px;
    background-color: #f1f8ff;
  }
  
  /* Show mobile phone number */
  .desk_hide {
    display: block !important;
  }
  
  /* Hide desktop call buttons in mobile menu */
  .navbar-collapse .call_now_btn_box {
    display: none;
  }
  
  /* Adjust floating button for tablet */
  .call-button {
    width: 58px;
    height: 58px;
    bottom: 20px;
    right: 20px;
  }
  
  .call-button img {
    width: 34px;
    height: 34px;
  }
}

/* ===============================
   MOBILE (576px - 767px)
   =============================== */
@media (max-width: 767.98px) {
  .navbar {
    padding: 0.5rem 0;
    min-height: 60px;
  }
  
  .navbar .container {
    padding: 0 15px;
  }
  
  .navbar-brand .logo {
    height: 38px;
  }
  
  .navbar-collapse {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
  }
  
  .nav_link {
    font-size: 16px;
    padding: 1rem 0;
  }
  
  .nav_link:hover {
    padding-left: 12px;
  }
  
  /* Mobile floating call button */
  .call-button {
    bottom: 18px;
    right: 18px;
    width: 55px;
    height: 55px;
  }
  
  .call-button img {
    width: 32px;
    height: 32px;
  }
}

/* ===============================
   SMALL MOBILE (max-width: 575px)
   =============================== */
@media (max-width: 575.98px) {
  .navbar {
    padding: 0.5rem 0;
    min-height: 58px;
  }
  
  .navbar .container {
    padding: 0 12px;
  }
  
  .navbar-brand .logo {
    height: 35px;
  }
  
  .navbar-toggler {
    padding: 7px 10px;
  }
  
  .navbar-toggler-icon {
    width: 20px;
    height: 20px;
  }
  
  .nav_link {
    font-size: 15px;
    padding: 0.875rem 0;
  }
  
  .nav_link:hover {
    padding-left: 10px;
  }
  
  /* Small mobile floating button */
  .call-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .call-button img {
    width: 28px;
    height: 28px;
  }
}

/* ===============================
   EXTRA SMALL MOBILE (max-width: 420px)
   =============================== */
@media (max-width: 420px) {
  .navbar .container {
    padding: 0 10px;
  }
  
  .navbar-brand .logo {
    height: 32px;
  }
  
  .nav_link {
    font-size: 14px;
    padding: 0.8rem 0;
  }
  
  .call-button {
    width: 45px;
    height: 45px;
    bottom: 12px;
    right: 12px;
  }
  
  .call-button img {
    width: 25px;
    height: 25px;
  }
}

/* ===============================
   ACCESSIBILITY & UX IMPROVEMENTS
   =============================== */

/* Focus states for accessibility */
.nav_link:focus,
.call_now_btn:focus,
.navbar-toggler:focus {
  outline: 2px solid #ff385c;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom: 2px solid #000;
  }
  
  .nav_link {
    border: 1px solid transparent;
  }
  
  .nav_link:hover {
    border-color: #000;
  }
  
  .call_now_btn {
    border: 1px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .call_now_btn,
  .nav_link,
  .logo {
    transition: none;
  }
  
  .call-button {
    animation: none;
  }
}

/* Body offset for fixed navbar */
body {
  padding-top: 75px;
}

@media (min-width: 1400px) {
  body {
    padding-top: 80px;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 65px;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 60px;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 58px;
  }
}

/* Loading state for navbar collapse */
.navbar-collapse.collapsing {
  transition: height 0.35s ease;
  overflow: hidden;
}

/* Additional hover effects */
.navbar-nav .nav-item:hover .nav_link {
  color: #ff385c !important;
}

/* Ensure buttons don't break layout */
.call_now_btn_box {
  flex-shrink: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}