/* ============================================================
   QUALITY HOME PRESERVATION (QHP) - CLIENTS PAGE
   Single Source of Truth Stylesheet
   ============================================================ */

:root {
  --qhp-navy: #071827;
  --qhp-slate: #344B61;
  --qhp-steel: #8FA1B3;
  --qhp-brass: #C89A3D;
  --qhp-warm-white: #F7F5F0;
  --qhp-white: #FFFFFF;
  --qhp-border-light: rgba(7, 24, 39, 0.1);
  --qhp-border-dark: rgba(255, 255, 255, 0.12);
  --qhp-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   0. SHARED HEADER & NAVIGATION SYSTEM
   ------------------------------------------------------------ */
#site-header {
  position: relative;
  z-index: 1000;
  background-color: var(--qhp-navy);
  border-bottom: 1px solid var(--qhp-border-dark);
}

.site-header, header {
  width: 100%;
  background-color: var(--qhp-navy);
}

.header-container, .nav-container, #site-header .container, #site-header > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Sizing & Alignment */
.site-logo img, .nav-logo img, #site-header img {
  height: 48px;
  width: auto;
  display: block;
}

/* Navigation List */
.nav-menu, .main-nav, #site-header ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navigation Links */
.nav-link, #site-header a {
  color: var(--qhp-white);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--qhp-transition);
}

.nav-link:hover, #site-header a:hover {
  color: var(--qhp-brass);
}

.nav-link.active, #site-header a.active, #site-header a[href="clients.html"] {
  color: var(--qhp-brass);
  font-weight: 700;
}

/* Header Action Button */
.nav-cta, #site-header .btn-primary, #site-header a.btn-cta {
  background-color: var(--qhp-brass);
  color: var(--qhp-navy) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--qhp-transition);
}

.nav-cta:hover, #site-header .btn-primary:hover, #site-header a.btn-cta:hover {
  background-color: #b38833;
  color: var(--qhp-navy) !important;
}

/* Mobile Toggle Button */
.mobile-nav-toggle, .mobile-menu-btn, .hamburger, #mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--qhp-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ------------------------------------------------------------
   1. HERO SECTION
   ------------------------------------------------------------ */
.clients-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-color: var(--qhp-navy);
  background-image: linear-gradient(
      105deg,
      rgba(7, 24, 39, 0.95) 0%,
      rgba(7, 24, 39, 0.85) 50%,
      rgba(7, 24, 39, 0.4) 100%
    ),
    url('../img/qhp-services-clients.png');
  background-size: cover;
  background-position: center;
  color: var(--qhp-white);
  padding: 6rem 1.5rem;
}

.clients-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.clients-hero-content {
  max-width: 720px;
}

.hero-audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qhp-brass);
  margin-bottom: 1.25rem;
}

.hero-audience-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--qhp-brass);
}

.clients-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--qhp-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.clients-hero p.hero-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--qhp-steel);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.qhp-btn-primary {
  background-color: var(--qhp-brass);
  color: var(--qhp-navy);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--qhp-transition);
  border: 1px solid var(--qhp-brass);
  cursor: pointer;
}

.qhp-btn-primary:hover {
  background-color: #b38833;
  border-color: #b38833;
  color: var(--qhp-navy);
}

.qhp-btn-secondary {
  background-color: transparent;
  color: var(--qhp-white);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--qhp-transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.qhp-btn-secondary:hover {
  border-color: var(--qhp-white);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--qhp-white);
}

/* ------------------------------------------------------------
   2. EXECUTIVE VALUE PROPOSITION
   ------------------------------------------------------------ */
.section-value-prop {
  padding: 6rem 1.5rem;
  background-color: var(--qhp-warm-white);
  color: var(--qhp-navy);
}

.qhp-container {
  max-width: 1280px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.value-editorial-left h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--qhp-navy);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.value-editorial-left p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--qhp-slate);
  margin-bottom: 2rem;
}

.value-pillars-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pillar-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--qhp-border-light);
}

.pillar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qhp-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pillar-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--qhp-brass);
  border-radius: 50%;
}

.pillar-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--qhp-slate);
}

/* ------------------------------------------------------------
   3. OPERATING MODEL (5-STEP LIFECYCLE)
   ------------------------------------------------------------ */
.section-operating-model {
  padding: 6rem 1.5rem;
  background-color: var(--qhp-navy);
  color: var(--qhp-white);
}

.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qhp-brass);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header-center h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--qhp-white);
  margin-bottom: 1rem;
}

.section-header-center p {
  font-size: 1.125rem;
  color: var(--qhp-steel);
  line-height: 1.6;
}

.lifecycle-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.lifecycle-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qhp-border-dark);
  border-radius: 6px;
  padding: 2rem 1.25rem;
  position: relative;
  transition: var(--qhp-transition);
}

.lifecycle-step:hover {
  border-color: var(--qhp-brass);
  background: rgba(255, 255, 255, 0.06);
}

.step-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--qhp-brass);
  margin-bottom: 1rem;
  display: block;
}

.step-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--qhp-white);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--qhp-steel);
}

/* ------------------------------------------------------------
   4. ESTHER INTELLIGENCE SPOTLIGHT
   ------------------------------------------------------------ */
.section-esther-spotlight {
  padding: 6rem 1.5rem;
  background-color: #0b2033;
  color: var(--qhp-white);
  border-top: 1px solid var(--qhp-border-dark);
  border-bottom: 1px solid var(--qhp-border-dark);
}

.esther-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.esther-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--qhp-border-dark);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.esther-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--qhp-white);
  margin-bottom: 1rem;
}

.esther-content p.subtitle {
  font-size: 1.125rem;
  color: var(--qhp-brass);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.esther-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.role-card {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--qhp-brass);
  padding: 1.25rem;
  border-radius: 0 4px 4px 0;
}

.role-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--qhp-white);
  margin-bottom: 0.35rem;
}

.role-card p {
  font-size: 0.875rem;
  color: var(--qhp-steel);
  line-height: 1.5;
  margin: 0;
}

/* ------------------------------------------------------------
   5. GUIDED WORK ORDER INTAKE WIZARD
   ------------------------------------------------------------ */
.section-intake {
  padding: 6rem 1.5rem;
  background-color: var(--qhp-warm-white);
}

.intake-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--qhp-white);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(7, 24, 39, 0.08);
  border: 1px solid var(--qhp-border-light);
  overflow: hidden;
}

.intake-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--qhp-navy);
  border-bottom: 1px solid var(--qhp-border-dark);
}

.step-tab {
  padding: 1.25rem 1rem;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--qhp-steel);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--qhp-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.step-tab .step-number {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--qhp-steel);
}

.step-tab.active {
  color: var(--qhp-white);
  border-bottom-color: var(--qhp-brass);
  background-color: rgba(255, 255, 255, 0.03);
}

.step-tab.active .step-number {
  background: var(--qhp-brass);
  color: var(--qhp-navy);
  font-weight: 700;
}

.step-tab.completed .step-number {
  background: rgba(200, 154, 61, 0.3);
  color: var(--qhp-brass);
}

.intake-body {
  padding: 3rem 2.5rem;
}

.intake-step-panel {
  display: none;
}

.intake-step-panel.active {
  display: block;
}

.panel-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--qhp-navy);
  margin-bottom: 0.5rem;
}

.panel-description {
  font-size: 0.95rem;
  color: var(--qhp-slate);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--qhp-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--qhp-border-light);
  border-radius: 4px;
  background-color: #fafafa;
  color: var(--qhp-navy);
  transition: var(--qhp-transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--qhp-slate);
  background-color: var(--qhp-white);
  box-shadow: 0 0 0 3px rgba(52, 75, 97, 0.1);
}

.esther-live-banner {
  margin-top: 1.5rem;
  background: #f0f4f8;
  border-left: 3px solid var(--qhp-slate);
  padding: 0.875rem 1.25rem;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--qhp-slate);
}

.esther-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: var(--qhp-brass);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.intake-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qhp-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------------------------------------
   6. GOVERNANCE & CONTROL
   ------------------------------------------------------------ */
.section-governance {
  padding: 5rem 1.5rem;
  background-color: var(--qhp-white);
  border-top: 1px solid var(--qhp-border-light);
}

.governance-card {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--qhp-border-light);
  border-radius: 8px;
  padding: 3rem;
  background-color: var(--qhp-warm-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.governance-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qhp-navy);
  margin-bottom: 1rem;
}

.governance-block p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--qhp-slate);
}

.governance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.governance-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--qhp-slate);
}

.governance-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--qhp-brass);
  font-weight: 700;
}

/* ------------------------------------------------------------
   7. ENTERPRISE PORTFOLIO CTA
   ------------------------------------------------------------ */
.section-portfolio-cta {
  padding: 6rem 1.5rem;
  background-color: var(--qhp-navy);
  color: var(--qhp-white);
  text-align: center;
}

.portfolio-cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-cta-container h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--qhp-white);
}

.portfolio-cta-container p {
  font-size: 1.125rem;
  color: var(--qhp-steel);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   RESPONSIVE LAYOUT (MOBILE & TABLET)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .mobile-nav-toggle, .mobile-menu-btn, .hamburger, #mobile-toggle {
    display: block;
  }

  .nav-menu, .main-nav, #site-header ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--qhp-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--qhp-border-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active, .nav-menu.open, .main-nav.active, #site-header ul.is-open, #site-header ul.active {
    display: flex;
  }

  .lifecycle-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-grid,
  .esther-grid,
  .governance-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .clients-hero {
    padding: 4rem 1rem;
    min-height: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .intake-stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .intake-body {
    padding: 2rem 1.25rem;
  }
}


/* ============================================================
   QHP CLIENTS MOBILE HERO FACE VISIBILITY V1

   Keep the existing photograph/crop.
   Move the copy toward the bottom of the hero so the people
   remain visible above the headline.
   ============================================================ */

@media (max-width: 768px) {

  .clients-hero {
    min-height:
      820px !important;
  }

  .clients-hero-container {
    min-height:
      820px !important;

    display:
      flex !important;

    align-items:
      flex-end !important;
  }

  .clients-hero-content {
    width:
      100% !important;

    padding-top:
      0 !important;

    padding-bottom:
      58px !important;

    margin-top:
      0 !important;

    transform:
      none !important;
  }
}


@media (max-width: 580px) {

  .clients-hero {
    min-height:
      850px !important;
  }

  .clients-hero-container {
    min-height:
      850px !important;
  }

  .clients-hero-content {
    padding-bottom:
      48px !important;
  }
}


/* ============================================================
   QHP CLIENTS MOBILE HERO CLEAN V4

   Mobile layout:
   1. Full team photograph
   2. Copy immediately below photograph
   3. CTA buttons
   4. Next page section

   No image cropping.
   No copy over faces.
   No artificial hero height.
   Desktop remains unchanged.
   ============================================================ */

.clients-mobile-photo-wrap {
  display: none;
}


/* MOBILE ONLY */
@media (max-width: 768px) {

  .clients-hero {
    display: block !important;

    min-height: 0 !important;

    height: auto !important;

    padding: 0 !important;

    margin: 0 !important;

    background:
      #061427 !important;

    overflow: visible !important;
  }


  .clients-hero::before,
  .clients-hero::after {
    display: none !important;

    content: none !important;
  }


  .clients-mobile-photo-wrap {
    display: block !important;

    position: static !important;

    width: 100% !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    line-height: 0;

    background:
      #061427;
  }


  .clients-mobile-photo {
    display: block !important;

    width: 100% !important;

    max-width: none !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    object-fit: contain !important;

    object-position:
      center center !important;

    position: static !important;

    transform: none !important;
  }


  .clients-hero-container {
    display: block !important;

    position: static !important;

    width: 100% !important;

    max-width: none !important;

    min-height: 0 !important;

    height: auto !important;

    margin: 0 !important;

    padding:
      0 22px 48px !important;

    transform: none !important;
  }


  .clients-hero-content {
    display: block !important;

    position: static !important;

    width: 100% !important;

    max-width: none !important;

    min-height: 0 !important;

    height: auto !important;

    margin: 0 !important;

    padding:
      36px 0 0 !important;

    transform: none !important;

    opacity: 1 !important;

    visibility: visible !important;

    inset: auto !important;
  }


  .clients-hero-content .hero-audience-tag {
    margin-top: 0 !important;
  }


  .clients-hero-content h1 {
    margin-top:
      28px !important;
  }
}


@media (max-width: 580px) {

  .clients-hero-container {
    padding:
      0 18px 42px !important;
  }


  .clients-hero-content {
    padding-top:
      32px !important;
  }


  .clients-hero-content h1 {
    margin-top:
      25px !important;
  }
}
