/* ==================================================
   VARIABLES
================================================== */
:root {
  --header-transition-speed: 1s;
  --logo-out-speed: 0.5s;
  --footer-transition-speed: 0.8s;
  --message-fade-speed: 1.3s;
  --body-text-size: 1.2rem;
  --body-text-h2: 1.5rem;
}

/* ==================================================
   GLOBAL RESET
   ================================================== */
* {
  /*  box-shadow: 0 0 2px red;*/
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background: black;
  font-family: 'EKModenaCondensedBold';
  color: white;
  overscroll-behavior: none;
}

h1,
h2,
h3,
h4{
    font-weight:normal;
}

img { 
  -webkit-user-drag: none; 
  -khtml-user-drag: none; 
  -moz-user-drag: none; 
  -o-user-drag: none; 
  user-drag: none; 
}

section {
  color: white;
}

a, a:visited {
  text-decoration: none;
}

/* Hide scrollbars */
* {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

*::-webkit-scrollbar {
  display: none; 
}

/* ==================================================
   FONT FACES
   ================================================== */
@font-face {
  font-family: 'EKModenaCondensedBold';
  src: url('../fonts/EKModenaCondensed-Bold.woff2') format('woff2');
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'EKModenaCondensedLight';
  src: url('../fonts/EKModenaCondensed-Light.woff2') format('woff2');
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'EKModenaRegular';
  src: url('../fonts/EKModena-Regular.woff2') format('woff2');
  font-style: normal;
  font-display: block;
}

/* ==================================================
   THREE.JS CONTAINER
   ================================================== */
#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 0;
  margin: 0;
  padding: 0;
  transition: top var(--header-transition-speed) ease,
    height var(--header-transition-speed) ease;
}
#three-container.shrinked {
  top: 90px; /* height of header */
  height: calc(var(--vh, 1vh) * 100 - 90px);
}

/* ==================================================
   SPLASH
   ================================================== */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  justify-content: flex-end;
}
#splash.translate-up {
  transform: translateY(-12rem);
}

/* ==================================================
   LARGE LOGO
   ================================================== */
.large-logo {
  color: white;
  padding: 0;
  text-align: center;
  background: linear-gradient(to top, black 0%, black 60%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: var(--logo-out-speed) ease;
  padding-top: calc(var(--vh, 1vh) * 5);
}
.large-logo.animate {
  transform: translateY(
    calc(var(--vh, 1vh) * 15)
  ); /* moves it up out of view */
}
.large-logo img {
  width: 95%;
  padding-bottom: calc(var(--vh, 1vh) * 1);
}

/* ==================================================
   HEADER
   ================================================== */
header {
  position: fixed;
  transform: translateY(-90px); /* Initial hidden state */
  left: 0;
  top: 0;
  width: 100%;
  transition: transform 0.35s ease;
  z-index: 100000;
  pointer-events: auto;
  font-family: 'EKModenaRegular';
  background: black;

}

header.animate {
  box-shadow:0 5px 5px black;
  transform: translateY(0); /* Slide down when 'animate' is added */
}

header.no-box-shadow{
   box-shadow:none;  
}


header.hide-banner {
  transform: translateY(-45px); /* Slide slightly up on scroll */
}
header .banner {
  font-size: var(--body-text-size);
  background: white;
  text-align: center;
  text-transform: uppercase;

  padding: 0;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  transition: transform 0.3s ease;
}

header .nav {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.6rem;
  height: 45px;
  font-size: 1rem;
  flex-wrap: wrap;
}
header .left {
  width: 12.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
header .left a {
  display: flex;    
  width: 100%;
  height: 100%;
}
header .left img {
  width: 100%;
  display: flex;
}
header .center {
  display: flex;
  position: relative;
  justify-content: center;
  flex: 1;
  min-width: 200px;
}
header .center a {
  position: relative;
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
}
header .center a.active {
  border-bottom: 1px solid white;
}
.nav-underline {
  position: absolute;
  bottom: 0;        /* nudge it down 1px everywhere */
  height: 1px;
  background: white;
  transition: left 0.2s ease, width 0.2s ease;
  pointer-events: none;
  will-change: left, width;
}
header .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 12.5rem;
  height: 100%;
}

.right-link {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: inherit;
}
.right-link > * + * {
  margin-left: 0.4rem;
}

.right-link img {
  height: 30px;
  transition: transform 0.3s ease;
}

.right-link:hover img {
  transform: rotate(180deg);
}


@keyframes sidePulse {
  0% {
    transform: translateX(0px);
  }
  25% {
    transform: translateX(3px);
  }
  50% {
    transform: translateX(0px);
  }
  75% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0px);
  }
}


/* ====================================================================================================
   ABOUT PAGE IMAGE
   ==================================================================================================== */
.background-image{
    position: fixed;
    left: 620px;
    top: 0;
    width: auto;
    height: 100%;
    min-height:900px;
    z-index: 1;
}

/* ====================================================================================================
   JOBS PAGE LAYOUT
   ==================================================================================================== */
.jobs-page {
  padding-top: 90px; /* matches header height */
}

.jobs-banner {
  padding: 1.2rem;
  margin: 0 auto;
  color: white;
}

.jobs-banner h1 {
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 0.8rem;
  font-weight: normal;
}

.jobs-banner .back-link {
  margin-top: 10px;
     font-family: 'EKModenaRegular';
    font-size: var(--body-text-size);
    line-height: 1.35;
}

.jobs-banner .back-link a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
   
}
.jobs-banner .back-link a img{
    margin-right: 0.5rem;
}
 .jobs-banner .back-link .rotated-arrow {
  transform: rotate(180deg);
  width: 1.2rem;
    height: auto;
}

.jobs-banner p {
  font-family: 'EKModenaRegular';
  font-size: var(--body-text-size);
  max-width: 600px;
  line-height: 1.4;
}

.jobs-banner a,
.jobs-banner a:visited,
form a,
form a:visited
{
 color:white;
 text-decoration:underline;
}

/* --------------------------------------------------
   FILTER PANEL (LEFT)
   -------------------------------------------------- */
.jobs-layout {
  display: flex;
  padding: 1.2rem;
  padding-bottom: 100px;
  /*gap: 1.6rem;*/
  margin: 0 auto;
  align-items: flex-start;
}
.jobs-layout > * + * {
  margin-left: 1.6rem;
}

.filters {
  flex: 0 0 240px;
  color: white;
}

.filters h2 {
  font-family: 'EKModenaCondensedBold';
  margin: 0;
  margin-bottom: 0.8rem;
  font-size: var(--body-text-size);
  line-height: 1;
  text-transform: uppercase;
    font-weight: normal;
}

#clearFiltersRow {
  margin-top: 1.2rem;
  text-align: left;
  padding-left: 0;
  display: none;
}
#clearFiltersRow li {
  list-style: none;
  text-align: left;
}
#clearFiltersBtn {
  display: block;
  margin-top: 1.6rem;
  background: #333;
  color: white;
  font-weight: normal;
  padding: 0.8rem 1.6rem;
  font-size: var(--body-text-size);
  line-height: 1.35;
  border: none;
  font-family: 'EKModenaRegular';
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

#clearFiltersBtn:hover {
  background: #444;
  transform: scale(1.02);
}
.filter-group {
  margin-bottom: 0;
  padding: 0;
}

.filter-group button {
  font-family: 'EKModenaRegular';
  background: none;
  border: none;
  color: white;
  font-weight: normal;
  font-size: var(--body-text-size);
  line-height: 1.4;
  text-transform: capitalize;
  cursor: pointer;
}
.filter-group ul {
  list-style: none;
  font-family: 'EKModenaRegular';
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  line-height: 1.4;
  font-size: var(--body-text-size);
  padding-left: 50px;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.filter-group.open ul {
  max-height: 500px; /* big enough to fit all */
  opacity: 1;
}
.filter-group ul li {
  list-style: none;
  position:relative;
}

.filter-group ul li button {
  all: unset;
  font-family: 'EKModenaRegular';
  font-size: var(--body-text-size);
  color: white;
  cursor: pointer;
  display: block;
  padding: 0rem 0;
  width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group ul li button.active {
  text-decoration: underline;
}
.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: normal;
  font-size: var(--body-text-size);
  font-family: 'EKModenaRegular';
}

.arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.filter-group.open .arrow-icon {
  transform: rotate(180deg);
}


/* Apply this to the filter buttons */
.filter-group ul button {
  all: unset;
  font-family: 'EKModenaRegular';
  font-size: var(--body-text-size);
  color: white;
  cursor: pointer;
  display: block;
  padding: 0.3rem 0.5rem;
  width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative; /* key for positioning the dot */
}

/* Right-aligned pulsing dot */
.filter-group ul button.loading::after {
    content: '';
    position: absolute;
    right: 0.54rem;
    top: 50%;
    transform: translateY(-50%);
    width: .25rem;
    height: .25rem;
    border-radius: 50%;
    background-color: white;
    animation: pulseDot .2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%   { opacity: 0.2; transform: translateY(-50%) scale(1); }
  50%  { opacity: 1;   transform: translateY(-50%) scale(1.6); }
  100% { opacity: 0.2; transform: translateY(-50%) scale(1); }
}


/* Hide the arrow when there are no list items */
.filters .filter-group:not(:has(ul > li)) .arrow-icon { 
  display: none; 
}

/* Optional: make the toggle inert when empty */
.filters .filter-group:not(:has(ul > li)) .filter-toggle { 
  cursor: default; 
  opacity: 0.7; 
  pointer-events: none;
}

/* --------------------------------------------------
   JOB LIST
   -------------------------------------------------- */
.job-listings {
  flex: 1;
  display: flex;
  flex-direction: column;

}

.job-listings::-webkit-scrollbar {
  width: 6px;
}
.job-listings::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.job-row {
  display: flex;
  align-items: center;
  padding: 0.64rem 0;
  border-top: 1px solid white;
  text-decoration: none;
  color: white;

  position: relative;
  transition: transform 0.3s ease;
}

.job-row:last-child {
  border-bottom: 1px solid white;
}

.job-row:hover {
  transform: scale(1.02);
}
.empty-callout.job-row:hover {
  transform: scale(1);
}

.job-row:hover .arrow {
  animation: sidePulse 0.9s ease-in-out infinite;
}

.job-row .title {
  font-size: 1.6rem;
  text-transform: uppercase;
  flex: 1 1 0;
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
  line-height:1.1;
}
.job-row .details {
  position: absolute;
  left: 50%;
  max-width: 40%;
  transform: translateX(0);
  font-family: 'EKModenaRegular';
  font-size: var(--body-text-size);
  white-space: nowrap;
}

.job-row .arrow {
  width: 1.2rem;
  height: auto;
  position: absolute;
  right: 0.8rem;
}
.job-callout {
  background: #333;
  color: white;
  font-family: 'EKModenaRegular';
  padding: 0.08rem 1.2rem;
  margin-top: 0.8rem;
  font-size: var(--body-text-size);
  line-height: 1.3;
}
.job-callout p {
  margin: 0.8rem 0;
}

#loadMoreBtn {
  cursor: pointer;
  border-top: none;
}



/* ====================================================================================================
   INDIVIDUAL JOB PAGE LAYOUT
   ==================================================================================================== */
.job-detail h2 {
  font-size: var(--body-text-size);
  line-height: 1.35;
  margin-top: 1.2rem;
  margin-bottom: 0;
    font-weight: normal;
    
}

.job-description h2 {
  font-size: var(--body-text-h2);
  line-height: 1;
  margin-top: 0rem;
  letter-spacing:.02rem;
  margin-bottom: 0;
    font-weight: normal;
}

.job-detail p {
  font-family: 'EKModenaRegular';
  font-size: var(--body-text-size);
  line-height: 1.35;
  margin-bottom: 0.8rem;
  max-width: 800px;
}

.job-detail ol,
.job-detail ul, 
.jobs-banner ol,
.jobs-banner ul{
  font-size: var(--body-text-size);
  line-height: 1.35;
  font-weight: normal;
  font-family: 'EKModenaRegular';
  max-width:600px;
}
.job-detail ol li,
.job-detail ul li,
.jobs-banner ol li,
.jobs-banner ul li{
  font-size: var(--body-text-size);
  line-height: 1.35;
  padding-bottom: 0.2rem;
}

.job-meta {
  flex: 0 0 240px;
  color: white;
  font-size: var(--body-text-size);
  border-top: 1px solid white;
}

.job-meta p {
  padding: 0;
  font-size: var(--body-text-size);
  line-height: 1.35;
  margin: 0;
}

hr {
  margin-top: 1.2rem;
}

.job-toggle-button,
input.send-button {
  display: block;
  margin-top: 0rem;
  background: #333;
  color: white;
  font-weight: normal;
  padding: 0.8rem 1.6rem;
  font-size: var(--body-text-size);
  line-height: 1.35;
  border: none;
  border-radius:0;
  cursor: pointer;
  font-family: 'EKModenaRegular';
  transition: background 0.3s ease, transform 0.3s ease;
}

.job-toggle-button{
    margin-right:1.6rem;
}

.job-toggle-button:hover,
input.send-button:hover {
  background: #444;
  transform: scale(1.02);
}

.job-buttons {
  display: flex;
  flex-wrap: wrap;
  /*gap: 1rem;*/
 margin-top: 1.6rem;
}

.job-buttons > * + * {
  margin-top: 1rem;
}

.refer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  background: none;
  color: white;
  font-family: 'EKModenaRegular';
  font-size: var(--body-text-size);
  line-height: 1.35;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  height: auto;
  text-transform: unset;
}
.refer-button:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   FORM
   -------------------------------------------------- */

.job-content-area {
  flex: 1;
  max-width: 600px;
  padding-right: 1.2rem;
  box-sizing: border-box;
}
.application-form {
  display: none;
}
.application-form.show {
  display: block;
}
.job-description.show {
  display: block;
}
.job-description {
  display: none;
}

.application-form h2 {
  font-size: var(--body-text-h2);
  line-height: 1;
  margin-top: 0;
  margin-bottom: 1.6rem;
    font-weight: normal;
}
form {
  padding-bottom: 100px;
}
form label {
  display: block;
  margin: 0.8rem 0 0.2rem;
  font-weight: normal;
  font-size: 1.15rem;
  text-transform: uppercase;
}

label span {
  display: block;
  padding-bottom: 0.1rem;
}

.name-fields {
  display: flex;
  gap: 0.8rem;
}
.name-fields input[type='text'] {
  flex: 1;
  width: 100%;
}
form input[type='text'],
form input[type='tel'],
form input[type='email'] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  border-radius: 0;
  box-sizing: border-box;
   border: none;
  outline: none;
  font-family: 'EKModenaRegular';
}
form textarea {
  width: 100%;
  height: 150px;
  padding: 0.6rem;
  font-size: 1.15rem;
  font-family: 'EKModenaRegular';
  box-sizing: border-box;
  resize: none;
    border: none;
  outline: none;
    border-radius: 0;
  margin-bottom: 0.8rem;
}

form select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
  border-radius: 0;
  font-size: 1.15rem;
  font-family: 'EKModenaRegular';
  background: white;
  color: black;
  border: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.upload-box {
  display: block;
  width: 100%;
  height: 150px;
  background: #333;
  color: gray;
  text-align: center;
  line-height: 150px;
  border-radius: 0;
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 0.8rem;
  font-family:'EKModenaRegular';
}
.upload-box:hover{
      background: #444;
}

.file-upload-label {
  display: inline-block;
  cursor: pointer;
  width:50%;
}

.field-error{
        color: red;
    font-size: 1.15rem;
    text-align: left;
    font-family: 'EKModenaRegular';
        text-transform: none;
        margin:1rem 0;
}

.g-recaptcha{
    margin: 1rem 0;
}

.send-button{
    margin-top:1rem;
}


.input-dark {
  background: #333;
  color: white;
  border: none;
  outline: 1px solid #333;
  transition: background 0.3s ease ;
}

.input-dark:hover{
  background: #444;
   outline: 1px solid #444;
}

.input-dark:focus {
  outline: 1px solid #444;
   background: #4D4D4D; /*maybe darker*/
}

.input-dark::placeholder {
  color: darkgray;
  opacity: 1;
}
select.input-dark {
  color: white;
}

select.input-dark.placeholder {
  color: darkgray;
}


/* ====================================================================================================
   MEDIA QUERIES
   ==================================================================================================== */
@media (min-width: 911px) {
  /* kill open mobile-menu if resized to desktop */
  #mobileMenuOverlay {
    top: -300px !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.menu-button {
  display: none;
}


#mobileMenuOverlay {
  position: fixed;
  top: -300px;
  left: 0;
  width: calc(100% - 3.2rem);
  padding: 1.2rem 1.6rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: top 0.4s ease, opacity 0.3s ease;
}

#mobileMenuOverlay.show {
  top: 45px;
  opacity: 1;
  pointer-events: auto;
}

#mobileMenuOverlay a {
  color: black;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1rem 0;
  text-transform: uppercase;
  width: 100%;
  text-align: left;
  background: white;
}

.hamburger {
  display: none; /*normally hide it*/
  width: 32px;
  height: 32px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  padding: 0;
}

.hamburger span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

/* Top */
.hamburger span:nth-child(1) {
  top: 8px;
}

/* Middle */
.hamburger span:nth-child(2) {
  top: 15px;
}

/* Bottom */
.hamburger span:nth-child(3) {
  top: 22px;
}

/* Active (close state) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 15px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 15px;
}

@media (max-width: 910px) {
  header{
    height: 45px;
   box-shadow:none;
  }
  #three-container.shrinked {
  top: 45px; /* height of header */
  height: calc(var(--vh, 1vh) * 100 - 45px);
}
  header .center,
  header .right {
    display: none;
  }
  header .left {
    width: 15rem;
  }
  .hamburger {
    display: flex;
  }

  header .banner {
    display: none;
  }
  header.hide-banner {
    transform: translateY(0px);
  }

  header .nav {
    justify-content: space-between;
  }

  .menu-button {
    display: block;
    color: white;
    background: none;
    border: none;
    font-size: 0.96rem;
    font-family: 'EKModenaRegular';
    cursor: pointer;
  }


  /*Mobile Jobs Layout */
  .jobs-layout {
    flex-direction: column;
    /*gap: 2rem;*/
  }
  
  .jobs-layout > * + * {
  margin-top: 2rem;
 margin-left:0;
}

  .filters,
  .job-meta {
    width: 100%;
    flex: 0 0 auto;
  }
  .meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
  }

  .meta-item {
    display: flex;
    flex-direction: column;
  }
  .job-listings {
    width: 100%;
  }

  .jobs-banner h1 {
    margin-top: 2rem;
    font-weight: normal;
  }

  .job-content-area {
    max-width: 100%;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  


.job-buttons > * + * {
  margin-left: 0;
  margin-top:0;
}

  .job-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
    padding-right: 2.4rem; /* space for arrow */
  }

  .job-row .title {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding-right: 0;
  }

  .job-row .details {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    margin-top: 0rem;
  }

  .job-row .arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .box:hover .box-arrow {
    animation: none !important;
  }
  .job-row:hover .arrow {
    animation: none !important;
  }

  .refer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.8rem 0;
    background: none;
    color: white;
    font-family: 'EKModenaRegular';
    font-size: var(--body-text-size);
    line-height: 1.35;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
    height: auto;
  }

  .refer-button:hover {
    
    transform: scale(1.02);
    text-decoration: none;
  }
  
  

  
}
