/**
 * Header + Footer polish for native Elementor chrome.
 * Layout colors/sizes primarily set in Elementor — this file covers sticky,
 * dropdown, search form, catalog button and mobile edge cases.
 */

:root {
  --disc-hf-navy: #161616;
  --disc-hf-navy-2: #2a2a2a;
  --disc-hf-red: #c4342c;
  --disc-hf-red-hover: #a32a23;
  --disc-hf-ink: #232323;
  --disc-hf-muted: #757575;
  --disc-hf-line: #e6e6e6;
  --disc-hf-gray: #f6f6f6;
  --disc-hf-white: #ffffff;
  --disc-gutter-x: 16px;
}

/*
 * One side gutter for header/footer chrome (matches homepage --disc-gutter-x).
 * Prevents Elementor 390px breakpoint from switching 16↔24 and stacking pads.
 */
@media (max-width: 1024px) {
  .elementor-location-header > .e-con.e-parent {
    --padding-left: var(--disc-gutter-x) !important;
    --padding-right: var(--disc-gutter-x) !important;
    padding-inline: var(--disc-gutter-x) !important;
    box-sizing: border-box;
  }

  .elementor-location-header > .e-con.e-parent .e-con {
    --padding-left: 0px !important;
    --padding-right: 0px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .elementor-location-header .disc-header-mobile-search > .e-con-inner,
  .elementor-location-header .disc-search-form,
  .elementor-location-header form.disc-product-search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Sticky: hide top info strip when Elementor sticky effects engage */
.disc-header.elementor-sticky--effects .disc-header-top,
.disc-header.elementor-sticky--effects .disc-header-top-info {
  max-height: 0 !important;
  min-height: 0 !important;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  transition: max-height 0.28s ease, opacity 0.28s ease;
}

.disc-header-top.e-con,
.disc-header-top-info.e-con {
  min-height: 36px;
}

.disc-header-top .e-con.e-child,
.disc-header-top-info > .e-con {
  width: auto !important;
  flex: 1 1 auto;
}

.disc-header-top .elementor-widget-text-editor p,
.disc-header-top-info .elementor-widget-text-editor p {
  margin: 0;
  white-space: nowrap;
}

.disc-header-top .elementor-widget,
.disc-header-top-info .elementor-widget {
  width: auto;
  max-width: none;
}

.disc-header-logo img {
  display: block;
  height: auto;
  max-height: 64px;
  width: auto;
}

/* Round badge logo (2026-11): override fixed Elementor width, keep it square. */
.disc-header .disc-header-logo img {
  width: auto !important;
  height: 80px !important;
  max-height: none;
  aspect-ratio: 1;
  object-fit: contain;
}

.disc-header.elementor-sticky--effects .disc-header-logo img {
  height: 60px !important;
}

@media (max-width: 1024px) {
  .disc-header .disc-header-logo img {
    height: 56px !important;
  }
}

.disc-header-catalog .elementor-nav-menu--main > .elementor-nav-menu > li > a .elementor-item-text,
.disc-header-catalog .elementor-item {
  white-space: nowrap;
}

.disc-header.elementor-sticky--effects .disc-header-logo img,
.disc-header.elementor-sticky--effects .disc-header-logo .elementor-widget-container img {
  max-height: 52px;
  width: auto;
}

.disc-header-top-promo .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Product search form */
.disc-header-search .disc-product-search,
.disc-header-search form.woocommerce-product-search,
.disc-header-search .disc-search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--disc-hf-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--disc-hf-white);
}

.disc-header-search .disc-product-search:focus-within,
.disc-header-search .disc-search-form:focus-within {
  border-color: rgba(196, 52, 44, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 52, 44, 0.1);
}

.disc-header-search .disc-search-label {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--disc-hf-gray);
  color: var(--disc-hf-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid var(--disc-hf-line);
}

.disc-header-search input[type="search"],
.disc-header-search input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  min-height: 48px;
  color: var(--disc-hf-ink);
  font-size: 14px;
}

.disc-header-search button,
.disc-header-search .search-submit {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  background: var(--disc-hf-red);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disc-header-search button:hover,
.disc-header-search .search-submit:hover {
  background: var(--disc-hf-red-hover);
}

.disc-header-search svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Catalog pill */
.disc-header-catalog .elementor-nav-menu--main > .elementor-nav-menu > li > a,
.disc-header-catalog .elementor-item {
  background: var(--disc-hf-red) !important;
  color: #fff !important;
  border-radius: 10px;
  min-height: 40px;
  padding-inline: 16px !important;
}

.disc-header-catalog .elementor-nav-menu--main > .elementor-nav-menu > li > a:hover,
.disc-header-catalog .elementor-item:hover {
  background: var(--disc-hf-red-hover) !important;
  color: #fff !important;
}

.disc-header-catalog .elementor-nav-menu--dropdown,
.disc-header-menu .elementor-nav-menu--dropdown {
  border-radius: 14px;
  border: 1px solid var(--disc-hf-line);
  box-shadow: 0 16px 40px rgba(22, 22, 22, 0.12);
  padding: 8px 0;
  min-width: 220px;
}

.disc-header-menu .elementor-item-active,
.disc-header-menu .current-menu-item > .elementor-item {
  color: var(--disc-hf-red) !important;
}

.disc-header-cta .elementor-button {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
}

.disc-header-cta .elementor-button:hover {
  background-color: var(--disc-hf-red-hover) !important;
}

.disc-header-phone .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}

.disc-header-phone .elementor-heading-title a:hover {
  color: var(--disc-hf-red);
}

/* Desktop header row — keep chrome stable even if Elementor CSS lags */
@media (min-width: 1025px) {
  .disc-header-main > .e-con-inner {
    --display: flex !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .disc-header-main > .e-con-inner > .elementor-element {
    width: auto !important;
    max-width: none !important;
    --width: auto !important;
    flex: 0 0 auto;
  }

  .disc-header-main .disc-header-search {
    flex: 1 1 auto !important;
    min-width: 220px;
    max-width: 520px;
  }

  .disc-footer-grid > .e-con-inner {
    --display: grid !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px !important;
    width: 100% !important;
    align-items: start;
  }

  .disc-footer-grid > .e-con-inner > .e-con {
    width: 100% !important;
    --width: 100% !important;
    max-width: none !important;
  }
}

/* Mobile menu */
.disc-header-mobile.e-con {
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.disc-header-mobile .disc-header-logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 58%;
}

.disc-header-mobile .disc-header-logo img {
  max-height: 48px;
  width: auto;
}

/*
 * Mobile header row (logo + messengers/phone/menu).
 * Elementor gives both children --width:100% / e-con-full, so they wrap
 * under each other from ~391px up. Keep one horizontal row through tablet.
 */
@media (max-width: 1024px) {
  .elementor-location-header .e-con:has(> .disc-header-item):has(> .block_header2),
  .elementor-location-header .e-con:has(> .disc-header-item):has(> .disc-header-mobile-messengers) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .elementor-location-header .disc-header-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: auto !important;
    max-width: min(58%, 280px) !important;
    --width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .elementor-location-header .disc-header-item .elementor-widget,
  .elementor-location-header .disc-header-item .elementor-widget-container,
  .elementor-location-header .disc-header-item img {
    max-width: 100%;
    height: auto;
  }

  .elementor-location-header .disc-header-item img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
  }

  .elementor-location-header .block_header2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    --width: auto !important;
    flex: 0 0 auto !important;
    min-width: 0;
  }

  .elementor-location-header .block_header2 > .e-con,
  .elementor-location-header .block_header2 > .elementor-element {
    width: auto !important;
    --width: auto !important;
    flex: 0 0 auto !important;
  }

  .elementor-location-header .disc-header-mobile-messengers,
  .elementor-location-header .disc-header-mobile-socials {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    width: auto !important;
  }

  .elementor-location-header .disc-header-mobile-search,
  .elementor-location-header .disc-header-mobile-search > .e-con-inner {
    width: 100% !important;
  }
}

.disc-header-catalog .elementor-nav-menu--main > .elementor-nav-menu > li > a {
  gap: 8px;
}

.disc-header-catalog .elementor-item-text {
  display: inline !important;
  color: #fff !important;
}

.disc-header-mobile-menu .elementor-nav-menu--dropdown {
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 0 0 16px 16px;
  border: 1px solid var(--disc-hf-line);
  box-shadow: 0 18px 50px rgba(22, 22, 22, 0.16);
}

/* Elementor Stretch sets left:-NNpx (menu off-screen). Pin to viewport. */
@media (max-width: 1024px) {
  .elementor-location-header .disc-header {
    overflow: visible !important;
  }

  .disc-header-mobile-menu .elementor-widget-container,
  .disc-header-mobile-menu .elementor-menu-toggle {
    position: relative;
    z-index: 2;
  }

  .disc-header-mobile-menu .elementor-nav-menu--dropdown.elementor-nav-menu__container,
  .disc-header-mobile-menu nav.elementor-nav-menu--dropdown {
    position: fixed !important;
    inset: auto 0 auto 0 !important;
    top: var(--disc-mobile-menu-top, 72px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 10060 !important;
    box-sizing: border-box;
  }
}

.disc-header-mobile-menu .elementor-nav-menu--dropdown a {
  min-height: 48px;
  display: flex;
  align-items: center;
  white-space: normal;
  line-height: 1.35;
  padding-block: 12px;
}

.disc-header-mobile-phone .elementor-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 12px;
  line-height: 1 !important;
  box-sizing: border-box;
}

.disc-header-mobile-phone .elementor-button-content-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.disc-header-mobile-phone .elementor-button-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  line-height: 0;
}

.disc-header-mobile-phone .elementor-button-icon svg,
.disc-header-mobile-phone .elementor-button-icon i {
  display: block;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  line-height: 1;
}

/* Footer */
.elementor-location-footer .disc-footer-main.e-con,
.elementor-location-footer .disc-footer-grid.e-con,
.elementor-location-footer .disc-footer-mobile-accordion.e-con {
  padding-left: var(--disc-gutter-x, 16px) !important;
  padding-right: var(--disc-gutter-x, 16px) !important;
  box-sizing: border-box;
}

.elementor-location-footer .disc-footer-brand,
.elementor-location-footer .disc-footer-contacts,
.elementor-location-footer .disc-footer-mobile-accordion > .e-con-inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.elementor-location-footer .disc-footer-brand .elementor-widget-text-editor,
.elementor-location-footer .disc-footer-contacts .elementor-widget-text-editor,
.elementor-location-footer .disc-footer-brand .elementor-widget-text-editor p,
.elementor-location-footer .disc-footer-contacts .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.disc-footer-cta .elementor-button {
  min-height: 48px;
  border-radius: 999px;
}

.disc-footer-cta .opal-schedule,
.disc-footer-cta .schedule-form {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
}

.disc-footer-cta input,
.disc-footer-cta select,
.disc-footer-cta textarea,
.disc-footer-cta button,
.disc-footer-cta .button {
  min-height: 44px;
}

.disc-footer-menu .elementor-nav-menu--main .elementor-item {
  white-space: normal;
}

.disc-footer-mobile-accordion .elementor-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  margin: 0 0 10px !important;
  overflow: hidden;
  background: #f2f2f2 !important;
}

.disc-footer-mobile-accordion .elementor-tab-title {
  color: var(--disc-hf-red, #c4342c) !important;
  background: #f2f2f2 !important;
  min-height: 48px;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.disc-footer-mobile-accordion .elementor-tab-title .elementor-accordion-icon,
.disc-footer-mobile-accordion .elementor-tab-title .elementor-accordion-title {
  color: inherit !important;
}

.disc-footer-mobile-accordion .elementor-tab-content {
  background: #fff !important;
  color: var(--disc-hf-ink, #232323) !important;
  padding: 8px 16px 14px !important;
}

.disc-footer-mobile-accordion .elementor-tab-content,
.disc-footer-mobile-accordion .disc-menu-list a,
.disc-footer-mobile-accordion .elementor-tab-content a {
  color: var(--disc-hf-ink, #232323) !important;
}

.disc-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.disc-menu-list li + li {
  margin-top: 4px;
}

.disc-menu-list a {
  display: flex;
  min-height: 40px;
  align-items: center;
  color: var(--disc-hf-ink, #232323);
  text-decoration: none;
}

.disc-footer-mobile-accordion .disc-menu-list a:hover,
.disc-footer-mobile-accordion .elementor-tab-content a:hover {
  color: var(--disc-hf-red, #c4342c) !important;
}

.disc-footer-menu .disc-menu-list a,
.elementor-location-footer .disc-footer-menu a {
  color: #dddddd;
}

.elementor-location-footer .disc-footer-menu a:hover {
  color: #fff;
}

/* Remove Elementor pointer underline on footer nav hover/active */
.elementor-location-footer .disc-footer-menu .elementor-item::before,
.elementor-location-footer .disc-footer-menu .elementor-item::after,
.elementor-location-footer .e--pointer-underline .elementor-item::before,
.elementor-location-footer .e--pointer-underline .elementor-item::after,
.elementor-location-footer .e--pointer-overline .elementor-item::before,
.elementor-location-footer .e--pointer-overline .elementor-item::after,
.elementor-location-footer .e--pointer-double-line .elementor-item::before,
.elementor-location-footer .e--pointer-double-line .elementor-item::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  background: none !important;
  border: 0 !important;
}

.disc-footer-bottom .elementor-nav-menu {
  flex-wrap: wrap;
}

/* Avoid double chrome spacing issues */
.elementor-location-header {
  z-index: 10050;
}

@media (max-width: 1024px) {
  .disc-header-search .disc-search-label {
    display: none;
  }
}

@media (max-width: 1024px) {
  .elementor-location-footer .disc-footer-main.e-con,
  .elementor-location-footer .disc-footer-grid.e-con,
  .elementor-location-footer .disc-footer-mobile-accordion.e-con {
    padding-left: var(--disc-gutter-x, 16px) !important;
    padding-right: var(--disc-gutter-x, 16px) !important;
  }

  .elementor-location-footer .disc-footer-main > .e-con-inner,
  .elementor-location-footer .disc-footer-grid > .e-con-inner,
  .elementor-location-footer .disc-footer-mobile-accordion > .e-con-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .elementor-location-footer .disc-footer-brand,
  .elementor-location-footer .disc-footer-contacts {
    width: 100% !important;
    max-width: 100% !important;
    --width: 100% !important;
  }
}

@media (max-width: 480px) {
  .disc-footer-cta .elementor-widget-button .elementor-button,
  .disc-footer-cta .opal-schedule {
    width: 100%;
    max-width: 100%;
  }
}
