/* =========================================================
   Header: desktop OR mobile — never both
   Always stick to top (mobile + desktop)
   ========================================================= */

.site-header .navbar-area.nav-style-two,
.site-header .navbar-area.nav-style-two.fixed-top,
.site-header .navbar-area.nav-style-two.is-sticky {
  position: fixed !important;
  top: 0 !important; /* override legacy top: -40px on sticky */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  margin: 0;
}

/* When scrolled on desktop, collapse the grey topbar instead of shifting header */
@media (min-width: 992px) {
  .site-header .navbar-area.is-sticky #topbar {
    display: none !important;
  }

  .site-header .navbar-area.is-sticky .main-nav .navbar {
    margin-top: 0 !important;
  }
}

.navbar-area .mobile-nav {
  display: none !important;
}

.navbar-area .main-nav {
  display: block !important;
}

.navbar-area .main-nav .navbar-brand {
  position: relative;
}

.navbar-area .main-nav .navbar-brand img {
  height: 65px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.navbar-area .main-nav .navbar-brand .logo-sticky[hidden],
.navbar-area.is-sticky .main-nav .navbar-brand .logo-default {
  display: none !important;
}

.navbar-area.is-sticky .main-nav .navbar-brand .logo-sticky {
  display: inline-block !important;
}

.navbar-area .main-nav .collapse.navbar-collapse {
  display: flex !important;
}

/* Mobile header bar — logo left, phone center, hamburger far right */
.mobile-nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-height: 64px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.mobile-logo,
.mobile-phone,
.mobile-nav-toggle {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
  z-index: auto !important;
}

.mobile-logo {
  grid-column: 1;
  justify-self: start;
  line-height: 0;
  max-width: 120px;
}

.mobile-logo img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
}

.mobile-phone {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #ed1c24;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

.mobile-phone i {
  color: #2c3691;
  flex-shrink: 0;
}

.mobile-phone span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-toggle {
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: #2c3691;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 0.5rem 1rem 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: #2c3691;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a.active {
  color: #ed1c24;
}

.top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #2c3691;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.top-btn[hidden] {
  display: none !important;
}

/* Clear fixed header for page content (non-home) */
.about-section,
.transport-section,
.faq-section,
.terms-section,
.contact-section {
  padding-top: 140px !important;
}

.contact-section.quote_form {
  margin-top: 0 !important;
}

/* =========================================================
   Mobile / tablet breakpoint
   ========================================================= */
@media (max-width: 991.98px) {
  .navbar-area .mobile-nav {
    display: block !important;
    position: relative;
    z-index: 1000;
    background: #fff;
    width: 100%;
  }

  /* Keep open menu visible under the sticky bar */
  .navbar-area .mobile-menu:not([hidden]) {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1001;
  }

  .navbar-area .main-nav {
    display: none !important;
  }

  /* Kill legacy absolute positioning from responsive.css / meanmenu */
  .navbar-area .mobile-nav .logo,
  .navbar-area .mobile-nav .mobile-logo,
  .navbar-area .mobile-nav .mobile-nav-bar,
  .navbar-area .mobile-nav .mobile-phone,
  .navbar-area .mobile-nav .mobile-nav-toggle,
  .navbar-area .mean-container a.meanmenu-reveal {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
  }

  .navbar-area .mean-container .mean-bar {
    display: none !important;
  }

  .about-section,
  .transport-section,
  .faq-section,
  .terms-section,
  .contact-section {
    padding-top: 90px !important;
  }

  /* Home banner */
  .banner-style-two.banner-bg {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    min-height: auto;
    background-position: center;
  }

  .banner-style-two .banner-text h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .banner-style-two .banner-text p {
    font-size: 1.5rem !important;
    line-height: 1.25;
  }

  .get-quote-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 1rem;
  }

  .banner-style-two .get-quote-section .quote-card {
    padding: 1rem !important;
    max-width: 100%;
  }

  .task-div h3 {
    font-size: 0.95rem !important;
  }

  /* Services rows stack cleanly */
  .services_section img {
    max-width: 100%;
    height: auto !important;
  }

  .services_section .col-md-6.text-center {
    margin-bottom: 1.5rem;
  }

  .features-section .feature-card {
    margin-bottom: 1.25rem;
  }

  .features-section .feature-card span {
    margin-left: 0 !important;
  }

  /* Gallery / service cards */
  .service_div {
    height: auto !important;
    margin-bottom: 1.5rem;
  }

  .service_div img,
  .gallary_images img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
  }

  /* Logo strip */
  .logo-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  /* Booking form */
  .quote-form .ms-5,
  .quote-form .me-5 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .service_selection {
    margin-bottom: 1.25rem;
  }

  .colourPicker {
    display: block;
    overflow-x: auto;
  }

  .color-modal-dialog {
    max-width: 100%;
  }

  /* Footer */
  .footer-widget {
    margin-bottom: 1.5rem;
  }

  .work-carousel {
    padding: 1em 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .mobile-nav-bar {
    padding: 0.65rem 0.75rem;
  }

  .mobile-logo {
    max-width: 96px;
  }

  .mobile-logo img {
    max-width: 96px;
  }

  .mobile-phone {
    font-size: 0.8rem;
    gap: 0.25rem;
  }

  .mobile-phone span {
    font-size: 0.8rem;
  }

  .banner-style-two .banner-text h1 {
    font-size: 1.65rem !important;
  }

  .banner-style-two .banner-text p {
    font-size: 1.25rem !important;
  }

  .faq-section details summary h2 {
    font-size: 1rem;
  }
}

@media (max-width: 379.98px) {
  .mobile-logo {
    max-width: 88px;
  }

  .mobile-logo img {
    max-width: 88px;
  }

  .mobile-phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .mobile-phone i {
    font-size: 1.15rem;
  }
}

/* =========================================================
   Shared UI (carried from prior site.css)
   ========================================================= */

.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  max-width: 100%;
}

.ba-slider img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .ba-after {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba-slider .ba-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  cursor: ew-resize;
  z-index: 2;
}

.ba-slider .ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: #2c3691;
  border: 3px solid #fff;
}

.work-carousel {
  position: relative;
  padding: 1em 3rem;
}

.work-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.work-carousel-track::-webkit-scrollbar {
  display: none;
}

.work-carousel-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
  border: none;
  background: #fff;
}

@media (min-width: 768px) {
  .work-carousel-card {
    flex: 0 0 calc(33.333% - 0.75rem);
  }
}

.work-carousel-card img {
  object-fit: cover;
  width: 100%;
  height: 250px;
  padding: 3px;
  display: block;
}

.work-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6vh;
  height: 6vh;
  border-radius: 50%;
  border: 0;
  background-color: #e1e1e1;
  cursor: pointer;
  z-index: 2;
}

.work-carousel-btn.prev { left: 0.25rem; }
.work-carousel-btn.next { right: 0.25rem; }

.faq-section details.accordion-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.5rem;
}

.faq-section details summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0;
}

.faq-section details summary::-webkit-details-marker {
  display: none;
}

.faq-section details summary h2 {
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-section details[open] summary h2 i {
  transform: rotate(90deg);
}

.faq-section details .accordion-content {
  display: block !important;
  padding-bottom: 1rem;
}

.color-modal[hidden] {
  display: none !important;
}

.color-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.color-modal-dialog {
  background: #fff;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
}

.color-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.colourPicker td {
  padding: 2px;
}

.selected_color_2 {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  border: 1px solid #ccc;
  background-size: cover;
}

.quote-form .error {
  color: #ed1c24;
  font-size: 0.875rem;
}

.alert-text {
  color: #2e3192;
  font-size: 1rem;
}

.contact-section .form-control,
.quote-form .form-control {
  width: 100%;
}

.task-div.taxkactive {
  outline: 2px solid #ed1c24;
}

img {
  max-width: 100%;
  height: auto;
}
