/* ============================================
   What We Do Page - Scoped Styles
   Root class: .what-we-do-page
   Font: Futura (with fallbacks)
   ============================================ */

@font-face {
  font-family: "Futura";
  src: local("Futura Medium"), local("Futura-Medium");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: local("Futura Bold"), local("Futura-Bold");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Hide Salient parent theme header/footer on What We Do page --- */
body.page-template-new-what-we-do #header-outer,
body.page-template-new-what-we-do #header-space,
body.page-template-new-what-we-do #footer-outer,
body.page-template-new-what-we-do #slide-out-widget-area,
body.page-template-new-what-we-do #to-top {
  display: none !important;
}

body {
  margin: 0;
  padding: 0;
}

.what-we-do-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #1c1c1c;
  color: #fafafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

.what-we-do-page *,
.what-we-do-page *::before,
.what-we-do-page *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* ============================================
   Header (consistent with other pages)
   ============================================ */
.wwd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.wwd-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  width: 160px;
}

.wwd-header__logo-icon {
  height: 40px;
  width: auto;
  filter: none !important;
}

.wwd-header__logo-text {
  height: 30px;
  width: auto;
  filter: none !important;
}

.wwd-header__nav {
  display: flex;
  gap: 54px;
  align-items: center;
}

.wwd-header__nav-link {
  font-family: "Futura", "Trebuchet MS", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.wwd-header__nav-link:hover {
  color: #f5f5f7;
}

.wwd-header__nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #bda600;
}

.wwd-header__lang {
  width: 160px;
  display: flex;
  justify-content: flex-end;
}

.wwd-header__lang-btn {
  font-family: "Futura", "Trebuchet MS", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.wwd-header__lang-btn:hover {
  color: #f5f5f7;
}

.wwd-header__mobile-bar {
  display: none;
}

/* ============================================
   Title Section
   ============================================ */
.wwd-title {
  padding: 40px 204px 60px;
}

.wwd-title__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wwd-title__left {
  flex: 0 0 auto;
  min-width: 280px;
}

.wwd-title__heading {
  font-family: "Futura", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 54px;
  line-height: 1.5;
  color: #f5f5f7;
  letter-spacing: -0.594px;
}

.wwd-title__right {
  flex: 1;
  padding-top: 8px;
  max-width: 657px;
}

.wwd-title__subtitle {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  color: #fafafc;
  margin-bottom: 24px;
  line-height: 1.5;
}

.wwd-title__desc {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  color: #fafafc;
  line-height: 1.5;
  letter-spacing: -0.176px;
}

/* ============================================
   Content Section (Services + Form)
   ============================================ */
.wwd-content {
  padding: 40px 204px 80px;
}

.wwd-content__inner {
  display: flex;
  gap: 159px;
  align-items: flex-start;
}

/* ============================================
   Services (Left)
   ============================================ */
.wwd-services {
  flex: 1;
  min-width: 0;
}

/* Each service is a single flex row:
   [info 127px] [desc 340px] [subs] */
.wwd-service {
  display: flex;
  gap: 68px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.wwd-service:last-child {
  margin-bottom: 0;
}

/* Info column: icon + label (number + title) stacked */
.wwd-service__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 127px;
  flex-shrink: 0;
}

.wwd-service__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wwd-service__icon svg {
  display: block;
  width: 42px;
  height: 42px;
}

/* Number + Title group (gap: 4px per Figma) */
.wwd-service__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.wwd-service__number {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700;
  font-size: 16px;
  color: #bda600;
  line-height: 1.5;
}

.wwd-service__title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  color: #fafafc;
  line-height: 1.5;
}

/* Description column */
.wwd-service__desc {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  color: #fafafc;
  line-height: 1.5;
  letter-spacing: -0.176px;
  width: 340px;
  flex-shrink: 0;
}

/* Sub-services: horizontal row of items */
.wwd-service__subs {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.wwd-service__sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 127px;
  flex-shrink: 0;
}

.wwd-service__sub-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wwd-service__sub-icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

/* Sub-item label group (gap: 4px) */
.wwd-service__sub-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.wwd-service__sub-number {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700;
  font-size: 16px;
  color: #bda600;
  line-height: 1.5;
}

.wwd-service__sub-title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  color: #fafafc;
  line-height: 1.5;
}

/* ============================================
   Contact Form (Right)
   ============================================ */
.wwd-form {
  flex: 0 0 357px;
  position: sticky;
  top: 40px;
}

.wwd-form__title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 36px;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 32px;
}

.wwd-form__form {
  display: flex;
  flex-direction: column;
}

.wwd-form__field {
  border-bottom: 1px solid rgba(250, 250, 252, 0.4);
}

.wwd-form__input {
  width: 100% !important;
  background: transparent !important;
  background-color: rgba(0, 0, 0, 0) !important;
  border: none !important;
  outline: none !important;
  color: #fafafc !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  padding: 18px 10px !important;
  display: block !important;
}

.wwd-form__input::placeholder {
  color: #fafafc;
  opacity: 1;
}

.wwd-form__submit {
  display: block;
  margin: 32px auto 0;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff;
  font-family: "Futura", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 20px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.wwd-form__submit:hover {
  color: #f5f5f7;
}

/* ============================================
   Contact Form 7 compatibility
   CF7 wraps inputs in <span.wpcf7-form-control-wrap>
   and each field row in <p>. Map those to our original
   .wwd-form__field visual (bottom border) and make sure
   inputs are visible over any Salient parent styles.
   ============================================ */
.wwd-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.wwd-form .wpcf7-form p {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.wwd-form .wpcf7-form p:has(.wwd-form__submit),
.wwd-form .wpcf7-form p:last-of-type {
  line-height: normal;
}

.wwd-form .wpcf7-form p:has(.wwd-form__submit) {
  position: relative;
  text-align: center;
}

/* Fade submit text out while loader is active */
.wwd-form .wpcf7-form[data-status="submitting"] .wwd-form__submit,
.wwd-form .wpcf7-form[data-status="validating"] .wwd-form__submit {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wwd-form .wpcf7-form .ajax-loader {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 16px 0 0 !important;
}

.wwd-form .wpcf7-form br {
  display: none;
}

/* Neutralize Salient parent label styles — CF7 <label> must be a plain block wrapper */
.wwd-form .wpcf7-form label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #fafafc !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.wwd-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wwd-form .wpcf7-form input.wwd-form__input,
.wwd-form .wpcf7-form textarea.wwd-form__input {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #fafafc !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.wwd-form .wpcf7-form input.wwd-form__input {
  line-height: 1.5 !important;
  padding: 18px 10px !important;
}

.wwd-form .wpcf7-form textarea.wwd-form__input {
  height: 60px !important;
  line-height: 1.5 !important;
  padding: 18px 10px !important;
  resize: none !important;
  overflow-y: auto !important;
}

.wwd-form .wpcf7-form input.wwd-form__input::placeholder,
.wwd-form .wpcf7-form textarea.wwd-form__input::placeholder {
  color: #fafafc;
  opacity: 1;
}

/* Per-field validation tip: kill CF7's white box, float below the underline */
.wwd-form__field {
  position: relative;
}

.wwd-form .wpcf7-form .wpcf7-not-valid-tip {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: none !important;
  background: transparent !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: #e87461 !important;
  text-align: left !important;
}

/* Reserve space below error fields so subsequent fields don't overlap the tip */
.wwd-form .wpcf7-form p:has(.wpcf7-not-valid) {
  padding-bottom: 24px !important;
}

/* Invalid input: tint the field's bottom border to match the warning */
.wwd-form__field:has(.wpcf7-not-valid) {
  border-bottom-color: #e87461 !important;
}

.wwd-form .wpcf7-form .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #d0d0d0 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
}

/* ============================================
   Banner Section
   ============================================ */
.wwd-banner {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-bottom: 80px;
}

.wwd-banner__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wwd-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.3);
}

/* Banner CTA (hidden on desktop, shown on mobile) */
.wwd-banner__cta {
  display: none;
}

/* ============================================
   Footer (consistent with other pages)
   ============================================ */
.wwd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.wwd-footer__left {
  display: flex;
  gap: 54px;
  align-items: center;
}

.wwd-footer__text,
.wwd-footer__link {
  font-family: "Futura", "Trebuchet MS", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.wwd-footer__link {
  transition: color 0.3s ease;
}

.wwd-footer__link:hover {
  color: #f5f5f7;
}

.wwd-footer__right {
  display: flex;
}

/* ============================================
   RWD - Large Desktop (< 1600px)
   ============================================ */
@media (max-width: 1600px) {
  .wwd-title {
    padding: 60px 120px 50px;
  }

  .wwd-content {
    padding: 30px 120px 60px;
  }

  .wwd-content__inner {
    gap: 80px;
  }

  .wwd-service {
    flex-wrap: wrap;
    gap: 40px;
  }

  .wwd-service__subs {
    width: 100%;
    padding-left: 195px; /* 127 + 68 gap */
  }

  .wwd-form {
    flex: 0 0 320px;
  }
}

/* ============================================
   RWD - Desktop narrow (< 1440px)
   ============================================ */
@media (max-width: 1440px) {
  .wwd-title {
    padding: 60px 80px 50px;
  }

  .wwd-content {
    padding: 30px 80px 60px;
  }

  .wwd-content__inner {
    gap: 60px;
  }

  .wwd-service {
    flex-wrap: wrap;
    gap: 40px;
  }

  .wwd-service__subs {
    width: 100%;
    padding-left: 195px; /* 127 + 68 gap */
  }

  .wwd-form {
    flex: 0 0 300px;
  }
}

/* ============================================
   RWD - Desktop (< 1280px)
   ============================================ */
@media (max-width: 1280px) {
  .wwd-title {
    padding: 60px 60px 40px;
  }

  .wwd-content {
    padding: 30px 60px 60px;
  }

  .wwd-content__inner {
    flex-direction: column;
    gap: 48px;
  }

  .wwd-form {
    flex: 0 0 auto;
    position: static;
    max-width: 400px;
  }

  .wwd-form__title {
    font-size: 28px;
  }

  /* Stack service into two rows: [info + desc] then [subs] */
  .wwd-service {
    flex-wrap: wrap;
    gap: 40px;
  }

  .wwd-service__desc {
    width: 280px;
    flex-shrink: 1;
  }

  .wwd-service__subs {
    width: 100%;
    padding-left: 195px; /* 127 + 68 gap */
  }
}

/* ============================================
   RWD - Tablet (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .wwd-title {
    padding: 60px 40px 40px;
  }

  .wwd-title__inner {
    gap: 40px;
  }

  .wwd-title__heading {
    font-size: 42px;
  }

  .wwd-content {
    padding: 20px 40px 40px;
  }

  .wwd-service {
    gap: 32px;
  }

  .wwd-service__desc {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .wwd-service__subs {
    flex-wrap: wrap;
    padding-left: 0;
  }

  .wwd-banner {
    height: 360px;
  }
}

/* ============================================
   RWD - Mobile (< 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .wwd-header {
    padding: 12px 20px 0;
    gap: 22px;
    justify-content: flex-start;
  }

  .wwd-header__nav,
  .wwd-header__lang {
    display: none;
  }

  .wwd-header__logo {
    width: auto;
    gap: 4px;
  }
  .wwd-header__logo-icon {
    height: 20px;
  }
  .wwd-header__logo-text {
    height: 15px;
    margin-top: 3px;
  }

  .wwd-header__mobile-bar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    height: 67px;
    padding: 20px 20px 20px 10px;
    background: #fafafc;
  }

  .wwd-header__mobile-lang {
    font-family: "Futura", "Trebuchet MS", sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #1c1c1c;
  }

  .wwd-header__hamburger {
    width: 72px;
    height: 20px;
    border: none;
    border-top: 2px solid #1c1c1c;
    border-bottom: 2px solid #1c1c1c;
    background: none;
    cursor: pointer;
    padding: 0;
  }

  /* Title - single column */
  .wwd-title {
    padding: 40px 24px 30px;
  }

  .wwd-title__inner {
    flex-direction: column;
    gap: 24px;
  }

  .wwd-title__left {
    min-width: unset;
  }

  .wwd-title__heading {
    font-size: 36px;
  }

  /* Content */
  .wwd-content {
    padding: 20px 24px 40px;
  }

  /* Hide contact form on mobile (CTA in banner instead) */
  .wwd-form {
    display: none;
  }

  /* Services: constrain width + centered, stacked vertically */
  .wwd-services {
    width: 100%;
  }

  .wwd-service {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .wwd-service__info {
    width: 100%;
    align-items: center;
  }

  .wwd-service__icon {
    justify-content: center;
    margin: 0 auto;
  }

  .wwd-service__desc {
    width: 100%;
    color: #999;
    text-align: left;
  }

  /* Sub-items: 3-column grid per Figma mobile */
  .wwd-service__subs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-left: 0;
    width: 100%;
  }

  .wwd-service__sub {
    width: auto;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .wwd-service__sub-label {
    align-items: center;
  }

  .wwd-service__sub-icon {
    width: 50px;
    height: 50px;
    justify-content: center;
  }

  /* Banner: show CTA on mobile */
  .wwd-banner {
    height: 300px;
    margin-bottom: 0;
  }

  .wwd-banner__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  .wwd-banner__cta-title {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400;
    font-size: 24px;
    color: #fff;
    text-align: center;
  }

  .wwd-banner__cta-link {
    font-family: "Futura", "Trebuchet MS", sans-serif !important;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  /* Footer: 2x2 grid per Figma mobile */
  .wwd-footer {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "year linkedin"
      "privacy legal";
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 24px 19px;
    padding: 16px 12px 32px;
  }

  .wwd-footer__left {
    display: contents;
  }
  .wwd-footer__right {
    display: contents;
  }
  .wwd-footer__text {
    grid-area: year;
  }
  .wwd-footer__right .wwd-footer__link {
    grid-area: linkedin;
  }
  .wwd-footer__left a:nth-of-type(1) {
    grid-area: privacy;
  }
  .wwd-footer__left a:nth-of-type(2) {
    grid-area: legal;
  }

  .wwd-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 19px;
  }

  .wwd-footer::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 3;
  }

  .wwd-footer__text {
    order: 1;
  }
  .wwd-footer__right .wwd-footer__link {
    order: 2;
  }
  .wwd-footer__left a:nth-of-type(1) {
    order: 4;
    margin-top: 24px;
  }
  .wwd-footer__left a:nth-of-type(2) {
    order: 5;
    margin-top: 24px;
    margin-left: -7px;
  }
}
