/* ============================================================
   HEADER — clean CSS matching live site measurements
   Above bar: 89px | Divider: 4px green | Nav bar: 50px
   Total header: ~159px
   ============================================================ */

/* ---- Reset / base ---- */
.site-header {
  background: #002d74;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  box-sizing: border-box;
}
.skip-link { display: none; }

/* ---- Max-width container used throughout header ---- */
.ast-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

/* ============================================================
   ABOVE HEADER — Logo left | Phone + Button right
   ============================================================ */
.ast-above-header-wrap,
.ast-above-header-bar {
  background: #002d74;
}

/* Two-column flex row: logo left, phone+btn right */
.site-above-header-wrap .ast-builder-grid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 89px;
}

/* Logo */
.site-header-above-section-left,
.site-header-above-section-left .ast-builder-layout-element,
.site-header-above-section-left .ast-site-identity {
  display: flex;
  align-items: center;
}
.custom-logo-link img.custom-logo {
  width: 335px;
  height: auto;
  display: block;
}

/* Right side: phone + button */
.site-header-above-section-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header-above-section-right .ast-builder-layout-element {
  display: flex;
  align-items: center;
}

/* Phone / text HTML */
.ast-header-html .ast-builder-html-element p {
  margin: 0;
  line-height: 1.3;
  text-align: right;
}
.ast-header-html .ast-builder-html-element span {
  display: block;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
}
.ast-header-html .ast-builder-html-element a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14pt;
}
.ast-header-html .ast-builder-html-element a:hover {
  text-decoration: underline;
}

/* REQUEST A QUOTE button */
.ast-header-button .ast-custom-button,
a.ast-custom-button {
  display: inline-block;
  background: #46711b;
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 14px 10px;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}
.ast-header-button .ast-custom-button:hover,
a.ast-custom-button:hover {
  background: #385915;
  color: #ffffff !important;
}

/* ============================================================
   PRIMARY BAR — green divider on right ~30% only
   Live site: primary bar grid is "0px 965px", divider in right col
   Simulated here with a gradient on the bar itself
   ============================================================ */
.ast-primary-header-bar,
.ast-main-header-wrap {
  background: #002d74;
}
/* Primary bar — no visible height, no gradient.
   Scoped to the DESKTOP header only: the mobile header reuses
   .ast-primary-header-bar / .ast-container for its visible logo+menu row,
   so these collapse rules must not apply to it. */
#ast-desktop-header .ast-primary-header-bar {
  height: 0;
  background: #002d74;
  padding: 0;
}
#ast-desktop-header .ast-primary-header-bar .ast-container { display: none; }

/* ============================================================
   BELOW HEADER — Navigation
   ============================================================ */
.ast-below-header-wrap,
.ast-below-header-bar {
  background: #002d74;
}
.site-below-header-wrap.ast-builder-grid-row-container {
  padding-bottom: 20px;
}
.site-below-header-section-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
.ast-builder-menu { width: 100%; }

/* ============================================================
   DESKTOP NAV MENU
   ============================================================ */
ul.main-header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Green line above Landscaping Tips → Our Work only */
.ast-builder-menu {
  position: relative;
}
.ast-builder-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: auto;
  right: 108px;
  width: 375px;
  height: 1px;
  background: #7fbc42;
}
ul.main-header-menu > li {
  position: relative;
}
ul.main-header-menu > li > a.menu-link {
  display: block;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 0 14px;
  line-height: 30px;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
}
ul.main-header-menu > li > a.menu-link:hover {
  color: #7fbc42;
}
/* Active / current page link */
ul.main-header-menu > li.current-menu-item > a.menu-link {
  color: #7fbc42;
}

/* Dropdown chevron */
ul.main-header-menu > li.menu-item-has-children > a.menu-link::after {
  content: ' \2304'; /* ⌄ */
  font-size: 13px;
  line-height: 1;
}

/* Sub-menu */
ul.main-header-menu li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 10px -2px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 220px;
  z-index: 1000;
}
ul.main-header-menu li:hover > .sub-menu {
  display: block;
}
ul.main-header-menu .sub-menu li a.menu-link {
  display: block;
  color: #002d74;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 12.6px 14px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
ul.main-header-menu .sub-menu li a.menu-link:hover {
  background: #f5f5f5;
}

/* Third-level sub-menu (Service Area > Colleyville > ...) */
ul.main-header-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* Hide mobile toggle on desktop */
#ast-desktop-header .ast-mobile-menu-buttons {
  display: none;
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
#ast-mobile-header {
  display: none;
  background: #002d74;
}

/* Mobile header — two rows, matching the live site:
   Row 1: logo (left) + Call/Text phone numbers (right)
   Row 2: REQUEST A QUOTE button (left) + hamburger (right)
   Keep the outer wrapper a plain block so a stray flex rule can't
   make a child overflow the viewport horizontally. */
#ast-mobile-header > .ast-main-header-wrap {
  display: block;
  padding: 0;
}
#ast-mobile-header .ast-container {
  padding: 10px 16px 12px;
}

/* Row 1: logo + phone */
.ast-mobile-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.site-branding-mobile {
  display: inline-block;
  line-height: 0;
}
.site-branding-mobile img {
  width: 240px;
  max-width: 58vw;
  height: auto;
  display: block;
}
.ast-mobile-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
  gap: 6px;
}
.ast-mobile-phone a {
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  padding: 5px 4px;
  min-height: 24px;
  box-sizing: border-box;
}
.ast-mobile-phone a:hover { color: #7fbc42; }

/* Row 2: quote button + hamburger */
.ast-mobile-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.ast-mobile-quote-btn {
  display: inline-block;
  background: #46711b;
  color: #ffffff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 11px 12px;
  text-decoration: none !important;
  white-space: nowrap;
}
/* Hide the screen-reader-only "Main Menu" label (was showing as text) */
#ast-mobile-header .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ast-menu-toggle {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.ast-svg-iconset svg { display: block; }
/* Show only hamburger icon (first span), hide X by default */
.ast-menu-toggle .ast-svg-iconset:first-child { display: inline-flex; }
.ast-menu-toggle .ast-svg-iconset:last-child  { display: none; }
.ast-menu-toggle.active .ast-svg-iconset:first-child { display: none; }
.ast-menu-toggle.active .ast-svg-iconset:last-child  { display: inline-flex; }

/* Mobile nav drawer */
.ast-mobile-nav-wrap {
  background: #002d74;
  border-top: 2px solid #7fbc42;
}
.ast-mobile-nav-wrap ul.main-navigation {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ast-mobile-nav-wrap .menu-item > a.menu-link {
  display: block;
  color: #7fbc42;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ast-mobile-nav-wrap .menu-item > a.menu-link:hover { color: #ffffff; }
.ast-mobile-nav-wrap .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.2);
}
.ast-mobile-nav-wrap .menu-item.open > .sub-menu { display: block; }
.ast-mobile-nav-wrap .sub-menu li a.menu-link {
  padding-left: 36px;
  font-size: 13px;
  color: #ffffff;
}
.ast-mobile-nav-wrap .sub-menu .sub-menu li a.menu-link { padding-left: 52px; }

/* ============================================================
   RESPONSIVE — switch to mobile header at 768px
   ============================================================ */
@media (max-width: 768px) {
  #ast-desktop-header { display: none; }
  #ast-mobile-header  { display: block; }
}
