/* ==========================================
   WP Navigation Block -> matches legacy .nav
   Uses Craft Custom Homes theme variables
========================================== */

/* Container behaves like .nav */
.navbar .wp-block-navigation__container {
  margin-bottom: 0;
}

/* atMedium */
@media (min-width: 768px) {
  .navbar .wp-block-navigation__container {
    display: flex;
    justify-content: center;
  }
}

/* Item behaves like .nav__item */
.navbar .wp-block-navigation-item {
  display: block;
  margin-bottom: 0;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

/* atMedium */
@media (min-width: 768px) {
  .navbar .wp-block-navigation-item {
    margin: 0 15px;
    max-width: 100%;
  }
}

/* Last item: remove bottom border */
.navbar .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
  border-bottom: none;
}

/* Link behaves like .nav__link */
.navbar .wp-block-navigation-item__content {
  position: relative;
  display: block;
  padding: 12px 0;
  margin: 0 10px;
  letter-spacing: 1px;

  text-transform: uppercase;
  font-weight: 400;
  font-size: 16px;
  font-family: 'Function Pro';

  border-bottom: 1px solid #989898;
  color: #ffffff;

  text-decoration: none;
  width:100%;
  text-align: center;
  outline: none!important;
}

/* atMedium */
@media (min-width: 768px) {
  .navbar .wp-block-navigation-item__content {
    border-bottom: none;
    color: #ffffff;
  }

  .navbar .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(3px);
    width: 100%;
    height: 3px;
    display: block;
    opacity: 0;
    background-color: #989898;
    transition: all 0.35s ease;
  }
}

/* Hover / focus */
.navbar .wp-block-navigation-item__content:hover,
.navbar .wp-block-navigation-item__content:focus {
  color: #989898;
}

.navbar .wp-block-navigation-item__content:hover::after,
.navbar .wp-block-navigation-item__content:focus::after {
  opacity: 1;
  transform: translateY(0);
}

/* atXLarge */
@media (min-width: 1280px) {
  .navbar .wp-block-navigation-item__content {
    font-size: 22px;
    margin: 0 56px;
  }
}


/* ==========================================
   WP Mobile Navigation Overlay Styling
========================================== */

.wp-block-navigation__responsive-container.is-menu-open {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 30px;
  margin-top: 30px;
  font-family: 'Function Pro';
}

/* Overlay links */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
  font-size: 16px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.8);
  text-transform: none;
}

/* Remove underline animation in overlay */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content::after {
  content: none !important;
}

/* Last link spacing */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item:last-of-type {
  margin-bottom: 20px;
}

/* Hide overlay menu on medium+ */
@media (min-width: 768px) {
  .wp-block-navigation__responsive-container.is-menu-open {
    display: none;
  }
}

/* ============================
   Fix WP nav layout to match custom site
============================ */

/* 1) Stop WP from letting the nav container stretch + distribute items */
.navbar .wp-block-navigation,
.navbar .wp-block-navigation__responsive-container,
.navbar .wp-block-navigation__container {
  width: auto !important;
}

/* 2) Force items to behave like your old .nav (not space-between) */
.navbar .wp-block-navigation__container {
  display: flex !important;
  justify-content: flex-end !important;   /* right align like a typical header nav */
  align-items: center !important;
  gap: 0 !important;                      /* your margins handle spacing */
}

/* 3) Ensure the Navigation block itself doesn't expand */
.navbar .wp-block-navigation {
  flex: 0 0 auto !important;
}

/* 4) Ensure the logo stays left (WP sometimes adds auto margins) */
.navbar .wp-block-site-logo {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Optional: constrain logo size to match your design */
.navbar .wp-block-site-logo img {
  height: auto;
  width: auto;
}


/* Remove WP default block spacing that adds unwanted gaps */
:where(.wp-site-blocks) > * {
  margin-block-start: 0 !important;
}

/* ============================
   WP Navigation mobile toggle
============================ */

/* Show hamburger on mobile */
.navbar .wp-block-navigation__responsive-container-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
  .navbar .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
}

/* Ensure the menu list isn't forced visible on mobile */
@media (max-width: 767px) {
  .navbar .wp-block-navigation__container {
    display: none !important;
  }
}

/* Make WP site logo behave like your previous logo markup */
.navbar .wp-block-site-logo,
.navbar .wp-block-site-logo a,
.navbar .wp-block-site-logo img {
  display: block;
}

/* ==========================================
   Mobile menu: use WP Navigation overlay
   (neutralize legacy .navbar__nav overlay rules)
========================================== */

/* On mobile, your legacy CSS turns navbar__nav into a hidden full-screen overlay.
   But WP controls overlay with its own responsive container.
   So: make navbar__nav behave normally and let WP handle overlay. */

@media (max-width: 767px) {
  .navbar .navbar__nav.wp-block-navigation {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;

    overflow: visible !important;
    background: transparent !important;

    opacity: 1 !important;
    visibility: visible !important;

    padding-top: 0 !important;
    text-align: inherit !important;
    width:100%!important;
    justify-content: center;
  }

  /* Hide the actual link list on mobile; WP will show it in the overlay when opened */
  .navbar .wp-block-navigation__container {
    display: none !important;
  }

  /* SHOW WP hamburger button */
  .navbar .wp-block-navigation__responsive-container-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 10px 3px !important; /* matches your .navicon padding */
  }

  /* Make the WP hamburger visible (color) */
  .navbar .wp-block-navigation__responsive-container-open,
  .navbar .wp-block-navigation__responsive-container-close {
    color: #ffffff !important; /* $primaryColor */
  }
}

/* Desktop: normal inline nav */
@media (min-width: 768px) {
  .navbar .wp-block-navigation__responsive-container-open {
    display: none !important;
  }

  .navbar .wp-block-navigation__container {
    display: flex !important;
  }
}


/* ============================
   Mobile: hide links until menu opens
============================ */
@media (max-width: 767px) {
  /* Hide link list only when overlay is CLOSED */
  .navbar .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
    display: none !important;
  }

  /* Show link list when overlay is OPEN */
  .navbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: block !important;
  }

  /* Ensure the overlay container itself is visible when open */
  .navbar .wp-block-navigation__responsive-container.is-menu-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}


/* DEV ONLY: force mobile nav open when body has .debug-menu */
@media (max-width: 767px) {
  body.debug-menu .wp-block-navigation__responsive-container {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body.debug-menu .wp-block-navigation__responsive-container .wp-block-navigation__container {
    display: block !important;
  }
}


.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
  background-color: #414042!important;
}


/* Home details mosaic  */

.home-mosaic{
  display:flex;
  flex-direction:column;
  
}

.home-mosaic__group{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap:18px;
}

.home-mosaic__item{
  display:block;
  overflow:hidden;
  position: relative;
}

.home-mosaic__item img {
  transform: scale(1);
  transition: all ease 0.25s;
}

.home-mosaic__item:hover > img{
  transform: scale(1.05);
}

.home-mosaic__item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.home-mosaic__item:hover > .btn--overlay{
  opacity: 1;
  visibility: visible;
}

.home-mosaic__group.is-hidden{ display:none; }

/* --- Layout 0: stacked pair in MIDDLE --- */
.home-mosaic__group.layout-0{
  grid-template-areas:
    "big top tall"
    "big bottom tall";
}
.home-mosaic__group.layout-0 .is-big{ grid-area: big; }
.home-mosaic__group.layout-0 .is-top{ grid-area: top; }
.home-mosaic__group.layout-0 .is-bottom{ grid-area: bottom; }
.home-mosaic__group.layout-0 .is-tall{ grid-area: tall; }

/* --- Layout 1: stacked pair on LEFT --- */
.home-mosaic__group.layout-1{
  grid-template-areas:
    "top big tall"
    "bottom big tall";
}
.home-mosaic__group.layout-1 .is-big{ grid-area: big; }
.home-mosaic__group.layout-1 .is-top{ grid-area: top; }
.home-mosaic__group.layout-1 .is-bottom{ grid-area: bottom; }
.home-mosaic__group.layout-1 .is-tall{ grid-area: tall; }

/* --- Layout 2: stacked pair on RIGHT --- */
.home-mosaic__group.layout-2{
  grid-template-areas:
    "big tall top"
    "big tall bottom";
}
.home-mosaic__group.layout-2 .is-big{ grid-area: big; }
.home-mosaic__group.layout-2 .is-top{ grid-area: top; }
.home-mosaic__group.layout-2 .is-bottom{ grid-area: bottom; }
.home-mosaic__group.layout-2 .is-tall{ grid-area: tall; }


.home-mosaic__actions{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:40px;
}

/* Group base */
.home-mosaic__group{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap:18px;

  /* animation */
  overflow:hidden;
  max-height: 9999px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 420ms ease, opacity 360ms ease, transform 360ms ease;
  will-change: max-height, opacity, transform;
}

/* hidden/collapsed state (animates out) */
.home-mosaic__group.is-hidden{
  max-height: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* optional: nicer “in” animation */
.home-mosaic__group.is-entering{
  opacity: 0;
  transform: translateY(16px);
}

.home-mosaic__group.is-incomplete {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

.home-mosaic__group.is-incomplete .home-mosaic__item {
  grid-column: auto !important;
  grid-row: auto !important;
}

.home-mosaic__group.is-two {
  grid-template-columns: 2fr 1fr 0fr;
  grid-template-rows: 260px;
}

.home-mosaic__group.is-two .home-mosaic__item {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* First image = wide */
.home-mosaic__group.is-two .home-mosaic__item:nth-child(1) {
  grid-column: span 2;
}

/* Second image = narrow */
.home-mosaic__group.is-two .home-mosaic__item:nth-child(2) {
  grid-column: span 1;
}

.home-mosaic__group.is-one {
  grid-template-columns: 1fr;
  grid-template-rows: 420px; /* adjust height as desired */
}

.home-mosaic__group.is-one .home-mosaic__item {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}
.home-mosaic__group.is-one img {
  object-fit: cover;
  height: 100%;
}

.lux-lightbox[hidden]{ display:none; }

.lux-lightbox{
  position:fixed; inset:0;
  z-index:99999;
}

.lux-lightbox__backdrop{
  position:absolute; inset:0;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(10px);
  opacity:0;
  transition: opacity 240ms ease;
}

.lux-lightbox__frame{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%) scale(.985);
  width:min(1200px, 92vw);
  height:min(86vh, 900px);
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.lux-lightbox.is-open .lux-lightbox__backdrop{ opacity:1; }
.lux-lightbox.is-open .lux-lightbox__frame{
  opacity:1;
  transform: translate(-50%,-50%) scale(1);
}

.lux-lightbox__img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  border-radius: 10px;
}

.lux-lightbox__close{
  position:absolute;
  top:43px; right:14px;
  width:42px; height:42px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-size:26px;
  line-height:38px;
  cursor:pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lux-lightbox__nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:56px; height:56px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-size:42px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}

.lux-lightbox__prev{ left:14px; }
.lux-lightbox__next{ right:14px; }

@media (max-width: 768px){
  .lux-lightbox__nav{ display:none; } /* swipe-only feel on mobile */
}

.footer-copyright{
  font-family: "Function Pro";
}

.footer__logo a, .footer__logo img{
  width: 220px!important;
}

@media (min-width:768px){
  .footer__logo a, .footer__logo img{
  width: 300px!important;
}
}

@media (min-width:992px){
  .footer__logo a, .footer__logo img{
  width: 370px!important;
}
}

@media (min-width:992px){
  .contact__form-wrapper {
    padding: 50px 50px 50px 150px;
}
}

.banner__footer .footer__bottom-links li a {color: #fff}
.contact__info {z-index: 1}

.about h2 {
  
}

.wp-block-list {
  margin-left: 20px;
}

.wp-block-list li {
  color: #000;
  font-family: "Function Pro", sans-serif;
  font-size: 20px;
}

.sitemap {
  text-align: center;
  display: flex;
  width: 100%;
  justify-content: center;
  column-gap: 60px;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
  padding: 10px 0 !important;
}

/* ============================
   Custom Styles
============================ */

@media (min-width:1400px){
  .video-clip {
      -webkit-transform: translate(-50%, -50%) scale(2);
      transform: translate(-50%, -50%) scale(2);
  }
}
/*.wp-block-post-content-is-layout-flow p, .wp-block-post-content-is-layout-flow h4{
  padding: 0 15px;
}*/
.sitemap{
  text-align: left;
  padding: 0 15px;
}
.sitemap .sitemap__list{
  text-align: left;
  padding-left: 10px;
}
.sitemap{
  display: block;
  max-width: 450px;
  margin: 0 auto;
}
@media (min-width:768px){
  .sitemap{
    text-align: center;
  }
  
}
@media (min-width:576px){
  .sitemap{
    display: flex;
    max-width: 100%;
  }
}
.sitemap .sitemap__list .sitemap__item::marker{
  color: #333333 !important;
}

@media (min-width:992px){
  .banner__footer{
    bottom: 30px;
  }
}
.projects__row--fill .projects__fill{
     /* grid-template-columns: repeat(1, 1fr);*/
}
@media (min-width:576px){
  .projects__row--fill .projects__fill{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width:992px){
  .projects__row--fill .projects__fill{
   /* grid-template-columns: repeat(4, 1fr);*/
  }
}

.contact__form-wrapper{
  padding: 25px 5px;
}
@media (min-width:576px){
  .contact__form-wrapper{
    padding: 25px;
  }
}
@media (min-width:992px){
  .contact__form-wrapper{
   padding: 50px 50px 50px 150px;
  }
}

.home-mosaic__group{
  display: block;
}
.home-mosaic__actions{
  flex-wrap: wrap;
  gap: 10px;
}
.home-mosaic__group .home-mosaic__item{ 
  margin-bottom:15px;height: 320px; 
}
.home-mosaic__group.is-incomplete{
  height: 100%;
}
@media (min-width:576px){
  .home-mosaic__group{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .home-mosaic{
    gap: 18px;
  }
  .home-mosaic__group .home-mosaic__item{ margin-bottom:0px;height: 100%; }
  .home-mosaic__group.is-two{
        grid-template-columns: 2fr 1fr;
  }
  .home-mosaic__group.is-two .home-mosaic__item:nth-child(1) {
    grid-column: span 2 !important;
  }
  .home-details__media .btn--overlay{
    display: none;
  }
  
}
@media (min-width:768px){
  .home-mosaic__group.is-two .home-mosaic__item:nth-child(1) {
    grid-column: span 2 !important;
  }
}
@media (min-width:992px){
  .home-mosaic__group{ 
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px
  }
  .home-mosaic__group.is-incomplete{
    height: 100%;
  }
}

.projects__rows{
  width: 100%;
}
.lux-lightbox__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lux-lightbox__close{
  top: 15px;
  right: 15px;
  background-color: rgba(64, 65, 66, 0.55);
}
.lux-lightbox__nav{
  background-color: rgba(64, 65, 66, 0.55);
}
.navbar .wp-block-navigation-item__content{
  margin: 0;
}
.navbar .wp-block-navigation-item{
  margin: 0 auto;
}
@media (min-width:768px){
  .navbar .wp-block-navigation-item{
    margin: 0 30px;
  }
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {min-width: 114px}
/*.video-clip {
      transform: translate(-50%, -50%) scale(4.85) !important; 
    }
@media (min-width: 576px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(2.75) !important; 
    }
}
@media (min-width: 768px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(2.1) !important; 
    }
}
@media (min-width: 992px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(2.85) !important; 
    }
}
@media (min-width: 1200px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(2.4) !important; 
    }
}

@media (min-width: 1400px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(2) !important; 
    }
}
@media (min-width: 1600px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(1.8) !important; 
    }
}
@media (min-width: 1800px) {
    .video-clip {
      transform: translate(-50%, -50%) scale(1.5) !important; 
    }
}*/
.video-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.video-clip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh; 
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
}

.banner__footer-right span a{
  display: inline-block;
}
@media (min-width: 576px) {
    .banner__footer-right span a{
      display: inline;
    }
}

.partners-block__logo img{
  width: 95px;
}
@media (min-width: 576px) {
  .partners-block__logo img{
    width: 140px;
  }
}
@media (min-width: 768px) {
  .partners-block__logo img{
    width: 160px;
  }
}

.wp-block-buttons .wp-block-button__link {
  position: relative;
    overflow: hidden;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 12px 22px;
    min-width: 200px;
    background-color: transparent;
    border: 2px solid #31698C;
    color: #333333;
    border-radius: 0;
    font-family: 'Function Pro';
        font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.wp-block-buttons .wp-block-button__link:before{
  content: '';
    position: absolute;
    inset: 0;
    left: 0;
    top:0;
    background-color: #31698C;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transition: -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.wp-block-buttons .wp-block-button__link:hover::before{
      transform: translateX(0);
}
.wp-block-buttons .wp-block-button__link:hover {
  color: #fff;
}

.anchor {
  position: relative;
  top: -500px;
  display: block;
}

@media (min-width: 991px){
.anchor{
  top: -270px;
}
}

/* Optional play overlay hook for the video tile */
.home-mosaic__item.is-video .btn--overlay--play{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Cinematic Hover Effect
========================= */

.projects__block {
    overflow: hidden;
    position: relative;
}

.projects__block figure {
    overflow: hidden;
    position: relative;
    margin: 0;
}

.projects__block figure img {
    width: 110%;
    height: 100%;
    object-fit: cover;
    transform: translateX(0%) scale(1.05);
    transition:
        transform 12s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

.projects__block:hover figure img {
    transform: translateX(4%) scale(1.08);
}

.projects__block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.projects__block:hover::after {
    opacity: 1;
}

.logged-in .banner {
  margin-top: -46px;
}

@media (min-width:768px){
  .logged-in .banner {
  margin-top: -32px;
}
}