/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* HTCWindow global design system — Figma base 1440 / shared content 1300. */
:root {
  --htc-primary: #1d5099;
  --htc-primary-2: #1a4889;
  --htc-secondary: #b40402;
  --htc-black: #1f1f1f;
  --htc-ink: #08162b;
  --htc-stroke: #d9d9d9;
  --htc-bg: #f4f5f6;
  --htc-white: #fff;

  --htc-container: 1300px;
  --htc-canvas: 1440px;
  --htc-gutter: 20px;
  --htc-section-space: 160px;

  --htc-space-1: 8px;
  --htc-space-2: 12px;
  --htc-space-3: 16px;
  --htc-space-4: 20px;
  --htc-space-5: 24px;
  --htc-space-6: 32px;
  --htc-space-7: 40px;
  --htc-space-8: 48px;
  --htc-space-9: 64px;
  --htc-space-10: 80px;

  --htc-radius-sm: 8px;
  --htc-radius-md: 12px;

  --htc-display-size: 48px;
  --htc-title-size: 40px;
  --htc-subtitle-size: 24px;
  --htc-body-size: 16px;
  --htc-body-line: 24px;
  --htc-small-size: 14px;
}

#brx-header,
#brx-content,
#brx-footer {
  background: var(--htc-bg);
}

/* Keep desktop header dropdowns above page sections/content. */
#brx-header {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

#brx-header .htc-header,
#brx-header .htc-header-right,
#brx-header .htc-main-nav,
#brx-header .htc-main-nav .bricks-nav-menu,
#brx-header .htc-main-nav .bricks-nav-menu > li {
  overflow: visible;
}

.htc-header,
.htc-footer {
  font-family: "Montserrat", Arial, sans-serif;
}

/* Header */
.htc-header {
  width: 100%;
  max-width: var(--htc-canvas);
  height: 96px;
  margin: 0 auto;
  padding: var(--htc-space-5) 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--htc-space-6);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.htc-header-logo {
  width: 208px;
  min-width: 208px;
  height: 48px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.htc-header-logo img {
  position: static;
  width: 120.1%;
  max-width: none;
  height: 170.21%;
  transform: translate(-6.53%, -20%);
  object-fit: cover;
}

.htc-header-right {
  width: auto;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: var(--htc-space-9);
}

.htc-main-nav {
  width: auto;
  min-width: 0;
}

/* Intentional Bricks override: keep the closed mobile drawer out of document width. */
.htc-main-nav:not(.show-mobile-menu) .bricks-mobile-menu-wrapper {
  display: none !important;
}
.htc-main-nav.show-mobile-menu .bricks-mobile-menu-wrapper {
  display: flex !important;
}

.htc-main-nav .bricks-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--htc-space-6);
}

.htc-main-nav .bricks-nav-menu > li > a,
.htc-main-nav .bricks-nav-menu > li > .brx-submenu-toggle > a {
  padding: 0;
  color: var(--htc-black);
  font-family: inherit;
  font-size: var(--htc-body-size);
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}

.htc-main-nav .bricks-nav-menu > li.current-menu-item > a,
.htc-main-nav .bricks-nav-menu > li.current-menu-parent > a,
.htc-main-nav .bricks-nav-menu > li.current-menu-ancestor > a,
.htc-main-nav .bricks-nav-menu > li > a:hover,
.htc-main-nav .bricks-nav-menu > li > .brx-submenu-toggle > a:hover {
  color: var(--htc-primary);
  font-weight: 600;
}


/* Desktop dropdown menu — scoped to the main header nav only. */
@media (min-width: 992px) {
  .htc-main-nav .bricks-nav-menu > li.menu-item-has-children {
    position: relative;
  }

  .htc-main-nav .bricks-nav-menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    z-index: 999;
    left: -16px;
    right: -16px;
    top: 100%;
    height: 16px;
  }

  .htc-main-nav .bricks-nav-menu > li > .brx-submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .htc-main-nav .bricks-nav-menu > li > .brx-submenu-toggle button {
    width: 18px;
    height: 18px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: currentColor;
  }

  .htc-main-nav .bricks-nav-menu > li > .brx-submenu-toggle .menu-item-icon {
    width: 12px;
    height: 12px;
    transition: transform .2s ease;
  }

  .htc-main-nav .bricks-nav-menu > li:hover > .brx-submenu-toggle .menu-item-icon,
  .htc-main-nav .bricks-nav-menu > li:focus-within > .brx-submenu-toggle .menu-item-icon,
  .htc-main-nav .bricks-nav-menu > li.open > .brx-submenu-toggle .menu-item-icon {
    transform: rotate(180deg);
  }

  .htc-main-nav .bricks-nav-menu > li > .sub-menu {
    min-width: 230px;
    width: max-content;
    max-width: 340px;
    max-height: calc(100vh - 130px);
    top: calc(100% + 14px);
    left: 50%;
    right: auto;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(8, 22, 43, .08);
    border-radius: 12px;
    background: var(--htc-white);
    box-shadow: 0 14px 38px rgba(8, 22, 43, .14);
    transform: translateX(-50%);
    z-index: 1000;
  }

  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 8px;
  }

  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li + li {
    margin-top: 2px;
  }

  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li > a {
    width: 100%;
    min-height: 42px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: transparent;
    color: var(--htc-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
  }

  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li:hover > a,
  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li.current-menu-item > a,
  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li > a:focus-visible {
    background: rgba(29, 80, 153, .08);
    color: var(--htc-primary);
    padding-left: 18px;
  }

  .htc-main-nav .bricks-nav-menu > li > .sub-menu > li > a:focus-visible {
    outline: 2px solid rgba(29, 80, 153, .34);
    outline-offset: -2px;
  }
}

.htc-header-tools,
.htc-header-phone,
.htc-header-lang {
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.htc-header-phone {
  gap: var(--htc-space-2);
  padding: var(--htc-space-1) var(--htc-space-3);
  border-right: 1px solid var(--htc-stroke);
  color: var(--htc-primary);
}

.htc-header-lang {
  gap: var(--htc-space-1);
  padding: var(--htc-space-1) var(--htc-space-3);
  color: var(--htc-black);
}

.htc-header-phone .brxe-icon,
.htc-header-lang .brxe-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 20px;
}

.htc-header-phone-text,
.htc-header-lang-text {
  color: inherit;
  font-family: inherit;
  font-size: var(--htc-body-size);
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

/* Footer */
.htc-footer {
  width: 100%;
  max-width: var(--htc-container);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--htc-space-8);
}

.htc-footer-top {
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--htc-space-6);
}

.htc-footer-logo {
  width: 347.234px;
  max-width: 100%;
  height: 80px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.htc-footer-logo img {
  position: static;
  width: 120.1%;
  max-width: none;
  height: 170.21%;
  transform: translate(-6.53%, -20%);
  object-fit: cover;
}

.htc-subscribe-form {
  width: 440px;
  min-width: 440px;
  height: 80px;
  position: relative;
  padding: var(--htc-space-3);
  background: var(--htc-white);
  border-radius: var(--htc-radius-sm);
}

.htc-subscribe-form .dawp-form-container,
.htc-subscribe-form .dawp-contact-form-el {
  width: 100%;
  margin: 0;
}

.htc-subscribe-form .dawp-contact-form-el {
  height: 48px;
  display: flex;
  align-items: center;
  gap: var(--htc-space-2);
  position: relative;
}

.htc-subscribe-form .dawp-input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 48px;
  padding: var(--htc-space-1) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--htc-black);
  font-family: inherit;
  font-size: 18px;
  line-height: 32px;
  font-weight: 500;
}

.htc-subscribe-form .dawp-input[type="email"]::placeholder {
  color: rgba(31, 31, 31, .5);
  opacity: 1;
}

.htc-subscribe-form .dawp-form-submit {
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--htc-secondary);
  color: var(--htc-white);
  font-family: inherit;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.htc-subscribe-form .dawp-form-submit:hover {
  background: #950301;
  transform: translateY(-1px);
}
.htc-subscribe-form .dawp-form-submit .dawp-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
}

.htc-subscribe-form .dawp-form-response {
  position: absolute;
  top: calc(100% + var(--htc-space-1));
  right: 0;
  z-index: 20;
  width: 100%;
  padding: 10px var(--htc-space-2);
  border-radius: 6px;
  background: var(--htc-white);
  color: var(--htc-black);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(8, 22, 43, .12);
}

.htc-subscribe-form .dawp-captcha-wrap {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + var(--htc-space-2));
  width: 390px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 14px;
  border-radius: var(--htc-radius-sm);
  background: var(--htc-white);
  color: var(--htc-black);
  box-shadow: 0 12px 30px rgba(8, 22, 43, .15);
}
.htc-subscribe-form .dawp-captcha-wrap > label {
  display: block;
  margin-bottom: var(--htc-space-1);
  font-size: 13px;
  font-weight: 600;
}

.htc-footer-blue {
  width: 100%;
  height: 389px;
  padding: var(--htc-space-8) var(--htc-space-9) var(--htc-space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--htc-space-5);
  border-radius: var(--htc-radius-sm) var(--htc-radius-sm) 0 0;
  background: var(--htc-primary);
  color: var(--htc-white);
}

.htc-footer-content {
  width: 100%;
  height: 261px;
  padding-bottom: var(--htc-space-6);
  display: grid;
  grid-template-columns: minmax(0, 654px) minmax(0, 518px);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.htc-footer-contact,
.htc-footer-info-block,
.htc-footer-phones,
.htc-footer-links,
.htc-footer-link-col {
  width: auto;
  display: flex;
  flex-direction: column;
}

.htc-footer-contact { gap: var(--htc-space-5); }

.htc-footer-social,
.htc-footer-label,
.htc-footer-phone-line,
.htc-footer-link-cols {
  width: auto;
  display: flex;
  flex-direction: row;
}

.htc-footer-social { gap: var(--htc-space-2); }
.htc-footer-social .brxe-image,
.htc-footer-social .brxe-image img {
  width: 36px;
  height: 36px;
}
.htc-footer-social .brxe-image { margin: 0; }
.htc-footer-social .brxe-image img { object-fit: contain; }

.htc-footer-info-block { gap: var(--htc-space-1); }
.htc-footer-label {
  align-items: center;
  gap: var(--htc-space-3);
  color: var(--htc-white);
}
.htc-footer-label .brxe-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--htc-white);
  font-size: 20px;
}

.htc-footer-label-text,
.htc-footer-links-title {
  color: var(--htc-white);
  font-size: 18px;
  line-height: 32px;
  font-weight: 700;
}

.htc-footer-address,
.htc-footer-phone,
.htc-footer-link,
.htc-footer-copyright {
  color: var(--htc-white);
  font-size: 18px;
  line-height: 32px;
}
.htc-footer-address,
.htc-footer-phone { font-weight: 400; }

.htc-footer-phone-line {
  align-items: flex-start;
  gap: var(--htc-space-2);
}
.htc-footer-phones { gap: var(--htc-space-1); }
.htc-footer-links-title { margin-bottom: 33px; }
.htc-footer-link-cols { gap: 120px; }
.htc-footer-link-col { gap: var(--htc-space-3); }
.htc-footer-link {
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.htc-footer-link:hover {
  color: var(--htc-white);
  text-decoration: underline;
}
.htc-footer-copyright {
  width: 100%;
  text-align: center;
  font-weight: 400;
}

/* Accessibility utility intentionally force-hides visual output. */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1240px) {
  :root {
    --htc-gutter: 24px;
    --htc-section-space: 120px;
    --htc-title-size: 36px;
  }

  .htc-header { padding-left: 36px; padding-right: 36px; }
  .htc-header-right { gap: var(--htc-space-6); }
  .htc-header-tools { display: none; }
  .htc-main-nav .bricks-nav-menu { gap: 22px; }
  .htc-footer { padding: 0 28px; }
  .htc-footer-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: var(--htc-space-6);
  }
  .htc-footer-link-cols { gap: var(--htc-space-8); }
}

@media (max-width: 991px) {
  .htc-header {
    height: 84px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .htc-header-logo {
    width: 195px;
    min-width: 195px;
    height: 45px;
  }
  .htc-header-right { gap: var(--htc-space-4); }
  .htc-header-tools { display: none; }
  .htc-main-nav .bricks-mobile-menu-toggle { color: var(--htc-primary); }
  .htc-main-nav .bricks-mobile-menu-wrapper {
    background: var(--htc-white);
    font-family: "Montserrat", Arial, sans-serif;
  }
  .htc-main-nav .bricks-mobile-menu a {
    color: var(--htc-black);
    font-size: var(--htc-body-size);
    font-weight: 600;
  }
  .htc-footer-logo { width: 285px; height: 65.66px; }
  .htc-subscribe-form { width: 400px; min-width: 400px; }
  .htc-footer-blue { padding: var(--htc-space-7) 36px var(--htc-space-5); }
  .htc-footer-content { grid-template-columns: 1fr 1fr; gap: 28px; }
  .htc-footer-link-cols { gap: 28px; }
}

@media (max-width: 767px) {
  :root {
    --htc-gutter: 20px;
    --htc-section-space: 80px;
    --htc-title-size: 30px;
    --htc-display-size: 30px;
    --htc-body-size: 15px;
  }

  .htc-header {
    height: 76px;
    padding: var(--htc-space-3) var(--htc-gutter);
  }
  .htc-header-logo { width: 170px; min-width: 170px; height: 39.23px; }
  .htc-footer { gap: var(--htc-space-6); padding: 0 var(--htc-gutter); }
  .htc-footer-top {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .htc-footer-logo { width: 260px; height: 59.9px; }
  .htc-subscribe-form { width: 100%; min-width: 0; }
  .htc-footer-blue { height: auto; padding: var(--htc-space-6) var(--htc-space-5) 22px; }
  .htc-footer-content { height: auto; grid-template-columns: 1fr; gap: 36px; }
  .htc-footer-link-cols { justify-content: space-between; gap: var(--htc-space-5); }
  .htc-footer-links-title { margin-bottom: var(--htc-space-4); }
  .htc-footer-address,
  .htc-footer-phone,
  .htc-footer-link,
  .htc-footer-copyright,
  .htc-footer-label-text,
  .htc-footer-links-title {
    font-size: 16px;
    line-height: 27px;
  }
}

@media (max-width: 479px) {
  .htc-header-logo { width: 150px; min-width: 150px; height: 34.56px; }
  .htc-footer { padding: 0 14px; }
  .htc-footer-blue { padding-left: 18px; padding-right: 18px; }
  .htc-footer-link-cols { gap: var(--htc-space-2); }
  .htc-footer-phone-line { flex-direction: column; gap: 6px; }
  .htc-subscribe-form .dawp-input[type="email"] { font-size: 15px; }
}
