/* Eco Shine Solutions LTD — Custom CSS */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

h1,h2,h3,h4,h5 { font-family: 'Poppins', system-ui, sans-serif; }

/* Header nav link */
.nav-link {
  position: relative;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  color: #0f172a;
  transition: color .2s;
}
.nav-link:hover { color: #0ea5e9; }
.nav-link-active { color: #0ea5e9; }
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 2px;
  height: 2px;
  background: #0ea5e9;
  border-radius: 2px;
}

/* Gradient utility */
.gradient-hero {
  background: linear-gradient(135deg, rgba(14,165,233,.92) 0%, rgba(16,185,129,.88) 100%);
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}
.section-lede {
  color: #475569;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Service card */
.service-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -20px rgba(14,165,233,.35);
  border-color: #0ea5e9;
}
.service-card .card-icon {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #fff;
  font-size: 1.5rem;
}

/* Feature card */
.feature-card {
  display: flex; gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  transition: .25s;
}
.feature-card:hover { border-color: #0ea5e9; box-shadow: 0 20px 40px -20px rgba(14,165,233,.25); }

/* Before / After slider */
.ba-wrap { position: relative; overflow: hidden; border-radius: 1rem; user-select: none; }
.ba-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; overflow: hidden; }
.ba-after img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  width: 3px; background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 15px rgba(0,0,0,.4);
}
.ba-handle::before {
  content: '\f337';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #0ea5e9;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.ba-label {
  position: absolute; top: 12px;
  background: rgba(15,23,42,.8);
  color: #fff;
  padding: 4px 10px;
  font-size: .75rem;
  letter-spacing: .05em;
  border-radius: 999px;
  text-transform: uppercase;
}
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; background: rgba(16,185,129,.9); }

/* FAQ */
details.faq { border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; }
details.faq summary {
  list-style: none; cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: #0f172a;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '\2b';
  color: #0ea5e9;
  font-weight: 700;
  transition: transform .2s;
}
details.faq[open] summary::after { content: '\2212'; }
details.faq .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: #475569;
}

/* Toast */
.toast {
  position: fixed; z-index: 60;
  bottom: 6rem; left: 50%; transform: translateX(-50%);
  padding: .75rem 1.25rem;
  border-radius: .75rem;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, -6px); }
.toast.success { background: #10b981; }
.toast.error   { background: #ef4444; }

/* Swiper tweaks */
.swiper-button-next, .swiper-button-prev { color: #0ea5e9 !important; }
.swiper-pagination-bullet-active { background: #0ea5e9 !important; }

/* Prose for blog content */
.prose-clean :where(h2,h3) { font-family: 'Poppins', sans-serif; color: #0f172a; margin-top: 1.6em; margin-bottom: .4em; font-weight: 700; }
.prose-clean h2 { font-size: 1.5rem; }
.prose-clean h3 { font-size: 1.2rem; }
.prose-clean p  { line-height: 1.75; color: #334155; margin-bottom: 1em; }
.prose-clean ul, .prose-clean ol { padding-left: 1.25em; margin-bottom: 1em; color: #334155; }
.prose-clean li { margin: .35em 0; }
.prose-clean a  { color: #0ea5e9; text-decoration: underline; }

/* Print-friendly */
@media print {
  .nav-link, footer, .fixed { display: none !important; }
}
