/* Top-level nav items (e.g., About, Services, Contact) */
.main-header-menu > .menu-item > a {
    color: #F2F5F7 !important;
}

/* Top-level nav items: hover, focus, active (keep light gray) */
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item > a:focus,
.main-header-menu > .menu-item.current-menu-item > a,
.main-header-menu > .menu-item.current-menu-ancestor > a {
    color: #F2F5F7 !important;
}

/* DROPDOWN MENU ITEMS — force readable black text */
.main-header-menu .sub-menu a {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: 500;
}

/* Optional: Dropdown hover effect */
.main-header-menu .sub-menu a:hover {
    color: #1F4058; /* Your brand blue on hover */
}

/* Remove white space under the header site-wide */
.fl-page-content .fl-row:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Optional: Adjust the first row if needed */
body .fl-builder-content .fl-row:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Hide default page titles */
.page .fl-page-header,
.page h1.entry-title {
  display: none;
}

/* Remove top padding/margin that causes the white space */
.page .fl-content,
.page .fl-page-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Remove gap below header */
.site-header {
  margin-bottom: 0;
}

/* Remove default top spacing from content area */
#content {
  margin-top: 0;
  padding-top: 0;
}

/* Ensure background color matches header or body */
.site-content {
  background-color: #1f4058; /* or match your header/nav color */
}
/* ======================
   ✅ Fix Mobile Menu Text Color & Visibility
   ====================== */

/* Top-level mobile nav items */
.ast-mobile-popup-inner .main-header-menu .menu-item > a {
  color: #1f4058 !important;     /* Dark blue */
  opacity: 1 !important;
  font-weight: 600;
}

/* Submenu items in mobile */
.ast-mobile-popup-inner .main-header-menu .menu-item .sub-menu a {
  color: #1f4058 !important;
  opacity: 1 !important;
}

/* On hover (just slightly darker) */
.ast-mobile-popup-inner .main-header-menu .menu-item > a:hover,
.ast-mobile-popup-inner .main-header-menu .menu-item .sub-menu a:hover {
  color: #132c3f !important;
}

/* Mobile menu panel background */
.ast-mobile-popup {
  background-color: #f2f5f7 !important;
}
/* ✅ Force mobile menu link text to appear readable */
.ast-mobile-popup-inner .main-header-menu .menu-item > a {
  color: #1f4058 !important;       /* Your dark blue */
  opacity: 1 !important;
  font-weight: 600;
  display: block;
}

/* ✅ Force submenu items in mobile menu */
.ast-mobile-popup-inner .main-header-menu .menu-item .sub-menu a {
  color: #1f4058 !important;
  opacity: 1 !important;
  font-weight: 500;
}

/* ✅ Optional: Mobile menu background */
.ast-mobile-popup {
  background-color: #f2f5f7 !important;
}

/* ✅ Prevent theme from applying unwanted light text on mobile */
.ast-header-break-point .ast-mobile-popup-drawer .main-header-menu li a {
  color: #1f4058 !important;
  opacity: 1 !important;
}
/* 🌐 Make ALL mobile menu links visible and styled */
.ast-header-break-point .ast-mobile-popup-inner .main-header-menu a {
  color: #1f4058 !important;      /* Dark blue for visibility */
  opacity: 1 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  background-color: transparent !important;
}

/* ✅ Mobile submenu links */
.ast-header-break-point .ast-mobile-popup-inner .main-header-menu .sub-menu a {
  color: #1f4058 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

/* 🧼 Remove any opacity on containers */
.ast-header-break-point .ast-mobile-popup {
  background-color: #f2f5f7 !important;
  opacity: 1 !important;
}

/* ✅ Remove inherited opacity or filters */
.ast-header-break-point .ast-mobile-popup-inner,
.ast-header-break-point .main-header-menu,
.ast-header-break-point .main-header-menu li,
.ast-header-break-point .main-header-menu li a {
  opacity: 1 !important;
  color: #1f4058 !important;
  filter: none !important;
  visibility: visible !important;
}

/* 💪 Ensure container doesn’t fade links */
.ast-header-break-point .ast-mobile-header-wrap {
  opacity: 1 !important;
  background: #f2f5f7 !important;
  filter: none !important;
}
.main-header-menu a[href="#"] {
  cursor: default;
  pointer-events: none;
}
.custom-footer {
    text-align: center;
    padding: 15px;
    background-color: #0b3d59;
    color: #ffffff;
    font-size: 16px;
    position: relative;
    z-index: 9999;
    isolation: isolate;
    bottom: 0;
    left: 0;
    width: 100%;
}

.custom-footer, .custom-footer * {
    pointer-events: auto !important;
}

.custom-footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.custom-footer a:hover {
    color: #1abc9c;
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 5px;
}

/* Icon link circles */
.footer-links a.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;              /* increased for breathing room */
    height: 40px;
    border-radius: 50%;
    background-color: #e1dfdb;
    margin: 0 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 10000;
}

/* SVG icon inside */
.footer-links a.icon-link svg {
    width: 20px;              /* slightly bigger */
    height: 20px;
    fill: #0b3d59;
    transition: fill 0.2s ease;
}

/* Hover lift effect */
.footer-links a.icon-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-hours {
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .footer-hours { margin-top: 8px; }
}
:focus-visible{outline:3px solid #000;outline-offset:2px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #000;outline-offset:2px}
/* Kick off the hero background image request early (homepage only) */
body.home::before{
  content: url("https://quillcraftconstruction.com/wp-content/uploads/hero-1536.webp");
  position:absolute;
  width:0; height:0;
  overflow:hidden;
  clip: rect(0 0 0 0);
}
