/* ============================================================
   INDEX.CSS — Styles specific to index.php only
   Blues Home Helpers — Nakuru
   ============================================================ */

/* ===== HERO SECTION ===== */
.hero__container {
  width: 100%;
}
.hero__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
  min-height: 92vh;
  background-image: linear-gradient(135deg, #0a3d62ee, #38ada9cc), url('imag.img/cleaning.jpg');
  background-size: cover;
  background-position: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero__section .h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero__section .p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 30px;
}
.hero__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ===== STATS BAR ===== */
.stats__bar {
  background: #0a3d62;
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 20px;
}
.stat__item {
  text-align: center;
  min-width: 80px;
}
.stat__number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffc312;
  display: block;
}
.stat__label {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

/* ===== WORKERS SECTION ===== */
.workers__section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}
.workers__section .p {
  color: #666;
  margin-top: -10px;
  font-size: 0.95rem;
}
.workers__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1100px;
  margin: 30px auto 0;
}
.worker__card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
}
.worker__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.worker__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #0a3d62;
  cursor: zoom-in;
}
.worker__avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a3d62, #38ada9);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}
.verified__badge {
  display: inline-block;
  background: #e8f8f0;
  color: #27ae60;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.worker__name {
  font-weight: 700;
  font-size: 1rem;
  color: #0a3d62;
  margin-bottom: 4px;
}
.worker__skill {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
  text-transform: capitalize;
}
.worker__rating {
  color: #ffc312;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.worker__location {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 12px;
}
.worker__rate {
  font-weight: 800;
  color: #0a3d62;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.worker__hire-btn {
  display: block;
  background: #0a3d62;
  color: #fff;
  padding: 8px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
  border: none;
  width: 100%;
  cursor: pointer;
}
.worker__hire-btn:hover { background: #38ada9; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.isactive {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1000;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== WORKERS EMPTY STATE ===== */
.workers__empty {
  background: #fff;
  border-radius: 16px;
  padding: 50px 30px;
  max-width: 500px;
  margin: 30px auto 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
}
.workers__empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.workers__empty h3 {
  color: #0a3d62;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.workers__empty p {
  color: #888;
  font-size: 0.9rem;
}

/* ===== SERVICES OVERVIEW ===== */
.services__overview {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}
.services__overview .p {
  color: #666;
  margin-top: -10px;
  font-size: 0.95rem;
}
.services__overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
  margin: 30px auto 0;
}
.service__overview-card {
  border-radius: 16px;
  padding: 0;
  width: 140px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.service__overview-card:hover {
  border-color: #0a3d62;
  transform: translateY(-4px);
}
.service__overview-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.service__overview-body {
  padding: 8px 10px 12px;
  text-align: center;
  background: #fff;
  transition: background 0.3s;
}
.service__overview-card:hover .service__overview-body {
  background: #0a3d62;
  color: #fff;
}
.service__overview-icon {
  font-size: 1.2rem;
  margin-bottom: 3px;
  display: block;
}
.service__overview-name {
  font-weight: 700;
  font-size: 0.88rem;
}
.service__overview-desc {
  font-size: 0.72rem;
  color: #888;
  margin-top: 4px;
  line-height: 1.4;
}
.service__overview-card:hover .service__overview-desc {
  color: rgba(255,255,255,0.8);
}

/* ===== HOW IT WORKS ===== */
.how__container {
  background: #f9f9f9;
}
.how__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
  margin: 30px auto 0;
}
.how__step {
  background: #fff;
  border-radius: 16px;
  padding: 28px 16px;
  width: 160px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.how__step-num {
  width: 40px;
  height: 40px;
  background: #0a3d62;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
  font-size: 1rem;
}
.how__step-title {
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.how__step-desc {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
}

/* ===== ABOUT SECTION ===== */
.about__container {
  padding: 60px 20px;
  background: #f4f4f4;
}
.about__section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about__intro {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}
.about__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}
.about__card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  width: 180px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
.about__card:hover {
  transform: translateY(-4px);
}
.about__card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.about__card-title {
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.about__card-text {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta__section {
  text-align: center;
  padding: 60px 20px;
  background: #f0f0e0;
}
.cta__section .h2 {
  margin-bottom: 10px;
}
.cta__section .p {
  margin-bottom: 20px;
  color: #555;
}

/* ===== SERVICE FILTER ACTIVE STATE ===== */
.service__overview-card.active {
  border-color: #0a3d62;
  transform: translateY(-4px);
}
.service__overview-card.active .service__overview-body {
  background: #0a3d62;
  color: #fff;
}
.service__overview-card.active .service__overview-desc {
  color: rgba(255,255,255,0.8);
}

/* ===== INDEX RESPONSIVE ===== */
@media screen and (min-width: 480px) {
  .worker__card {
    width: calc(50% - 10px);
    max-width: 200px;
  }
  .service__overview-card {
    width: 160px;
  }
}
@media screen and (min-width: 600px) {
  .hero__section .h1 { font-size: 2.8rem; }
  .hero__section .p  { font-size: 1.1rem; }
  .stat__number      { font-size: 1.6rem; }
  .stats__bar        { gap: 40px; }
}
@media screen and (min-width: 768px) {
  .worker__card {
    width: 200px;
  }
  .service__overview-card {
    width: 180px;
    padding: 32px 20px;
  }
  .how__step {
    width: 180px;
  }
  .about__card {
    width: 200px;
  }
}
@media screen and (min-width: 1024px) {
  .hero__section .h1 { font-size: 3.5rem; }
  .hero__section .p  { font-size: 1.2rem; }
  .worker__card      { width: 210px; }
  .workers__section  { padding: 80px 40px; }
  .services__overview { padding: 80px 40px; }
  .about__container  { padding: 80px 40px; }
}
@media screen and (min-width: 1200px) {
  .workers__grid {
    gap: 28px;
  }
}
/* ===== OVERRIDE: lightweight fade-in for auth form (replaces heavy animation in style.css) ===== */
/*.form__container {*/
/*  opacity: 0;*/
/*  pointer-events: none;*/
/*  transition: opacity 0.2s ease;*/
  /* Cancel any transform/slide animation from style.css */
/*  transform: none !important;*/
/*  animation: none !important;*/
/*}*/
/*.form__container.isactive {*/
/*  opacity: 1;*/
/*  pointer-events: all;*/
/*}*/
/*.signup__holder,*/
/*.signin__holder {*/
/*  transition: none !important;*/
/*  animation: none !important;*/
/*  transform: none !important;*/
/*}*/