/* ===================== */
/*        VARIABLES       */
/* ===================== */
:root {
  --red: #d32f2f;
  --dark: #1f2937;
  --gray: #4b5563;
  --light: #f9fafb;
  --border: #e5e7eb;
}

/* ===================== */
/*        NAVBAR          */
/* ===================== */
.nav2 {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  border-radius: 8px;
}

.nav2-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  gap: 30px;
}

.nav2-logo img {
  height: 85px;
  display: block;
}

/* Menu Items */
.nav2-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav2-menu a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav2-menu a:hover,
.nav2-menu a.active {
  color: var(--red);
}

.nav2-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav2-menu a:hover::after,
.nav2-menu a.active::after {
  width: 100%;
}

/* Search Bar */
.nav2-search {
  position: relative;
}

.nav2-search input {
  width: 300px;
  height: 50px;
  padding: 0 44px 0 18px;
  font-size: 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
}

.nav2-search span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: var(--gray);
}

/* Buttons */
.nav2-btn {
  padding: 10px 22px;
  background: var(--red);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}

.nav2-btn:hover {
  background: #b91c1c;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
  z-index: 2000;
}

/* ===================== */
/*        FOOTER          */
/* ===================== */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  background: #000000;
  color: #ffffff;
}

.footer-container {
  width: 90%;
  margin: auto;
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-logo {
  color: red;
  margin-bottom: 15px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-list {
  list-style: none;
  font-size: 14px;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-list a:hover {
  color: red;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #fff7f7;
  border-radius: 6px;
  margin-right: 8px;
  color: #fffbfb;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: red;
  border-color: red;
  color: white;
  transform: translateY(-3px);
}

.footer-newsletter {
  display: flex;
  margin-top: 15px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px;
  border-radius: 6px 0 0 6px;
  border: none;
  outline: none;
}

.footer-newsletter button {
  padding: 10px 18px;
  border: none;
  background: red;
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #123;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: #ffffff;
}

/* ===================== */
/*        PRELOADER       */
/* ===================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader img {
  width: 300px;
  height: auto;
  animation: zoomPulse 1.5s infinite;
}

@keyframes zoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ===================== */
/*  ENQUIRY / WHATSAPP    */
/* ===================== */
.enquiry-wrapper {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 1000;
}

.enquiry-float {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(211,47,47,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.enquiry-float:hover {
  transform: translateY(-3px);
  background: #b71c1c;
  box-shadow: 0 8px 25px rgba(183,28,28,0.5);
}

.enquiry-float i {
  font-size: 1.3rem;
}

.enquiry-card {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.enquiry-card.active {
  display: flex;
}

.enquiry-header {
  background: #d32f2f;
  color: white;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#closeEnquiry {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

#leadForm {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#leadForm input,
#leadForm select,
#leadForm textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.submit-btn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn:hover {
  background: #b71c1c;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===================== */
/*     SEARCH SUGGESTIONS */
/* ===================== */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: none;
}

.suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item a {
  text-decoration: none;
  color: #222;
  display: block;
}

.suggestion-item a:hover {
  background: #f8f8f8;
  color: #d32f2f;
}

.suggestion-item strong {
  color: black;
}

.suggestion-item small {
  color: #555;
  font-size: 0.92em;
}

/* ===================== */
/*      RESPONSIVE       */
/* ===================== */
/* ===================== */
/* MOBILE NAVBAR LAYOUT   */
/* ===================== */
@media (max-width: 900px) {
  /* Hide contact button in mobile menu */
  .nav2-btn.show-in-menu {
    display: none !important;
  }

  /* Navbar container layout */
  .nav2-container {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 20px;
  }

  /* Make elements in desired order */
  .nav-toggle {
    order: 1; /* First */
  }

  .nav2-logo {
    order: 2; /* Logo in center */
    flex: 1;
    text-align: center;
  }

  .nav-search-toggle {
    order: 3; /* Search icon at the right */
  }

  /* Mobile menu (dropdown) below navbar */
  .nav2-menu {
    position: absolute;
    top: 70px; /* below nav bar */
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--light);
    display: none; /* hidden by default */
    z-index: 1500;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav2-menu.show {
    display: flex !important;
  }

  /* Mobile search input dropdown */
  .nav2-search {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    margin: 0 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.35s ease;
    z-index: 1600;
  }

  .nav2-search.show {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 15px;
  }

  .nav2-search input {
    width: 100%;
  }
}
@media (max-width: 900px) {
  /* Navbar container */
  .nav2 {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    z-index: 2000;
  }

  .nav2-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: nowrap;
  }

  /* Hamburger menu */
  #navToggle,
  .nav-toggle {
    display: block;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    order: 1;
  }

  /* Logo in center */
  .nav2-logo {
    order: 2;
    flex: 1;
    text-align: center;
  }

  /* Search icon on right */
  #navSearchToggle,
  .nav-search-toggle {
    order: 3;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
  }

  /* Hide desktop contact button */
  .nav2-btn {
    display: none !important;
  }

  /* Mobile menu (dropdown) */
  #navMenu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px; /* below navbar height */
    left: 0;
    background: var(--light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    z-index: 1500;
  }

  #navMenu.show {
    display: flex !important;
  }

  /* Mobile search input dropdown */
  #navSearch {
    position: absolute;
    top: 60px; /* below navbar */
    left: 0;
    right: 0;
    margin: 0 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.35s ease;
    z-index: 1600;
  }

  #navSearch.show {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    padding: 10px 0;
  }

  #navSearch input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 25px;
    border: 1px solid var(--border);
  }
}
/* Desktop search adjustments */
@media (min-width: 901px) {
  /* Hide mobile search icon */
  #navSearchToggle {
    display: none;
  }

}
.nav2-search {
  position: relative;
  display: inline-block;
}

.nav2-search input {
  width: 300px;  /* adjust as needed */
  height: 50px;
  padding: 0 44px 0 18px; /* space for icon on right */
  border-radius: 30px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  color: var(--dark);
}

.nav2-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray);
  cursor: pointer;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}
