/* =========================================================
   How We Work (Engineering Delivery Approach)
   Self-contained page styles — no dependency on p-about.css.
   ========================================================= */

/* ---------- Hero (builds on the shared service hero) ---------- */
section{
  margin-bottom: 0;
}
.bold{
  font-weight: var(--font-weight-600);
}
.section-intro.section-intro--services.hww-hero .section-intro__wrapper {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  padding-top: 140px;
  padding-bottom: 90px;
}

.hww-hero .span-wrap--hero {
  color: var(--white-text);
}

.section-intro.section-intro--services.hww-hero .section-intro__info {
  align-items: flex-start;
  max-width: 940px;
}

.section-intro.section-intro--services.hww-hero h1 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: 940px;
  text-transform: none;
}

.section-intro.section-intro--services.hww-hero .section-intro__text {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: 880px;
}

.hww-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-16);
  margin-top: var(--spacing-24);
  justify-content: flex-start;
}

.hww-hero {
  margin-bottom: 0;
  background: var(--color-brand-navy) url("../img/hero-bg-1.f4b689bff334.svg") no-repeat center / cover;
}

/* ---------- Shared section header ---------- */
.hww-section-head {
  max-width: 820px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}

.hww-section-head__title {
  margin: 0;
}

.hww-section-head__title span {
  color: var(--color-brand-terracotta);
}

.hww-section-head__lead {
  margin: var(--spacing-16) auto 0;
  max-width: 760px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: #555;
}

/* ---------- Value propositions ---------- */
.hww-values {
  padding: clamp(60px, 6vw, 100px) 0;
}

.hww-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.hww-values__card {
  padding: var(--spacing-24);
  border-radius: 18px;
  background: var(--secondary-bg);
}

.hww-values__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 var(--spacing-16);
  border-radius: 12px;
  border: 1px solid rgba(171, 61, 17, 0.3);
  background: rgba(171, 61, 17, 0.1);
  font-family: "fontello-managed", "fontello", system-ui, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  color: var(--color-brand-terracotta);
}

.hww-values__card-title {
  margin: 0 0 14px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.3;
  color: #111;
}

.hww-values__card-text {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: #555;
}

.hww-values a {
  color: var(--color-brand-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hww-values a:hover,
.hww-values a:focus-visible {
  color: var(--color-brand-teal-300);
  text-decoration: none;
}

/* ---------- Human-in-the-Loop framework (dark) ---------- */
.hww-framework {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 6vw, 100px) 0;
  background: var(--color-brand-navy);
}

.hww-framework__intro {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}

.hww-framework__title {
  color: var(--white-text);
  margin: 0 0 var(--spacing-16);
}

.hww-framework__title span {
  color: var(--accent-orange);
}

.hww-framework__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  margin: 0;
}
.hww-framework__lead .bold{
  color: var(--white-text);
}
.hww-framework__lead a{
  color: var(--color-brand-teal);
  text-decoration: none;
}
.hww-framework__lead a:hover{
  color: var(--color-brand-teal-300);
}

.hww-framework__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.hww-framework__card {
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: 20px;
  background: #0D1326;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hww-framework__card-title {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.3;
  color: #fff;
}

.hww-framework__card-text {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* Compact, centered tip callout */
.hww-framework__callout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: clamp(26px, 3vw, 40px) auto 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: #0D1326;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hww-framework__callout-icon {
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.hww-framework__callout-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.55;
}

.hww-framework__callout-text a {
  color: var(--color-brand-teal);
  font-weight: 600;
  text-decoration: none;
}
.hww-framework__callout-text a:hover {
  color: var(--color-brand-teal-300);
}

/* ---------- Engagement models (self-contained tabs) ---------- */
.hww-models {
  padding: clamp(60px, 6vw, 100px) 0;
}

.hww-models__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.hww-models__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.hww-models__tab {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 14px 14px 18px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--color-brand-navy-300);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--font-weight-600);
  line-height: 1.2;
  letter-spacing: var(--ls-h3);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hww-models__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.hww-models__tab:hover {
  color: var(--color-brand-navy-300);
  background: rgba(0, 0, 0, 0.05);
}

.hww-models__tab.is-active {
  color: var(--color-brand-navy);
  background: var(--color-brand-mist-300);
}

.hww-models__tab.is-active::before {
  background: var(--color-brand-teal);
}

.hww-models__tab:focus-visible {
  outline: 2px solid var(--color-brand-teal);
  outline-offset: 2px;
}

.hww-models__card {
  background: var(--color-brand-mist-200);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
  min-height: 280px;
}

.hww-models__panel {
  display: none;
}

.hww-models__panel.is-active {
  display: block;
}

.hww-models__panel[hidden] {
  display: none;
}

.hww-models__panel-title {
  margin: 0 0 var(--spacing-16);
  font-family: var(--font-display);
  font-weight: var(--font-weight-600);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: var(--ls-h3);
  color: #212120;
}

.hww-models__details {
  margin: 0;
}
.hww-models__details .bold{
  color: var(--primary-text);
}
.hww-models__details a{
  color: var(--color-brand-teal);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.hww-models__details a:hover{
  color: var(--color-brand-teal-300);
  text-decoration-color: var(--color-brand-teal-300);
}
.hww-models__details dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brand-teal);
  margin-top: 20px;
}

.hww-models__details dt:first-child {
  margin-top: 0;
}

.hww-models__details dd {
  margin: 6px 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: #4a4a4a;
}

/* Mobile accordion panel (built by JS) */
.hww-models__mobile-panel {
  display: none;
}

.hww-models__mobile-panel-inner {
  padding: 16px;
}

.hww-models__mobile-panel .hww-models__panel-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.hww-models__mobile-panel .hww-models__details dt {
  margin-top: 14px;
}

.hww-models__mobile-panel .hww-models__details dd {
  font-size: 15px;
}

/* ---------- CTA band ---------- */
.hww-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6vw, 92px) 0;
  background: #0b0b0d;
}

.hww-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 360px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(251, 133, 0, 0.22), rgba(251, 133, 0, 0));
  pointer-events: none;
  z-index: 0;
}

.hww-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hww-cta__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hww-cta__title span {
  color: var(--accent-orange);
}

.hww-cta__text {
  margin: 0 auto 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
}

.hww-cta__button {
  margin: 0 auto;
}

/* ---------- Comparison matrix ---------- */
.hww-matrix {
  padding-bottom: var(--spacing-80);
  background:white;
}

.hww-matrix__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Comparison matrix — same table styles as Major achievements in case studies */
.hww-matrix .case-achievements-table {
  width: 100%;
  min-width: 560px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(15, 30, 60, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
}

.hww-matrix .case-achievements-table th,
.hww-matrix .case-achievements-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  border-bottom: 1px solid rgba(15, 30, 60, 0.08);
  border-right: 1px solid rgba(15, 30, 60, 0.1);
  vertical-align: top;
}

.hww-matrix .case-achievements-table th:first-child,
.hww-matrix .case-achievements-table td:first-child {
  width: 26%;
}

.hww-matrix .case-achievements-table th:not(:first-child),
.hww-matrix .case-achievements-table td:not(:first-child) {
  width: 37%;
}

.hww-matrix .case-achievements-table th:last-child,
.hww-matrix .case-achievements-table td:last-child {
  border-right: none;
}

.hww-matrix .case-achievements-table thead th {
  font-weight: var(--font-weight-600);
  color: var(--primary-text);
  background: rgba(30, 77, 146, 0.04);
}

.hww-matrix .case-achievements-table tbody td {
  color: var(--secondary-text);
}

.hww-matrix .case-achievements-table tbody tr:last-child td {
  border-bottom: none;
}

.hww-matrix .case-achievements-table tbody tr:hover td:not([class*="__col--"]) {
  background: rgba(30, 77, 146, 0.03);
}

.hww-matrix .case-achievements-table__col--highlight {
  color: var(--primary-text) !important;
  background: rgba(171, 61, 17, 0.1);
  border-left: 2px solid rgba(171, 61, 17, 0.35);
}

.hww-matrix .case-achievements-table thead th.case-achievements-table__col--highlight {
  font-weight: var(--font-weight-600);
  background: rgba(171, 61, 17, 0.16);
  border-left-color: rgba(171, 61, 17, 0.7);
}

.hww-matrix .case-achievements-table tbody td.case-achievements-table__col--highlight {
  font-weight: var(--font-weight-500);
}

.hww-matrix .case-achievements-table tbody tr:hover td.case-achievements-table__col--highlight {
  background: rgba(171, 61, 17, 0.16);
}

@media (max-width: 768px) {
  .hww-matrix .case-achievements-table th,
  .hww-matrix .case-achievements-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .hww-matrix__table-wrap {
    overflow-x: visible;
  }

  .hww-matrix .case-achievements-table {
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .hww-matrix .case-achievements-table thead {
    display: none;
  }

  .hww-matrix .case-achievements-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16);
  }

  .hww-matrix .case-achievements-table tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 30, 60, 0.12);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 30, 60, 0.06);
  }

  /* Feature name — card title, no "Feature" label */
  .hww-matrix .case-achievements-table tbody td:first-child {
    display: block;
    width: 100%;
    padding: 14px 16px 12px;
    font-size: 15px;
    font-weight: var(--font-weight-600);
    line-height: 1.35;
    color: var(--primary-text);
    background: rgba(30, 77, 146, 0.06);
    border-right: none;
    border-bottom: 1px solid rgba(15, 30, 60, 0.1);
  }

  .hww-matrix .case-achievements-table tbody td:first-child::before {
    content: none;
  }

  /* Comparison rows — label above text, full width */
  .hww-matrix .case-achievements-table tbody td:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    width: 100%;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(15, 30, 60, 0.08);
    font-size: 14px;
    line-height: 1.5;
  }

  .hww-matrix .case-achievements-table tbody td:last-child {
    border-bottom: none;
  }

  .hww-matrix .case-achievements-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: var(--font-weight-600);
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--primary-text);
    opacity: 0.7;
  }

  .hww-matrix .case-achievements-table tbody td.case-achievements-table__col--highlight {
    border-left: none;
    border-top: 3px solid rgba(171, 61, 17, 0.35);
    background: rgba(171, 61, 17, 0.1);
    padding-top: 14px;
  }

  .hww-matrix .case-achievements-table tbody td.case-achievements-table__col--highlight::before {
    color: var(--color-brand-terracotta);
    opacity: 1;
    font-size: 13px;
  }

  .hww-matrix .case-achievements-table tbody tr:hover td {
    background: transparent;
  }

  .hww-matrix .case-achievements-table tbody tr:hover td:first-child {
    background: rgba(30, 77, 146, 0.06);
  }

  .hww-matrix .case-achievements-table tbody tr:hover td.case-achievements-table__col--highlight {
    background: rgba(171, 61, 17, 0.14);
  }
}

/* ---------- Final CTA (two-column, white) ---------- */
.hww-final-cta {
  padding-bottom: var(--spacing-80);
  background: #fff;
}

.hww-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hww-final-cta__title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.hww-final-cta__title span {
  color: var(--color-brand-terracotta);
}

.hww-final-cta__lead {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: #555;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hww-final-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-24);
  }

  .hww-values__grid,
  .hww-values__grid--2col {
    grid-template-columns: 1fr;
  }

  .hww-framework__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hww-models__layout {
    grid-template-columns: 1fr;
  }

  .hww-models__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    padding-left: 0;
    border-left: none;
    padding-bottom: var(--spacing-16);
    gap: 0;
    overflow: visible;
  }

  .hww-models__tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border-radius: 8px;
    padding: var(--spacing-16);
    background: var(--secondary-bg);
    border: none;
    white-space: normal;
    font-size: 16px;
    font-weight: var(--font-weight-500);
    transition: color 0.25s ease;
  }

  .hww-models__tab:hover {
    background: var(--secondary-bg);
  }

  .hww-models__tab::before {
    display: none;
  }

  .hww-models__tab::after {
    content: "›";
    font-size: 20px;
    line-height: 1;
    color: var(--primary-text);
    transition: transform 0.3s ease, color 0.3s ease;
    transform: rotate(90deg);
    flex-shrink: 0;
  }

  .hww-models__tab.is-active {
    box-shadow: none;
    background: var(--secondary-bg);
    color: var(--color-brand-navy);
    font-size: 16px;
  }

  .hww-models__tab.is-active::after {
    transform: rotate(-90deg);
  }

  .hww-models__card {
    display: none;
  }

  .hww-models__mobile-panel {
    display: block;
    margin: 0 0 8px;
    border-radius: 8px;
    background: var(--secondary-bg);
    border: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hww-models__mobile-panel.is-open {
    margin-top: 8px;
    max-height: 800px;
  }
}

@media (max-width: 768px) {
  .section-intro.section-intro--services.hww-hero .section-intro__wrapper {
    padding-top: 110px;
    padding-bottom: 64px;
  }

  .hww-hero__actions {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .testimonial-slide {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .testimonial-slide__media img {
    width: 92px;
    height: 92px;
  }

  .testimonial-slide__quote-mark {
    margin: 0 auto 6px;
  }

  .testimonial-slide__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-slide__author {
    align-items: center;
  }
}
