/*
Theme Name: ForeverLawn
Author: Josh Yager
Author URI: https://thedevq.com/
Description: Custom Theme build by The Dev Q
Version: 1.0.0
*/


/* site max-width on mobile overflow-x hidden not scrollable */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
}


/* -----------------------------------------------------------------------------
 * CSS Variables
 * -------------------------------------------------------------------------- */



:root {
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 30px;
  --spacing-xl: 60px;

  /* Z-index layers */
  --z-index-dropdown: 3;

  /* Transitions */
  --transition-fast: all 0.1s ease-in-out;
  --transition-default: all 0.3s ease-in-out;

  /* Other */
  --video-aspect-ratio: 56.25%;
  /* 16:9 */
}

/* -----------------------------------------------------------------------------
 * Base Elements
 * -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  position: relative;
  font-family: var(--font2);
  font-weight: 400;
  color: #333131;
  line-height: 1.5;
}

a {
  color: var(--secondary);
  font-weight: 600;
}

p, ul, li {
  font-family: var(--font2);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

/* -----------------------------------------------------------------------------
 * Typography
 * -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font1);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

@media (max-width:991px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 1rem;
  }

  p {
    font-size: 16px;
  }
}

.bigger-title {
  font-size: 4rem;
}

.sub-title {
  font-size: 24px;
}

.cs-topper {
  font-family: var(--font2);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  margin-top: 0;
  color: var(--secondary);
  letter-spacing: 3px;
}

.cs-title {
  font-size: 34px;
  margin: 0;
  line-height: 1;
  font-weight: 800;
  max-width: 530px;
  color: var(--primary);
}

/* -----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */
.container-fluid {
  max-width: 2400px;
  margin: auto;
}

.videoWrapper {
  position: relative;
  padding-bottom: var(--video-aspect-ratio);
  height: 0;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* -----------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn {
  text-decoration: none;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 300px;
  padding: var(--button-padding, 15px);
  font-weight: 600;
  text-align: center;
  transition: var(--transition-default);
  border: 2px solid var(--primary);
  border-radius: 30px;
  font-size: initial;
}

.btn i {
  margin-left: var(--spacing-sm);
  font-size: 14px;
}

.btn:hover {
  background: var(--tertiary) !important;
  color: black;
  border: 2px solid var(--tertiary);
}

/* Button Variants */
.btn.btn-secondary {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: var(--primary);
}

.btn.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn.btn-tertiary {
  background: var(--tertiary);
  border: 2px solid var(--tertiary);
}

.btn.btn-white {
  background: white;
  color: var(--primary);
}

.btn.white:hover {
  background: var(--primary);
  color: white;
}

.btn.btn-secondary.border {
  background: transparent;
  color: white;
  border: 2px solid var(--secondary);
}

.btn.btn-secondary.border:hover {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: black;
}

/* -----------------------------------------------------------------------------
 * Header & Navigation
 * -------------------------------------------------------------------------- */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.3s ease-in-out;
  background: transparent;
}

.header-container.sticky {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container.sticky .devq-header {
  padding: 10px 0;
}

.header-container.sticky .mainLogo {
  width: 160px;
}

.header-container.sticky .menutop ul {
  gap: 25px;
}

.header-container.sticky .menutop ul li a {
  font-size: 14px;
}

.header-container.sticky .navbtn1 a,
.header-container.sticky .navbtn2 a {
  padding: 10px 20px;
  font-size: 14px;
}

.header-container.no-sticky {
  position: absolute !important;
  top: auto;
  left: auto;
  right: auto;
  background: transparent;
}

.devq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: var(--spacing-md) 0;
}

.mainLogo {
  padding: 0;
  display: block;
  width: 200px;
  height: auto;
  margin: 0;
  position: relative;
}

/* Main Menu */
.menutop ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.menutop ul li a {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 10px #00000091;
}

.menutop ul li a:hover {
  color: var(--secondary);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  transform-origin: center top 0;
  transition: var(--transition-fast);
  min-width: 270px;
  left: -10px;
  overflow: visible;
  padding-top: var(--spacing-sm);
}

ul.dropdown-menu {
  display: none;
}

.dropdown:hover ul.dropdown-menu {
  display: block;
  position: absolute;
  color: white;
  padding-top: var(--spacing-sm);
  z-index: var(--z-index-dropdown);
  padding-left: 0;
}

.dropdown-menu a {
  margin: 0 !important;
}

.dropdown-menu li a {
  background: var(--primary);
  padding: var(--spacing-sm) var(--spacing-md);
  color: white !important;
  display: block;
  border-bottom: 1px solid white;
  transition: var(--transition-fast);
}

.dropdown-menu li:last-child a {
  border-bottom: 0;
}

.dropdown-menu li a:hover {
  background: var(--secondary);
  color: white !important;
}

/* Third Level Menu (Sub-Sub Menus) */
.menu-depth-2 {
  display: none !important;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 250px;
  z-index: calc(var(--z-index-dropdown) + 1);
  padding-top: 0;
  visibility: hidden;
  opacity: 0;
}

/* Hide third level menu when parent dropdown is shown but not directly hovered */
.dropdown:hover .menu-depth-2 {
  display: none !important;
}

/* Show third level menu ONLY when directly hovering the specific second level item */
.dropdown-menu li.dropdown:hover>.menu-depth-2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Third level menu items */
.menu-depth-2 li a {
  background: var(--tertiary);
  color: white !important;
  border-bottom: 1px solid var(--primary);
  text-shadow: none;
}

.menu-depth-2 li a:hover {
  background: var(--secondary);
  color: white !important;
  text-shadow: none;
}

.menu-depth-2 li:last-child a {
  border-bottom: 0;
}

/* Arrow indicators */
a.dropdown-toggle i {
  padding-left: 5px;
  font-size: 14px;
}

i.submenu-indicator {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Ensure proper positioning for nested menus */
.dropdown-menu li {
  position: relative;
}

.sub-sub-menu-item {
  position: relative;
}

@media (min-width:1199px) {
  .navbtn1 a {
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 0 10px #ffffff5e;
  }

  .navbtn1 a:hover {
    background: white !important;
    color: var(--primary) !important;
    text-shadow: none !important;
  }

  .navbtn2 a {
    background: var(--secondary);
    color: var(--primary) !important;
    border: 2px solid var(--secondary);
    padding: 15px 30px;
    border-radius: 30px;
    text-shadow: none !important;
    box-shadow: 0 0 10px #ffffff5e;
  }

  .navbtn2 a:hover {
    background: var(--primary) !important;
    color: white !important;
    text-shadow: none !important;
  }
}

@media (max-width:1199px) {
  .navbtn2 a {
    background: var(--primary) !important;
    color: white !important;
  }
}

.menu-depth-1,
.menu-item-has-children {
  position: relative;
}

/* Mobile Menu */
nav#menu:not(.mm-menu) {
  display: none;
}

.mm-menu {
  --mm-color-background: #fff;
}

.mm-listitem__text, .mm-navbar__title>span {
  font-weight: 600;
  color: var(--primary);
}

/* Hamburger Menu */
.mburger {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.mburger:hover,
.mburger:focus,
.mburger:active {
  transform: scale(1.1);
}

.mburger-line {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mburger:hover .mburger-line:nth-child(1) {
  transform: translateY(-2px);
}

.mburger:hover .mburger-line:nth-child(3) {
  transform: translateY(2px);
}

/* Active state (when menu is open) */
.mburger.is-active .mburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mburger.is-active .mburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mburger.is-active .mburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.header-container.sticky .mburger {
  width: 26px;
  height: 20px;
}

.header-container.sticky .mburger-line {
  height: 2px;
}

/* Mobile Header */
.flextophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

img.mobilelogo {
  width: 230px;
  margin: 0 var(--spacing-md);
}

.mobilemen {
  margin: 0px 0 0;
  display: none;
  align-items: center;
  gap: 15px;
}

img.mobileLogo {
  padding: 30px;
}

/* Mobile CTA Button */
.mobile-cta-button {
  background: var(--secondary);
  color: var(--primary) !important;
  border: 2px solid var(--secondary);
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-shadow: none;
}

.mobile-cta-button:hover {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
}

.header-container.sticky .mobile-cta-button {
  padding: 6px 12px;
  font-size: 13px;
}

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.site-footer {
  color: white;
}

/* Footer Main Section */
.footer-main {
  background: var(--tertiary);
  padding: 60px 0 50px;
}

/* Footer Logo */
.footer-logo {
  text-align: center;
  margin-bottom: 40px;
}

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

/* Footer Buttons */
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.footer-buttons .btn {
  min-width: 200px;
  text-align: center;
}

/* Footer Columns */
.footer-columns {
  display: flex;
  flex-wrap: wrap;
}

.footer-column {
  padding: 0 15px;
}

.footer-column-left {
  width: 35%;
  flex: 0 0 calc(35% - 15px);
}

.footer-column-middle {
  width: 20%;
  flex: 0 0 calc(20% - 15px);
}

.footer-column-middle2 {
  width: 20%;
  flex: 0 0 calc(20% - 15px);
}

.footer-column-right {
  width: 25%;
  flex: 0 0 calc(25% - 15px);
}

.footer-column-title {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 0;
}

.footer-column-content {
  color: white;
  line-height: 1.6;
}

.footer-column-content p {
  color: white;
  margin-bottom: 15px;
}

/* Brochure Link */
.footer-brochure-link {
  margin-top: 15px;
}

.footer-brochure-link a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-brochure-link a i {
  margin-right: 5px;
}

.footer-brochure-link a:hover {
  color: white;
}

/* Footer Menu */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--secondary);
}

/* Contact List */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact-item i {
  margin-right: 10px;
  margin-top: 2px;
  color: var(--secondary);
  width: 16px;
  flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--secondary);
}

/* Copyright Bar */
.footer-copyright {
  background-color: white;
  padding: 20px 0;
}

.footer-copyright-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright-text {
  margin: 0;
  font-size: 0.9rem;
}

.footer-copyright-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.footer-copyright-menu li {
  margin: 0;
}

.footer-copyright-menu a {
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  color: initial;
}

.footer-copyright-menu a:hover {
  color: var(--secondary);
}

/* Legacy Footer Classes (for backward compatibility) */
.footerfluidcolor {
  padding: 70px 0 40px;
  background-color: var(--primary);
}

.footerfluid2 {
  background-color: var(--primary);
  padding: 20px 0;
}

.footerfluid2 p {
  text-align: center;
  color: white;
  margin: 0;
}

/* -----------------------------------------------------------------------------
 * Utility Classes
 * -------------------------------------------------------------------------- */
.mobileonly,
.mobileOnly {
  display: none;
}

/* -----------------------------------------------------------------------------
 * Browser Customization
 * -------------------------------------------------------------------------- */
::selection {
  background: var(--tertiary);
  color: var(--secondary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--tertiary);
}

/* -----------------------------------------------------------------------------
 * Content Styles
 * -------------------------------------------------------------------------- */
.maincopy ul li {
  list-style: none;
  position: relative;
  margin-bottom: var(--spacing-md);
}

/* -----------------------------------------------------------------------------
 * Media Queries
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {

  /* Header & Navigation */
  .mainLogo {
    margin: 0 auto;
    width: 120px;
    height: auto;
  }

  .header-container.sticky .mainLogo {
    width: 100px;
  }

  .header-container.sticky .devq-header {
    padding: 8px 0;
  }

  .menutop {
    display: none;
  }

  .mobilemen {
    display: inherit;
  }

  /* Utility Classes */
  .mobileonly,
  .mobileOnly {
    display: initial;
  }

  .desktopOnly {
    display: none;
  }

  /* Responsive Footer Styles */
  @media (max-width: 991px) {
    .footer-column-left {
      width: 100%;
      flex: 0 0 100%;
      margin-bottom: 30px;
    }

    .footer-column-middle,
    .footer-column-middle2 {
      width: 50%;
      flex: 0 0 calc(50% - 15px);
    }

    .footer-column-right {
      width: 100%;
      flex: 0 0 100%;
      margin-top: 30px;
    }
  }

  @media (max-width: 767px) {
    .hideimg .bci-image-container {
      display: none !important;
    }

    .footer-main {
      padding: 40px 0 30px;
    }

    .footer-buttons {
      flex-direction: column;
      align-items: center;
    }

    .footer-buttons .btn {
      width: 100%;
      max-width: 300px;
      margin-bottom: 10px;
    }

    .footer-column-middle,
    .footer-column-middle2,
    .footer-column-right {
      width: 100%;
      flex: 0 0 100%;
      margin-bottom: 30px;
    }

    .footer-columns {
      gap: 0;
    }

    .footer-column {
      padding: 0;
    }

    .footer-copyright-content {
      flex-direction: column;
      text-align: center;
      gap: 15px;
    }

    .footer-copyright-menu {
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
    }
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.75rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  .bigger-title {
    font-size: 3rem;
  }

  .sub-title {
    font-size: 20px;
  }
}

.header-container:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background gradient black top to down */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.header-container:before {
  content: "";
  width: 100%;
  height: 100px;
  left: 0;
  top: 0;
  position: absolute;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
}