/* ---------- 1. Root Tokens ---------- */
:root {
  --nav-primary: #0d6efd;
  --nav-dark: #0a2540;
  --nav-topbar-bg: #136a8a;
  --nav-brand-bg: #ffffff;
  --nav-link-color: #2c3e50;
  --nav-link-hover: #0d6efd;
  --nav-active: #0d6efd;
  --nav-transition: 0.25s ease;
}

/* ---------- 2. Base Reset ---------- */
html,
body {
  overflow-x: clip;
  width: 100%;
  position: relative;
}

body {
  margin: 0;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

/* ---------- 3. Header & Topbar ---------- */
.header {
  background: var(--nav-brand-bg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1030;
  transition: box-shadow var(--nav-transition);
}

.header.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.topbar {
  background: var(--nav-topbar-bg);
  padding: 8px 0;
  font-size: 13px;
}

.topbar .contact-info a {
  color: white;
  text-decoration: none;
  margin-left: 6px;
  transition: color var(--nav-transition);
}

.topbar .contact-info a:hover {
  color: #ffffff;
}

.topbar .contact-info i {
  color: white;
  font-style: normal;
}

/* ---------- 4. Social Links ---------- */
.topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  margin-left: 6px;
  font-size: 14px;
  transition: background var(--nav-transition), color var(--nav-transition);
  text-decoration: none;
}

.topbar .social-links a:hover,
.topbar .social-links a.facebook:hover {
  background: #1877f2;
  color: #fff;
}

.topbar .social-links a.instagram:hover {
  background: #e1306c;
  color: #fff;
}

.topbar .social-links a.linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

/* ---------- 5. Branding & Logo ---------- */
.branding {
  background: var(--nav-brand-bg);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo {
  text-decoration: none;
  gap: 10px;
}

.logo img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nav-dark);
  line-height: 1.25;
  white-space: nowrap;
}

/* ---------- 6. Nav Menu (Desktop) ---------- */
.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navmenu ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--nav-link-color);
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
  transition: color var(--nav-transition), background var(--nav-transition);
}

.navmenu ul li a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--nav-active);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--nav-transition);
}

.navmenu ul li a:hover {
  color: var(--nav-link-hover);
  background: rgba(13, 110, 253, 0.06);
}

.navmenu ul li a:hover::after,
.navmenu ul li a.active::after {
  transform: scaleX(1);
}

.navmenu ul li a.active,
.navmenu ul li a.fw-bold {
  color: var(--nav-active);
  font-weight: 700;
}

/* Dropdown Styles */
.navmenu .dropdown {
  position: relative;
}

.navmenu .dropdown ul {
  position: absolute;
  top: calc(100% + 15px);
  /* Starts slightly lower for animation */
  left: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 10px 0;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 220px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99;
}

.navmenu .dropdown:hover ul {
  visibility: visible;
  opacity: 1;
  top: 100%;
  /* Slides up beautifully */
}

.navmenu .dropdown ul li {
  width: 100%;
}

.navmenu .dropdown ul li a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #444;
  transition: background 0.2s, color 0.2s;
}

.navmenu .dropdown ul li a:hover {
  background-color: rgba(13, 110, 253, 0.05);
  color: var(--nav-primary);
}

.navmenu .dropdown ul li a::after {
  display: none;
  /* Hide the little underline animation in the dropdown */
}

/* ---------- 7. Mobile Toggle Icon ---------- */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--nav-dark);
  transition: color var(--nav-transition), transform var(--nav-transition);
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
}

.mobile-nav-toggle:hover {
  color: var(--nav-primary);
  background: rgba(13, 110, 253, 0.08);
}

/* ---------- 8. Sticky Side Buttons ---------- */
.sticky-side-buttons {
  position: fixed;
  right: 0;
  /* Reset to 0 since writing-mode fixes the overflow bug */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1035;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sticky-side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  /* Thickness of the button */
  padding: 24px 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-enquire {
  background-color: #26d07c;
}

.btn-enquire:hover {
  background-color: #1eb76a;
}

.btn-pickup {
  background-color: #e53935;
}

.btn-pickup:hover {
  background-color: #c62828;
}

/* ---------- 9. WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 160px;
  right: 35px;
  /* Shifted left to avoid overlapping sticky side buttons */
  background-color: #25d366;
  color: #FFF !important;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  background-color: #20b858;
  transform: scale(1.1);
}

/* ---------- Back to Top Button ---------- */


/* ---------- 10. Enquiry Modal ---------- */
.enquiry-modal-content {
  border-radius: 24px;
  padding: 24px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.enquiry-modal-header {
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
}

.enquiry-modal-title {
  font-weight: 800;
  color: #0a2540;
  font-size: 28px;
}

.enquiry-modal-subtitle {
  color: #0d0d0eff;
  font-size: 15px;
  margin-top: 5px;
  margin-bottom: 15px;
}

.enquiry-modal-divider {
  width: 40px;
  height: 4px;
  background-color: #e53935;
  border-radius: 2px;
  margin-bottom: 25px;
}

.enquiry-btn-close {
  background: #f8f9fa;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}

.enquiry-btn-close:hover {
  background: #e9ecef;
  color: #333;
}

.enquiry-form-label {
  font-size: 11px;
  font-weight: 700;
  color: #1c1e20ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.enquiry-form-control,
.enquiry-form-select {
  background-color: #f8f9fa;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  width: 100%;
}

.enquiry-form-control:focus,
.enquiry-form-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  background-color: #fff;
}

.enquiry-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230a2540' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.enquiry-submit-btn {
  background-color: #26d07c;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 14px 30px;
  font-size: 16px;
  transition: background 0.3s;
  width: 100%;
  max-width: 200px;
  margin-top: 15px;
}

.enquiry-submit-btn:hover {
  background-color: #1eb76a;
}

/* ---------- 11. All Mobile Media Queries (768px & 991px) ---------- */
@media (max-width: 991px) {

  /* WhatsApp button */
  .whatsapp-float {
    bottom: 150px;
    right: 5px;
    /* On mobile/tablet, shifted inwards */
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* Back to Top button */

}

@media (max-width: 768px) {

  /* Branding & Logo */
  .brand-title {
    font-size: 14px;
    white-space: nowrap;
  }

  .logo img {
    max-height: 40px;
  }

  /* Show hamburger icon */
  .mobile-nav-toggle {
    display: block;
  }

  /* WhatsApp button */
  /* .whatsapp-float {
    bottom: 40px;
    right: 40px; 
    width: 50px;
    height: 50px;
    font-size: 26px;
  } */

  /* navmenu becomes a flex row: icon on right, ul drops below */
  .navmenu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Hidden dropdown panel */
  .navmenu ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 8px 0;
    border-radius: 10px;
    z-index: 1035;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Show when active class is toggled by JS */
  .navmenu .collapse.show {
    display: flex;
  }

  .navmenu ul li {
    width: 100%;
  }

  .navmenu ul li a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .navmenu ul li:last-child a {
    border-bottom: none;
  }

  .navmenu ul li a::after {
    display: none;
  }

  .navmenu ul li a:hover {
    background: rgba(13, 110, 253, 0.06);
    padding-left: 26px;
  }

  /* Sticky buttons */
  .sticky-side-buttons {
    top: 40%;
    /* margin-right: 7px; */
  }

  .sticky-side-btn {
    width: 32px;
    /* Thinner buttons */
    padding: 14px 0;
    /* Shorter buttons */
    font-size: 11px;
    /* Smaller text */
    letter-spacing: 0;
  }


}

/* Fix for Bootstrap .collapse overriding desktop menu */
@media (min-width: 769px) {
  .navmenu .collapse {
    display: flex !important;
  }
}


/* Topbar mobile fix */
@media (max-width: 768px) {
  .topbar {
    font-size: 11.5px;
    padding: 6px 0;
  }
}


/* ---------- Mobile Modal Tweaks ---------- */
@media (max-width: 576px) {

  /* Force large margins so it doesn't touch the screen edges */
  .modal-dialog {
    margin: 2.5rem 1.5rem !important;
  }

  /* Shrink internal padding */
  .enquiry-modal-content {
    padding: 10px !important;
  }

  /* Shrink Typography */
  .enquiry-modal-title {
    font-size: 20px !important;
  }

  .enquiry-modal-subtitle {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .enquiry-modal-divider {
    margin-bottom: 12px !important;
  }

  /* Shrink Form Inputs */
  .enquiry-form-control,
  .enquiry-form-select {
    padding: 8px 12px !important;
    height: 42px !important;
    font-size: 13px !important;
  }

  .enquiry-form-label {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  /* Reduce the massive gap between stacked form rows */
  .enquiry-modal-content .row.g-4 {
    --bs-gutter-y: 0.75rem;
  }

}