﻿/* CleanCo — Service detail pages */
:root {
  --primary: #0FA79A;
  --primary-dark: #0B8A7F;
  --secondary: #15C39A;
  --bg: #F5FCFA;
  --white: #FFFFFF;
  --ink: #102A2A;
  --ink-soft: #2C4A4A;
  --mid: #5F7A7A;
  --faint: #9ABCBC;
  --border: #E0F0EE;
  --shadow-sm: 0 2px 12px rgba(15, 167, 154, 0.08);
  --shadow-md: 0 8px 32px rgba(15, 167, 154, 0.12);
  --shadow-lg: 0 20px 56px rgba(15, 167, 154, 0.14);
  --glow: 0 8px 28px rgba(15, 167, 154, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

body.page-enter { animation: pageIn 0.55s var(--ease) forwards; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 3vw, 24px);
  gap: 12px;
  background: rgba(245, 252, 250, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}

.nav-back:hover { background: var(--primary); border-color: var(--primary); }
.nav-back:hover svg { stroke: white; }

.nav-logo { display: flex; align-items: center; gap: 8px; flex: 1; }

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }

.nav-book-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 3px 12px var(--glow);
  transition: transform 0.2s;
  white-space: nowrap;
}

.nav-book-btn:hover { transform: translateY(-1px); }

.nav-search { display: none; }

/* Hero */
.hero {
  position: relative;
  height: clamp(260px, 38vw, 400px);
  overflow: hidden;
  background: #0a3532;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.2;
  background: linear-gradient(135deg, #0a3532, var(--primary));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 42, 42, 0.05) 0%, rgba(16, 42, 42, 0.75) 100%);
}

.hero-content {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  left: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  max-width: 640px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 600;
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 30px;
  color: white;
  font-size: 0.82rem;
}

.star-icon { color: #ffd166; }

.hero-reviews { color: rgba(255, 255, 255, 0.82); font-size: 0.75rem; }

.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.badge {
  background: rgba(15, 167, 154, 0.88);
  color: white;
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Overview / Benefits / Before-after */
.service-overview {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px) clamp(16px, 3vw, 24px) 0;
}

.overview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}

.overview-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 10px;
}

.overview-card p { color: var(--mid); font-size: 0.9rem; line-height: 1.7; max-width: 720px; }

.benefits-section { padding: 8px 0 16px; }

.benefits-section .section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 24px) 8px;
}

.benefits-section .section-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.benefits-section .section-sub { font-size: 0.82rem; color: var(--mid); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.benefit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.benefit-icon { font-size: 1.4rem; margin-bottom: 8px; }
.benefit-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.benefit-desc { font-size: 0.76rem; color: var(--mid); line-height: 1.5; }

.before-after-section { padding-bottom: 20px; }

.before-after-section .section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px clamp(16px, 3vw, 24px);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.ba-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}

.ba-panel:hover { box-shadow: var(--shadow-md); }

.ba-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: center;
}

.ba-label.before { background: #f0f4f3; color: var(--mid); }
.ba-label.after { background: rgba(15, 167, 154, 0.12); color: var(--primary-dark); }

.ba-visual {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: #eceff1;
}

.ba-visual.before-bg { background: linear-gradient(135deg, #eceff1, #cfd8dc); }
.ba-visual.after-bg { background: linear-gradient(135deg, #e0f7f4, #b2dfdb); }

.ba-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.ba-panel:hover .ba-visual img { transform: scale(1.05); }

.ba-caption {
  font-size: 0.72rem;
  color: var(--mid);
  padding: 8px 12px;
  text-align: center;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Layout */
.page-layout {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
}

.sidebar {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 200px;
  flex-shrink: 0;
  padding: 24px 16px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--white);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--mid);
  font-size: 0.8rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}

.sidebar-item:hover { background: var(--bg); color: var(--primary); }
.sidebar-item.active { background: rgba(15, 167, 154, 0.1); color: var(--primary); font-weight: 600; }

.category-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px clamp(16px, 3vw, 20px);
  display: flex;
  gap: 8px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--mid);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.cat-tab.active, .cat-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.main-content { flex: 1; padding-bottom: 16px; min-width: 0; }

.section { padding: 24px clamp(16px, 3vw, 24px) 8px; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin-bottom: 4px;
}

.section-sub { font-size: 0.82rem; color: var(--mid); }

.promise-strip {
  margin: 0 clamp(16px, 3vw, 24px) 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Pricing cards */
.cards-list {
  padding: 0 clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 0 10px 0;
  display: inline-block;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  align-items: flex-start;
}

.card-info { flex: 1; min-width: 0; }

.card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.card-rating { font-size: 0.75rem; color: var(--mid); margin-bottom: 8px; }
.card-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card-price { font-size: 1.2rem; font-weight: 700; }
.card-old-price { font-size: 0.8rem; color: var(--faint); text-decoration: line-through; }
.card-save {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(15, 167, 154, 0.1);
  padding: 2px 7px;
  border-radius: 10px;
}
.card-duration { font-size: 0.75rem; color: var(--mid); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.card-features { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.card-feature {
  font-size: 0.75rem;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
  line-height: 1.4;
}
.card-feature::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.card-expand { font-size: 0.75rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.card-img-col { flex-shrink: 0; width: 96px; }
.card-img-placeholder, .card-img-wrap {
  width: 96px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #e8f7f5, #d0ebe8);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-list {
  padding: 0 clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  gap: 12px;
}

.faq-chevron { flex-shrink: 0; transition: transform 0.3s; stroke: var(--primary); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 240px; }

.faq-a-inner {
  padding: 0 16px 16px;
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.65;
}

/* Reviews */
.reviews-wrap {
  padding: 0 clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.review-name { font-size: 0.88rem; font-weight: 600; }
.review-date { font-size: 0.7rem; color: var(--faint); }
.review-stars { color: #ffd166; font-size: 0.75rem; }
.review-text { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.review-imgs { display: flex; gap: 8px; }
.review-img {
  width: 64px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg);
}

/* Booking CTA — sits directly above footer */
.booking-cta {
  margin: 12px auto 0;
  padding: clamp(20px, 3vw, 28px);
  max-width: 1180px;
  width: calc(100% - clamp(32px, 6vw, 48px));
  background: linear-gradient(135deg, #0a3532, #102a2a);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 195, 154, 0.2), transparent 70%);
  top: -120px;
  right: -60px;
  pointer-events: none;
}

.booking-cta h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: white;
  margin-bottom: 8px;
  position: relative;
}

.booking-cta p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.booking-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: var(--glow);
  transition: transform 0.2s;
}

.btn-book:hover { transform: translateY(-2px); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 100px;
  transition: transform 0.2s;
}

.btn-wa:hover { transform: translateY(-2px); }

/* Footer */
footer, .site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(28px, 4vw, 40px) clamp(16px, 3vw, 24px) 24px;
  margin-top: 0;
}

.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.footer-logo-text { font-family: var(--serif); font-size: 1.1rem; color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 10px;
}
.footer-link {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--secondary); }
.footer-social { display: flex; gap: 10px; margin-bottom: 20px; }
footer .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
}
footer .social-btn:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.reveal-on-scroll,
.overview-card.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* CTA uses layout space while animating (no extra gap from transform reserve) */
.booking-cta.reveal-on-scroll {
  transform: translateY(12px);
}

.reveal-on-scroll.visible,
.overview-card.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .hero { height: 400px; }
  .cards-list { padding: 0 24px; }
}

@media (min-width: 900px) {
  .sidebar { display: flex; }
  .category-tabs { display: none; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .card-body { flex-direction: column; }
  .card-img-col { width: 100%; }
  .card-img-placeholder, .card-img-wrap { width: 100%; height: 120px; }
  .before-after-grid { grid-template-columns: 1fr; }
}
