/* ===== New Header Layout =====
   Uses your existing tokens from master.css:
   --color-deepBlue, --color-orange, --container-width, etc.
*/

.site-header { position: relative; z-index: 50; }

/* Mobile full-width contact bar */
.mobile-contact-bar { display: none; }
.mobile-contact-btn{
  display:block;
  width:100%;
  text-align:center;
  background: var(--color-orange);
  color: var(--white);
  font-family: var(--font-MDExtBold);
  text-transform: uppercase;
  padding: 16px 18px;
  line-height: 1;
}

/* Top navy bar */
.header-topbar{
  background: var(--color-darkBlue);
  color: var(--white);
}
.header-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.topbar-left, .topbar-center, .topbar-right{
  display:flex;
  align-items:center;
  gap: 16px;
}

.topbar-left.desktop-only, .topbar-center.desktop-only{
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-center{
  flex: 1;
  justify-content: center;
  text-align:center;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.topbar-phone{
  font-family: var(--font-MDBoldReg);
  font-weight: 400;
  font-size: 23px;
  display:flex;
  gap: 8px;
  align-items:center;
  white-space: nowrap;
}
.topbar-phone a{ color: var(--white); }
.topbar-phone a:hover{ color: var(--color-orange); }
.topbar-phone-label{ font-weight: 700; }

.topbar-social{
  display:flex;
  align-items:center;
  gap: 29px;
  padding: 0 50px;
}

/* Make each icon a white circle */
.topbar-social-link{
  width: 48px;                 /* adjust to taste */
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
  border-radius: 50%;
  text-decoration: none;
}

/* Icon color inside the circle */
.topbar-social-link svg,
.topbar-social-link i{
  color: var(--color-darkBlue);
  fill: var(--color-darkBlue);
  font-size: 30px;
}

.topbar-social-link:hover svg,
.topbar-social-link:hover i{
  color: white;
  fill: var(--color-orange);
}

/* Hover state */
.topbar-social-link:hover{
  background: var(--color-orange);
}

.topbar-social-link{
  transition: background 0.4s ease, transform 0.4s ease;
}

/* .topbar-social-link:hover{
  transform: translateY(-1px);
} */

/* Make the gTranslate pill fit the top bar */
.header-topbar .nav-translate { z-index: 10; }
.header-topbar body .nav-translate .gt_switcher a{
  border: 1px solid var(--white);
  background: var(--white);
  border-radius: 25px;
}

body .nav-translate .gt_switcher {
    width: 305px;
    position: relative;
    overflow: initial;
    width: 191px;
}
body .nav-translate .gt_switcher .gt_selected {
    /* background: var(--white); */
    background: none;
}
body .nav-translate .gt_switcher .gt_selected a {
    padding: 9px 12px 10px 17px;
    border: 1px solid var(--secondary-blue);
    background: var(--white);
    border-radius: 37px;
    width: 90%;
    position: relative;
    color: var(--reqiured-blue);
    text-align: left;
    font-size: var(--font-20);
    font-weight: 600;
    color: var(--black);
}
body .nav-translate .gt_switcher .gt_option a {
    color: var(--reqiured-blue);
    font-size: var(--font-20);
    border-bottom: 1px solid var(--secondary-blue);
    padding: 8px 9px;
    line-height: 18px;
    color: var(--black);
}
body .nav-translate .gt_switcher .gt_selected a::after {
    display: inline-block;
    position: absolute;
    color: var(--secondary-blue);
    top: 50%;
    transform: translate(-50%, -50%);
    left: 90;
    right: 10px;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: 12px solid;
    border-right: 12px solid transparent;
    border-bottom: 0;
    border-left: 12px solid transparent;
    height: 0;
    background-image: none;
}
body .nav-translate .gt_switcher .gt_selected a.open::after {
    transform: rotate(180deg) translate(12px, 5px);
}
body .nav-translate .gt_switcher .gt_option {
    overflow-y: auto;
    height: 181px;
    background: rgb(255, 255, 255);
    width: 95%;
    position: absolute !important;
    top: 100%;
    padding: 8px 7px;
    border: 1px solid var(--secondary-blue);
    width: 98%;
}

body .nav-translate .gt_switcher a {
    transition: border-radius 0.3s ease;
}

.gt_switcher .gt_selected a::after,
.gt_switcher .gt_selected a::before{
    transition: transform 0.3s ease !important;
}
.gt_switcher .gt_selected a.open::after,
.gt_switcher .gt_selected a.open::before{
    transition: rotate(-180deg);
}
body .nav-translate .gt_switcher .gt_option {
    clip-path: inset(0 round 0 0 25px 25px);
    height: auto !important;
    border-radius: 0 0 25px 25px;
    /*clip-path: revert;*/
    padding-top: 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    scrollbar-gutter: stable;
}
/* Chrome, Edge, Safari */
.gt_switcher .gt_option::-webkit-scrollbar {
    width: 6px;
}  
.gt_switcher .gt_option::-webkit-scrollbar-track {
    background: transparent;
}
.gt_switcher .gt_option::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}
.gt_switcher .gt_option, body .nav-translate .gt_switcher .gt_option{
    border-top: 0 !important;
}

body .nav-translate .gt_switcher .gt_option a {
    font-weight: 600;
}
body .nav-translate .gt_switcher a.open{
    border-radius: 25px 25px 0 0 !important;
}
.gt_switcher .gt_option{
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gt_switcher .gt_option[style*="display: block"] {
    opacity: 1;
    visibility: visible;
}

/* CTA on top bar */
.topbar-cta .primary-btn{
  min-width: 190px;
  padding: 14px 22px;
}

/* Mobile hamburger (vertical dots like design) */
.mobile-only{ display:none; }
.desktop-only{ display:block; }

.topbar-hamburger{
  border:0;
  background: transparent;
  padding: 8px 10px;
}

.topbar-hamburger i{
  font-size: 60px;          /* matches mock */
  color: var(--white);
  line-height: 1;
}

.topbar-hamburger:hover i{
  color: var(--color-orange);
}

/* White nav row */
.header-navrow{
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.main-nav{
  padding: 40px 0;
}
.header-navrow .navbar-brand img{
  /* max-width: 320px; /* matches your master.css sizing intent */
  max-height: 56px;
  width: auto;
}

  /* Typography + link styling */
  .nav-center .nav-options > li > a{
    font-family: "MicrogrammaDBolExt", var(--font-MDExtBold), sans-serif;
    font-size: 19px;
    font-weight: 400;
    text-transform: uppercase;        /* remove if your design is not uppercase */
    color: black;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }

  .nav-center .nav-options > li > a:active{
    var(--color-deepBlue);
  }
/* ===== Desktop nav layout fixes ===== */
/* navbar-expand-xl kicks in at >=1200px */
@media (min-width: 1200px){

  /* Make the collapse area a flex row so menu + search sit on the right */
  #primaryNav{
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 22px;
  }

  /* This is the wp_nav_menu() container (it also has Bootstrap's .navbar-nav) */
  .nav-center{
    display: flex !important;
    flex-direction: row !important;   /* <-- prevents vertical stacking */
    align-items: center;
    justify-content: flex-end;
    width: auto;                      /* <-- stops it from taking full row */
    margin-left: auto;                /* <-- pushes menu to the right */
    gap: 0;                           /* gap handled on ul below */
    padding-right: 50px;
  }

  /* This is the actual UL (menu_class => nav-options) */
  .nav-center .nav-options{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;                        /* spacing between items */
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Make sure LIs don't behave like blocks */
  .nav-center .nav-options > li{
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Typography + link styling */
  .nav-center .nav-options > li > a{
    font-family: "MicrogrammaDBolExt", var(--font-MDExtBold), sans-serif;
    font-size: 19px;
    font-weight: 400;
    text-transform: uppercase;        /* remove if your design is not uppercase */
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }

  .nav-center .nav-options > li > a:hover{
    /* color: var(--color-orange); */
     color: var(--color-lightBlue);
  }

  /* 
  .nav-center .nav-options > li > a.active{
    color: var(--color-lightBlue);
  }
  */


  /* Search icon should sit just to the right of the menu */
  .nav-right{
    margin-left: 0 !important;
    width: auto !important;
    justify-content: flex-end;
  }
}


/* These should NOT apply on desktop; they break the desktop right-aligned layout */
@media (max-width: 1199.98px){

  /* Center menu (mobile/tablet behavior) */
  .nav-center{
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  /* Search icon right (mobile/tablet behavior) */
  .nav-right{
    margin-left: auto;
    display:flex;
    align-items:center;
    position: relative;
  }
}


.nav-search-panel #searchsubmit{
  background: var(--color-orange);
  color: white;
  border: none;
  height: 30px;
  padding: 0 10px;
}

.nav-search-btn{
  border:0;
  background: transparent;
  font-size: 32px;
  color: black;
  padding: 8px 35px 8px 10px;
}
.nav-search-btn:hover{ color: var(--color-orange); }

.nav-search-panel{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 12px;
  min-width: 320px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  z-index: 80;
}


/* Hero sits below header */
.page-hero{
  height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin: 0;
}
.page-hero.has-banner-video{ background: #000; overflow:hidden; }
.page-hero .hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}

.page-hero::after{
  /* subtle dark overlay only if you use title */
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.00));
  pointer-events:none;
  opacity: 0;
}
.page-hero .hero-inner{
  position: relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}
.hero-title-wrap{ text-align:center; }
.hero-title{
  font-family: var(--font-MDExtBold);
  font-size: clamp(28px, 5vw, 76px);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
}
.hero-title-first{ display:block; }
.hero-title-second{ display:block; font-family: var(--font-MDRegular); }

/* Only show overlay if the title exists */
.page-hero .hero-title-wrap:has(.hero-title) ~ * {}
.page-hero:has(.hero-title)::after{ opacity: 1; }


@media(max-width:1400px){
    .translate-button,
    input.search-box,
    .search-input form,
    input.search-box::placeholder,
    body .nav-translate .gt_switcher{
        width: 225px;
        font-size: 18px;
    }
    body .nav-translate .gt_switcher .gt_option {
        width: 97%;
    }
}

@media(max-width:1200px){
    body .nav-translate .gt_switcher .gt_option {
        width: 96%;
    }
}

/* Mobile behaviors */
@media (max-width: 992px){
  .topbar-center{ display:none; } /* like mock: center phone not shown on mobile */
  .desktop-only{ display:none; }
  .mobile-only{ display:inline-flex; }

  .mobile-contact-bar{ display:block; }

  /* Put social icons on the navy row and hamburger at far right */
  .topbar-right{ justify-content:flex-end; }
  .header-navrow{ padding: 0; }
  .main-nav{ padding: 14px 0; }

  /* Collapse menu full width when opened */
  #primaryNav{
    padding-top: 10px;
  }
  .nav-center{
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-right{
    margin-left: 0;
    width:100%;
    justify-content:flex-start;
    padding: 6px 0 10px;
  }
  .nav-search-panel{
    position: static;
    top:auto;
    right:auto;
    margin-top: 8px;
    min-width: 100%;
  }

  .page-hero{ height: 380px; margin-top: 0 !important;}


  /* Match design: no translate pill on the navy row */
  .topbar-left{ display:none; } /* hides the gTranslate pill */

  /* Make navy row just socials + dots, aligned right */
  .header-topbar-inner{
    justify-content: flex-end;
    gap: 12px;
    padding: 0 12px;
  }

  .topbar-right{
    margin-left: auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap: 12px;
  }

  /* Tighten socials for mobile so they don't get cut off */
  .topbar-social{
    padding: 0;
    gap: 12px;
  }

  .topbar-social-link{
    width: 44px;
    height: 44px;
  }

  .topbar-social-link svg,
  .topbar-social-link i{
    font-size: 28px;
  }


  .mobile-nav-search{
    width: 100%;
    padding: 10px 0 6px;
  }

  .mobile-nav-search form{
    width: 100%;
  }

  .mobile-nav-search input[type="search"],
  .mobile-nav-search input[type="text"]{
    width: 100%;
  }

  /* Optional: hide the magnifying-glass icon row on mobile
     since search is now inside the menu */
  .nav-right{ display:none; }

    /* Hard-hide the desktop CTA inside the topbar on mobile */
  .header-topbar .topbar-cta{
    display: none !important;
  }

  /* If the desktop toggler still exists anywhere, hard-hide it */
  .desktop-toggler{
    display: none !important;
  }


  /* Hide translate from the BLUE topbar on mobile */
  .header-topbar .topbar-left{ display:none !important; }

  /* Center social icons in the blue bar */
  .header-topbar-inner{
    position: relative;
    justify-content: center;
    align-items: center !important;
    height: 100%;
  }

  .topbar-right{
    width: 100%;
    justify-content: center !important;
    align-items: center;
  }

  /* Put the 3-dot menu at far right */
  .topbar-hamburger{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
  }

  /* Remove extra padding/gaps that shift things */
  .topbar-social{ padding: 0 !important; }

  .desktop-toggler{ display:none !important; }

  .header-navrow .navbar{ justify-content: center; }
  .header-navrow .navbar-brand{ margin: 0 auto; }
  
  .nav-search-btn{ display:none !important; }

  /* force the panel visible on mobile even if it has the hidden attribute */
  .nav-search-panel[hidden]{ display:block !important; }
  .nav-search-panel{
    display:block;
    box-shadow:none;
    border-radius:0;
    border:0;
    padding: 10px 0 0;
    background: transparent;
  }



  /* Make the collapse act like the black overlay menu */
  #primaryNav{
    background: #000;
    padding: 28px 22px;
  }

  /* Translate block inside overlay */
  .mobile-menu-translate{
    display:flex;
    justify-content:center;
    margin-bottom: 18px;
    padding-top: 50px;
  }

  /* If your gTranslate pill needs to be centered/fit */
  #primaryNav .nav-translate .gt_switcher{
    width: auto;
  }



 /* Hide translate in the BLUE bar on mobile (it belongs in overlay) */
  .header-topbar .topbar-left{ display:none !important; }

  /* Make the collapse become a full-screen overlay when opening */
  #primaryNav.show,
  #primaryNav.collapsing{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    padding: 0;
    margin: 0;
    overflow: auto;
  }

  /* Ensure overlay content is centered like the mock */
  .mobile-menu-overlay{
    min-height: 100vh;
    padding: 34px 22px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }

  /* Close X top-right */
  .mobile-menu-close{
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    padding: 6px 10px;
  }

  /* Phone styling inside overlay */
  .mobile-menu-phone .topbar-phone{
    justify-content: center;
    text-align: center;
    font-size: 18px;
    white-space: wrap;
    flex-direction: column;
  }

  /* Menu links stacked + centered */
  .mobile-menu-links .nav-center{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 10px 0 0;
  }

  /* Remove desktop navbar spacing inside overlay */
  .mobile-menu-links .navbar-nav{
    margin: 0;
  }

  /* Search at bottom like the mock */
  .mobile-nav-search{
    width: 100%;
    max-width: 320px;
    margin-top: 12px;
  }

  /* Make WP search form look like the pill */
  .mobile-nav-search form{
    position: relative;
    width: 100%;
  }
  .mobile-nav-search input[type="text"],
  .mobile-nav-search input[type="search"],
  .mobile-nav-search #s{
    width: 100%;
    border-radius: 999px;
    padding: 14px 18px 14px 56px;
    border: 0;
    outline: none;
  }
  .mobile-nav-search input[type="submit"],
  .mobile-nav-search #searchsubmit{
    display: none !important;
  }
  .mobile-nav-search form::before{
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 18a8 8 0 1 1 0-16a8 8 0 0 1 0 16m11 3l-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 18a8 8 0 1 1 0-16a8 8 0 0 1 0 16m11 3l-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    color: black; 
  }

  /* Make sure desktop-only pieces are truly hidden on mobile */
  .desktop-only{ display:none !important; }


  .mobile-menu-overlay, .mobile-menu-overlay a, .mobile-menu-overlay .nav-center .nav-options > li > a{
    color: white !important;
  }

  .mobile-menu-overlay .gt_switcher a{
    color: black !important;
  }

  .mobile-menu-overlay .mobile-menu-links li{
    text-align: center;
  }

  .mobile-menu-overlay .nav-translate .gt_switcher .gt_selected{
    width: 100%;
    min-width: 155px;
  }

  .mobile-menu-overlay #menu-header-menu{
    gap: 25px;
    display: flex;
    flex-direction: column;
  }



  .mobile-nav-search {
    margin-top: 24px;
  }

  .mobile-search-form {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
  }

  .mobile-search-icon {
      position: absolute;
      left: 16px;
      color: black;
      font-size: 28px;
      pointer-events: none;
  }

  .mobile-search-input {
      width: 100%;
      height: 44px;
      padding: 0 16px 0 44px; /* room for icon */
      border-radius: 999px;
      border: none;
      outline: none;
      font-size: 15px;
      font-family: inherit;
      background: #ffffff;
      color: #000;
  }

  .mobile-search-input::placeholder {
      color: #6b6b6b;
  }

  .header-topbar-inner .topbar-right{
    display: flex !important;
    justify-content: space-between !important;
  }

  /* End Mobile 992px */

}


/* Force external SVG logo to actually have height */
.header-navrow .navbar-brand img{
  height: 72px;      /* adjust */
  width: auto;
  max-width: none;   /* prevent weird shrink-to-zero cases */
  display: block;
}



/* ===== Topbar height + CTA full-height block ===== */

/* Give the blue bar a consistent height like the mock */
.header-topbar{
  height: 108px;                 /* tweak: 60–72px depending on mock */
}

/* Make the inner flex row fill the bar */
.header-topbar .container,
.header-topbar-inner{
  height: 100%;
}

/* Stretch right column + CTA wrapper */
.header-topbar-inner{
  align-items: stretch !important;
}
.header-topbar-inner .topbar-right,
.header-topbar-inner .topbar-cta{
  height: 100%;
  display: flex;
  align-items: stretch;
}

/* Make the actual link fill full height and be square */
.header-topbar .header-cta-block{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 36px;              /* width of the orange area */
  border-radius: 0 !important;
  margin: 0;

  background: var(--color-orange);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}


.header-topbar-inner{ gap: 0; padding: 0;}
.topbar-right{ gap: 0; }
.topbar-cta{ height: 100%; }
