/* ============================================================
   CleanPro Water Solutions — site.css
   Small hand-written additions that sit on top of the existing
   purged Tailwind build (root-DRXLeCxU.css). Only covers things
   that build didn't already include: the mobile nav drawer and
   the FAQ accordion animation. Uses the same design tokens
   (colors / fonts) already defined in root-DRXLeCxU.css.
   ============================================================ */

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer[data-open="true"] {
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-drawer[data-open="true"] .mobile-drawer__backdrop {
  opacity: 1;
}
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 86%;
  max-width: 360px;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 40px rgba(11, 31, 58, 0.18);
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] .mobile-drawer__panel {
  transform: translateX(0);
}
.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}
.mobile-drawer__close {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: var(--color-navy, #0b1f3a);
  background: rgba(11, 31, 58, 0.06);
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}
.mobile-drawer__link {
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy, #0b1f3a);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  text-decoration: none;
}
.mobile-drawer__link--active {
  color: var(--color-aqua, #14b8c6);
}
.mobile-drawer__actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mobile-drawer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-drawer__btn--wa {
  background: rgba(37, 211, 102, 0.12);
  color: var(--color-wa-dark, #128c7e);
}
.mobile-drawer__btn--outline {
  border: 1px solid rgba(11, 31, 58, 0.15);
  color: var(--color-navy, #0b1f3a);
}
.mobile-drawer__btn--solid {
  background: linear-gradient(to right, var(--color-aqua, #14b8c6), var(--color-aqua-light, #22d3ee));
  color: #fff;
}
body.drawer-open {
  overflow: hidden;
}

/* ---------- Theme toggle button ---------- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  min-height: 40px;
  min-width: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(11, 31, 58, 0.15);
  background: rgba(11, 31, 58, 0.04);
  color: var(--color-navy, #0b1f3a);
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.theme-toggle-btn svg {
  pointer-events: none;
}
.theme-toggle-btn span {
  pointer-events: none;
  display: inline-flex;
}
.theme-toggle-btn .theme-icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: none;
}
html[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: inline-flex;
}
html[data-theme="dark"] .theme-toggle-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

/* ============================================================
   Dark mode — overrides the purged Tailwind utility classes
   using attribute selectors so arbitrary-opacity class names
   (e.g. "border-navy/10") don't need escaping.
   ============================================================ */
html[data-theme="dark"] body {
  background-color: #0a0f1a;
}
html[data-theme="dark"] [class~="bg-white"] {
  background-color: #111c2e !important;
}
html[data-theme="dark"] [class~="bg-white/90"] {
  background-color: rgba(17, 28, 46, 0.92) !important;
}
html[data-theme="dark"] [class~="bg-white/95"] {
  background-color: rgba(17, 28, 46, 0.95) !important;
}
html[data-theme="dark"] [class~="bg-white/5"],
html[data-theme="dark"] [class~="bg-white/10"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] [class~="bg-slate-50"] {
  background-color: #0d1526 !important;
}
html[data-theme="dark"] [class~="text-navy"],
html[data-theme="dark"] [class~="text-navy-light"] {
  color: #eaf6f8 !important;
}
html[data-theme="dark"] [class~="text-navy/80"] {
  color: rgba(234, 246, 248, 0.8) !important;
}
html[data-theme="dark"] [class~="text-slate-500"] {
  color: #93a2b8 !important;
}
html[data-theme="dark"] [class~="text-slate-600"] {
  color: #aab8cb !important;
}
html[data-theme="dark"] [class~="text-slate-400"] {
  color: #6b7a90 !important;
}
html[data-theme="dark"] [class~="border-navy/10"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] [class~="border-navy/15"] {
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] [class~="divide-navy/10"] > * + * {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: #0d1526 !important;
  color: #eaf6f8 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] .mobile-drawer__panel {
  background: #111c2e;
}
html[data-theme="dark"] .mobile-drawer__link {
  color: #eaf6f8;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .mobile-drawer__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .faq-item {
  background-color: #111c2e;
}
html[data-theme="dark"] header {
  background-color: rgba(10, 15, 26, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] [class~="shadow-sm"],
html[data-theme="dark"] [class~="shadow-xl"],
html[data-theme="dark"] [class~="shadow-2xl"] {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] [class~="bg-slate-100"] {
  background-color: #16223a !important;
}
html[data-theme="dark"] [class~="text-slate-700"] {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] [class~="bg-navy/5"],
html[data-theme="dark"] [class~="bg-aqua/10"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
}
html,
body,
[class~="bg-white"],
[class~="bg-slate-50"],
[class~="border-navy/10"],
[class~="border-navy/15"],
.mobile-drawer__panel,
header {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item[data-open="true"] .faq-answer {
  max-height: 600px;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-question {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

/* ---------- Small helpers ---------- */
.cp-stat-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .cp-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cp-form-note {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}
.cp-form-success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}
.cp-timeline {
  position: relative;
  padding-left: 2.5rem;
}
.cp-timeline::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(20, 184, 198, 0.25);
}
.cp-timeline-step {
  position: relative;
  padding-bottom: 2rem;
}
.cp-timeline-step:last-child {
  padding-bottom: 0;
}
.cp-timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.1rem;
  height: 1.9rem;
  width: 1.9rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--color-aqua, #14b8c6), var(--color-fresh, #22c55e));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}
