/* === Who We Work With Page ===
   Requires: global.css (tokens, resets, topbar, footer)
   ========================================================================== */

.cc-ww {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding-top: 79px;
}

/* ── TABS ── */

.cc-ww-tabs {
  padding: 0 28px;
  width: 100%;
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 213px;
}

.cc-ww-tabs__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  height: 282px;
}

.cc-ww-tabs__grid {
  transition: opacity 0.4s ease;
}

.cc-ww-tabs__grid--hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.cc-ww-tabs__col {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  cursor: pointer;
}

.cc-ww-tabs__col:first-child {
  padding-left: 2px;
}

.cc-ww-tabs__col:nth-child(3),
.cc-ww-tabs__col:nth-child(5) {
  padding-left: 20px;
}

.cc-ww-tabs__divider {
  width: 0;
  border-left: 0.5px solid var(--cc-archive);
  align-self: stretch;
}

.cc-ww-tabs__title {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 35px;
  line-height: normal;
  color: var(--cc-archive);
  margin-top: 59px;
}

.cc-ww-tabs__desc {
  font-family: var(--cc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-archive);
  margin-top: 10px;
}

.cc-ww-tabs__more {
  display: inline-block;
  font-family: var(--cc-font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-dark-parchment);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  margin-top: auto;
  margin-bottom: 17px;
}

/* ── EXPANDED TAB ── */

.cc-ww-tabs__expanded {
  display: flex;
  flex-direction: column;
  height: 282px;
  padding-left: 2px;
}

.cc-ww-tabs__expanded {
  transition: opacity 0.4s ease;
}

.cc-ww-tabs__expanded--hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.cc-ww-tabs__expanded-title {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 44px;
  line-height: normal;
  color: var(--cc-ink);
  margin-top: 59px;
}

.cc-ww-tabs__expanded-desc {
  font-family: var(--cc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-ink-2);
  margin-top: 16px;
  max-width: 450px;
}

.cc-ww-tabs__back {
  display: inline-block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--cc-font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-dark-parchment);
  cursor: pointer;
  margin-top: auto;
  margin-bottom: 17px;
  margin-left: auto;
  text-align: right;
}

.cc-ww-tabs__back:hover,
.cc-ww-tabs__back:focus,
.cc-ww-tabs__back:active {
  outline: none;
  background: none;
  box-shadow: none;
  border: none;
  color: var(--cc-dark-parchment);
}

/* ── RULE BELOW TABS ── */

.cc-ww-rule {
  padding: 0 28px;
  width: 100%;
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
}

.cc-ww-rule::after {
  content: '';
  display: block;
  height: 0;
  border-top: 0.5px solid var(--cc-archive);
}

/* ── HERO ── */

.cc-ww-hero {
  padding: 0 28px;
  width: 100%;
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 198px;
}

.cc-ww-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.cc-ww-hero__left {
  margin-left: 123px;
}

.cc-ww-hero__title {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  color: var(--cc-ink);
  margin-bottom: 0;
}

.cc-ww-hero__title2 {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  color: var(--cc-ink);
  margin-top: 0;
}

.cc-ww-hero__subtitle {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--cc-archive);
  margin-top: 69px;
}

.cc-ww-hero__right {
  display: flex;
  flex-direction: column;
  padding-top: 187px;
}

.cc-ww-hero__text {
  font-family: var(--cc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-ink-2);
  max-width: 560px;
}

.cc-ww-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 472px;
  height: 54px;
  border: 0.5px solid var(--cc-archive);
  background: var(--cc-bg);
  font-family: var(--cc-font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-archive);
  text-decoration: none;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  margin-top: 80px;
}

.cc-ww-hero__btn:hover {
  background: var(--cc-dark-parchment);
  color: var(--cc-bg);
}

/* ── HERO IMAGE ── */

.cc-ww-image {
  padding: 0 28px;
  width: 100%;
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 80px;
}

.cc-ww-image__wrap {
  width: 100%;
  height: 853px;
  overflow: hidden;
}

.cc-ww-image__wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CONTENT SECTIONS (Benefits, Process, Types, Risks) ── */

.cc-ww-section {
  padding: 0 28px;
  width: 100%;
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 200px;
}

.cc-ww-section__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0 170px;
}

.cc-ww-section__heading {
}

.cc-ww-section__heading h2 {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.45;
  color: var(--cc-ink-2);
}

.cc-ww-section__content {
  position: relative;
  /* Aligns the intro's cap-height with the heading's first line.
     Heading cap sits 10.3px below its line-box top, this text 5.85px. */
  padding-top: 4.5px;
}

.cc-ww-section__intro {
  font-family: var(--cc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-ink-2);
  max-width: 492px;
}

.cc-ww-section__label {
  display: block;
  font-family: var(--cc-font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-dark-parchment);
  margin-top: 45px;
}

/* ── ACCORDION ── */

.cc-ww-accordion {
  margin-top: 20px;
}

.cc-ww-accordion__rule {
  height: 0;
  border-top: 0.5px solid var(--cc-archive);
}

.cc-ww-accordion__item {
  /* wrapper for trigger + answer */
}

.cc-ww-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-radius: 0;
  padding: 18px 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cc-ww-accordion__trigger:hover,
.cc-ww-accordion__trigger:focus,
.cc-ww-accordion__trigger:active {
  outline: none;
  background: none;
  box-shadow: none;
  border: none;
}

.cc-ww-accordion__trigger *,
.cc-ww-accordion__text,
.cc-ww-accordion__arrow {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

.cc-ww-accordion__text {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 25px;
  line-height: normal;
  color: var(--cc-archive);
}

.cc-ww-accordion__arrow {
  flex-shrink: 0;
  color: var(--cc-archive);
}

.cc-ww-accordion__arrow--right {
  display: block;
}

.cc-ww-accordion__arrow--down {
  display: none;
}

.cc-ww-accordion__trigger[aria-expanded="true"] .cc-ww-accordion__arrow--right {
  display: none;
}

.cc-ww-accordion__trigger[aria-expanded="true"] .cc-ww-accordion__arrow--down {
  display: block;
}

.cc-ww-accordion__answer {
  display: none;
  padding: 0 0 20px 0;
}

.cc-ww-accordion__answer p {
  font-family: var(--cc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-ink-2);
  max-width: 700px;
}

.cc-ww-accordion__trigger[aria-expanded="true"] + .cc-ww-accordion__answer {
  display: block;
}

/* ── CTA ── */

.cc-ww-cta {
  padding: 0 28px;
  width: 100%;
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 200px;
}

.cc-ww-cta__rule {
  display: none;
}

.cc-ww-cta__grid {
  display: grid;
  grid-template-columns: 492px 1fr;
}

.cc-ww-cta__heading h2 {
  font-family: var(--cc-font-heading);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.45;
  color: var(--cc-ink-2);
  padding-right: 60px;
}

.cc-ww-cta__content p {
  font-family: var(--cc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.28px;
  color: var(--cc-ink-2);
  max-width: 700px;
}

.cc-ww-cta__content a {
  color: var(--cc-ink-2);
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

/* ── FAQ OVERRIDES ── */

.cc-ww .cc-faq {
  margin-top: 100px;
  padding-bottom: 0;
}

.cc-ww .cc-faq .cc-faq__divider {
  margin-bottom: 26px;
}

.cc-ww .cc-faq .cc-faq__label {
  margin-bottom: 93px;
}

.cc-ww .cc-faq .cc-faq__question {
  padding: 25px 0 11px 0;
}

.cc-ww .cc-faq .cc-faq__answer {
  padding: 73px 0 15px 4px;
}

.cc-ww .cc-faq .cc-faq__answer p {
  max-width: 960px;
}

/* ── FOOTER OVERRIDE ── */

.cc-ww .cc-footer {
  margin-top: 110px;
}

/* ── RESPONSIVE: TABLET ── */

@media (max-width: 1024px) {
  .cc-ww {
    padding-top: 60px;
  }

  .cc-ww-tabs {
    margin-top: 120px;
  }

  .cc-ww-tabs__grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 30px;
  }

  .cc-ww-tabs__divider {
    display: none;
  }

  .cc-ww-tabs__col {
    padding-right: 0;
    border-bottom: 0.5px solid var(--cc-archive);
    padding-bottom: 30px;
  }

  .cc-ww-tabs__col:nth-child(3),
  .cc-ww-tabs__col:nth-child(5) {
    padding-left: 0;
  }

  .cc-ww-tabs__title {
    margin-top: 20px;
  }

  .cc-ww-hero {
    margin-top: 100px;
  }

  .cc-ww-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cc-ww-hero__left {
    margin-left: 0;
  }

  .cc-ww-hero__right {
    padding-top: 0;
  }

  .cc-ww-hero__btn {
    width: 100%;
    max-width: 472px;
    margin-left: auto;
    margin-right: auto;
  }

  .cc-ww-image__wrap {
    height: 500px;
  }

  .cc-ww-section {
    margin-top: 100px;
  }

  .cc-ww-section__grid {
    grid-template-columns: 1fr;
  }

  .cc-ww-section__heading {
    padding-right: 0;
    margin-bottom: 24px;
  }

  .cc-ww-cta {
    margin-top: 100px;
  }

  .cc-ww-cta__grid {
    grid-template-columns: 1fr;
  }

  .cc-ww-cta__heading h2 {
    padding-right: 0;
    margin-bottom: 24px;
  }
}

/* ── RESPONSIVE: MOBILE ── */

@media (max-width: 768px) {
  .cc-ww-tabs {
    margin-top: 80px;
  }

  .cc-ww-tabs__title {
    font-size: 28px;
  }

  .cc-ww-tabs__expanded-title {
    font-size: 32px;
  }

  .cc-ww-hero__title {
    font-size: 32px;
  }

  .cc-ww-hero__title2 {
    font-size: 32px;
  }

  .cc-ww-hero__subtitle {
    font-size: 24px;
    margin-top: 40px;
  }

  .cc-ww-hero__btn {
    margin-top: 40px;
  }

  .cc-ww-image__wrap {
    height: 350px;
  }

  .cc-ww-section {
    margin-top: 60px;
  }

  .cc-ww-section__heading h2 {
    font-size: 20px;
  }

  .cc-ww-accordion__text {
    font-size: 20px;
  }

  .cc-ww-cta {
    margin-top: 60px;
  }

  .cc-ww .cc-footer {
    margin-top: 60px;
  }
}

/* Audience-filtered portfolio link inside each expanded tab panel */
.cc-ww-tabs__portfolio {
  display: inline-block;
  margin-top: 24px;
  margin-bottom: 12px;
  font-family: var(--cc-font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cc-dark-parchment);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  align-self: flex-start;
}

.cc-ww-tabs__portfolio:hover,
.cc-ww-tabs__portfolio:focus {
  color: var(--cc-ink-2);
}
