/* ===================================================
   Header & Footer Styles
   File: assets/css/header-footer.css
=================================================== */

html,
body,
#page {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: var(--color-13, #fbfaf2);
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-13);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   Header Desktop
========================================== */
.header-container {
  padding: 20px 50px;
  box-sizing: border-box;
  max-width: 100%;
}

.header-nav ul,
.header-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-nav a {
  color: var(--color-blk);
  text-decoration: none;
}

.header-nav > ul {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main menu items */
.header-nav > ul > li {
  position: relative;
}

.header-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #111;
}

/* Arrow */
.header-nav > ul > .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-nav > ul > .menu-item-has-children > a::after {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;

  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 5.25003C10.5 5.25003 7.92231 8.75 7 8.75C6.07763 8.75 3.5 5.25 3.5 5.25' stroke='%23111111' stroke-width='0.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.header-nav > ul > .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* ==========================================
   DROPDOWN
========================================== */

.header-nav > ul > li.menu-item-has-children {
  position: relative;
}

/* Invisible hover bridge */
.header-nav > ul > li.menu-item-has-children::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
}

/* Dropdown */
.header-nav .sub-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;

  min-width: 190px;

  margin: 0;
  padding: 15px 0;

  list-style: none;

  background: var(--color-17);
  border-radius: 10px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;

  z-index: 999;
}

/* Show dropdown */
.header-nav > ul > li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links */
.header-nav .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px;

  color: var(--color-blk);
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.3s ease;
}

/* Orange text on hover */
.header-nav .sub-menu li a:hover {
  background-color: transparent;
  color: var(--color-1);
}

/* Dot */
.h-li-point {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;

  background-color: var(--color-1);
  border-radius: 50%;
}

.h-contact-link {
  text-decoration: none;
  color: var(--color-blk);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-contact-links {
  position: relative;
  width: 215px;
  height: 20px;
  overflow: hidden;
}

.h-contact-link {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  white-space: nowrap;

  color: var(--color-blk);
  text-decoration: none;

  transform: translateY(100%);
  opacity: 0;

  animation: contactRotate 6s infinite;
}

.h-contact-link:nth-child(1) {
  animation-delay: 0s;
}

.h-contact-link:nth-child(2) {
  animation-delay: 3s;
}

@keyframes contactRotate {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  8% {
    transform: translateY(0);
    opacity: 1;
  }

  42% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* ==========================================
   Mobile Menu Styles (<992px)
========================================== */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-blk);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: var(--color-17, #fefefd);
  z-index: 999999;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-menu-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

body.mobile-menu-active {
  overflow: hidden !important;
  touch-action: none;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px 20px 40px;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  margin-bottom: 36px;
}

.mobile-menu-list,
.mobile-sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.mobile-menu-item-row a {
  text-decoration: none;
  color: var(--color-blk);
  display: inline-block;
}

.mobile-arrow-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-arrow {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-item.is-open .mobile-menu-arrow {
  transform: rotate(180deg);
}

.mobile-sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 8px;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s;
  will-change: max-height, opacity, transform;
}

.mobile-menu-item.is-open .mobile-sub-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  padding-top: 16px;
}

.mobile-sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-blk);
}

.mobile-sub-menu li a:hover {
  color: var(--color-1);
}

/* Address & Contact Block */
.mobile-menu-address-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
}

.mobile-menu-contact-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-contact-group a,
.mobile-menu-email a {
  text-decoration: none;
  color: var(--color-blk);
}

.mobile-menu-office-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-office-address p {
  margin: 0 !important;
}

.mobile-menu-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.mobile-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mobile-social-icon img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0);
}

/* Responsive visibility rules */
@media (max-width: 991.98px) {
  .site-header {
    overflow-x: clip;
    max-width: 100%;
  }

  .header-container {
    padding: 16px 20px;
  }

  .header-nav,
  .header-contact {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-logo img {
    width: 130px;
    height: 20px;
  }
}

@media (min-width: 992px) {
  .mobile-menu-toggle,
  .mobile-menu-drawer {
    display: none !important;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  position: relative;
  padding: 35px 0;
  overflow: hidden;
}

/* Bottom orange gradient */
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;

  background: linear-gradient(
    180deg,
    rgba(234, 95, 55, 0) 25%,
    rgba(234, 95, 55, 0.5) 100%
  );

  pointer-events: none;
  z-index: 0;
}

/* Keep all footer content above the gradient */
.site-footer .container {
  position: relative;
  z-index: 1;
}

/* =========================================================
   COMMON FOOTER STYLES
========================================================= */

.site-footer * a {
  text-decoration: none;
  color: inherit !important;
}

.site-footer * ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* =========================================================
   FIRST FOOTER ROW
========================================================= */

.f-row-one {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-link-one {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-one li a {
  color: var(--color-17);
}

/* =========================================================
   SOCIAL LINKS
========================================================= */

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-links li {
  display: flex;
  align-items: center;
}

.footer-social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-links li a img {
  display: block;
  width: auto;
  height: auto;
}

/* =========================================================
   SECOND FOOTER ROW
========================================================= */

.f-row-two {
  padding-top: 34px;
}

.f-row-two p {
  margin: 0 !important;
}

/* =========================================================
   LEGAL LINKS
========================================================= */

.legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-links li {
  margin: 0;
}

.legal-links li a {
  color: var(--color-17);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
  .site-footer {
    padding: 30px 0;
  }

  .f-row-one {
    padding-bottom: 25px;
  }

  .f-row-two {
    padding-top: 25px;
  }

  .footer-link-one {
    gap: 18px;
  }

  .footer-social-links {
    gap: 16px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .site-footer {
    padding: 25px 0;
  }

  /* Smaller bottom gradient on mobile */
  .site-footer::after {
    height: 130px;
  }

  .f-row-one > div,
  .f-row-two > div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 20px;
  }

  .footer-link-one {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .footer-social-links {
    gap: 14px;
  }

  .f-row-one {
    padding-bottom: 25px;
  }

  .f-row-two {
    padding-top: 25px;
  }

  .f-row-two p {
    margin-bottom: 0;
  }

  .legal-links {
    flex-wrap: wrap;
  }
}

/* footer form  */

/* =========================================================
    FORM INPUTS
    ========================================================= */

.form-container
  input:not([type="file"]):not([type="submit"]):not([type="checkbox"]):not(
    [type="hidden"]
  ),
.form-container textarea {
  width: 100%;
  padding: 15px 10px;

  height: 48px;
  border-radius: 10px;
  outline: none;
  color: var(--color-21);
  box-sizing: border-box;
  border: 1px solid #707070;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0%;
}

.footer-form
  .form-container
  input:not([type="file"]):not([type="submit"]):not([type="checkbox"]):not(
    [type="hidden"]
  ),
.footer-form .form-container textarea {
  background-color: #7070701a;
}

footer .form-container textarea {
  background-color: #7070701a;
}

.form-container .wpcf7-form-control-wrap {
  width: 100%;
  display: block;
  position: relative;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
  color: var(--color-21);
  opacity: 1;
}

.form-container textarea {
  height: 90px;
  resize: none;
}

/* =========================================================
  FORM FIELD SPACING
  ========================================================= */

.form-input-container {
  padding-bottom: 14px;
}

/* =========================================================
    JOB / TALENT TOGGLE
    ========================================================= */

.form-type-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.form-type-label {
  color: rgba(254, 254, 253, 0.5);
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

/* Active label */
.form-type-label.active {
  color: #fefefd;
}

/* Toggle switch */

.form-toggle {
  position: relative;
  width: 25px;
  height: 15px;
  flex: 0 0 25px;
  display: inline-block;
  cursor: pointer;
  margin: 0;
}

.form-toggle input {
  position: absolute;
  opacity: 0;
  width: 0 !important;
  height: 0 !important;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background-color: #fefefd;
  border-radius: 50px;
  cursor: pointer;
}

/* Orange circle */

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  left: 2px;
  top: 2px;
  background-color: #ea5f37;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Talent active */
.form-toggle input:checked + .toggle-slider::before {
  transform: translateX(10px);
}

/* =========================================================
  FILE UPLOAD
  ========================================================= */

.file-upload {
  position: relative;
  width: 100%;
  height: 48px;
}

.file-upload .wpcf7-form-control-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  width: 100%;
  height: 48px;
  padding: 15px 10px;
  background-color: #7070701a;
  border: 1px solid #707070;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--color-21);
  cursor: pointer;
  box-sizing: border-box;
}

.file-upload-label svg {
  flex-shrink: 0;
  margin-left: 10px;
}

/* =========================================================
  JOB / TALENT FIELDS
  ========================================================= */

.form-job-field,
.form-talent-field {
  transition:
    opacity 0.3s ease,
    max-height 0.3s ease;
}

.form-job-field.hidden,
.form-talent-field.hidden {
  display: none;
}

.footer-form-btn,
.form-container input[type="submit"] {
  width: 100%;
  border: none;
  margin-top: 14px;
  cursor: pointer;
  background-color: var(--color-1) !important;
  color: var(--color-17) !important;
  height: 45px !important;
  border-radius: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* CF7 Feedback & Validation */
.form-container .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-container .wpcf7-response-output {
  margin: 15px 0 0 0 !important;
  padding: 12px 15px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  border: 1px solid transparent !important;
}

.form-container .wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450 !important;
  background-color: rgba(70, 180, 80, 0.1) !important;
  color: #46b450 !important;
}

.form-container .wpcf7 form.failed .wpcf7-response-output,
.form-container .wpcf7 form.aborted .wpcf7-response-output,
.form-container .wpcf7 form.invalid .wpcf7-response-output,
.form-container .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #ff6b6b !important;
  background-color: rgba(255, 107, 107, 0.1) !important;
  color: #ff6b6b !important;
}

.form-container .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* =========================================================
  MOBILE
  ========================================================= */

@media (max-width: 767px) {
  .form-type-toggle {
    gap: 15px;
  }
}

.footer-form {
  padding: 100px 0 10px 0;
  background-color: var(--color-18);
  color: var(--color-17);
}

.footer-form-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.footer-form .icon-heading {
  color: var(--color-17);
}

.footer-form p {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .footer-form-content-wrap {
    gap: 24px;
  }
  .footer-form {
    padding-bottom: 50px;
  }
  .form-container {
    padding-top: 50px;
  }
}
