/* ============================================================
   CleaningBD.com — Mobile-first stylesheet
   Brand colors: green (#0e9f6e) + dark navy (#0f2f3f)
   ============================================================ */

:root {
  --cbd-green: #0e9f6e;
  --cbd-green-dark: #0b7d57;
  --cbd-navy: #0f2f3f;
  --cbd-bg: #f6f9f8;
  --cbd-yellow: #ffc107;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  color: #1f2937;
  background: #fff;
  /* Space for the sticky mobile action bar */
  padding-bottom: 64px;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }

a { color: var(--cbd-green-dark); text-decoration: none; }
a:hover { color: var(--cbd-green); }
img { max-width: 100%; height: auto; }

/* Touch-friendly targets */
.btn, .nav-link, .form-control, .form-select { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; }

.btn-success, .bg-success { background-color: var(--cbd-green) !important; border-color: var(--cbd-green) !important; }
.btn-success:hover { background-color: var(--cbd-green-dark) !important; }
.text-success { color: var(--cbd-green) !important; }
.btn-book { border-radius: 50rem; font-weight: 600; }

/* Top bar */
.topbar { background: var(--cbd-navy); color: #cbd5e1; font-size: .82rem; padding: .4rem 0; }
.topbar a { color: #e2e8f0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--cbd-navy) 0%, #14532d 100%);
  color: #fff;
  padding: 3rem 0;
}
.hero h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.25; }
.hero .lead { font-size: 1rem; color: #d1fae5; }
.hero .hero-badges span {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.12); border-radius: 50rem;
  padding: .35rem .8rem; font-size: .8rem; margin: .2rem .25rem .2rem 0;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: 2.6rem; }
  .hero .lead { font-size: 1.15rem; }
}

/* ---------- Section basics ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--cbd-bg); }
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.section-sub { color: #6b7280; margin-bottom: 2rem; }
@media (min-width: 768px) { .section { padding: 4.5rem 0; } .section-title { font-size: 2rem; } }

/* ---------- Service cards ---------- */
.service-card {
  border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem;
  height: 100%; background: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,47,63,.10); }
.service-card .icon {
  width: 56px; height: 56px; border-radius: .9rem; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: #e7f7f0; color: var(--cbd-green);
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .5rem; }
.service-card p { font-size: .875rem; color: #6b7280; margin-bottom: .75rem; }
.service-card .price { font-weight: 700; color: var(--cbd-navy); }

/* ---------- Steps ---------- */
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cbd-green); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: 1rem; padding: 1.5rem; height: 100%;
  border: 1px solid #e5e7eb;
}
.testimonial-card .stars { color: var(--cbd-yellow); }

/* ---------- Gallery (before/after) ---------- */
.ba-card { border-radius: 1rem; overflow: hidden; position: relative; }
.ba-card img { width: 100%; height: 220px; object-fit: cover; }
.ba-label {
  position: absolute; top: .6rem; left: .6rem;
  background: rgba(15,47,63,.85); color: #fff;
  padding: .2rem .7rem; border-radius: 50rem; font-size: .75rem;
}

/* ---------- Price estimator ---------- */
.estimator-box {
  background: #fff; border-radius: 1.25rem; padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(15,47,63,.12);
}
.estimate-result {
  background: #e7f7f0; border-radius: .8rem; padding: 1rem;
  font-size: 1.1rem; font-weight: 700; color: var(--cbd-navy);
}

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .875rem; }
.required::after { content: " *"; color: #dc2626; }

/* ---------- Blog ---------- */
.blog-card { border: 1px solid #e5e7eb; border-radius: 1rem; overflow: hidden; height: 100%; background: #fff; }
.blog-card img { height: 190px; width: 100%; object-fit: cover; }
.blog-card .card-body { padding: 1.25rem; }
.blog-content h2 { font-size: 1.35rem; margin-top: 1.75rem; font-weight: 700; }
.blog-content h3 { font-size: 1.15rem; margin-top: 1.4rem; font-weight: 700; }
.blog-content img { border-radius: .75rem; margin: 1rem 0; }

/* ---------- FAQ ---------- */
.accordion-button:not(.collapsed) { background: #e7f7f0; color: var(--cbd-navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cbd-navy); color: #9fb3bd; }
.site-footer a { color: #cfe3db; }
.site-footer a:hover { color: #fff; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  display: flex; height: 60px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.mobile-action-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 700; font-size: .9rem; color: #fff;
}
.action-call { background: var(--cbd-navy); }
.action-whatsapp { background: #25d366; }
.action-book { background: var(--cbd-green); }
.mobile-action-bar a:active { filter: brightness(.9); }
.mobile-action-bar a { color: #fff !important; }

/* ---------- AI Chatbot widget ---------- */
#cbd-chat { position: fixed; right: 1rem; bottom: 76px; z-index: 1050; }
@media (min-width: 992px) { #cbd-chat { bottom: 1.25rem; } }
#cbd-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--cbd-navy); color: #fff; font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer;
}
#cbd-chat-panel {
  position: absolute; right: 0; bottom: 68px;
  width: min(92vw, 360px); height: 460px;
  background: #fff; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
}
#cbd-chat-panel .chat-head {
  background: var(--cbd-navy); color: #fff; padding: .75rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
#cbd-chat-panel .chat-head button { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
#cbd-chat-panel .chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--cbd-bg); }
.chat-msg { max-width: 85%; padding: .55rem .8rem; border-radius: .9rem; margin-bottom: .6rem; font-size: .875rem; line-height: 1.45; white-space: pre-wrap; }
.chat-msg.bot { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: .2rem; }
.chat-msg.user { background: var(--cbd-green); color: #fff; margin-left: auto; border-bottom-right-radius: .2rem; }
.chat-msg.typing { color: #9ca3af; font-style: italic; }
#cbd-chat-panel .chat-foot { display: flex; border-top: 1px solid #e5e7eb; }
#cbd-chat-panel .chat-foot input { flex: 1; border: 0; padding: .8rem 1rem; font-size: .9rem; outline: none; }
#cbd-chat-panel .chat-foot button { border: 0; background: var(--cbd-green); color: #fff; width: 52px; cursor: pointer; }

/* ---------- Utility ---------- */
.rounded-xl { border-radius: 1rem; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: 1rem; }

/* Lazy images: fade-in when loaded */
img[loading="lazy"] { opacity: 0; transition: opacity .3s ease; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([data-src]) { opacity: 1; }
