/* =========================================
   HOW IT WORKS - 5 STEP PROCESS
   Craftlu - Professional Design
   Easily Editable
   ========================================= */

/* --- EDIT COLORS HERE --- */
:root {
  --bg: #FFFBF7;
  --card-bg: #ffffff;
  --text-main: #1A1714;
  --text-muted: #6B625C;
  --text-light: #7A736E;
  --border: #F0E2CB;
  --border-light: #F2E7D5;
  --primary: #E67E22;        /* Change to your brand color */
  --primary-dark: #C66E1A;
  --primary-light: #FFF6EB;
  --badge-bg: #1A1714;
}

/* --- Base Section --- */
#how-it-works {
  background: var(--bg);
  padding: 80px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

#how-it-works .container {
  max-width: 1250px;
  margin: 0 auto;
}

/* --- Header --- */
#how-it-works .header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

#how-it-works .badge {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 18px;
}

#how-it-works .title {
  
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-main);
}

#how-it-works .title span {
  font-style: italic;
  font-weight: 400;
  color: #B7793C;
  position: relative;
}

#how-it-works .subtitle {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Steps Grid --- */
#how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

/* Dotted Line (Desktop) */
#how-it-works .steps::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 8%;
  right: 8%;
  height: 1px;
  background-image: linear-gradient(to right, #DCCBB0 50%, transparent 50%);
  background-size: 12px 1px;
  background-repeat: repeat-x;
  opacity: 0.6;
}

/* --- Single Step --- */
#how-it-works .step {
  text-align: center;
  position: relative;
  background: transparent;
  transition: transform 0.3s ease;
}

#how-it-works .step:hover {
  transform: translateY(-4px);
}

#how-it-works .step-top {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

#how-it-works .step-number {
  position: absolute;
  
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background:#5ad473;
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  z-index: 2;
  letter-spacing: 0.05em;
}

#how-it-works .icon-box {
  width: 52px;
  height: 52px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(45, 30, 10, 0.06);
}

#how-it-works .icon-box svg {
  width: 16px;
  height: 16px;
  color: var(--primary-dark);
}

#how-it-works .icon-box::after {
  /* small inner bg */

  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 12px;
  z-index: -1;
}

#how-it-works .step-title {
  
  font-size: 17px;
  font-weight: 600;
  color: #f57736;
  margin-bottom: 0;
}

#how-it-works .step-desc {
  font-size: 13.5px;
  font-weight: bold;
  line-height: 1.3;
  color: #2e2727;
  max-width: 220px;
  margin: 0 auto;
}

/* --- CTA --- */
#how-it-works .cta {
  background-color: #5ad473;
  
  max-width:fit-content;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px 16px 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(45, 30, 10, 0.06);
}

#how-it-works .cta-title {
  
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

#how-it-works .cta-sub {
  font-size: 12.5px;
  color: #8B837C;
  margin-top: 3px;
}

#how-it-works .cta-right {

  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#how-it-works .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#how-it-works .btn-primary {
  background: var(--text-main);
  color: #fff;
}

#how-it-works .btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

#how-it-works .btn-outline {
  background: var(--bg);
  border: 1px solid #7dc724;
  color: var(--text-main);
}

#how-it-works .btn-outline:hover {
  background: #fff;
  border-color: #7dc724;
}

/* =========================================
   RESPONSIVE - TABLET & MOBILE
   ========================================= */

@media (max-width: 1024px) {
  #how-it-works .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  #how-it-works .steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  #how-it-works {
    padding: 60px 16px;
  }

  #how-it-works .title {
    font-size: 36px;
  }

  #how-it-works .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 20px;
  }

  /* Vertical timeline line */
  #how-it-works .steps::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 34px;
    right: auto;
    width: 1px;
    height: auto;
    background: none;
    border-left: 1px dashed #E0CDB0;
    background-image: none;
  }

  #how-it-works .step {
    display: flex;
    gap: 16px;
    text-align: left;
    align-items: flex-start;
  }

  #how-it-works .step-top {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  #how-it-works .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  #how-it-works .step-desc {
    max-width: 100%;
    margin: 0;
  }

  #how-it-works .cta {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
  }

  #how-it-works .cta-right {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  #how-it-works .cta-right .btn {
    width: 100%;
  }
}
