:root {
  --bs-primary: #1c355e;
  --theme-secondary: #0f1c31;
  --theme-primary-rgb: 28, 53, 94;
  --theme-secondary-rgb: 15, 28, 49;
  --bs-warning: #f4b400;
  --dark-overlay: rgba(var(--theme-secondary-rgb), 0.55);
  --hero-overlay: rgba(var(--theme-secondary-rgb), 0.78);
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--theme-body-bg, #fff);
  color: #1f2937;
}

h1, h2, h3, h4, h5, h6, .section-heading {
  font-family: "Merriweather", serif;
}

.py-xl-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.site-navbar {
  background: rgba(var(--theme-secondary-rgb), 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.9rem 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.site-navbar .navbar-brand, .site-navbar .nav-link, .site-navbar .navbar-toggler {
  color: #fff;
}

.site-navbar .nav-link {
  font-weight: 600;
}

.site-navbar .nav-link.active, .site-navbar .nav-link:hover, .site-navbar .navbar-brand:hover {
  color: var(--bs-warning);
}

.offcanvas {
  background: var(--theme-secondary);
  color: #fff;
}

.offcanvas .nav-link {
  color: #fff;
  font-weight: 600;
}

.offcanvas .nav-link.active, .offcanvas .nav-link:hover {
  color: var(--bs-warning);
}

.masthead {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-overlay) 0%, rgba(7, 18, 36, 0.45) 60%, rgba(7, 18, 36, 0.3) 100%);
}

.home-hero {
  height: auto;
  min-height: 700px;
}

.page-hero {
  height: auto;
  min-height: 400px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
}

.overlay-card {
  position: relative;
  min-height: 280px;
  border-radius: 1.25rem;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
}

.overlay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--theme-secondary-rgb), 0.16) 10%, rgba(var(--theme-secondary-rgb), 0.84) 100%);
}

.overlay-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  z-index: 1;
}

.cta-parallax, .contact-banner {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-parallax {
  background-image: var(--theme-cta-image, url("/Themes/GardeningServices-0001/Assets/img/header.webp"));
  background-attachment: fixed;
}

.contact-banner {
  background-image: var(--theme-contact-image, var(--theme-cta-image, url("/Themes/GardeningServices-0001/Assets/img/header.webp")));
}

.cta-parallax::before, .contact-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
}

.contact-panel {
  background: rgba(var(--theme-secondary-rgb), 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.contact-panel .form-control {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.testimonial-card {
  border-radius: 1rem;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
  .home-hero {
    height: auto;
    min-height: 620px;
    padding-top: 100px;
  }
}

@media (max-width: 991.98px) {
  .page-hero {
    height: auto;
    min-height: 400px;
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

@media (min-width: 992px) {
  header.masthead.home-hero {
    height: auto;
    min-height: 700px;
    padding-top: 0;
    padding-bottom: 0;
  }

  header.masthead.page-hero {
    height: auto;
    min-height: 400px;
    padding-top: 120px;
    padding-bottom: 80px;
  }
}

@media (max-width: 991.98px) {
  .overlay-card {
    min-height: 360px;
  }
}

@media (max-width: 991.98px) {
  .cta-parallax {
    background-attachment: scroll;
  }
}


.site-navbar .services-dropdown-menu {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.site-navbar .services-nav-item {
  position: static;
}

.site-navbar .services-dropdown-menu:has(.tenant-mega-menu) {
  left: 50%;
  width: calc(100vw - 1.5rem);
  max-width: none;
  padding: 0;
  transform: translateX(-50%);
}

.tenant-mega-menu-shell {
  list-style: none;
}

.tenant-mega-menu {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 2.4fr);
  gap: 0;
  background: #fff;
}

.tenant-mega-menu__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(244, 180, 0, 0.38), transparent 34%),
    linear-gradient(145deg, var(--theme-secondary) 0%, var(--bs-primary) 100%);
}

.tenant-mega-menu__eyebrow {
  margin-bottom: 0.65rem;
  color: var(--bs-warning);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tenant-mega-menu__intro strong {
  font-family: "Merriweather", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.tenant-mega-menu__intro p {
  margin: 1rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.78);
}

.tenant-mega-menu__cta {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  color: #111827;
  background: var(--bs-warning);
  font-weight: 800;
  text-decoration: none;
}

.tenant-mega-menu__cta:hover {
  color: #111827;
  background: #ffd45a;
}

.tenant-mega-menu__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  max-height: min(62vh, 560px);
  padding: 1.35rem;
  overflow-y: auto;
}

.tenant-mega-menu__link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  border-radius: 0.75rem;
  min-height: 74px;
  padding: 0.55rem 0.75rem;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tenant-mega-menu__thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 0.85rem;
  color: #fff;
  background-color: var(--theme-secondary);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-mega-menu__thumb--empty {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

.tenant-mega-menu__link:hover,
.tenant-mega-menu__link.active {
  color: var(--bs-primary);
  background: rgba(var(--theme-primary-rgb), 0.08);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .site-navbar .services-dropdown-menu:has(.tenant-mega-menu) {
    width: auto;
    transform: none;
  }

  .tenant-mega-menu {
    display: block;
  }

  .tenant-mega-menu__intro,
  .tenant-mega-menu__links {
    padding: 1rem;
  }

  .tenant-mega-menu__links {
    grid-template-columns: 1fr;
  }
}
