/* ZEPS LAUNDRY CIAMIS - V1.0 STYLESHEET */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-blue: #0b5ed7;
  --dark-blue: #063970;
  --light-blue: #e7f1ff;
  --soft-bg: #f8fafc;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --wa-green: #16a34a;
  --wa-green-hover: #15803d;
  --hotline-amber: #d97706;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Hero Gradient */
.hero-bg {
  background: linear-gradient(118deg, #102c63 0%, #164d9d 55%, #1768c5 100%);
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy { max-width: 720px; }
.hero-visual {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}
.hero-visual-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8bd8d0;
  opacity: .18;
  filter: blur(65px);
}
.hero-art-wrap { position: relative; width: min(100%, 520px); }
.hero-art { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 36px rgba(4, 20, 51, .22)); }
.hero-note {
  position: absolute;
  left: 0;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: #18345e;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(6, 27, 66, .22);
}
.hero-note-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #1571c9; background: #e8f4ff; border-radius: 12px; }
.hero-note b, .hero-note small { display: block; white-space: nowrap; }
.hero-note b { font-size: 12px; }
.hero-note small { color: #64748b; font-size: 10px; margin-top: 2px; }
.hero-note-check { margin-left: 6px; color: #20a875; }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 1.5rem; }
}
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-visual { max-width: 470px; margin: 0 auto; }
  .hero-art-wrap { width: min(100%, 420px); }
  .hero-note { left: 1%; bottom: 5%; padding: 10px 12px; }
}
@media (max-width: 390px) {
  .hero-note { transform: scale(.9); transform-origin: left bottom; }
}

/* Cards & Transitions */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(11, 94, 215, 0.15);
  border-color: #93c5fd;
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.floating-wa:hover {
  transform: scale(1.04);
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

/* Badge Styles */
.badge-ref {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-pending {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}
.badge-aktif {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Print / Clean Table */
.price-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
}

/* Reserve separate space for the brand, navigation, and header actions. */
.site-header-inner { max-width: 1440px; }
.site-header-row { gap: 12px; }
.site-header-row .site-brand { min-width: 0; }
.site-header-row .site-header-actions { flex-shrink: 0; }
.site-header-actions > a { white-space: nowrap; }
@media (min-width: 1280px) {
  .site-header-row { gap: clamp(24px, 2vw, 32px); }
  .site-header-row .site-brand { flex: 0 0 auto; }
  .site-brand span:first-child { white-space: nowrap; }
  .site-header-row .site-desktop-nav { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); flex: 1 1 0; min-width: 0; gap: 8px; }
  .site-desktop-nav > a { min-width: 0; padding: 8px 0; text-align: center; line-height: 1.4; }
}

/* Mobile-first layout polish */
@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: clip; }
  img, svg, video, canvas { max-width: 100%; }
  p, a, h1, h2, h3, td, th { overflow-wrap: anywhere; }
  button, input, select, textarea { max-width: 100%; }
  button, a.inline-flex { min-height: 44px; }

  .site-brand { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .site-brand img { width: 44px; height: 44px; flex: 0 0 44px; }
  .site-brand > div { min-width: 0; }
  .site-brand span:first-child { font-size: clamp(12px, 3.8vw, 16px); white-space: nowrap; }
  .site-brand span:last-child { font-size: 10px; }
  .site-header-actions { flex: 0 0 auto; gap: 6px; }
  .site-header-actions > a:first-child { padding: 9px 10px; }
  #mobile-menu-btn { padding: 9px; }

  .hero-grid { min-width: 0; }
  .hero-copy, .hero-visual, .hero-art-wrap { min-width: 0; }
  .hero-note { max-width: calc(100% - 12px); gap: 8px; }
  .hero-note b, .hero-note small { white-space: normal; }

  /* Price lists become compact cards so the phone never needs a sideways swipe. */
  .overflow-x-auto:has(.price-table) { overflow: visible !important; }
  .price-table { display: block; width: 100%; table-layout: fixed; }
  .price-table thead { display: none; }
  .price-table tbody { display: grid; gap: 10px; }
  .price-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
  .price-table tbody td { min-width: 0; padding: 0; border: 0; text-align: left !important; }
  .price-table tbody td::before { display: block; margin-bottom: 4px; color: #64748b; font-size: 10px; font-weight: 700; }
  .price-table tbody td:nth-child(1) { grid-column: 1 / -1; }
  .price-table tbody td:nth-child(1)::before { content: "Kategori"; }
  .price-table tbody td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
  .price-table tbody td:nth-child(2)::before { content: "Layanan / Barang"; }
  .price-table tbody td:nth-child(3)::before { content: "Satuan"; }
  .price-table tbody td:nth-child(4)::before { content: "Estimasi"; }
  .price-table tbody td:nth-child(5)::before { content: "Harga / Status"; }
  .price-table tbody td:nth-child(6) { display: flex; align-items: end; }
  .price-table tbody td:nth-child(6) a { width: 100%; min-height: 42px; justify-content: center; white-space: normal; }
  .price-table tbody td[colspan] { grid-column: 1 / -1; padding: 12px !important; }
}

@media (max-width: 359px) {
  .site-header-row { gap: 8px; }
  .site-brand { gap: 6px; }
  .site-brand img { width: 38px; height: 38px; flex-basis: 38px; }
  .site-brand span:first-child { font-size: 12px; letter-spacing: -.04em; white-space: normal; line-height: 1.2; }
  .site-brand span:last-child { font-size: 9px; }
  .site-header-actions { gap: 4px; }
  .site-header-actions > a:first-child { padding: 8px; }
  #mobile-menu-btn { padding: 8px; }
  .price-table tbody tr { padding: 12px; gap: 8px; }
}

/* Compact, aligned cards across the public website */
.public-compact-card { min-width: 0; padding: 12px !important; border-radius: 14px !important; }
.public-compact-card h3, .public-compact-card h4 { line-height: 1.35; }
.public-compact-card p { overflow-wrap: anywhere; }

/* Present public price rows as compact cards on every screen size. */
.overflow-x-auto:has(.price-table) { overflow: visible !important; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.price-table { display: block; width: 100%; }
.price-table thead { display: none; }
.price-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.price-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.price-table tbody td { min-width: 0; padding: 0; border: 0; text-align: left !important; }
.price-table tbody td::before { display: block; margin-bottom: 4px; color: #64748b; font-size: 10px; font-weight: 700; }
.price-table tbody td:nth-child(1) { grid-column: 1 / -1; }
.price-table tbody td:nth-child(1)::before { content: "Kategori"; }
.price-table tbody td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.price-table tbody td:nth-child(2)::before { content: "Layanan / Barang"; }
.price-table tbody td:nth-child(3)::before { content: "Satuan"; }
.price-table tbody td:nth-child(4)::before { content: "Estimasi"; }
.price-table tbody td:nth-child(5)::before { content: "Harga / Status"; }
.price-table tbody td:nth-child(6) { display: flex; align-items: end; }
.price-table tbody td:nth-child(6) a { width: 100%; min-height: 42px; justify-content: center; white-space: normal; }
.price-table tbody td[colspan] { grid-column: 1 / -1; padding: 12px !important; }

@media (max-width: 767px) {
  #benefits-grid,
  #featured-services-grid,
  #order-steps-grid,
  #catalog-container .service-items-grid,
  #catalog-container > .grid,
  #estimates-grid,
  #price-category-cards,
  #gallery-category-grid,
  #article-grid,
  #faq-container,
  #contact-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #benefits-grid > div,
  #order-steps-grid > div,
  #gallery-category-grid > div { min-width: 0; padding: 10px !important; border-radius: 13px !important; }
  #benefits-grid > div span { font-size: 11px; line-height: 1.45; }
  #order-steps-grid > div { gap: 8px !important; }
  #order-steps-grid > div > span { width: 28px; height: 28px; font-size: 12px; }
  #order-steps-grid > :last-child { grid-column: auto !important; }
  #featured-services-grid > *,
  #price-category-cards > *,
  #estimates-grid > *,
  #article-grid > *,
  #faq-container > * { min-width: 0; }
  #featured-services-grid > .service-card { gap: 8px; }
  #featured-services-grid .service-card > div:last-child { gap: 6px; }
  #featured-services-grid .service-card > div:last-child a { min-width: 0; padding: 7px 5px; font-size: 10px; line-height: 1.25; }
  #catalog-container .catalog-category-panel { padding: 14px !important; border-radius: 15px !important; }
  #catalog-container .catalog-category-panel > div:first-child { gap: 10px; }
  #catalog-container .service-items-grid > div { min-width: 0; padding: 10px !important; gap: 7px !important; }
  #catalog-container .service-items-grid h5 { font-size: 12px; line-height: 1.35; }
  #catalog-container .service-items-grid .badge-ref,
  #catalog-container .service-items-grid .badge-pending { font-size: 9px; line-height: 1.2; white-space: normal; }
  #catalog-container .service-items-grid > div > div:first-child > div:nth-child(2) { gap: 4px 8px; font-size: 10px; }
  #catalog-container .service-items-grid > div > div:last-child { padding-top: 0; }
  #catalog-container .service-items-grid > div > div:last-child a { width: 100%; min-height: 38px; justify-content: center; padding: 6px; font-size: 10px; text-align: center; white-space: normal; }
  #estimates-grid > div { padding: 10px !important; }
  #price-category-cards > article { padding: 11px !important; }
  #price-category-cards > article > div:first-child > div { width: 34px; height: 34px; margin-bottom: 7px; }
  #price-category-cards > article h3 { font-size: 12px; line-height: 1.3; }
  #price-category-cards > article a { min-height: 38px; padding: 6px 8px; font-size: 10px; }
  #gallery-category-grid > div i { margin-bottom: 5px; font-size: 16px; }
  #gallery-category-grid > div > div:last-child { font-size: 10px; line-height: 1.35; }
  #gallery-category-grid > div > div:last-child + div { font-size: 9px; }
  #article-grid > article { padding: 11px !important; }
  #article-grid > article h4 { font-size: 12px; line-height: 1.4; }
  #article-grid > article p { font-size: 10px; line-height: 1.45; }
  #faq-container > div { padding: 11px !important; }
  #faq-container > div h3 { margin-bottom: 8px; font-size: 12px; }
  #faq-container details { border-radius: 10px; }
  #faq-container summary { padding: 9px !important; font-size: 11px !important; line-height: 1.4; }
  #faq-container details > div { padding: 8px 9px 10px !important; font-size: 10px !important; }
  #contact-socials > a { min-width: 0; padding: 9px !important; gap: 8px; }
  #contact-socials > a > div:first-child { width: 30px; height: 30px; flex: 0 0 30px; }
  .contact-action-grid > div { min-width: 0; padding: 11px !important; border-radius: 14px !important; }
  #article-grid + * { min-width: 0; }
  #beranda + section { padding-top: 34px; padding-bottom: 34px; }
  main > .max-w-6xl > section.hero-bg.rounded-2xl { padding: 18px !important; border-radius: 16px !important; }
  .public-compact-card { box-shadow: 0 3px 10px rgba(15, 23, 42, .04); }

  /* Price items are short side-by-side cards on standard phones. */
  .price-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .price-table tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; padding: 10px; border-radius: 13px; }
  .price-table tbody td:nth-child(1) { display: none; }
  .price-table tbody td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 6px; }
  .price-table tbody td:nth-child(2)::before { content: none; }
  .price-table tbody td:nth-child(2) > div:first-child { font-size: 12px; line-height: 1.35; }
  .price-table tbody td:nth-child(2) > div:nth-child(2) { font-size: 10px; line-height: 1.35; }
  .price-table tbody td:nth-child(3),
  .price-table tbody td:nth-child(4) { font-size: 10px; }
  .price-table tbody td:nth-child(5) > div:first-child { font-size: 12px; }
  .price-table tbody td:nth-child(5) > div:nth-child(2) span { display: inline-block; font-size: 9px; line-height: 1.3; white-space: normal; }
  .price-table tbody td:nth-child(6) a { min-height: 36px; padding: 5px; font-size: 10px; }
}

@media (min-width: 1024px) {
  #price-category-cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 359px) {
  #featured-services-grid,
  #catalog-container .service-items-grid,
  #estimates-grid,
  #price-category-cards,
  #gallery-category-grid,
  #article-grid,
  #faq-container,
  #contact-socials { grid-template-columns: 1fr !important; }
  .price-table tbody { grid-template-columns: 1fr; }
}
