/* ============================================================
   HomeCleanerSG — styles.css
   Palette: deep teal (trust) + fresh green (clean) + warm white
   Mobile-first, no framework.
   ============================================================ */

:root {
  --teal-900: #0b3b3c;
  --teal-800: #0e4a4c;
  --teal-700: #14605f;
  --teal-100: #dff0ee;
  --teal-50:  #f2f9f8;
  --green-500: #22b573;
  --green-600: #1a9c62;
  --green-300: #7fe0b3;
  --ink-900: #17242a;
  --ink-600: #4a5b63;
  --ink-400: #7b8a91;
  --white: #ffffff;
  --off-white: #f8fafa;
  --border: #e3ecea;
  --star: #f5a623;
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 59, 60, 0.08);
  --shadow-md: 0 6px 24px rgba(11, 59, 60, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 59, 60, 0.16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }
h1 em { font-style: normal; color: var(--green-600); position: relative; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.08rem; font-weight: 700; }

.section-eyebrow {
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--ink-600);
  max-width: 620px;
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(34, 181, 115, 0.35);
}
.btn-primary:hover { background: var(--green-600); }
.btn-outline {
  background: var(--white);
  color: var(--teal-800);
  border-color: var(--teal-800);
}
.btn-outline:hover { background: var(--teal-50); }
.btn-ghost {
  background: transparent;
  color: var(--teal-800);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 10px;
  padding-right: 10px;
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-900);
  text-decoration: none;
}
.brand-accent { color: var(--green-600); font-weight: 700; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-menu a:not(.btn) {
  color: var(--ink-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}
.nav-menu a:not(.btn):hover { color: var(--teal-800); }
.btn-nav { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--teal-50) 0%, var(--white) 55%, var(--teal-100) 100%);
  padding: 68px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-sub {
  color: var(--ink-600);
  font-size: 1.08rem;
  margin: 20px 0 26px;
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  color: var(--ink-600);
  font-size: 0.9rem;
}
.trust-signals strong { color: var(--teal-800); }

/* Sparkles */
.sparkle {
  position: absolute;
  color: var(--green-500);
  opacity: 0.7;
  animation: twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.sparkle-1 { top: 18%; left: 55%; font-size: 1.4rem; animation-delay: 0s; }
.sparkle-2 { top: 65%; left: 4%; font-size: 1rem; animation-delay: 1.1s; }
.sparkle-3 { top: 12%; left: 90%; font-size: 1.8rem; animation-delay: 2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8) rotate(0deg); }
  50%      { opacity: 0.85; transform: scale(1.15) rotate(20deg); }
}

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
  max-width: 320px;
  width: 100%;
  border: 1px solid var(--border);
  transform: rotate(2deg);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-8px); }
}
.hero-card-badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-card-title { font-weight: 700; margin-bottom: 4px; }
.hero-card-line { color: var(--ink-600); font-size: 0.9rem; }
.hero-card-price { color: var(--teal-800); font-weight: 700; margin-top: 6px; }
.hero-card-stars { color: var(--star); letter-spacing: 3px; margin-top: 10px; font-size: 1.05rem; }

/* ---------- How-it-works strip ---------- */
.how-strip {
  background: var(--teal-900);
  color: #cde5e1;
  font-size: 0.9rem;
}
.how-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.how-strip strong { color: var(--green-300); }
.how-arrow { color: var(--green-300); font-weight: 700; }
.how-note {
  margin-left: auto;
  font-size: 0.82rem;
  color: #8fb0ac;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--off-white); }

/* ---------- Services ---------- */
.services-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card p { color: var(--ink-600); font-size: 0.93rem; }
.card-photo {
  width: calc(100% + 52px);
  margin: -28px -26px 6px;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-card h3 { font-size: 1.15rem; }
.service-price { color: var(--green-600) !important; font-weight: 700; font-size: 0.92rem !important; }

.service-card--featured {
  border: 2px solid var(--green-500);
  background: linear-gradient(150deg, var(--white) 55%, var(--teal-50) 100%);
}
.featured-tag {
  color: var(--green-600) !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.featured-rate {
  font-size: 2.4rem !important;
  font-weight: 800;
  color: var(--teal-800) !important;
  line-height: 1;
  margin-top: 6px;
}
.featured-rate span { font-size: 1.05rem; font-weight: 600; color: var(--ink-400); }
.featured-price-note { font-size: 0.85rem !important; color: var(--ink-400) !important; margin-bottom: 8px; }

.service-card--dark {
  background: var(--teal-800);
  border-color: var(--teal-800);
}
.service-card--dark h3 { color: var(--white); }
.service-card--dark p { color: #cde5e1; }
.service-card--dark .service-price { color: var(--green-300) !important; }
.specialist-link {
  margin-top: auto;
  color: var(--green-300);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.93rem;
}
.specialist-link:hover { text-decoration: underline; }

/* Compact service pills */
.service-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.service-pills li {
  background: var(--teal-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--teal-900);
}
.service-pills span { color: var(--green-600); font-weight: 700; margin-left: 6px; }

/* ---------- Instant estimator ---------- */
.estimator {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}
.estimator-controls { padding: 30px 28px; }
.est-label {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-900);
  margin-bottom: 10px;
}
.est-label + .chip-group { margin-bottom: 24px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--green-500); color: var(--teal-900); }
.chip.is-active {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: var(--white);
}
.estimator-result {
  background: var(--teal-800);
  color: #cde5e1;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.est-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.est-price span { font-size: 1.1rem; font-weight: 600; color: var(--green-300); }
.est-note { font-size: 0.92rem; margin: 10px 0 18px; }
.est-ctas { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.est-ctas .btn-ghost { color: var(--green-300); padding-left: 0; }
.est-disclaimer { font-size: 0.78rem; color: #8fb0ac; margin-top: 16px; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { color: var(--star); letter-spacing: 2px; }
.review-quote { color: var(--ink-600); font-size: 0.95rem; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 700; font-size: 0.92rem; }
.review-meta { color: var(--ink-400); font-size: 0.82rem; }

/* ---------- Trust bar (compact) ---------- */
.trust-section { padding: 48px 0; }
.trust-heading { font-size: 1.25rem; margin-bottom: 20px; }
.trust-bar {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  color: var(--ink-600);
  font-size: 0.93rem;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 48px 18px 22px;
  list-style: none;
  position: relative;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green-600);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; color: var(--ink-600); font-size: 0.94rem; }

/* ---------- Booking form ---------- */
.booking-form {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--teal-900);
}
.label-optional { color: var(--ink-400); font-weight: 500; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.15);
  background: var(--white);
}
.form-field.has-error input,
.form-field.has-error select {
  border-color: #d64545;
  background: #fdf3f3;
}
.field-error {
  color: #c03434;
  font-size: 0.8rem;
  margin-top: 5px;
  min-height: 1em;
  font-weight: 600;
}
.field-hint {
  color: var(--green-600);
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 600;
}
.field-hint.is-error { color: #c03434; }
.form-row--address { grid-template-columns: 2fr 1fr; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.phone-wrap { display: flex; align-items: stretch; }
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--teal-100);
  border: 1.5px solid var(--border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  font-weight: 700;
  color: var(--teal-800);
  font-size: 0.95rem;
}
.phone-wrap input { border-radius: 0 10px 10px 0; }
.form-pdpa { color: var(--ink-400); font-size: 0.82rem; margin: 6px 0 18px; }

.form-success {
  margin-top: 28px;
  background: var(--teal-50);
  border: 1.5px solid var(--green-500);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.form-success-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-600); }
.form-success a { color: var(--green-600); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #c9dedb;
  padding: 56px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.footer-legal { margin-top: 14px; font-size: 0.8rem; color: #8fb0ac; }
.footer-col h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #c9dedb; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { font-weight: 700; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #8fb0ac;
}
.footer-bottom a { color: #8fb0ac; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.05); }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(11, 59, 60, 0.1);
}
.mobile-cta-bar .btn { flex: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sparkle, .hero-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; } /* hide decorative card on small screens */
  .services-layout { grid-template-columns: 1fr 1fr; }
  .service-card--featured { grid-column: 1 / -1; }
  .review-grid { grid-template-columns: 1fr; max-width: 560px; }
  .estimator { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .how-note { margin-left: 0; width: 100%; }
}

@media (max-width: 680px) {
  .section { padding: 48px 0; }
  .hero { padding: 44px 0 52px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: 10px 4px; font-size: 1rem; }
  .btn-nav { margin-top: 10px; justify-content: center; }

  .services-layout, .form-row { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .how-strip-inner { font-size: 0.82rem; gap: 6px 10px; }

  .mobile-cta-bar { display: flex; }
  .whatsapp-float { bottom: 78px; padding: 14px; } /* sit above the sticky CTA bar */
  .whatsapp-float-label { display: none; } /* icon-only on mobile */

  body { padding-bottom: 64px; } /* room for sticky CTA bar */
}
