/* Bevan-inspired popup. Every visual rule is scoped to #fyPopup. */
@font-face {
  font-family: "FY Popup Regular";
  src: url("/static/fonts/fy-popup-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FY Popup Medium";
  src: url("/static/fonts/fy-popup-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

#fyPopup,
#fyPopup * ,
#fyPopup *::before,
#fyPopup *::after {
  box-sizing: border-box;
}

#fyPopup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  width: 100%;
  height: 100dvh !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  background: #f5f2ee;
  color: #000;
  font-family: "FY Popup Medium", Arial, sans-serif;
  line-height: 1.4;
}

#fyPopup .fy-popup-panel {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #f5f2ee;
  transition: background-color .35s ease;
}



#fyPopup[data-view="services"] .fy-popup-panel {
  background: #d5f8ff;
}

#fyPopup .fy-popup-panel a {
  color: inherit;
  text-decoration: none;
}

.bx_intro_box{ display: flex; align-items: center; flex-direction: row; gap: 30px;}
.site-header__contact { position: relative; font-size: 21px; font-weight: 500; }
.site-header__contact::after {
  content: "";
  position: absolute;
  inset: auto 0 -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-header__contact:hover::after,
.site-header__contact:focus-visible::after { transform: scaleX(1); }
    

/* Top bar */
#fyPopup .fy-popup-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 70px;
}

#fyPopup .fy-popup-logo {
  display: block;
  width: 200px;
  flex: none;
}

#fyPopup .fy-popup-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#fyPopup .fy-popup-close.close_pup {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: transform .3s ease;
}

#fyPopup .fy-popup-close:hover,
#fyPopup .fy-popup-close:focus-visible {
  transform: rotate(90deg);
}

/* Hero and action menu */
#fyPopup .fy-popup-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}

.logo_title{
    font-family: "FY Popup Regular", Arial, sans-serif;
    font-size:30px;
}
.logo_title img{ width:80px;}


#fyPopup .fy-popup-title {
  margin: 0;
  color: #000;
  font-family: "FY Popup Regular", Arial, sans-serif;
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

#fyPopup .fy-popup-title span {
  display: block;
}

#fyPopup .fy-popup-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#fyPopup .fy-popup-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  color: #000;
  font-family: "FY Popup Medium", Arial, sans-serif;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

#fyPopup .fy-popup-action::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

#fyPopup .fy-popup-action:hover::after,
#fyPopup .fy-popup-action:focus-visible::after,
#fyPopup .fy-popup-action[aria-expanded="true"]::after {
  transform: scaleX(1);
}

#fyPopup .fy-popup-action-label {
  transition: transform .3s ease;
}

#fyPopup .fy-popup-action:hover .fy-popup-action-label,
#fyPopup .fy-popup-action:focus-visible .fy-popup-action-label {
  transform: translateX(-5px);
}

#fyPopup .fy-popup-action-icon {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  flex: none;
  transition: transform .35s ease;
}

#fyPopup .fy-popup-action-icon::before,
#fyPopup .fy-popup-action-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform: translateY(-50%);
}

#fyPopup .fy-popup-action-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

#fyPopup .fy-popup-action:hover .fy-popup-action-icon {
  transform: rotate(90deg);
}

#fyPopup .fy-popup-action[aria-expanded="true"] .fy-popup-action-icon {
  transform: rotate(45deg);
}

#fyPopup .fy-popup-action[aria-expanded="true"]:hover .fy-popup-action-icon {
  transform: rotate(135deg);
}

/* Intro and chat button */
#fyPopup .fy-popup-about {
  display: flex;
  justify-content: space-between;
  gap: 55px;
  margin-top: clamp(65px, 10vh, 130px);
}

#fyPopup .fy-popup-copy {
  max-width: 510px;
  font-size: 18px;
  line-height: 1.6;
}

#fyPopup .fy-popup-copy p {
  margin: 0 0 18px;
}

#fyPopup .fy-popup-copy p:last-child {
  margin-bottom: 0;
}

#fyPopup .fy-popup-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

#fyPopup .fy-popup-chat.pup_btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 220px;
  height: 54px;
  padding: 0 22px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: "FY Popup Medium", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

#fyPopup .fy-popup-chat.pup_btn a:hover,
#fyPopup .fy-popup-chat.pup_btn a:focus-visible {
  background: transparent;
  color: #000;
  transform: translateY(-3px);
}

#fyPopup .fy-popup-chat-arrow {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .3s ease;
}

#fyPopup .fy-popup-chat-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

#fyPopup .fy-popup-chat a:hover .fy-popup-chat-arrow {
  transform: translateX(6px);
}

#fyPopup .fy-popup-copyright {
  font-size: 14px;
  white-space: nowrap;
}

/* Expanded content */
#fyPopup .fy-popup-section {
  display: none;
  margin-top: 70px;
  animation: fy-popup-in .45s ease both;
}

#fyPopup[data-view="services"] .fy-popup-services,
#fyPopup[data-view="sectors"] .fy-popup-sectors {
  display: block;
}

#fyPopup[data-view="services"] .fy-popup-about,
#fyPopup[data-view="sectors"] .fy-popup-about,
#fyPopup[data-view="services"] .fy-popup-title span,
#fyPopup[data-view="sectors"] .fy-popup-title span{
  display: none;
}

#fyPopup .fy-popup-services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#fyPopup .fy-popup-services-list li {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.3;
  animation: fy-popup-in .6s ease both;
  animation-delay: calc(var(--item) * 45ms);
}

#fyPopup .fy-popup-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 25px;
  margin-bottom: 35px;
}

#fyPopup .fy-popup-filter {
  position: relative;
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  color: #000;
  font-family: "FY Popup Medium", Arial, sans-serif;
  font-size: 19px;
  cursor: pointer;
}

#fyPopup .fy-popup-filter::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

#fyPopup .fy-popup-filter:hover::after,
#fyPopup .fy-popup-filter:focus-visible::after,
#fyPopup .fy-popup-filter[aria-pressed="true"]::after {
  transform: scaleX(1);
}

#fyPopup .fy-popup-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 25px 20px;
}

#fyPopup .fy-popup-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  animation: fy-popup-in .5s ease both;
}

#fyPopup .fy-popup-logo-item[hidden] {
  display: none;
}

#fyPopup .fy-popup-logo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease, opacity .3s ease;
}

#fyPopup .fy-popup-logo-item:hover img {
  transform: scale(1.07);
  opacity: .7;
}

@keyframes fy-popup-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    #fyPopup .bx_popupbox {
        width: 720px;
        margin: 0 auto;
        padding: 45px 15px;
    }
    #fyPopup .fy-popup-title{
        font-size: 70px;
    }
    #fyPopup .fy-popup-action{
        font-size: 38px;
    }
    #fyPopup .fy-popup-copy{
        font-size: 18px;
    }
    .logo_title img{ width:100px;}
}
@media (min-width: 992px) {
    #fyPopup .bx_popupbox {
        width: 960px;
        margin: 0 auto;
        padding: 45px 15px;
    }
    #fyPopup .fy-popup-title{
        font-size: 95px;
    }
    #fyPopup .fy-popup-copy{
        font-size: 20px;
    }
    .site-header__contact{ font-size:24px;}
}
@media (min-width: 1300px) {
    #fyPopup .bx_popupbox {
        width: 1170px;
        margin: 0 auto;
        padding: 45px 15px;
    }
    #fyPopup .fy-popup-title{
        font-size: 110px;
    }
    #fyPopup .fy-popup-action{
        font-size: 45px;
    }
    #fyPopup .fy-popup-copy{
        font-size: 22px;
    }
    .logo_title img{ width:115px;}
}
@media (min-width: 1600px) {
    #fyPopup .bx_popupbox {
        width: 1470px;
        margin: 0 auto;
        padding: 45px 15px;
    }
    #fyPopup .fy-popup-title{
        font-size: 135px;
    }
}

@media (max-width: 900px) {
  #fyPopup .fy-popup-hero-row { grid-template-columns: 1fr; }
  .logo_title { font-size: 25px;}
  #fyPopup .fy-popup-title { font-size: clamp(50px, 10vw, 80px); }
  #fyPopup .fy-popup-actions { margin-top: 55px; }
  #fyPopup .fy-popup-about { margin-top: 55px; }
  #fyPopup .fy-popup-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  #fyPopup .fy-popup-panel { min-height: 100dvh; padding: 24px 25px 35px; }
  #fyPopup .fy-popup-topbar { margin-bottom: 55px; }
  #fyPopup .fy-popup-logo { width: 150px; }
  #fyPopup .fy-popup-title { font-size: 50px; }
  #fyPopup .fy-popup-actions { margin-top: 75px; }
  #fyPopup .fy-popup-action { font-size: clamp(24px, 6.5vw, 28px); }
  #fyPopup .fy-popup-action-icon { width: 18px; height: 18px; }
  #fyPopup .fy-popup-action-icon::before,
  #fyPopup .fy-popup-action-icon::after { height: 2px; }
  #fyPopup .fy-popup-action::after { height: 2px; }
  #fyPopup .fy-popup-about { flex-direction: column; gap: 30px; margin-top: 35px; }
  #fyPopup .fy-popup-copy { font-size: 15px; }
  #fyPopup .fy-popup-side { align-items: flex-start; }
  #fyPopup .fy-popup-chat.pup_btn a { width: 180px; height: 42px; font-size: 18px; }
  #fyPopup .fy-popup-section { margin-top: 45px; }
  #fyPopup .fy-popup-services-list { grid-template-columns: 1fr; }
  #fyPopup .fy-popup-services-list li { font-size: 24px; }
  #fyPopup .fy-popup-filter { font-size: 17px; }
  #fyPopup .fy-popup-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .site-header__contact{ font-size:18px;}
}

@media (prefers-reduced-motion: reduce) {
  #fyPopup *,
  #fyPopup *::before,
  #fyPopup *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
