/* Chrome: header, nav, phone overlay, subscribe dialog, footer.
   Tokens come from theme.json (Plan 04); fallbacks keep this file safe on its own. */

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 52;
  height: var(--ann-header-h, 105px);
  box-sizing: border-box;
  margin: 0;
  padding: 0 107px 0 101px;
  background-color: transparent;
  transition: background-color 300ms ease, transform 200ms ease;
}

.site-header.is-scrolled {
  background-color: #fff;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header .site-wordmark {
  margin: 0;
  max-width: 200px;
  font-size: var(--ann-fs-logo, 20px);
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1.2;
}

.site-header .site-wordmark a {
  color: #000;
  text-decoration: none;
}

.site-header__right {
  gap: 0;
}

.site-nav a,
.site-nav .wp-block-navigation-item__content {
  color: #000;
  text-decoration: none;
  font-size: var(--ann-fs-nav, 16px);
}

/* Current page */
.site-nav a[aria-current="page"],
.wp-block-navigation__responsive-container a[aria-current="page"],
.site-nav .current-menu-item > a,
/* Core sets `color: inherit` at (0,3,0) on nav links; this outranks it. */
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
  color: var(--wp--preset--color--accent, #c45308);
}

/* Subscribe button */
.site-header__subscribe {
  margin: 0 0 0 12px;
}

.subscribe-open .wp-block-button__link,
.subscribe-open a {
  box-sizing: border-box;
  width: 120px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.subscribe-open .wp-block-button__link:hover,
.subscribe-open .wp-block-button__link:focus-visible {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* Desktop nav switch (D-06/D-07): core switches at 600px, we switch at 768px.
   Selectors mirror core's own 600px rules:
   .wp-block-navigation__responsive-container-open (burger),
   .wp-block-navigation__responsive-container (panel),
   .wp-block-navigation__responsive-container-content (list wrapper),
   .wp-block-navigation__responsive-container-close (overlay close). */
@media (min-width: 768px) {
  .site-nav .wp-block-navigation__responsive-container-open {
    display: none;
  }

  .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: block;
    position: static;
    width: auto;
    background: none;
    color: inherit;
    z-index: auto;
  }

  .site-nav .wp-block-navigation__responsive-container-close {
    display: none;
  }

  .site-nav .wp-block-navigation__responsive-container-content {
    padding: 0;
  }

  .site-nav .wp-block-navigation__container {
    flex-direction: row;
    gap: 0;
  }

  .site-nav .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 80px;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

/* Phone (below 768px) */
@media (max-width: 767px) {
  .site-header {
    padding: 0 7px;
    height: var(--ann-header-h, 79px);
  }

  .site-header .site-wordmark {
    font-size: 11px;
    letter-spacing: 2.75px;
    max-width: 120px;
  }

  .site-header__subscribe {
    display: none;
  }

  .site-nav .wp-block-navigation__responsive-container-open {
    display: flex;
    color: #000;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    background: #fff;
    color: #000;
  }

  .nav-overlay {
    padding: 80px 29px 40px;
    gap: 0;
  }

  .nav-overlay .wp-block-navigation__container {
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-overlay .wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    height: 68px;
    font-size: var(--ann-fs-menu, 22px);
    color: #000;
    text-decoration: none;
  }

  .nav-overlay .wp-block-buttons {
    margin-top: 24px;
  }

  .nav-overlay .subscribe-open .wp-block-button__link {
    width: 100%;
    height: 48px;
  }

  body:not(.home) main {
    padding-top: var(--ann-header-h, 79px);
  }
}

@media (min-width: 768px) {
  body:not(.home) main {
    padding-top: var(--ann-header-h, 105px);
  }
}

/* Subscribe dialog */
.subscribe-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  padding: 48px 40px 40px;
  border: 0;
  background: #fff;
  color: #000;
  text-align: center;
}

.subscribe-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.subscribe-dialog h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.subscribe-dialog p {
  margin: 0 0 24px;
  font-size: 16px;
}

.subscribe-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Skip link */
.skip-link.screen-reader-text:focus {
  background: #fff;
  border-radius: 24px;
  color: rgb(17, 109, 255);
  font-size: 14px;
  padding: 10px 20px;
  text-decoration: none;
  z-index: 100000;
}

/* Footer. Geometry from reference/layout/home-{desktop,1280,1024,phone}.json (footer element rects).
   Desktop: left column anchored at 25vw (wordmark, tel, city at +29px, logo at 25vw-198px), right column
   at 75vw-182px; sections are 97px top, 476px upper, 140px legal (713px total at every desktop width).
   Phone: the 320px Wix layout x 1.21875 (390px), centred stack, 921px total. */
.site-footer {
  background: #fff;
  color: #000;
  max-width: none;
  margin: 0;
  padding: 97px 0 0;
}

/* The footer is a constrained group (children max 1440px, centred), but its columns are placed with vw
   offsets, so its rows must span the viewport or wide screens push everything right (261118-ann, 27" iMac). */
.site-footer .site-footer__upper,
.site-footer .site-footer__legal {
  max-width: none;
}

.site-footer .site-footer__upper {
  box-sizing: border-box;
  min-height: 476px;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.site-footer .site-footer__left {
  gap: 0;
  flex: 0 0 auto;
  margin-left: max(24px, calc(25vw - 198px));
  width: calc(75vw - 182px - max(24px, calc(25vw - 198px)));
  max-width: none;
}

.site-footer .site-footer__wordmark {
  box-sizing: border-box;
  width: 220px;
  margin: 0 0 0 29px;
  font-weight: 700;
  letter-spacing: 7px;
  line-height: 24px;
}

.site-footer .site-footer__tel,
.site-footer .site-footer__city,
.site-footer .site-footer__subscribe-text {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.64px;
}

.site-footer .site-footer__tel {
  margin: 49px 0 0 29px;
}

.site-footer .site-footer__city {
  box-sizing: border-box;
  height: 29px;
  margin: 24px 0 0 29px;
  padding-top: 4px;
}

.site-footer .site-footer__logo {
  margin: 25px 0 0;
}

.site-footer .site-footer__logo img {
  width: 249px;
  height: auto;
}

.site-footer .site-footer__right {
  flex: 0 0 auto;
  gap: 0;
  width: min(427px, calc(25vw + 172px));
  max-width: none;
  margin: 0;
  padding-top: 96px;
}

.site-footer .site-footer__subscribe-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.44px;
  line-height: 32px;
}

.site-footer .site-footer__subscribe-text {
  box-sizing: border-box;
  margin: 36px 0 0;
  padding: 0;
  line-height: 28.8px; /* Wix: two 28.8px lines in a 57.6px box */
}

.site-footer .site-footer__form {
  position: relative;
  margin: 37px 0 0;
}

/* wpautop leaves an empty paragraph before the form shortcode output. */
.site-footer .site-footer__form > p:empty {
  display: none;
}

/* Fluent Forms: label, input row of 264px and the Subscribe button overlapping the input's right end (Wix). */
.site-footer .fluentform .ff-el-group {
  margin: 0;
}

.site-footer .fluentform .ff-el-input--label {
  height: 16px;
  margin: -2px 0 32px;
  line-height: 16px;
}

.site-footer .fluentform .ff-el-input--label label {
  margin: 0;
  font-size: 16px;
  line-height: 16px;
}

/* Wix label reads "Email *": the asterisk in the label colour, one space after the word (Fluent Forms
   default is a red asterisk with a 3px margin). */
.site-footer .fluentform .ff-el-is-required.asterisk-right label::after {
  margin-left: 0;
  color: inherit;
}

/* Wix shows no form title. Fluent Forms prints the form title as a screen-reader legend; keep it for
   assistive technology but make sure it can never paint. */
.site-footer .fluentform .ff_screen_reader_title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer .fluentform .ff-el-input--content input[type=email] {
  box-sizing: border-box;
  width: 264px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 16px;
}

.site-footer .fluentform .ff_submit_btn_wrapper {
  position: absolute;
  top: 49px;
  left: 243px;
  margin: 0;
}

.site-footer .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
  box-sizing: border-box;
  width: 120px;
  height: 40px;
  margin: 0;
  border: 1px solid #000;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.33px;
  cursor: pointer;
}

.site-footer .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover {
  background: #fff;
  color: #000;
}

.site-footer .site-footer__legal {
  box-sizing: border-box;
  min-height: 140px;
  padding: 38px 123px 0 0;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.site-footer .site-copyright {
  box-sizing: border-box;
  height: 29px;
  margin: 0 0 0 max(24px, calc(27.34vw - 216px));
  padding-top: 4px;
  font-size: 16px;
  letter-spacing: 0.64px;
}

.site-footer .site-social {
  gap: 32px;
  margin: 2px 0 0 auto;
}

.site-footer .site-social .wp-social-link,
.site-footer .site-social .wp-social-link a {
  min-width: 0;
  min-height: 0;
  width: 24px;
  height: 24px;
  padding: 0;
}

.site-footer .site-social .wp-social-link svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 24.4px 0 12.2px;
  }

  .site-footer .site-footer__upper {
    min-height: 703.2px;
    margin-bottom: 34.2px;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-footer .site-footer__left,
  .site-footer .site-footer__right {
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .site-footer .site-footer__wordmark {
    width: auto;
    margin: 0;
    font-size: 25.6px !important;
    letter-spacing: 0;
    line-height: 54.8px;
    text-align: center;
  }

  .site-footer .site-footer__tel,
  .site-footer .site-footer__city {
    margin-left: 0;
    font-size: 14.625px;
    letter-spacing: 0.585px;
    text-align: center;
  }

  .site-footer .site-footer__tel {
    margin-top: 17.1px;
  }

  .site-footer .site-footer__city {
    height: 26.8px;
    margin-top: 44px;
    padding-top: 3.7px;
  }

  .site-footer .site-footer__logo {
    width: 207px;
    margin-top: 13.4px;
  }

  .site-footer .site-footer__logo img {
    width: 207px !important;
  }

  .site-footer .site-footer__right {
    align-items: flex-start;
    margin-top: 24.4px;
    padding: 0 36.6px;
  }

  .site-footer .site-footer__subscribe-title {
    font-size: 17px;
    letter-spacing: 1.365px;
    line-height: 30.5px;
  }

  .site-footer .site-footer__subscribe-text {
    width: 244px;
    margin-top: 19.5px;
    padding: 3.7px 0 4.8px;
    font-size: 14.625px;
    letter-spacing: 0.73px;
    line-height: 23.56px;
  }

  .site-footer .site-footer__form {
    margin-top: 29.3px;
  }

  .site-footer .fluentform .ff-el-input--label {
    height: 19.5px;
    margin-bottom: 19.5px;
    line-height: 19.5px;
  }

  .site-footer .fluentform .ff-el-input--label label {
    line-height: 19.5px;
  }

  /* 244px at 390px; narrower below so the overlapping button never pushes the page wider than the viewport. */
  .site-footer .fluentform .ff-el-input--content input[type=email] {
    width: min(244px, calc(100vw - 146.2px));
    height: 39px;
  }

  .site-footer .fluentform .ff_submit_btn_wrapper {
    top: 39px;
    left: calc(min(244px, 100vw - 146.2px) - 24.6px);
  }

  .site-footer .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
    width: 97.5px;
    height: 39px;
  }

  .site-footer .site-footer__legal {
    min-height: 147.5px;
    padding: 12.2px 36.6px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-footer .site-social {
    order: -1;
    gap: 19.5px;
    margin: 0;
  }

  .site-footer .site-social .wp-social-link,
  .site-footer .site-social .wp-social-link a {
    width: 24.4px;
    height: 24.4px;
  }

  .site-footer .site-social .wp-social-link svg {
    width: 24.4px;
    height: 24.4px;
  }

  .site-footer .site-copyright {
    box-sizing: border-box;
    width: 253.5px;
    height: auto;
    margin: 35.3px 0 0;
    padding: 0;
    font-size: 14.625px;
    letter-spacing: 0.585px;
    line-height: 26.2px;
  }
}
