/* =============================================
   Bai4U Maid Services - Main Stylesheet
   ============================================= */

:root {
  --primary:       #0d6efd;
  --primary-dark:  #0a58ca;
  --primary-light: #cfe2ff;
  --sky:           #38bdf8;
  --sky-light:     #e0f2fe;
  --accent:        #06b6d4;
  --white:         #ffffff;
  --gray-50:       #f8f9fa;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-600:      #64748b;
  --gray-800:      #1e293b;
  --shadow-sm:     0 2px 8px rgba(13,110,253,.12);
  --shadow-md:     0 6px 24px rgba(13,110,253,.18);
  --shadow-lg:     0 12px 40px rgba(13,110,253,.22);
  --radius:        14px;
  --radius-lg:     22px;
  --transition:    all .35s ease;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* catches fixed/absolute elements that escape body */
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  position: relative;   /* anchors overflow context for all descendants */
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; }

section { padding: 80px 0; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  position: relative;
  margin-bottom: .5rem;
}

.section-title span { color: var(--primary); }

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.title-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  border-radius: 99px;
  margin: .5rem auto 1rem;
}

/* ── Buttons ─────────────────────────────────── */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: .55rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(13,110,253,.35);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13,110,253,.45);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50px;
  padding: .55rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white-solid {
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  padding: .55rem 1.5rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.btn-white-solid:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ── Navbar ──────────────────────────────────── */
#mainNav {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: .6rem 0;
  transition: var(--transition);
  z-index: 1050;
}

#mainNav.scrolled {
  box-shadow: 0 4px 30px rgba(13,110,253,.15);
}

.navbar-brand img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.navbar-brand .brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.navbar-brand .brand-sub {
  font-size: .72rem;
  color: var(--gray-600);
  letter-spacing: .5px;
  font-weight: 500;
}

.nav-link {
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-800) !important;
  padding: .45rem .9rem !important;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: .2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.nav-btn-call {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .45rem 1.1rem !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-sm);
}

.nav-btn-call:hover {
  opacity: .9;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent)) !important;
  transform: translateY(-1px);
}

.nav-btn-wa {
  background: #25d366 !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .45rem 1.1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(37,211,102,.35);
}

.nav-btn-wa:hover {
  background: #1ebe5d !important;
  transform: translateY(-1px);
}

/* ── Hero Slider ─────────────────────────────── */
#heroCarousel { position: relative; }

.hero-slide {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-1 {
  background-image: url('../images/hero1.jpg');
}
.hero-slide-2 {
  background-image: url('../images/hero2.jpg');
}
.hero-slide-3 {
  background-image: url('../images/hero3.jpg');
}


.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(10,30,80,.78) 0%,
    rgba(13,110,253,.45) 60%,
    rgba(6,182,212,.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .8px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title span {
  color: var(--sky);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions .btn { margin: .3rem; }

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
}

.carousel-indicators .active {
  background: var(--white);
  transform: scale(1.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(13,110,253,.6);
  border-radius: 50%;
  padding: 1rem;
  background-size: 60%;
}

/* ── About ───────────────────────────────────── */
#about { background: var(--gray-50); }

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.about-img-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.about-badge-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.about-feat {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .9rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: .75rem;
}

.about-feat:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.about-feat-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary-light), var(--sky-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Services ────────────────────────────────── */
#services { background: var(--white); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--sky-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-img-placeholder {
  font-size: 3.5rem;
  color: var(--primary);
  opacity: .6;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,110,253,.35) 0%, transparent 60%);
}

.service-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
  letter-spacing: .4px;
}

.service-card-body {
  padding: 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .45rem;
}

.service-card-desc {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.service-card-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.service-card-actions .btn {
  font-size: .8rem;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ── How We Work ─────────────────────────────── */
#how-we-work {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-light) 100%);
}

/* Wrapper that holds the dashed connector line */
.process-track {
  position: relative;
}

/* Horizontal dashed line connecting all four circles on desktop */
.process-track::before {
  content: '';
  position: absolute;
  top: 62px;                              /* vertically centred on the circles */
  left: calc(12.5% + 36px);              /* start after first circle centre */
  right: calc(12.5% + 36px);             /* end before last circle centre */
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0, var(--primary) 10px,
    transparent 10px, transparent 20px
  );
  opacity: .35;
  pointer-events: none;
}

/* Each card */
.process-card {
  text-align: center;
  padding: 2rem 1.4rem 1.8rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.process-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

/* Circle + step-number wrapper */
.process-circle-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.4rem;
}

/* Main icon circle */
.process-circle {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--white);
  margin: 0 auto;
  box-shadow: 0 8px 22px rgba(13,110,253,.35);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.process-card:hover .process-circle {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(13,110,253,.45);
}

/* Step number badge in top-right of circle */
.process-step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 24px; height: 24px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .6rem;
}

.process-desc {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ── Why Choose Us ───────────────────────────── */
#why-choose { background: var(--white); }

.why-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.why-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
}

.why-card-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--primary-light), var(--sky-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.why-card:hover .why-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: var(--white);
}

.why-card h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: .5rem;
}

.why-card p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA Banner ──────────────────────────────── */
#cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--sky) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#cta .cta-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

#cta .cta-desc {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── Contact ─────────────────────────────────── */
#contact { background: var(--gray-50); }

.map-wrap-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 480px;
}

.map-wrap-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.4rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--sky-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--gray-800);
  margin-bottom: .3rem;
}

.contact-info-text span,
.contact-info-text a {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-info-text a:hover { color: var(--primary); }

/* ── Copyright Bar ───────────────────────────── */
.copyright-bar {
  background: linear-gradient(135deg, #0d1b3e 0%, #0d2d6b 100%);
  padding: 1.2rem 0;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.copyright-bar span { color: var(--sky); }

/* ── Floating Buttons ────────────────────────── */
.float-buttons {
  position: fixed;
  bottom: 28px; right: 22px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
}

.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  transition: var(--transition);
  text-decoration: none;
  color: var(--white);
  animation: floatPulse 2.5s infinite;
}

.float-btn:hover {
  transform: scale(1.12);
  color: var(--white);
}

.float-btn-call { background: var(--primary); }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,.25); }
  50%       { box-shadow: 0 10px 32px rgba(13,110,253,.5); }
}

/* ── Enquire Now Floating Button ─────────────── */
.float-enquire-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg) translateX(calc(100% - 36px));
  transform-origin: bottom right;
  z-index: 1100;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: var(--white);
  border: none;
  padding: .55rem 1.3rem;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50px 50px 0 0;
  cursor: pointer;
  box-shadow: -2px 4px 16px rgba(13,110,253,.35);
  letter-spacing: .3px;
  transition: var(--transition);
  white-space: nowrap;
}

.float-enquire-btn:hover {
  transform: translateY(-50%) rotate(-90deg) translateX(calc(100% - 44px));
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: var(--white);
}

/* ── Enquire Modal ───────────────────────────── */
.modal-header-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sky) 100%);
  color: var(--white);
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.modal-header-gradient .btn-close { filter: brightness(0) invert(1); }

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ── Stats Bar ───────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  padding: 36px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-label {
  font-size: .88rem;
  opacity: .9;
  letter-spacing: .4px;
}

/* ── Glassmorphism variant for hero cards ─────── */
.glass-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-lg);
  color: var(--white);
}

/* ── Utilities ───────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.bg-light-blue { background: var(--sky-light); }

/* ── Animations ──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeInUp .7s ease both; }
.hero-content .hero-badge  { animation-delay: .1s; }
.hero-content .hero-title  { animation-delay: .25s; }
.hero-content .hero-desc   { animation-delay: .4s; }
.hero-content .hero-actions { animation-delay: .55s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-slide { min-height: 80vh; }
  .float-enquire-btn { font-size: .8rem; padding: .45rem 1rem; }
  .navbar-nav { padding: .5rem 0; }
  .nav-link { border-radius: 6px; }
}

@media (max-width: 767.98px) {
  section { padding: 60px 0; }
  .hero-slide { min-height: 90vh; }
  .hero-title { font-size: 1.9rem; }
  .hero-desc { font-size: .95rem; }
  .about-img-wrap img { height: 300px; }
  .map-wrap-full { height: 300px; }
  /* hide the connector line on tablet/mobile — cards stack in 2×2 grid */
  .process-track::before { display: none; }
  /* hide carousel prev/next arrows on mobile */
  .carousel-control-prev,
  .carousel-control-next { display: none; }
}

@media (max-width: 575.98px) {
  .float-btn { width: 48px; height: 48px; font-size: 1.3rem; }
  .stat-num { font-size: 2rem; }
  .hero-actions .btn { width: 100%; margin: .25rem 0; }
}
