@font-face {
  font-family: "STIXTwoText";
  src: url("../fonts/STIXTwoText.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Benguiat";
  src: url("../fonts/BENGUIAT.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Bickham";
  src: url("../fonts/Bickham.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* NEW */
html {
    scroll-behavior: auto !important; /* Let JavaScript handle smooth scrolling */
}
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Better iOS/trackpad scrolling */
}
/* Reduce scroll indicators during animation */
.scroll-section {
    transform: translateZ(0); /* Enable hardware acceleration */
    will-change: transform; /* Optimize for animations */
}
/* Improve scroll navigation */
.scroll-nav {
    pointer-events: all;
    z-index: 1000;
}

.scroll-dot {
    transition: all 0.2s ease;
}

/* Prevent momentum scrolling interference */
body {
    -webkit-overflow-scrolling: auto; /* Disable iOS momentum scrolling */
    overscroll-behavior: none; /* Prevent bounce effects */
}

/* Improve section rendering during animation */
.scroll-section {
    transform: translate3d(0, 0, 0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Reduce rendering artifacts */
}

/* Optimize navigation dots */
.scroll-nav {
    will-change: transform; /* Optimize for animations */
}

.scroll-dot {
    will-change: transform, background-color; /* Optimize dot animations */
}

/* Reduce visual jank during scrolling */
.full-height {
    contain: layout style paint; /* Improve rendering performance */
}

body {
 font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: 20px;
}


.full-height .row {
  min-height: 100vh;
}

/* Utility */
.full-height {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Section Header */
#ub-header-section {
  background: url(../img/header-bg-mobile.jpg) no-repeat center center;
  background-size: cover;
  position: relative;
}

.logo-card {
  padding-top: 20px;
  text-align: center;
}

.logo-card img {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  color: #ebecd5;
}

.header-title {
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 136px);
  font-family: "Bickham", serif;
  line-height: 1em;
}

.header-subtitle {
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 24px);
  font-family: "Benguiat", serif;
  margin-top: -0.8em;
}


/* Tablet & Up */
@media (min-width: 768px) {
  #ub-header-section {
    background: url(../img/header-bg.png) no-repeat center center;
    background-size: cover;

    /* Enhance image quality on high-DPI displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
  .logo-card img {
    max-width: 280px;
  }
  .header-titles {
    padding: 2rem 3rem;
    align-items: flex-start;
  }
  .header-subtitle {
    margin-top: -1.2em;
  }
}
/* END: Header */


/* Section One */
.ub-bg-1{
 background: url(../img/bg-1.png) no-repeat center center;
 background-size: cover;
}
.grey-box-left {
    background-color: #ececec;
    padding: 30px 10px 30px 10px;
    color:#050505;
    
    /* Add flexbox for vertical centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Mobile: 30px margin on top, left, right */
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
}

/* Desktop: 30px margin on top, left, bottom */
@media (min-width: 768px) {
    .grey-box-left {
        top: 30px;
        left: 30px;
        right: 0;
        bottom: 30px;
         padding: 30px 30px 30px 30px;
    }
}


.ub-bg-2{
 background: url(../img/section-2.jpg) no-repeat center center;
 background-size: cover;
}

.grey-box-right {
    background-color: #ececec;
    padding: 30px;
    color:#050505;
     padding: 30px 10px 30px 10px;
    
    /* Add flexbox for vertical centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Mobile: 30px margin on top, left, right */
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
}

/* Desktop: 30px margin on top, left, bottom */
@media (min-width: 768px) {
    .grey-box-right {
        top: 30px;
        left: 0px;
        right: 30px;
        bottom: 30px;
         padding: 30px 30px 30px 30px;
    }
}



.ub-bg-3{
 background: url(../img/section-3.jpg) no-repeat center center;
 background-size: cover;
}

.max-400{
  max-width: 450px;
  margin: 10px auto;
}

.grey-box {
    background-color: #ececec;
    padding: 30px 10px 30px 10px;
    
    /* Add flexbox for vertical centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Mobile: 30px margin on top, left, right */
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
}

/* Desktop: 30px margin on top, left, bottom */
@media (min-width: 768px) {
    .grey-box {
        top: 30px;
        left: 30px;
        right: 30px;
        bottom: 0px;
        padding: 30px 30px 30px 30px;
    }
}


.grey-bg {
  background-color: #ececec;
}

.ub-bg-4-1{
 background: url(../img/section-4-1.jpg) no-repeat center center;
 background-size: cover;
}
.ub-bg-4-2{
 background: url(../img/section-4-2.jpg) no-repeat bottom center;
 background-size: cover;
}



/* Typography */
.dark-font-title {
  font-family: "Benguiat", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 50px);
  color: #000000;
  line-height: 1.1em;
}

.dark-font-subtitle {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 24px);
  color: #050505;
  line-height: 1.1em;
  margin-top: -5px;
   padding-bottom: 0px;
       margin-bottom: 0rem;

}

.dark-font {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 24px);
  color: #050505;
  line-height: 1.5em;
}

/* Separator Lines */
.custom-separator {
  height: 2px;
  background-color: #050505;
  width: 60%;
  margin: 20px 0 20px 0px;
  max-width: 500px;
}

/* Grey Text Block */
@media (min-width: 768px) {
.dark-font-title {
  font-family: "Benguiat", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 50px);
  color: #000000;
  line-height: 1.1em;
}

.dark-font-subtitle {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 22px);
  color: #050505;
  line-height: 1.1em;
  margin-top: -5px;
  padding-bottom: 0px;
      margin-bottom: 0rem;

}

.dark-font {
  font-family: "STIXTwoText", serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 22px);
  color: #050505;
  line-height: 1.5em;
}

/* Separator Lines */
.custom-separator {
  height: 2px;
  background-color: #050505;
  width: 60%;
  margin: 30px 0 30px 0px;
  max-width: 500px;
}

}






.sep-center {
  margin: 20px auto !important;
  max-width: 300px;
}

.sep-white {
  background-color: #ffffff;
  max-width: 300px;
  margin: 30px 0 35px 0px;
}


/* FOOTER */
#ub-footer-section{
  background: #143C2E;
}

.footer-icon{
  width: 36px;
}
#ub-footer-section .footer-logo img {
  max-width: 350px;
}
.footer-hr{
  background-color: #ffffff;
  height: 1px;
  margin: 50px 10px;
}



























/* ALL NEW */
.scroll-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.scroll-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.scroll-dot.active {
  background-color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.3);
}
















/* NEW */
@media (max-width: 768px) {
  .scroll-nav {
    display: none;
  }
}


/* ALL NEW */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ebecd5;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  z-index: 100;
}

.scroll-arrow {
  display: block;
  margin-top: 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}