/* ==========================================================================
   Dwelcom - How It Works Page Styles (Matching Attached Design Mockup)
   ========================================================================== */

/* Header adjustment for inner pages with light hero background */
.dw-header.dw-header-inner-page {
  position: relative;
  background: #08182b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Red Small Accent Bar */
.dw-hiw-red-bar {
  width: 28px;
  height: 2.5px;
  background-color: var(--dw-red);
  display: block;
}

.dw-hiw-red-bar.center {
  margin: 0 auto 14px;
}

.dw-hiw-red-bar.left {
  margin: 10px 0 18px;
}

/* Common Section Header (Centered) */
.dw-hiw-sec-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.dw-hiw-sec-header h2 {
  font-family: var(--dw-font-serif) !important;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dw-navy);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.dw-hiw-sec-header p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   1. Hero Section - "From building defects to a clear path forward."
   ========================================================================== */
.dw-hiw-hero {
  position: relative;
  background: linear-gradient(90deg, #e7f3fb 0%, #ebf5fc 46%, #f4f9fd 100%);
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0 68px;
  border-bottom: 1px solid #dcebf7;
}

.dw-hiw-hero-bg-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.dw-hiw-hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.dw-hiw-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #eaf4fc 0%,
    rgba(234, 244, 252, 0.94) 14%,
    rgba(234, 244, 252, 0.45) 30%,
    rgba(234, 244, 252, 0) 48%
  );
}

.dw-hiw-hero-container {
  position: relative;
  z-index: 5;
}

.dw-hiw-hero-content {
  max-width: 560px;
}

.dw-hiw-eyebrow {
  display: inline-block;
  font-family: var(--dw-font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #0c2340;
  text-transform: uppercase;
}

.dw-hiw-hero-title {
  font-family: var(--dw-font-serif) !important;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--dw-navy);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.dw-hiw-hero-title .blue-accent {
  color: #135d94;
}

.dw-hiw-hero-desc {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 28px;
  max-width: 530px;
}

.dw-hiw-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dw-btn-call-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-color: #ffffff;
  color: #0c2340 !important;
  font-family: var(--dw-font-sans);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none !important;
  border: 1.5px solid #1e3a5f;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dw-btn-call-outline svg {
  color: #135d94;
  flex-shrink: 0;
}

.dw-btn-call-outline:hover {
  border-color: var(--dw-red);
  color: var(--dw-red) !important;
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.dw-btn-call-outline:hover svg {
  color: var(--dw-red);
}

/* ==========================================================================
   2. "Every building problem needs a clear starting point." (3 Cards)
   ========================================================================== */
.dw-hiw-starting-section {
  padding: 68px 0 76px;
  background-color: #ffffff;
}

.dw-hiw-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.dw-hiw-start-card {
  background: #ffffff;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(12, 35, 64, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dw-hiw-start-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 35, 64, 0.09);
}

.dw-hiw-start-img-wrap {
  position: relative;
  height: 200px;
  background-color: #f1f5f9;
  overflow: visible;
  z-index: 2;
}

.dw-hiw-start-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.dw-hiw-floating-badge {
  position: absolute;
  bottom: -24px;
  left: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #e8f3fb;
  color: #135d94;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(12, 35, 64, 0.08);
  z-index: 5;
}

.dw-hiw-start-body {
  padding: 34px 24px 28px;
  flex-grow: 1;
}

.dw-hiw-start-body h3 {
  font-family: var(--dw-font-serif) !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dw-navy);
  margin: 0 0 10px;
}

.dw-hiw-start-body p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   3. "A clear process, step by step." (5-Step Timeline on Light Blue)
   ========================================================================== */
.dw-hiw-process-section {
  padding: 68px 0 74px;
  background-color: #eaf4fc;
  border-top: 1px solid #dcebf7;
  border-bottom: 1px solid #dcebf7;
}

.dw-hiw-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 10px;
}

.dw-hiw-step-item {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
}

/* Horizontal arrow line between step circles */
.dw-hiw-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 34px);
  width: calc(100% - 68px);
  height: 1.5px;
  background-color: #4a89bc;
  z-index: 1;
}

.dw-hiw-step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 18.5px;
  right: calc(-50% + 34px);
  width: 7px;
  height: 7px;
  border-top: 1.8px solid #4a89bc;
  border-right: 1.8px solid #4a89bc;
  transform: rotate(45deg);
  z-index: 2;
}

.dw-hiw-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #0e5a90;
  color: #ffffff;
  font-family: var(--dw-font-sans);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(14, 90, 144, 0.22);
}

.dw-hiw-step-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e5a90;
  margin-bottom: 14px;
}

.dw-hiw-step-item h3 {
  font-family: var(--dw-font-sans) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dw-navy);
  margin: 0 0 10px;
}

.dw-hiw-step-item p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   4A. "Support that keeps you informed." (4 Columns with Dividers)
   ========================================================================== */
.dw-hiw-support-section {
  padding: 68px 0 36px;
  background-color: #ffffff;
}

.dw-hiw-support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.dw-hiw-support-col {
  padding: 8px 28px;
  border-right: 1px solid #e6eef6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dw-hiw-support-col:first-child {
  padding-left: 0;
}

.dw-hiw-support-col:last-child {
  padding-right: 0;
  border-right: none;
}

.dw-hiw-support-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #eaf4fc;
  color: #0e5a90;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.dw-hiw-support-col h3 {
  font-family: var(--dw-font-serif) !important;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dw-navy);
  margin: 0 0 8px;
}

.dw-hiw-support-col p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   4B. "Who can we help?" (3 Service Audience Cards)
   ========================================================================== */
.dw-hiw-who-section {
  padding: 36px 0 76px;
  background-color: #ffffff;
}

.dw-hiw-who-card {
  background: #ffffff;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dw-hiw-who-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 35, 64, 0.09);
}

.dw-hiw-who-img {
  height: 200px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.dw-hiw-who-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.dw-hiw-who-card:hover .dw-hiw-who-img img {
  transform: scale(1.03);
}

.dw-hiw-who-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dw-hiw-who-body h3 {
  font-family: var(--dw-font-serif) !important;
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dw-navy);
  margin: 0 0 8px;
}

.dw-hiw-who-body p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 18px;
  flex-grow: 1;
}

.dw-hiw-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--dw-font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0e5a90 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dw-hiw-explore-link:hover {
  color: var(--dw-red) !important;
  transform: translateX(3px);
}

/* ==========================================================================
   5. "Questions about the process?" FAQ Section
   ========================================================================== */
.dw-hiw-faq-section {
  padding: 68px 0 72px;
  background-color: #eaf4fc;
  border-top: 1px solid #dcebf7;
}

.dw-hiw-faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr;
  gap: 52px;
  align-items: flex-start;
}

.dw-hiw-faq-left h2 {
  font-family: var(--dw-font-serif) !important;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.16;
  color: var(--dw-navy);
  margin: 0 0 16px;
}

.dw-hiw-faq-left p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  max-width: 350px;
}

.dw-hiw-faq-card {
  background: #ffffff;
  border: 1px solid #dcebf7;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
  padding: 4px 26px;
}

/* ==========================================================================
   6. Bottom CTA Banner - "Not sure what to do next?"
   ========================================================================== */
.dw-hiw-cta-banner {
  position: relative;
  background-color: #072241;
  background-image: linear-gradient(90deg, #061e3a 0%, #09274a 52%, #0e3561 100%);
  overflow: hidden;
  padding: 58px 0;
}

.dw-hiw-cta-bg-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.dw-hiw-cta-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.dw-hiw-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #082546 0%,
    rgba(8, 37, 70, 0.9) 16%,
    rgba(8, 37, 70, 0.35) 36%,
    rgba(8, 37, 70, 0) 60%
  );
}

.dw-hiw-cta-container {
  position: relative;
  z-index: 5;
}

.dw-hiw-cta-content {
  max-width: 680px;
}

.dw-hiw-cta-content h2 {
  font-family: var(--dw-font-serif) !important;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 12px;
}

.dw-hiw-cta-content p {
  font-family: var(--dw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: #dbeafe;
  margin: 0 0 26px;
}

.dw-hiw-cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dw-btn-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  font-family: var(--dw-font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.dw-btn-cta-phone:hover {
  background-color: #ffffff;
  color: var(--dw-navy) !important;
  border-color: #ffffff;
}

.dw-cta-email-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff !important;
  font-family: var(--dw-font-sans);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 8px 6px;
  transition: color 0.2s ease;
}

.dw-cta-email-inline:hover {
  color: #93c5fd !important;
}

/* ==========================================================================
   Responsive Design for How It Works Page
   ========================================================================== */
@media (max-width: 1080px) {
  .dw-hiw-hero-title {
    font-size: 40px;
  }
  .dw-hiw-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }
  .dw-hiw-step-item:not(:last-child)::after,
  .dw-hiw-step-item:not(:last-child)::before {
    display: none;
  }
  .dw-hiw-support-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
  .dw-hiw-support-col:nth-child(2) {
    border-right: none;
  }
  .dw-hiw-support-col:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  .dw-hiw-hero {
    padding: 46px 0 0;
    flex-direction: column;
  }
  .dw-hiw-hero-bg-media {
    position: relative;
    width: 100%;
    height: 290px;
    margin-top: 28px;
  }
  .dw-hiw-hero-gradient {
    display: none;
  }
  .dw-hiw-cards-3 {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dw-hiw-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dw-hiw-faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dw-hiw-cta-bg-media {
    width: 100%;
    opacity: 0.22;
  }
  .dw-hiw-cta-overlay {
    background: rgba(7, 34, 65, 0.85);
  }
}

@media (max-width: 580px) {
  .dw-hiw-hero-title {
    font-size: 33px;
  }
  .dw-hiw-sec-header h2,
  .dw-hiw-faq-left h2,
  .dw-hiw-cta-content h2 {
    font-size: 28px;
  }
  .dw-hiw-steps-grid,
  .dw-hiw-support-grid {
    grid-template-columns: 1fr;
  }
  .dw-hiw-support-col {
    padding: 0 0 22px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid #e6eef6;
  }
  .dw-hiw-support-col:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }
}
