/** Custom Theme Styles **/

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  margin: 0 auto;
  padding-inline: 1.5rem;
}

@media(min-width:768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* utility buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all .3s ease;
  line-height: 1;
}

.gform_button,
.btn-primary {
  background: #F97316 !important;
  color: #fff !important;
  border: 1px solid #e35e08 !important;
}

.gform_button,
.btn-primary:hover {
  background: #ea6a0c !important;
  box-shadow: 0 18px 35px -12px rgba(249, 115, 22, .45) !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.svg-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* image placeholder fallback (shows when /assets/* not present) ---- */
.img-wrap {
  position: relative;
  background: linear-gradient(135deg, #0B1F3A 0%, #16335a 55%, rgba(249, 115, 22, .35) 100%);
}

.img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- shell: fixed, transparent → solid-white on scroll --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .4s ease, box-shadow .4s ease;
  background: transparent;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 6px 24px -12px rgba(11, 31, 58, .25);
}

body.scrolled header {
  position: fixed !important;
}

/* --- top contact bar: collapsed at top, slides in on scroll --- */
.topbar {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease;
  position: relative;
  z-index: 1000;
}

.topbar span {
  opacity: 0;
  display: none;
}

.site-header.scrolled .topbar {
  max-height: 60px;
  opacity: 1;
}

.topbar-inner {
  background: #0B1F3A;
  color: rgba(255, 255, 255, .85);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1rem;
  font-size: .85rem;
  font-weight: 500;
}

.topbar-inner a {
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .2s;
  color: #FFF
}

.topbar-inner a:hover {
  color: #F97316;
}

.topbar-inner .svg-icon {
  width: 1rem;
  height: 1rem;
}

@media(min-width:768px) {
  .topbar {
    display: block;
    z-index: 1000;
  }

  .topbar span {
    opacity: 1;
    display: block;
  }

  .topbar-inner {
    gap: 2rem;
    padding-inline: 2rem;
  }
}

/* --- nav row: logo / links / actions / burger --- */
.nav {
  margin: 0 auto;
  height: 5rem;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media(min-width:1160px) {
  .nav {
    padding-inline: 2.5rem;
  }
}

body.menu-open .logo {
  z-index: 1000;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 3rem;
  width: auto;
  display: block;
}

.logo-white {
  filter: brightness(0) invert(1);
  transition: opacity .4s ease;
}

/* white copy */
.logo-navy {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

/* navy copy */
body.menu-open .logo-white {
  opacity: 1;
}

body.menu-open .logo-navy {
  opacity: 0;
}

body.menu-open .site-header.scrolled .logo-white {
  opacity: 1;
}

body.menu-open .site-header.scrolled .logo-navy {
  opacity: 0;
}

.site-header.scrolled .logo-white {
  opacity: 0;
}

.site-header.scrolled .logo-navy {
  opacity: 1;
}

/* desktop nav links (hidden < 1024px) */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  transition: color .3s;
}

@media (min-width: 1024px) {
  .nav-links {
    gap: 1.1rem;
    font-size: .775rem;
    display: flex;
  }
}

@media (min-width: 1160px) {
  .nav-links {
    font-size: .875rem;
  }
}

@media (min-width: 1220px) {
  .nav-links {
    gap: 2rem;
  }
}

.site-header.scrolled .nav-links a {
  color: #0B1F3A;
}

.nav-links a {
  transition: color .2s;
  color: #FFF;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: #F97316 !important;
}

/* desktop action buttons (hidden < 1024px) */
.nav-actions {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav-actions .btn {
  display: inline-block;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

.btn-nav {
  list-style: none;
}

.btn-nav a {
  padding: .6rem 1.5rem;
  font-size: .675rem;
  list-style: none;
  display: inline-block;
}

@media (min-width: 1220px) {
  .btn-nav a {
    min-height: 2.25rem;
    padding: .6rem 1.5rem;
    font-size: .875rem;
  }
}

.btn-nav-outline a {
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  background: transparent;
  border-radius: 9999px;
  font-weight: 600;
  transition: all .3s;
}

.btn-nav-outline a:hover {
  background: #FFF;
  color: #0B1F3A;
}

body.menu-open .site-header.scrolled nav .btn-nav-outline a {
  color: #FFF;
}

.site-header.scrolled nav .btn-nav-outline a {
  border-color: #e2e8f0;
  color: #0B1F3A;
}

.site-header.scrolled nav .btn-nav-outline a:hover {
  background: #0B1F3A;
  color: #FFF;
}

.btn-nav-primary a {
  padding: .5rem 1.5rem;
  color: #FFF;
  padding: 0.6rem 1.5rem;
  min-height: 0;
}

/* mobile hamburger (hidden >= 1024px) — three bars that morph to an X.
   Sits above the overlay (header z-index 50 > overlay 40) so it stays
   clickable as the close control. */
.nav-burger {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  transition: color .3s;
}

.site-header.scrolled .nav-burger {
  color: #0B1F3A;
}

body.menu-open .nav-burger,
body.menu-open .site-header.scrolled .nav-burger {
  color: #fff;
  z-index: 1000;
}

/* white X over the navy overlay */
.burger-box {
  position: relative;
  width: 24px;
  height: 16px;
  display: block;
}

.burger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.burger-bar:nth-child(1) {
  top: 0;
}

.burger-bar:nth-child(2) {
  top: 7px;
}

.burger-bar:nth-child(3) {
  top: 14px;
}

/* open → X: outer bars meet in the middle and cross, middle bar fades */
body.menu-open .burger-bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

body.menu-open .burger-bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger-bar:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

iframe[data-related-entity="9271987"] {
  display: none;
}

@media(min-width:768px) {
  iframe[data-related-entity="9271987"] {
    display: block;
  }

  body.menu-open iframe[data-related-entity="9271987"] {
    display: none;
  }
}

@media(min-width:1024px) {

  .nav-links {
    display: flex;
  }

  .nav-actions {
    display: flex;
  }

  .nav-burger {
    display: none;
  }
}

/* mobile overlay — full-viewport, links + CTAs centred both axes.
   Toggled by JS adding `menu-open` to <body>. Animates in/out with
   opacity + transform; visibility delays so it's not focusable closed. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0B1F3A;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}

.mobile-menu li {
  list-style: none;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s ease, transform .35s ease, visibility 0s;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-align: center;
  width: 100%;
  padding: 2rem;
}

.mobile-menu-inner li.menu-item:not(.btn) a {
  font-family: "PlayfairDisplay-Regular", sans-serif;
  font-weight: 400;
  font-variation-settings: normal;
  font-style: normal;
}

.mobile-menu a {
  display: block;
  padding: .85rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(10px);
  transition: color .2s ease, opacity .4s ease, transform .4s ease;
}

.mobile-menu li.current_page_item:not(.btn) a,
.mobile-menu a:hover {
  color: #F97316;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  width: 100%;
  max-width: 20rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

.mobile-menu-actions .btn a {
  width: 100%;
  padding: 1rem;
  font-size: 0.95rem;
}

.mobile-menu-actions .btn-nav-outline a {
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  background: transparent;
  border-radius: 9999px;
  font-weight: 600;
}

.mobile-menu-actions .btn-nav-outline a:hover {
  background: rgba(255, 255, 255, .1);
}

.mobile-menu-actions .btn-primary a {
  color: #fff;
}

/* staggered reveal of the items when the overlay opens */
body.menu-open .mobile-menu a,
body.menu-open .mobile-menu-actions {
  opacity: 1;
  transform: none;
}

body.menu-open .mobile-menu-inner> :nth-child(1) {
  transition-delay: .10s;
}

body.menu-open .mobile-menu-inner> :nth-child(2) {
  transition-delay: .15s;
}

body.menu-open .mobile-menu-inner> :nth-child(3) {
  transition-delay: .20s;
}

body.menu-open .mobile-menu-inner> :nth-child(4) {
  transition-delay: .25s;
}

body.menu-open .mobile-menu-inner> :nth-child(5) {
  transition-delay: .30s;
}

/* while open: keep header transparent, logo white, contact bar hidden, lock scroll */
body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  background: transparent;
  box-shadow: none;
}

body.menu-open .topbar {
  max-height: 0;
  opacity: 0;
}

@media(min-width:1024px) {
  .mobile-menu {
    display: none;
  }
}

.marquee {
  background: #F97316;
  color: #fff;
  padding: 0.5rem 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  padding-inline: 2rem;
  animation: marquee 28s linear infinite;
}

.marquee-track strong {
  font-weight: bold;
}

.marquee-track .dot {
  width: .375rem;
  height: .375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .5);
  flex-shrink: 0;
}

.marquee-track .dash {
  width: 1px;
  height: 1.1rem;
  border-radius: 1px;
  background: rgba(255, 255, 255, .5);
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}