:root {
  --brand-gradient: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
}

body {
  background-color: #f8f9fb;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1rem;
  position: relative;
  z-index: 1080;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.pipe {
  pointer-events: none;
  color: #fff;
}

/* Evenly spaced, one-line nav (desktop topbar) */
.topbar .nav-inline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: space-between;
  align-items: center;
  column-gap: clamp(0.5rem, 2vw, 1.25rem);
  font-size: 1.1rem;
  width: 100%;
  white-space: nowrap;
  overflow: visible; /* avoid clipping dropdowns */
}

/* Enable hover-open for topbar dropdowns on desktop only */
@media (min-width: 992px) {
  .topbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* ---------- Navbar (main) ---------- */
.navbar {
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.navbar-brand img {
  max-height: 160px;
  height: auto;
  width: auto;
}
.navbar-brand:hover,
.navbar-brand:focus-visible {
  transform: none;
  box-shadow: none;
  filter: none;
}
.tagline {
  color: #6c757d;
  font-style: italic;
}

/* ---------- Nav links / toggles (shared) ---------- */
.navbar .nav-link,
.navbar .dropdown-toggle,
.topbar .nav-inline a {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

/* Hover / focus / open state animation (links only) */
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-item:hover > .dropdown-toggle,
.navbar .nav-item.show > .dropdown-toggle,
.topbar .nav-inline a:hover,
.topbar .nav-inline a:focus-visible {
  transform: translateY(-2px) scale(1.08);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Underline (works alongside Bootstrap caret ::after) */
.navbar .nav-link::before,
.navbar .dropdown-toggle::before,
.topbar .nav-inline a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #fff;
  transition:
    width 0.25s ease,
    left 0.25s ease;
}
.navbar .nav-link:hover::before,
.navbar .nav-link:focus-visible::before,
.navbar .nav-item:hover > .dropdown-toggle::before,
.navbar .nav-item.show > .dropdown-toggle::before,
.topbar .nav-inline a:hover::before,
.topbar .nav-inline a:focus-visible::before {
  width: 100%;
  left: 0;
}

/* Caret animation */
.navbar .dropdown-toggle::after,
.topbar .dropdown-toggle::after {
  margin-left: 0.35em;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.navbar .nav-item:hover > .dropdown-toggle::after,
.navbar .nav-item.show > .dropdown-toggle::after,
.topbar .nav-item:hover > .dropdown-toggle::after {
  transform: rotate(180deg);
  filter: brightness(1.15);
}

/* Dropdown menu look */
.topbar .dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  min-width: 280px;
  background: #fff;
  color: #212529;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  z-index: 1080;
  max-height: 70vh;
  overflow: auto;
}

.topbar a,
.topbar a:hover {
  color: #fff;
  font-size: 22px;
}

/* Keep dropdowns open on hover (desktop) */
@media (min-width: 992px) {
  .topbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Tighten the gap: put menu right under the toggle */
.topbar .dropdown {
  position: relative;
}
.topbar .dropdown-menu {
  position: absolute;
  top: 100%; /* was 130% — too much gap */
  left: 0;
  margin-top: 0.35rem; /* small visual offset */
  z-index: 1080;
}

/* Hover-bridge: invisible strip below the toggle so moving
   the cursor into the menu keeps :hover active on the parent */
.topbar .dropdown-toggle {
  position: relative;
  display: inline-block;
  transform-origin: center bottom;
}
.topbar .dropdown-toggle::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -10px;
  height: 14px; /* bridge thickness */
  /* transparent but still hoverable */
}

/* Bounce + grow on hover (safe with the bridge) */
.topbar a {
  display: inline-block;
  transition: transform 0.2s ease;
}
.topbar a:hover {
  transform: scale(1.18);
  animation: topbar-bounce 0.3s ease;
}

.dropdown-menu .dropdown-item {
  color: #212529;
  border-radius: 0.5rem;
}
.dropdown-menu .dropdown-item:hover {
  color: #333 !important;
  background: #f1f3f5;
  transform: translateY(-1px) scale(1.02);
}

/* ---------- Search ---------- */
.search-compact input {
  max-width: 240px;
}

/* ---------- Hero ---------- */
.carousel-item {
  height: 35vh;
  min-height: 420px;
}
.carousel-item .bg-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
  z-index: 1;
}
.hero-caption {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: center;
}

/* ---------- Sections & cards ---------- */
section {
  padding: 4rem 0;
}
.feature {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.service-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border: 0;
  border-radius: 1rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.15);
}
.rounded-2xl {
  border-radius: 1rem;
}
.list-group-item {
  background-color: transparent !important;
}

/* ---------- Footer links ---------- */
footer a {
  color: #ced4da;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}

/* ---------- Global hover effects for interactive elements ---------- */
a,
.btn,
.carousel-control-prev,
.carousel-control-next {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  will-change: transform;
}
a:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.18);
  filter: brightness(1.02);
}

/* Lighter motion for topbar links (overrides global) */
.topbar a:hover,
.topbar a:focus-visible {
  box-shadow: none;
  transform: translateY(-1px) scale(1.03);
}

/* Card hover glow as a directional drop shadow (blue) */
.card:hover,
.ratio:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 8px 12px 20px rgba(13, 110, 253, 0.75) !important;
  filter: brightness(1.05);
  border-radius: 1rem;
}

.nav.justify-content-center .nav-item {
  flex: 1; /* equal width for all */
  text-align: center; /* center text inside */
}

/* Animated underline only for top-level nav links */
.topbar .nav-link {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* underline hidden by default */
.topbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

/* animate underline on hover (top-level only) */
.topbar .nav-link:hover::after,
.topbar .nav-link:focus-visible::after {
  width: 100%;
}

/* Disable underline for dropdown items */
.dropdown .nav-link::after {
  content: none !important;
}
/* ---------- Mobile tweaks (affecting the off-canvas / collapse menu) ---------- */
@media (max-width: 991.98px) {
  .navbar .nav-link {
    font-size: 1.05rem;
  }
  #mobileServices .nav-link {
    font-size: 1rem;
  }
  #mobileServices .nav-link::before {
    content: "•";
    margin-right: 0.5rem;
    opacity: 0.5;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  #mobileServices .nav-link:hover,
  #mobileServices .nav-link:focus {
    background-color: transparent !important;
    color: var(--bs-primary) !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

.social-icons {
  font-size: 2rem;
}

/* Desktop/hover devices only */
@media (hover: hover) and (pointer: fine) {
  /* Keep open when hovering the li, the link is focused, or the menu is hovered */
  #aboutItem:hover > .dropdown-menu,
  #aboutItem:focus-within > .dropdown-menu {
    display: block !important; /* beat Bootstrap's default display:none */
  }
}

/* Anchor the results to the form and lift them above the topbar/navbar */
#siteSearch {
  position: relative;
}

#siteSearchList {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 2000 !important; /* higher than sticky/fixed bars */
  max-height: 60vh;
  overflow: auto;
  background-color: #fff;
}
.navbar {
  z-index: 1100;
}

.new-location {
  background-image: url(https://images1.loopnet.com/i2/_WSKu3l81lPuys_guAYp9zueqQQVY6DAj8RQdjRojck/112/image.jpg);
  background-size: cover;
}
.coming-soon {
  color: #fff;
  background-color: #333;
  padding: 20px;
  opacity: 0.8;
}
