:root {
  --bg: #f4f1ea;
  --paper: #ffffff;
  --ink: #1f1a14;
  --muted: #6e6255;
  --accent: #cc5f2f;
  --accent-strong: #a8431a;
  --edge: #d9cfbf;
  --radius: 18px;
  --container: min(1250px, 96vw);
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #000;
}

body.page-template-contact-php {
    background: transparent url('../img/bg-menu.jpg') no-repeat center right / cover;
}

body {
  font-family: 'Lexend Exa', sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.privacy-policy-header {
  margin: 0 auto;
  width: 90%;
  max-width: 75rem;
  padding: 2rem 0;
  text-align: center;

  h1 {
    margin: 0;

    a {
      display: block;
      text-decoration: none;
      margin: 0;
      font-size: 1px;
      color: rgba(0, 0, 0, 0);
      background: transparent url(../img/logo-olixir.svg) no-repeat top left;
      background-size: contain;
      width: 100%;
      height: 30px;
    }

  }
}
.ot-privacy-notice-language-dropdown-container {
  display: none !important;
}

.privacy-policy {
  margin: 0 auto 30px auto;
  width: 90%;
  max-width: 75rem;
  padding: 0; /* 45px 20px */
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 1);
  color: #000;
  position: relative;

  a.back-to-home {
    position: sticky;
    top: 0;
    left: 0;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    background-color: #fff;
    margin-bottom: 50px;
  }

  a { color: #000; }

  .otnotice-content { 
    display: flex;
    gap: 1rem;
    padding: 0;

    .otnotice-menu {
      list-style: none;
      padding: 20px 10px 40px 10px;
      margin: 20px 3% 0 2%;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      width: 25%; 
      max-height: calc( 100vh - 70px ); 
      background: rgba(255, 255, 255, 0.6);
      box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);

      position: sticky;
      top: 20px;
      left: 0;
      overflow: scroll;

      li a {
        text-decoration: none;
        color: #000;
        font-size: 0.8rem;
        display: block;
        padding: 0.3rem 1rem 0.2rem 1rem;
        transition: all 0.4s ease;

        &:hover, &:focus {
          background-color: #fff;
        }
      }
    }

    .otnotice-sections {
      top: 0;
      left: 0;
      width: 70%;
    }
  }

}

@media (max-width: 768px) {
  .privacy-policy-header {
    width: 95%;
    h1 a {
      height: 25px;
    }
  }

  .privacy-policy {
    width: 95%;
    padding: 0.5rem;
    border-radius: 0;

    a.back-to-home {
      margin-bottom: 20px;
    }

    .otnotice-content {
      flex-direction: column;
      padding-left: 20px;
      padding-right: 20px;

      table {
        width: 100% !important;
        margin-bottom: 4rem;
      }

      .otnotice-menu-mobile {
        height: auto;
        display: block;
        text-align: center;
        font-size: 0.65rem;
        margin: 6rem auto 0 auto;
        width: 70%;
        max-width: 250px;
        position: relative;
        background-color: rgba(245, 245, 245, 1);
        border: 1px solid #ddd;
      }
      
      #otnotice-menu-selected {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;

        &::before, &::after {
          display: block;
          content: "";
          position: absolute;
          top: 50%;
          right: 10px;
          width: 8px;
          height: 2px;
          background-color: #bbb;
        } 
        &::before {
          transform: translateY(-1px);
        } 
        &::after {
          transform: translateY(-1px) rotate(90deg);
        } 
      }

      .otnotice-menu-mobile-container {
        list-style: none;
        margin: 1rem 0;
        padding: 0;

        a {
          display: block;
          text-decoration: none;
          font-size: 0.7rem;
          padding: 0.5rem 0.5rem 0.5rem 0.5rem;
          transition: all 0.4s ease;

          &:hover, &:focus {
            background-color: #fff;
          }
        }
      }

      .otnotice-menu {
       display: none; 
      }
      .otnotice-section {
        h2 {
          font-size: 0.8rem;
          margin: 0 0 0.25rem 0;
        }

        p {
          font-size: 0.75rem;
          line-height: 1rem;
        }
      }

      .otnotice-sections {
        width: 100%;
      }
    }
  }
}



.container {
  max-width: var(--container);
  width: 96%;
  margin-inline: auto;
}

.logged-in {
  .site-header { top: 32px; }
  .home-hero { height: calc(100dvh - 32px); }
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 50px;
  padding: 0 70px 0 75px;

  .brand {
    font-size: 1px;
    color: rgba(0,0,0,0);
    background: url('../img/logo-olixir.svg') no-repeat center;
    background-size: contain;
    width: 113px;
    height: 18px;
  }

  button.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    position: relative;

    span {
      position: absolute;
      top: 21px;
      left: 5px;
      display: block;
      width: 35px;
      height: 3px;
      background-color: var(--paper);
      transition: background-color 0.3s ease;

      &::before,
      &::after {
        content: '';
        position: absolute;
        width: 35px;
        height: 3px;
        background-color: var(--paper);
        transition: transform 0.3s ease, opacity 0.3s ease;
        left: 0;
      }

      &::before {
        transform: translateY(-8px);
      }
      &::after {
        transform: translateY(8px);
      }
    }

    &.active {
      span {
        background-color: rgba(255, 255, 255, 0);
        &::before {
          transform: rotate(45deg);
        }
        &::after {
          transform: rotate(-45deg);
        }
      }
    }
  }
}

.menu {
  display: flex;
  list-style: none;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
}

.header-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100dvh;
  background: transparent url('../img/bg-menu.jpg') no-repeat center right;
  z-index: 8;
  transition: all 0.3s ease-in-out;

  &.active {
    width: 100%;
  }
  
  .contact-link,
  #menu-main-nav li a {
      display: block;
      font-size: 2.8rem;
      line-height: 2.8rem;
      color: var(--paper);
      padding: 0 0 0 75px;
      font-weight: 200;
      text-decoration: none;
      text-transform: uppercase;
      transition: all 0.3s ease-in-out;
    }

  .contact-link[aria-expanded="true"] {
    font-weight: 500;
  }

  .primary-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-end;
    height: calc(100% - 100px);
    margin-top: 100px;
    padding-bottom: 30px;
  }

  #menu-main-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* border: 1px solid red; */

    li a {
      display: block;
    }

    /* li:first-child a { font-weight: 800; } */

    .sub-menu {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      padding: 0;
      margin: 0;
      list-style: none;
      transition: all 0.3s ease-in-out;

      li a {
        font-size: 1.8rem;
        line-height: 1.8rem;
        padding-left: 40px;
        font-weight: 400;
      }
    }

    li.menu-item-has-children.active > .sub-menu {
      padding-bottom: 20px;
      max-height: 500px;
      opacity: 1;

      li {
        margin: 15px 0 0 75px;
      }
    }

    li.menu-item-has-children.active > a {
      font-weight: 500;
    }
  }
}


.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  height: 100dvh;
  display: flex;
  align-items: center;
  background: url('../img/bg-main.jpg') no-repeat center;
  background-size: cover;
  color: var(--paper);

  .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }

  .hero-inner {
    max-width: 1024px;
  }

  .home-hero-logo {
    width: 100%;
    img { 
      display: block;
      width: 60%;
      height: auto;
      margin: 0 auto;
    }
  }

  .home-hero-tagline {
    padding-top: 30vh;
    font-size: 0.85rem;
    font-weight: 200;
    
    span { 
      display: block;
      text-align: center;
    }
  }

  .home-hero-scroll-link {
    margin-top: 0;
    font-size: 1px;
    color: rgba(0, 0, 0, 0);
    background: url('../img/home-down-arrow.svg') no-repeat center center;
    background-size: contain;
    width: 75px;
    height: 75px;
    text-decoration: none;
  }
}

.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
}

.home-hero--has-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.home-hero--has-video .container {
  position: relative;
  z-index: 2;
}

.olixir-agency-section {
  position: relative;
  margin: 0;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100vh;
}

.olixir-agency-section__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(21, 18, 14, 0.64) 0%, rgba(21, 18, 14, 0.45) 45%, rgba(21, 18, 14, 0.75) 100%);
}

.olixir-agency-section__inner {
  position: relative;
  z-index: 1;
}

.olixir-agency-section__title {
  margin: 0 0 20px;
  color: var(--paper);
  text-align: center;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  padding-top: 12rem;
  padding-bottom: 8rem;
}

.olixir-agency-section__grid {
  display: flex;
  gap: 11%;
  justify-content: center;
}

.olixir-agency-card {
  width: 26%;
  height: 14vh;
  display: flex;
  align-items: center;
  justify-content: center;

  a { 
    display: block;
  }
  
  .olixir-agency-card__image {
    display: block;
    width: 100%;
  }
}

.olixir-country-section {
  position: relative;
  width: 100%;
  min-height: 140px;
  height: 50vh;
  max-height: 540px;
  background-size: cover;
  background-position: center center;

}

.olixir-country-section__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.olixir-country-section__inner {
  position: relative;
  z-index: 1;
  min-height: 140px;
  height: 50vh;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.olixir-country-section__title {
  margin: 0;
  color: var(--paper);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 1px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  a { 
    text-decoration: none; 
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;     
  }
}

.olixir-country-section__mailto-container {
  position: absolute;
  top: 50px;
  right: 75px;
  z-index: 2;
}

.olixir-country-section__mailto {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;

  &:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--paper);
    bottom: -5px;
    transform: scaleX(0);
    transform-origin: 0 0;
    transition: all 0.3s ease-in-out;
  }
  
  &:hover {
    &:before {
      transform: scaleX(1);
    }
  }
}

.editor-styles-wrapper .olixir-country-section.is-editor-preview {
  width: min(100%, 920px);
  margin-inline: auto;
  min-height: 62vh;
}

.editor-styles-wrapper .olixir-country-section.is-editor-preview .olixir-country-section__inner {
  min-height: 62vh;
}

.site-footer {
  padding: 0;
  min-height: 230px;
  background: #000 url(../img/bg-footer-right.png) no-repeat right top;
  background-size: contain;
  color: var(--paper);

  .footer-inner {
    width: 100%;
    background: transparent url(../img/bg-footer-left.png) no-repeat left center;
    background-size: contain;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .footer-container {
      display: flex;
      justify-content: space-between;
      margin: 60px auto 20px auto;
      width: min(1100px, 70vw);

      p, nav {
        font-size: 0.8rem;
        font-weight: 200;
        padding: 0;
        margin: 0;
      }

      a {
        color: var(--paper);
        text-decoration: none;
      }
    }
  
  .footer-logo, .footer-contact {
    height: 24px;
    margin-bottom: 50px;
  }

  .footer-contact {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 0.9rem;
    font-weight: 700;
  }

  .footer-logo {
    background: transparent url('../img/logo-olixir.svg') no-repeat center left;
    background-size: contain;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#contact-form-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
  overflow: scroll;
  max-width: 700px;

  &.active {
    max-height: 1000px;
    opacity: 1;
  }
}

.contact-form-wrap {
  padding: 120px 0 100px 75px;
  max-width: 700px;
  width: 90%;

  h2 {
    font-size: 2.8rem;
    line-height: 2.8rem;
    color: var(--paper);
    font-weight: 500;
    text-transform: uppercase;
  }

  h3 {
    text-transform: uppercase;
    color: #fff;
    font-size: 1.125rem;
    margin: 0;
    padding: 0;
    font-weight: 300;
    text-transform: uppercase;
  }
  section {
    margin-top: 35px;
  }

  select {
    position: relative;
    all: unset;
    padding: 5px 55px 5px 10px ;
    font-size: 0.8rem;
    border-radius: 0;
    border: none;
    background-color: transparent;
    color: #fff;
  }
  .select__wrap {
    position: relative;
    width: max-content;
    border-bottom: 1px solid #fff;
    margin: 0;
    padding: 0;

    &::after {
      content: '';
      display: block;
      position: absolute;
      width: 6px;
      height: 6px;
      right: 15px;
      top: 40%;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: rotate(45deg) translateY(-50%);
    }
  }
}

/* Honeypot field - hidden from users but visible to bots */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form__status {
  margin: 0;
  padding: 5px;
  font-size: 0.8rem;

  &.is-error { 
    background-color: rgba(127, 13, 13, 0.8);
    /* background-color: rgba(255, 255, 255, 0.6); */
    color: #fff;
    animation: fadeOut 2s 0.5s ease-in-out forwards;
  }

  &.is-success {
    background-color: rgba(0, 155, 0, 0.8);
    color: #fff;
    animation: fadeOut 2s 0.5s ease-in-out forwards;
  }
}

.contact-form__city-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 28px;
  row-gap: 13px;
  max-width: 500px;
  padding-top: 15px;

  a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 3px;
    padding: 1px 0;
    border: 1px solid #fff;
    display: block;
    width: 100%;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.5;
    
    &:hover, 
    &.active { opacity: 1; } 
  }
}

.contact-form__info-line {
  display: flex;
  gap: 20px;
  margin-bottom: 13px;

  div, input {
    width: 100%;
  }

  input {
    border: 0;
    border-bottom: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    padding: 10px;
    font-size: 0.8rem;

    /* placeholder */
    &::placeholder {
      color: rgba(255, 255, 255, 0.7);
    }
  } 
}

textarea#contact_message {
  border: 1px solid #fff;
  border-radius: 3px;
  background-color: transparent;
  color: #fff;
  padding: 10px;
  font-size: 0.8rem;
  width: 100%;

  &::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
} 
.contact-form__legal-line {
  p {
    font-size: 0.8rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 0;
  }
}
.contact-form__button-line {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  button {
    background-color: transparent;
    border: 0;
    border-radius: 100px;
    color: #fff;
    padding: 9px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
      background-color: #fff;
      color: #000;
    }

    &[type="submit"] {
      background-color: rgba(255, 255, 255, 0.5);
      color: #000;
    }
  } 

}

.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }

  .header-inner {
    min-height: 64px;
    padding: 0 20px;
  }

  .header-nav #menu-main-nav {
    left: 10px;
    top: 150px;
    height: auto;
    justify-content: flex-start;
  }

  .header-nav .contact-link, 
  .header-nav #menu-main-nav li a {
    font-size: 1.7rem;
    line-height: 2rem;
    padding-left: 12px;
  }

  .home-hero .hero-inner {
    max-width: 92vw;
  }

  .home-hero .home-hero-logo img {
    width: 80%;
  }

  .home-hero .home-hero-tagline {
    padding-top: 30vh;
    padding-left: 10%;
    padding-right: 10%;
    font-size: 0.78rem;
    text-align: center;

    span { display: inline; }
  }

  .home-hero .home-hero-scroll-link {
    width: 58px;
    height: 58px;
    margin-bottom: 5vh;
  }

  .olixir-agency-section {
    height: auto;
    min-height: 60vh;
    padding: 0;
  }

  .olixir-agency-section__title {
    font-size: 2rem;
    letter-spacing: 0;
    padding-top: 5rem;
    padding-bottom: 1.25rem;
  }

  .olixir-agency-section__grid {
    gap: 4.5vh;
    flex-direction: column;
    align-items: center;
  }

  .olixir-agency-card {
    width: min(35vw, 360px);
    height: auto;
  }

  .olixir-country-section__mailto-container {
    top: 30px;
    right: 30px;
  }

  .olixir-country-section {
    min-height: 50vh;
  }

  .olixir-country-section__inner {
    min-height: 50vh;
    padding: 5rem 1rem;
  }

  .olixir-country-section__title {
    font-size: 3rem;
  }

  .site-footer {
    background-size: auto 75%;

    .footer-inner {
      background: none;
    }
    .footer-container {
      width: min(1100px, 90vw);
      margin: 40px auto 16px;
      gap: 14px;
      flex-direction: column;
    }

    .footer-logo { margin-bottom: 80px; }
   
    .footer-contact { margin-bottom: 80px; }

    .footer-nav {
      p { font-size: 0.7rem; }
      ul {
        padding-top: 10px;
        padding-bottom: 25px;
      }
    }
  }
  #menu-footer-menu {
    flex-direction: column;
    gap: 5px;
    margin-top: 25px;
  }
  

}


