:root {
  --primary-red: #f93549;
  --font-gray: #949494;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.667;
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 1);
  color: #ffffff;
}

.site {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

#primary {
  display: flex;
  flex: 1;
}

a {
  color: #ffffff;
  text-decoration: none;

  &:active,
  &:visited {
    color: inherit;
  }
}

.site-logo {
  height: 45px;
  @media (width >= 64rem ) {
    height: 60px;
  }

  @media (width >= 96rem ) {
    height: 75px;
  }

  img {
    height: 100%;
  }
}

.left-container {
  border-right: 1px solid #ffffff;
  width: 100%;
  max-width: 480px;
  padding: 35px 80px 70px;
}

.right-bar {
  border-left: 1px solid #ffffff;
  width: 80px;

  @media (width >= 64rem ) {
    width: 136px;
  }

  @media (width >= 96rem ) {
    width: 160px;
  }
}

.site-header {
  border-bottom: 1px solid #ffffff;

  .inner-wrapper {
    align-items: stretch;
  }

  .menu-icon {
    border: none;
    background: none;
    padding: 0;

    .menu-bar {
      display: block;
      width: 100%;
      height: 4px;
      background-color: #ffffff;
      transition: all 0.3s ease-in-out;
    }
  }
}

.main-navigation {
  position: absolute;
  background-color: #000000;
  top: 100%;
  right: 0;
  width: 160px;
  z-index: 10;
  height: 0;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;

  &.active {
    height: auto;
    visibility: visible;
    opacity: 1;
  }

  .menu {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ffffff;
    padding: 0;
    margin: 0;
    list-style: none;

    li {
      border-bottom: 1px solid #ffffff;
      border-left: 1px solid #ffffff;
      border-right: 1px solid #ffffff;

      a {
        display: block;
        padding: 19px 22px;
      }
    }
  }
}

.site-footer {
  border-top: 1px solid #ffffff;

  .footer-main {
    font-size: 13px;
  }

  #footer-menu {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;

    li {
      padding-right: 8px;

      &:not(:last-child)::after {
        content: "/";
        padding-left: 8px;
      }
    }
  }

  .footer-email {
    a {
      text-decoration: underline;
    }
  }

  .footer-logo-img {
    height: 77px;
  }
}

.home-slider {
  width: 100%;
  max-width: calc(100% - 80px);

  @media (width >= 64rem ) {
    max-width: calc(100% - 136px);
  }

  @media (width >= 96rem ) {
    max-width: calc(100% - 160px);
  }

  .slide {
    position: relative;

    .slide-image {
      height: calc(100dvh - 85px);

      @media (width >= 48rem ) {
        height: auto;
        aspect-ratio: 16/9;
      }
    }

    .slide-content {
      position: absolute;
      line-height: 1.2;
      font-weight: 700;
      top: 50%;
      transform: translateY(-50%);
      left: 40px;
      font-size: 36px;
      max-width: 80%;
      
      @media (width >= 48rem ) {
        max-width: 650px;
        top: 40%;
        left: 80px;
        transform: unset;
      }
      
      @media (width >= 64rem ) {
        top: 50%;
        left: 160px;
        font-size: 48px;
        line-height: 1;
      }

      strong {
        font-weight: 700;
        color: var(--primary-red);
      }
    }
  }

  .swiper-pagination {
    text-align: right;
    padding-right: 45px;

    .swiper-pagination-bullet {
      background-color: #ffffff;
      opacity: 1;
      width: 26px;
      border-radius: 0;
      height: 2px;
      transition: all 1s ease-in-out;

      &.swiper-pagination-bullet-active {
        width: 80px;
        background-color: var(--primary-red);
      }
    }
  }
}

.slide-image {
  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
  }
}

h1 {
  &.architect-name {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
  }
}

.architect-page-container {
  justify-content: space-between;
}

.architect-information {
  font-size: 16px;

  span {
    color: var(--font-gray);
  }
}

.architect-thumbnail-slider {
  width: 100%;
}

.architect-slider {
  width: 100%;

  .swiper-slide {
    width: 25%;
    aspect-ratio: 16/10;
  }
}

.single-architect {
  .left-container{
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #ffffff;
    padding: 35px 20px;
    border-right: 0;

    @media (width >= 64rem ) {
      max-width: 480px;
      border-bottom: none;
      border-right: 1px solid #ffffff;
      padding: 35px 80px 70px;
    }
  }

  .main-content {
    width: calc(100% - 80px);
    border-right: 1px solid #ffffff;

    @media (width >= 64rem ) {
      max-width: calc(100% - 136px);
    }

    @media (width >= 96rem ) {
      max-width: calc(100% - 160px);
    }
  }

  .main-container {
    width: 100%;
  
    @media (width >= 64rem ) {
      max-width: calc(100% - 480px);
    }
  }

  .swiper-slide {
    width: 25%;
    aspect-ratio: 16/10;
  }

  .architect-navigation {
    a {
      color: var(--font-gray);
    }
  }

  .architect-thumbnail-slider {
    position: relative;

    .swiper-slide {
      &::after {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(60, 60, 60, 0.82);
        transition: opacity 0.3s ease;
        opacity: 1;
      }

      &.swiper-slide-thumb-active::after {
        opacity: 0;
      }
    }

    .swiper-button-prev,
    .swiper-button-next {
      color: #ffffff;
      width: 30px;
      height: 30px;

      &::after {
        font-size: 20px;
      }

      &:hover {
        color: var(--primary-red);
      }
    }
  }
}

.architects-page {
  /* Filter Navigation */
  .main-container {
    width: 100%;
    max-width: calc(100% - 80px);

    @media (width >= 64rem ) {
      max-width: calc(100% - 136px);
    }

    @media (width >= 96rem ) {
      max-width: calc(100% - 160px);
    }
  }

  .architects-filter {
    .filter-wrapper {
      gap: 20px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
    }

    .filter-item {
      font-size: 14px;
      transition: color 0.3s ease;
      white-space: nowrap;

      &:hover {
        color: var(--primary-red);
      }

      &.active {
        color: var(--primary-red);
      }
    }

    .filter-separator {
      color: var(--font-gray);
      font-size: 14px;
    }
  }

  /* Grid Layout */
  .architects-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);

    @media (width >= 48rem ) {
      grid-template-columns: repeat(2, 1fr);
    }
    
    @media (width >= 96rem) {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Card Styles */
  .architect-card {
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;

    &:hover {
      transform: translateY(-5px);
    }
  }

  .architect-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .architect-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%
      );

      @media (width >= 48rem) {
        padding: 25px 20px;
      }
      
      @media (width >= 96rem ) {
        padding: 30px 25px;
    }
  }

  .architect-card-title {
    font-weight: 700;
    max-width: 280px;
    line-height: 1.2;
    color: #ffffff;
    font-size: 22px;

    @media (width >= 64rem ) {
      font-size: 28px;
    }
    
    @media (width >= 96rem ) {
      font-size: 36px;
    }
  }

  .architect-card-location {
    width: fit-content;
    color: #ffffff;
  }

}

.about-navigation {
  position: relative;
  display: none;

  .menu-about-menu-container {
    width: 100%;
    border-bottom: 1px solid #ffffff;
  }

  .menu {
    display: flex;
    width: calc(100% - 160px);
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
    border-right: 1px solid #ffffff;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    &::-webkit-scrollbar {
      display: none; /* Safari and Chrome */
    }
    
    @media (width >= 64rem ) {
      padding: 0 60px;
      gap: 60px;
    }
    
    @media (width >= 80rem ) {
      padding: 0 80px;
      gap: 80px;
    }
    
    @media (width >= 96rem ) {
      padding: 0 100px;
      gap: 100px;
    }

    @media (width >= 1800px ) {
      padding: 0 150px;
      gap: 150px;
    }

    li {
      &.current_page_item {
        a {
          color: var(--primary-red);
        }
      }

      &.menu-item-98 {
        a{
          max-width: 98px;
        }
      }

      a {
        display: block;
        padding: 14px 0;
        color: var(--font-gray);
        transition: color 0.3s ease;
        width: fit-content;
        min-width: 80px;  
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;

        &:hover {
          color: var(--primary-red);
        }
      }
    }
  }
}

.content-page {
  .left-container {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #ffffff;
    padding: 35px 20px;
    border-right: 0;

    p {
      margin-bottom: 0;
    }
    
    @media (width >= 64rem ) {
      max-width: 480px;
      border-bottom: none;
      border-right: 1px solid #ffffff;
      padding: 35px 80px 70px;
    }

    .left-container-wrapper {
      line-height: 1.467;
      font-size: 20px;
      font-weight: 600;
      
      @media (width >= 48rem ) {
        font-size: 24px;
      }
    }
  }

  .main-container {
    width: 100%;
  
    @media (width >= 64rem ) {
      max-width: calc(100% - 480px);
    }
  }

}

.team-image-wrapper {
  img {
    object-position: center center;
  }
}

.team-member-card {
  border-bottom: 1px solid #ffffff;

  @media (width >= 40rem ) {
    border-right: 1px solid #ffffff;
    border-bottom: none;
  }

  &:nth-child(2n) {
    border-right: none;
  }
}

.team-members-container {
  .team-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 13px;
  }

  .team-director {

    .team-info {
      @media (width >= 48rem ) {
        width: calc(100% - 192px);
      }
    }
    
  }

  .team-info {
    width: 100%;
    font-size: 15px;
    line-height: 1.467;

    @media (width >= 64rem ) {
      width: calc(100% - 192px);
    }
  }
}

.content-page {
  .left-container {
    font-size: 24px;
    font-weight: 700;
    strong {
      color: var(--primary-red);
      font-weight: 700;
    }
  }

  .main-content {
    width: calc(100% - 80px);
    border-right: 1px solid #ffffff;
  }

  &.about-page {
    .left-container {
      width: 100%;
      max-width: 100%;
      border-bottom: 1px solid #ffffff;
      padding: 35px 20px;
      border-right: 0;

      @media (width >= 80rem) {
        max-width: calc(100% - 850px);
        padding: 35px 50px 40px;
        border-bottom: none;
        border-right: 1px solid #ffffff;
      }

      @media (width >= 96rem ) {
        max-width: 480px;
        padding: 35px 80px 70px;
      }

      .left-container-wrapper {
        font-size: 20px;

        @media (width >= 96rem ) {
          font-size: 24px;
        }
      }
    }

    .main-container {
      width: 100%;
      max-width: 100%;

      @media (width >= 80rem ) {
        max-width: 850px;
      }

      @media (width >= 96rem ) {
        max-width: calc(100% - 480px);
      }
    }
  }
}

.content-page-container {
  justify-content: space-between;
}

.contact-page {
  .wpcf7-form {
    margin-bottom: 48px;

    .fields {
      display: flex;
      flex-direction: row;
      gap: 40px;

      @media screen and (max-width: 768px) {
        gap: 20px;
        flex-direction: column;
      }

      .wpcf7-form-control-wrap {
        flex: 1;

        input,
        textarea {
          width: 100%;
          padding: 12px 15px;
          border: 0;
          border-bottom: 1px solid #cccccc;
          font-size: 15px;
          border-radius: 0;
          outline: none;
          font-size: 20px;
          color: #ffffff;
          height: 80px;
          padding: 10px 0;

          &::placeholder {
            color: #ffffff;
          }
        }

        textarea {
          padding-top: 20px;
          margin-bottom: 30px;
        }
      }
    }

    .wpcf7-submit {
      background-color: transparent;
      color: #ffffff;
      border: none;
      padding: 15px 0;
      font-size: 20px;
      cursor: pointer;
      transition: all 0.5s ease-in-out;

      &:hover {
        background-color: #e62e3a;
        padding: 15px 30px;
      }
    }
  }
}

.page-template-page-teams,
.page-template-page-content {
  #about-navigation {
    display: block !important;
  }
}