/* Abram's Custom Header V4.1 - sticky + centered service menu */
:root {
  --abrams-blue: #2f348f;
  --abrams-red: #e02b20;
  --abrams-beige: #bdad9b;
  --abrams-slate: #546180;
  --abrams-coral: #f47a55;
  --abrams-white: #ffffff;
  --abrams-light: #f7f8fb;
  --abrams-border: #e7e9ef;
  --abrams-text: #182033;
  --abrams-muted: #5f6878;
  --abrams-shadow: 0 14px 35px rgba(24, 32, 51, 0.10);
}

#abrams-header-mount {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999999;
}

body.admin-bar #abrams-header-mount {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #abrams-header-mount {
    top: 46px;
  }
}

body.abrams-has-custom-header #main-header,
body.abrams-has-custom-header #top-header,
body.abrams-has-custom-header .et-l--header,
body.abrams-has-custom-header header#main-header {
  display: none !important;
}

body.abrams-has-custom-header #page-container,
body.abrams-has-custom-header.et_fixed_nav #page-container,
body.abrams-has-custom-header.et_transparent_nav #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.abrams-site-header,
.abrams-site-header *,
.abrams-mobile-tabbar,
.abrams-mobile-tabbar * {
  box-sizing: border-box;
}

.abrams-site-header {
  width: 100%;
  background: var(--abrams-white);
  color: var(--abrams-text);
  font-family: inherit;
  position: relative;
  z-index: 100000;
  border-bottom: 1px solid var(--abrams-border);
  box-shadow: 0 8px 24px rgba(24, 32, 51, 0.06);
}

.abrams-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.abrams-trustbar {
  background: var(--abrams-light);
  border-bottom: 1px solid var(--abrams-border);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--abrams-muted);
}

.abrams-trustbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.abrams-trustbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.abrams-trustbar__left span,
.abrams-trustbar__right {
  white-space: nowrap;
}

.abrams-trustbar__right {
  color: var(--abrams-blue);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.abrams-mainbar {
  background: var(--abrams-white);
}

.abrams-mainbar__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.abrams-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none !important;
}

.abrams-logo img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 190px;
}

.abrams-category-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--abrams-border);
  border-radius: 999px;
  background: var(--abrams-white);
  box-shadow: 0 3px 10px rgba(24, 32, 51, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.abrams-category-nav::-webkit-scrollbar,
.abrams-mobile-category-scroll::-webkit-scrollbar,
.abrams-service-menu::-webkit-scrollbar {
  display: none;
}

.abrams-category-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--abrams-muted) !important;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.abrams-category-link:hover {
  background: var(--abrams-light);
  color: var(--abrams-blue) !important;
}

.abrams-category-link.is-active {
  background: var(--abrams-blue);
  color: var(--abrams-white) !important;
}

.abrams-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.abrams-header-actions--tablet,
.abrams-mobile-actions,
.abrams-mobile-category-strip {
  display: none;
}

.abrams-call-button,
.abrams-write-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.abrams-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.abrams-call-button {
  background: var(--abrams-red);
  color: var(--abrams-white) !important;
  box-shadow: 0 8px 18px rgba(224, 43, 32, .18);
}

.abrams-write-button {
  background: var(--abrams-white);
  color: var(--abrams-blue) !important;
  border: 1px solid var(--abrams-beige);
}

.abrams-call-button:hover,
.abrams-write-button:hover {
  transform: translateY(-1px);
}

.abrams-round-action {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--abrams-beige);
  color: var(--abrams-blue) !important;
  background: var(--abrams-white);
  text-decoration: none !important;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(24, 32, 51, .07);
}

.abrams-round-action--call {
  background: var(--abrams-red);
  border-color: var(--abrams-red);
  color: var(--abrams-white) !important;
}

.abrams-servicebar {
  background: var(--abrams-white);
  border-top: 1px solid var(--abrams-border);
}

.abrams-servicebar .abrams-container {
  display: flex;
  justify-content: center;
}

.abrams-service-menu {
  display: none;
  width: 100%;
  overflow: visible;
  scrollbar-width: none;
}

.abrams-service-menu.is-active {
  display: flex;
  justify-content: center;
}

.abrams-menu-list {
  width: 100%;
  list-style: none !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 8px;
  flex-wrap: wrap;
  white-space: normal;
  text-align: center;
}

.abrams-menu-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.abrams-menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--abrams-text) !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.abrams-menu-list li:first-child > a,
.abrams-menu-list .current-menu-item > a,
.abrams-menu-list .current_page_item > a {
  background: var(--abrams-red);
  color: var(--abrams-white) !important;
}

.abrams-menu-list a:hover {
  background: var(--abrams-light);
  color: var(--abrams-blue) !important;
}

.abrams-menu-list li:first-child > a:hover,
.abrams-menu-list .current-menu-item > a:hover,
.abrams-menu-list .current_page_item > a:hover {
  background: var(--abrams-red);
  color: var(--abrams-white) !important;
}

.abrams-mobile-panel {
  display: none;
}

.abrams-mobile-tabbar {
  display: none;
}

@media (max-width: 1279px) and (min-width: 981px) {
  .abrams-container {
    width: min(1180px, calc(100% - 36px));
  }

  .abrams-logo img {
    height: 50px;
    max-width: 170px;
  }

  .abrams-category-link {
    font-size: 13px;
    padding: 10px 12px;
  }

  .abrams-header-actions--desktop {
    display: none;
  }

  .abrams-header-actions--tablet {
    display: flex;
  }

  .abrams-round-action {
    width: 54px;
    height: 54px;
    font-size: 25px;
  }
}

@media (max-width: 980px) {
  body.abrams-has-custom-header {
    padding-bottom: 84px;
  }

  .abrams-container {
    width: 100%;
    padding: 0 18px;
  }

  .abrams-trustbar,
  .abrams-category-nav,
  .abrams-header-actions,
  .abrams-servicebar {
    display: none;
  }

  .abrams-mainbar__inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .abrams-mainbar__inner::before {
    content: "";
    display: block;
    width: 96px;
    height: 1px;
  }

  .abrams-logo {
    grid-column: 2;
    justify-self: center;
    max-width: 100%;
  }

  .abrams-logo img {
    height: 42px;
    max-width: min(150px, 100%);
  }

  .abrams-mobile-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .abrams-mobile-actions .abrams-round-action {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .abrams-menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--abrams-border);
    background: var(--abrams-white);
    border-radius: 999px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 12px rgba(24, 32, 51, .07);
  }

  .abrams-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--abrams-text);
    display: block;
    transition: transform .18s ease, opacity .18s ease;
  }

  .abrams-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .abrams-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .abrams-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .abrams-mobile-category-strip {
    display: block;
    background: rgba(47, 52, 143, .08);
    border-top: 1px solid var(--abrams-border);
    border-bottom: 1px solid var(--abrams-border);
  }

  .abrams-mobile-category-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 18px;
    overflow: visible;
    scrollbar-width: none;
  }

  .abrams-category-link--mobile {
    background: var(--abrams-white);
    box-shadow: 0 1px 6px rgba(24, 32, 51, .07);
    font-size: 12px;
    padding: 10px 13px;
  }

  .abrams-mobile-panel {
    border-top: 1px solid var(--abrams-border);
    padding: 14px 18px 18px;
    background: var(--abrams-white);
    box-shadow: var(--abrams-shadow);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .abrams-mobile-panel.is-open {
    display: block;
  }

  .abrams-mobile-menu {
    display: none;
  }

  .abrams-mobile-menu.is-active {
    display: block;
  }

  .abrams-mobile-intro {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--abrams-blue), var(--abrams-slate));
    color: var(--abrams-white);
    padding: 16px;
    margin-bottom: 12px;
  }

  .abrams-mobile-intro span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
  }

  .abrams-mobile-intro strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
  }

  .abrams-mobile-intro p {
    margin: 6px 0 0 !important;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
  }

  .abrams-mobile-menu .abrams-menu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 !important;
    white-space: normal;
  }

  .abrams-mobile-menu .abrams-menu-list a {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    border-radius: 16px;
    background: var(--abrams-light);
    padding: 13px 14px;
  }

  .abrams-mobile-menu .abrams-menu-list li:first-child > a,
  .abrams-mobile-menu .abrams-menu-list .current-menu-item > a,
  .abrams-mobile-menu .abrams-menu-list .current_page_item > a {
    background: var(--abrams-red);
    color: var(--abrams-white) !important;
  }

  .abrams-mobile-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .abrams-mobile-panel-actions .abrams-call-button,
  .abrams-mobile-panel-actions .abrams-write-button {
    width: 100%;
    border-radius: 16px;
    min-height: 48px;
  }

  .abrams-mobile-tabbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    padding: 0 10px 10px;
    pointer-events: none;
  }

  .abrams-mobile-tabbar__inner {
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    gap: 4px;
    padding: 8px;
    border-radius: 26px;
    border: 1px solid var(--abrams-border);
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 45px rgba(24, 32, 51, .20);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .abrams-mobile-tabbar a {
    min-height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: var(--abrams-blue) !important;
    text-decoration: none !important;
    font-size: 10.5px;
    line-height: 1.05;
    text-align: center;
    font-weight: 900;
  }

  .abrams-mobile-tabbar a.is-primary {
    background: var(--abrams-red);
    color: var(--abrams-white) !important;
  }

  .abrams-mobile-tabbar span {
    font-size: 17px;
    line-height: 1;
  }

  .abrams-mobile-tabbar strong {
    font-weight: 900;
  }
}

@media (max-width: 380px) {
  .abrams-container {
    padding: 0 16px;
  }

  .abrams-mainbar__inner {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .abrams-mainbar__inner::before {
    width: 54px;
  }

  .abrams-mobile-actions .abrams-round-action--call {
    display: none;
  }

  .abrams-logo img {
    height: 40px;
    max-width: 150px;
  }

  .abrams-mobile-category-scroll {
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .abrams-category-link--mobile {
    font-size: 11.5px;
    padding: 9px 11px;
  }
}
