/* KBD — Header Menu Option A (ClickUp 86bcvk87v, Nov 2026). Copied unchanged from the team's Custom CSS & JS entry 6308
   (24 Nov 2026); edit here now. Loaded after site.css and before fixes.css.
   Utility bar, two-column Countertops dropdown, mobile menu (CTAs, accordions, bottom links).
   Pairs with the JS entry "Header Menu – Option A (mobile accordion)". */

/* ---------- Utility bar ---------- */
.header-topbar .desktop-display .phone-n { margin-left: 12px; }

/* ---------- Desktop (menu not collapsed) ---------- */
@media (min-width: 1025px) {
  #menu-header-menu > li.kbd-m-only,
  #menu-header-menu .kbd-acc-toggle { display: none !important; }

  /* Countertops: two grouped columns (Materials | Planning Your Countertops) */
  #menu-header-menu > li.kbd-cols-2:hover > .dropdown-menu,
  #menu-header-menu > li.kbd-cols-2:focus-within > .dropdown-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(210px, auto));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: 16px;
    min-width: 460px;
  }
  #menu-header-menu li.kbd-col-heading > a {
    pointer-events: none;
    cursor: default;
    text-transform: uppercase;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    color: #1f76a6 !important;
  }
}

/* ---------- Mobile + tablet (collapsed menu, <=1024px) ---------- */
@media (max-width: 1024px) {
  .navbar .navbar-collapse.collapse.in { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #menu-header-menu > li { height: auto !important; float: none !important; }

  /* Get an Estimate + Call Us at the top */
  #menu-header-menu > li.contact-button { display: none !important; }
  #menu-header-menu > li.kbd-m-cta {
    display: inline-block !important;
    width: 47.5%;
    vertical-align: top;
    margin: 14px 0 10px;
  }
  #menu-header-menu > li.kbd-m-estimate { margin-right: 3%; }
  #menu-header-menu > li.kbd-m-cta > a {
    display: block !important;
    text-align: center;
    padding: 12px 6px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  #menu-header-menu > li.kbd-m-estimate > a { background: #1b79ac !important; color: #fff !important; border: 2px solid #1b79ac; }
  #menu-header-menu > li.kbd-m-call > a { background: #fff !important; color: #1b79ac !important; border: 2px solid #1b79ac; }

  /* Main rows */
  #menu-header-menu > li:not(.kbd-m-only):not(.contact-button) { position: relative; border-bottom: 1px solid #ececec; }
  #menu-header-menu > li:not(.kbd-m-only):not(.contact-button) > a { padding-right: 52px !important; }

  /* Accordions */
  #menu-header-menu > li.menu-item-has-children > a .caret { display: none; }
  #menu-header-menu > li.menu-item-has-children > .dropdown-menu {
    display: none !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 10px 14px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  #menu-header-menu > li.menu-item-has-children.kbd-open > .dropdown-menu { display: block !important; }
  #menu-header-menu .kbd-acc-toggle {
    position: absolute; top: 0; right: 0;
    width: 48px; height: 44px; padding: 0;
    border: 0; background: transparent;
    color: #1b79ac; font-size: 24px; line-height: 44px; font-weight: 400;
    cursor: pointer;
  }
  #menu-header-menu li.kbd-col-heading > a {
    pointer-events: none;
    text-transform: uppercase;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    color: #1f76a6 !important;
    padding-top: 10px !important;
  }

  /* Financing · Deals · Commercial on one line at the bottom */
  #menu-header-menu > li.kbd-m-util { display: inline-block !important; width: auto !important; border: 0 !important; }
  #menu-header-menu > li.contact-button + li.kbd-m-util { margin-top: 12px; }
  #menu-header-menu > li.kbd-m-util > a { display: inline-block !important; padding: 8px 0 !important; font-size: 12px !important; color: #555 !important; }
  #menu-header-menu > li.kbd-m-util + li.kbd-m-util::before { content: "\00B7"; margin: 0 8px; color: #999; }
}

/* ---------- Phones: slim utility bar ---------- */
@media (max-width: 767px) {
  #header-topbar .kbd-util-mobile { text-align: center; font-size: 11px; line-height: 1.6; }
  #header-topbar .kbd-util-mobile > span > a { color: #000 !important; text-transform: uppercase; font-size: 11px; font-weight: 600; }
  #header-topbar .kbd-util-mobile .phone-n { margin-left: 8px; }
}

