/*
Theme Name: DeteksiBocor
Theme URI: https://deteksibocor.com
Author: Antigravity Team
Author URI: https://deteksibocor.com
Description: Custom high-performance theme for DeteksiBocor.com plumbing & leak detection services in Jabodetabek.
Version: 1.0.0
Text Domain: deteksibocor
*/

:root {
  --navy-deep: #0A2540;
  --blue-main: #0B5FA5;
  --aqua-accent: #2FB6D9;
  --wa-green: #25D366;
  --cta-orange: #FF7A1A;
  --bg-muted: #F4F7FA;
  --white: #FFFFFF;
  --text-dark: #16222B;
  --text-muted: #5A6A7E;
  --border-color: #E2E8F0;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 16px rgba(10, 37, 64, 0.08);
  --shadow-hover: 0 8px 24px rgba(10, 37, 64, 0.12);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-deep);
  line-height: 1.25;
}

h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
}

a {
  color: var(--blue-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-wa {
  background-color: var(--wa-green);
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-primary {
  background-color: var(--blue-main);
  color: var(--white) !important;
}

.btn-primary:hover {
  background-color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-orange {
  background-color: var(--cta-orange);
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.35);
}

.btn-orange:hover {
  background-color: #e56912;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-deep) !important;
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--blue-main);
  color: var(--blue-main) !important;
}

/* HEADER & NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
}

.logo span {
  color: var(--blue-main);
}

.logo svg {
  color: var(--aqua-accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-deep);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-main);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy-deep);
}

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-deep);
  display: block;
  padding: 8px 0;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, #F4F7FA 0%, #FFFFFF 100%);
  padding: 56px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 95, 165, 0.08);
  color: var(--blue-main);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-main);
}

.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

.floating-trust-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

/* TRUST BAR */
.trust-bar {
  background: var(--navy-deep);
  color: var(--white);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(47, 182, 217, 0.18);
  color: var(--aqua-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.trust-text p {
  font-size: 12px;
  color: #A0B2C6;
}

/* SECTION HEADERS */
.section-padding {
  padding: 64px 0;
}

.section-bg-muted {
  background-color: var(--bg-muted);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-main);
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* SERVICE CARDS GRID */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--aqua-accent);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47, 182, 217, 0.12);
  color: var(--blue-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--navy-deep);
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 0;
}

.service-bullets li {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-bullets li svg {
  color: var(--blue-main);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:hover {
  gap: 8px;
}

/* CARA KERJA (3 LANGKAH) */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step-counter;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  border-top: 4px solid var(--blue-main);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: rgba(11, 95, 165, 0.2);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* AREA LAYANAN BADGES */
.area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.area-badge {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.area-badge:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
  transform: translateY(-2px);
}

/* TESTIMONIALS */
.testimoni-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimoni-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimoni-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.testimoni-stars {
  color: #F59E0B;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimoni-card p {
  font-style: italic;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimoni-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 95, 165, 0.1);
  color: var(--blue-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-info h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ACCORDION (FAQ) */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* CLOSING CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0F375E 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  border-radius: var(--radius-card);
  margin: 40px 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: #C0D3E5;
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 32px auto;
}

/* FLOATING WHATSAPP BUTTON */
.wa-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: transform 0.3s ease;
  animation: waPulse 2.4s infinite;
}

.wa-floating-btn:hover {
  transform: scale(1.08);
}

.wa-floating-btn svg {
  width: 32px;
  height: 32px;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-floating-btn {
    animation: none !important;
  }
}

/* FOOTER */
.site-footer {
  background-color: var(--navy-deep);
  color: #C0D3E5;
  padding: 64px 0 24px 0;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #C0D3E5;
  font-size: 14px;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}
