/* =====================================================================
   assets/css/style.css — Cleaning Dream
   FIXED: All page content renders BELOW the fixed navbar, never behind it
   ===================================================================== */

:root {
  --blue:     #1A56DB;
  --green:    #057A55;
  --orange:   #FF5A1F;
  --red:      #E02424;
  --dark:     #111827;
  --gray:     #6B7280;
  --light:    #F3F4F6;
  --white:    #FFFFFF;
  --shadow:   0 4px 20px rgba(0,0,0,.08);
  --navbar-h: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ══════════════════════════════════════════════════════════════════════
   THE KEY FIX — padding-top = navbar height
   Every page's first element starts BELOW the fixed navbar.
   ══════════════════════════════════════════════════════════════════════ */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  padding-top: var(--navbar-h);
}

/* ── NAVBAR ─────────────────────────────────────────────────────────── */
#mainNav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1050;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  padding: 8px 0;
  transition: background .3s, box-shadow .3s;
}
#mainNav.scrolled {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.navbar-brand img {
  max-height: 52px; width: auto; display: block;
}

/* Nav links */
#mainNav .nav-link {
  color: #fff !important;
  font-weight: 600; font-size: 14px;
  padding: 7px 14px !important;
  background: var(--blue);
  border-radius: 8px; margin: 2px 3px;
  transition: background .25s, transform .2s;
  display: inline-block; line-height: 1.4;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active-page {
  background: var(--green) !important;
  transform: translateY(-2px);
}

/* Book Now */
#mainNav .btn-book {
  background: var(--orange); color: #fff !important;
  font-weight: 700; font-size: 14px;
  padding: 8px 18px; border-radius: 8px;
  transition: background .25s, transform .2s;
  cursor: pointer; line-height: 1.4;
  text-decoration: none;
}
#mainNav .btn-book:hover {
  background: var(--green) !important;
  transform: translateY(-2px);
}

/* Language switcher */
.lang-switcher a {
  font-size: 12px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
  color: var(--gray); text-decoration: none; transition: .2s;
}
.lang-switcher a.active,
.lang-switcher a:hover { background: var(--blue); color: #fff; }

/* ── HERO (index.php) ────────────────────────────────────────────────── */
/* body padding-top already clears the navbar.
   Hero fills the remaining viewport height. */
.hero {
  min-height: calc(100vh - var(--navbar-h));
  background: url('../images/hero-bg.jpg')  center/cover no-repeat,
              url('../images/hero-bg.png')  center/cover no-repeat,
              linear-gradient(135deg, var(--blue), #0f2460);
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.hero-overlay { display: none; }

/* Hero text — forced black so it reads on any background */
.hero-content h1,
.hero-content p,
.hero-stats h3,
.hero-stats p {
  color: #000 !important;
  text-shadow: none;
}
.badge-tag {
  background: rgba(255,255,255,0.88); color: #111;
  padding: 6px 18px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  border: 1px solid rgba(0,0,0,.12); display: inline-block;
}
.hero-stats {
  border-top: 1px solid rgba(0,0,0,.12);
  padding-top: 28px; margin-top: 28px;
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE HERO — inner pages (services, about, blog, contact)
   Sits directly after the navbar (body padding-top clears it).
   padding-top:70px gives breathing room between navbar and h1.
   ══════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: white; /* Changed to white */
  color: #fff;
  text-align: center;
  padding: 70px 0 55px;
}
.page-hero h1,
.page-hero h2,
.page-hero p,
.page-hero p.lead,
.page-hero span,
.page-hero small {
  color: #fff !important;   /* force white — overrides Bootstrap dark defaults */
}
.page-hero h1 {
  font-size: 2.5rem; font-weight: 700;
  margin-bottom: 14px; line-height: 1.2;
}
.page-hero p.lead {
  font-size: 1.1rem; opacity: .9;
  max-width: 600px; margin: 0 auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-green {
  background: var(--green); color: #fff;
  border: none; border-radius: 8px; padding: 12px 28px;
  font-weight: 600; transition: .3s;
  display: inline-block; text-decoration: none; cursor: pointer;
}
.btn-green:hover {
  background: #046b48; color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5,122,85,.35);
}
.btn-orange {
  background: var(--orange); color: #fff;
  border: none; border-radius: 8px; padding: 12px 28px;
  font-weight: 600; transition: .3s;
  display: inline-block; text-decoration: none; cursor: pointer;
}
.btn-orange:hover { background: #e04a0f; color: #fff; transform: translateY(-2px); }
.btn-outline-dark {
  border: 2px solid #000; color: #000;
  border-radius: 8px; padding: 12px 28px;
  font-weight: 600; background: transparent;
  transition: .3s; display: inline-block; text-decoration: none;
}
.btn-outline-dark:hover { background: #000; color: #fff; }

/* ── Section titles ──────────────────────────────────────────────────── */
.section-title {
  font-size: 2rem; font-weight: 700;
  color: var(--dark); position: relative; margin-bottom: 10px;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--orange); margin: 12px auto 0; border-radius: 2px;
}

/* ── Service cards ───────────────────────────────────────────────────── */
.service-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: .3s;
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--blue);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.service-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-body { padding: 22px 18px 24px; }
.service-body h4 { color: var(--dark); font-weight: 700; margin-bottom: 8px; }
.service-body p  { color: var(--gray); font-size: 14px; margin-bottom: 0; }
.price-tag {
  background: var(--light); color: var(--blue);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-top: 12px; display: inline-block;
}

/* ── How it works ────────────────────────────────────────────────────── */
.step-card { padding: 20px 10px; text-align: center; }
.step-number {
  width: 40px; height: 40px;
  background: var(--blue); color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin: 0 auto 12px;
}

/* ── Reviews ─────────────────────────────────────────────────────────── */
.review-card {
  background: #fff; border-radius: 12px;
  padding: 28px; box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.stars { font-size: 20px; margin-bottom: 12px; }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--blue), #0f2460); }

/* ── Booking form ────────────────────────────────────────────────────── */
.booking-form {
  background: #fff; border-radius: 16px;
  padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.form-label { font-weight: 600; color: var(--dark); font-size: 14px; }
.form-control, .form-select {
  border: 2px solid #e5e7eb; border-radius: 8px;
  padding: 12px 16px; font-size: 14px; transition: .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1); outline: none;
}
.is-invalid { border-color: var(--red) !important; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer { background: #111827; color: #9CA3AF; padding: 50px 0 20px; }
footer h5 { color: #fff; font-weight: 700; margin-bottom: 16px; }
footer p  { font-size: 14px; }
footer a  {
  color: #9CA3AF; text-decoration: none;
  display: block; margin-bottom: 8px; font-size: 14px; transition: .2s;
}
footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #374151; padding-top: 20px;
  margin-top: 30px; text-align: center; font-size: 13px;
}

/* ── Chatbot ─────────────────────────────────────────────────────────── */
#chatbot-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 50%; font-size: 26px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(26,86,219,.55);
  transition: transform .2s; display: flex; align-items: center; justify-content: center;
}
#chatbot-btn:hover { transform: scale(1.12); }
#chatbot-window {
  position: fixed; bottom: 100px; right: 28px;
  width: 360px; max-height: 520px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  z-index: 9998; display: none; flex-direction: column;
  overflow: hidden; border: 1px solid #e5e7eb;
}
#chatbot-window.open { display: flex; }
#chatbot-header {
  background: linear-gradient(135deg, var(--blue), #0f2460);
  padding: 14px 18px; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
#chatbot-close {
  background: rgba(255,255,255,.2); border: none;
  color: #fff; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; cursor: pointer; transition: background .2s;
}
#chatbot-close:hover { background: rgba(255,255,255,.35); }
#chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 84%; padding: 10px 14px;
  border-radius: 14px; font-size: 14px; line-height: 1.55; word-break: break-word;
}
.chat-msg.bot {
  background: var(--light); color: var(--dark);
  align-self: flex-start; border-radius: 4px 14px 14px 14px;
}
.chat-msg.user {
  background: var(--blue); color: #fff;
  align-self: flex-end; border-radius: 14px 14px 4px 14px;
}
#chatbot-input-area {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid #e5e7eb; flex-shrink: 0; background: #fff;
}
#chat-user-input {
  flex: 1; border: 1.5px solid #e5e7eb;
  border-radius: 8px; padding: 10px 14px; font-size: 14px;
  outline: none; transition: border .2s;
}
#chat-user-input:focus { border-color: var(--blue); }
#chat-send-btn {
  background: var(--blue); color: #fff; border: none;
  border-radius: 8px; padding: 10px 18px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
#chat-send-btn:hover { background: #1246b0; }
#chat-send-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.chat-wa-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0;
  background: #25D366; color: #fff !important;
  padding: 7px 16px; border-radius: 20px;
  text-decoration: none !important; font-weight: 700; font-size: 13px;
}
.chat-wa-link:hover { background: #1ebe5a; }

/* Alerts */
.alert-container { margin-top: 12px; }
.alert-dynamic   { border-radius: 10px; font-size: 14px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  #mainNav .nav-link { margin: 3px 1px; font-size: 13px; padding: 6px 10px !important; }
}
@media (max-width: 768px) {
  .hero h1       { font-size: 2rem; }
  .hero-stats    { gap: 2rem !important; flex-wrap: wrap; }
  .section-title { font-size: 1.6rem; }
  .page-hero     { padding: 60px 0 40px; }
  .page-hero h1  { font-size: 1.8rem; }
  .booking-form  { padding: 20px; }
  #chatbot-window { width: 94vw; right: 3vw; bottom: 80px; max-height: 75vh; }
}
@media (max-width: 480px) {
  :root { --navbar-h: 68px; }
  #chatbot-btn { width: 52px; height: 52px; font-size: 22px; bottom: 18px; right: 18px; }
  #chatbot-window { width: 100vw; right: 0; bottom: 70px; border-radius: 12px 12px 0 0; }
}
