/* =====================================================================
   Bali Cleaners — Premium Luxury Design System
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Core Luxury Palette */
  --navy: #0A1C30;
  --navy-light: #152B44;
  --navy-dark: #050E1A;
  
  --gold: #B59664;
  --gold-light: #D4B886;
  --gold-dark: #917548;
  
  --cream: #F4F3EF;
  --cream-dark: #E6E4DC;
  
  --white: #FFFFFF;
  --gray-900: #1a1a1a;
  --gray-600: #555555;
  --gray-400: #888888;
  --gray-200: #e0e0e0;
  
  /* Styling Tokens */
  --radius: 0px; /* Sharp corners for luxury feel */
  --radius-sm: 0px;
  --radius-lg: 0px;
  
  --shadow-sm: 0 4px 15px rgba(10, 28, 48, 0.05);
  --shadow: 0 10px 30px rgba(10, 28, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 28, 48, 0.15);
  
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 .5em;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 600;
}
p { margin: 0 0 1.2em; color: var(--gray-600); font-weight: 300; font-size: 15px; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn-primary, .btn-outline, .btn-wa {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 14px 28px; 
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy);
  color: #fff;
}
.btn-outline { 
  border-color: var(--gold); 
  color: var(--gold); 
  background: transparent; 
}
.btn-outline:hover { 
  background: var(--gold); 
  color: #fff; 
}
.btn-wa { 
  background: #25D366; 
  color: #fff; 
  padding: 10px 20px; 
  border-radius: 999px; /* WhatsApp button keeps roundness */
}
.btn-wa:hover { 
  background: #1EBE5D; 
}
.btn-lg { padding: 16px 36px; font-size: 14px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-block { width: 100%; }

/* ── Header ── */
.site-header {
  position: absolute; /* Overlays on hero initially */
  top: 0; left: 0; right: 0;
  background: transparent;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  padding: 15px 0;
}
.site-header.scrolled {
  position: fixed;
  background: rgba(10, 28, 48, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: var(--shadow);
  border-bottom: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }

/* Logo */
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 24px;
  color: var(--white);
  text-decoration: none;
}
.logo-mark { flex-shrink: 0; }
.logo-mark svg { fill: var(--white); transition: fill var(--transition); }
.logo-text { line-height: 1; letter-spacing: 0.02em; }

.main-nav { display: flex; gap: 35px; }
.main-nav a {
  color: rgba(255,255,255,0.8); 
  font-weight: 400; font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative; 
  padding: 8px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--white); padding: 4px; }

/* Header Scrolled state specific coloring */
.site-header:not(.scrolled) .btn-primary.btn-quote-open {
    background: transparent;
    border: 1px solid var(--white);
}
.site-header:not(.scrolled) .btn-primary.btn-quote-open:hover {
    background: var(--white);
    color: var(--navy);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background-color: var(--navy);
  text-align: center;
  padding-top: 80px; /* Offset for absolute header */
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  z-index: 1;
}
/* In production, replace the background above with a real photo of a luxury villa via inline style in PHP */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 48, 0.65); /* Dark overlay */
  z-index: 2;
}
.hero-inner {
  position: relative; 
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: 40px; font-weight: 400; margin-bottom: 20px; }
.section-head p { font-size: 16px; color: var(--gray-600); }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  position: relative;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ── Trust Bar (Familiarity Section) ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}
.trust-item {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.trust-icon {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1;
}
.trust-item h3 { font-size: 20px; font-family: var(--font-body); font-weight: 500; margin-bottom: 12px; }
.trust-item p { font-size: 14px; margin: 0; }
.trust-stats {
  display: flex;
  justify-content: space-around;
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px;
  margin-top: -40px; /* Overlap effect if placed correctly */
  position: relative;
  z-index: 5;
}
.trust-stat { text-align: center; }
.trust-stat strong { display: block; font-family: var(--font-head); font-size: 48px; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.trust-stat span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-img {
  height: 220px;
  background: var(--gray-200); /* Placeholder */
  background-size: cover;
  background-position: center;
}
.service-content {
  padding: 40px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 32px;
  display: flex; align-items: center;
}
.service-icon-home::after { content: '🛖'; }
.service-icon-droplet::after { content: '💦'; }
.service-icon-sparkles::after { content: '✨'; }
.service-icon-leaf::after { content: '🌿'; }
.service-card h3 { font-size: 24px; font-weight: 400; margin-bottom: 15px; }
.service-card p { margin-bottom: 20px; flex-grow: 1; }
.service-price { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 18px; margin-bottom: 20px; }
.service-card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid var(--gray-200); padding-top: 20px;}
.link-arrow { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: '→'; font-size: 16px; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Steps / How it works ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.step {
  text-align: center; padding: 20px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; 
  border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--font-head); font-size: 24px;
  margin-bottom: 24px;
}
.step h4 { font-size: 20px; font-weight: 400; margin-bottom: 12px; }

/* ══════════════════════════════════════════
   GALLERY SHOWCASE & THUMBNAILS
══════════════════════════════════════════ */
.gallery-preview {
  max-width: 960px;
  margin: 0 auto;
}

.gallery-showcase {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.gallery-item {
  display: none;
  animation: fadeIn 0.4s ease;
}

.gallery-item.active {
  display: block;
}

.gallery-item img.single-img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 24px 16px;
  background: linear-gradient(to top, rgba(10,28,48,0.9), transparent);
  color: #fff; font-size: 1.1rem; font-weight: 500; font-family: var(--font-head);
  margin: 0; pointer-events: none; z-index: 5;
}

/* Slider Specific */
.ba-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  --clip-pos: 50%;
}
.ba-slider img.ba-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after { z-index: 1; }
.ba-before {
  z-index: 2;
  clip-path: polygon(0 0, var(--clip-pos) 0, var(--clip-pos) 100%, 0 100%);
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--clip-pos);
  width: 4px;
  background: var(--gold);
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-handle::before {
  content: '';
  position: absolute;
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: -1;
}
.ba-handle svg { color: #fff; width: 22px; height: 22px; stroke-width: 2.5; }
.ba-handle svg:first-child { margin-right: -4px; }
.ba-handle svg:last-child { margin-left: -4px; }

.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; }

/* Thumbnails Strip */
.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 16px 4px;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.gallery-thumbnails::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.gallery-thumb {
  flex: 0 0 100px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(0);
}

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
  background: var(--cream); 
  padding: 40px;
  border: 1px solid var(--gray-200);
}
.stars { color: var(--gold); margin-bottom: 20px; letter-spacing: 2px; font-size: 14px; }
.testimonial-card p { font-size: 16px; color: var(--navy); line-height: 1.8; font-style: italic; font-family: var(--font-head); margin-bottom: 24px;}
.testimonial-card strong { color: var(--gray-600); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;}

/* ── CTA ── */
.cta-section {
  background: var(--navy);
  text-align: center; 
  padding: 120px 0;
}
.cta-inner h2 { color: var(--white); font-size: 42px; margin-bottom: 20px; }
.cta-inner p { color: rgba(255, 255, 255, 0.7); font-size: 18px; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;}
.cta-section .btn-primary {
  background: var(--gold);
  color: var(--white);
}
.cta-section .btn-primary:hover {
  background: var(--white);
  color: var(--navy);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 400;
  font-size: 24px; color: var(--white);
  margin-bottom: 20px;
}
.footer-logo svg { fill: var(--white); }
.site-footer p { font-size: 14px; line-height: 1.8; }
.site-footer h4 { color: var(--white); font-size: 14px; font-weight: 500; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.6); transition: color var(--transition); }
.site-footer a:hover { color: var(--gold); }
.contact-list a { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 24px;
  font-size: 13px; text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
  transition: transform var(--transition);
}
.wa-float:hover {
  transform: scale(1.05);
}

/* ── Quote Modal ── */
.quote-modal {
  position: fixed; inset: 0;
  background: rgba(10, 28, 48, 0.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.quote-modal.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.quote-modal-inner {
  background: var(--cream); 
  padding: 50px;
  max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.quote-modal-close {
  position: absolute; top: 20px; right: 20px;
  background: transparent; border: none;
  font-size: 28px; cursor: pointer;
  color: var(--navy); line-height: 1;
  transition: color var(--transition);
}
.quote-modal-close:hover { color: var(--gold); }
.quote-modal-inner h3 { font-size: 32px; margin-bottom: 10px; font-weight: 400; }
.quote-modal-sub { margin-bottom: 30px; font-size: 15px; color: var(--gray-600); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 0;
  font-family: var(--font-body); font-size: 15px;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.quote-form-status { text-align: center; font-size: 15px; margin-top: 20px; min-height: 20px; }
.quote-form-status.success { color: #2E7D32; font-weight: 500; }
.quote-form-status.error { color: #C62828; font-weight: 500; }

/* ── Service detail page ── */
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 40px; }
.service-detail-img { width: 100%; height: auto; }
.service-price-lg { font-size: 28px; font-weight: 400; font-family: var(--font-head); color: var(--gold); margin-bottom: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); }
.back-link:hover { color: var(--navy); }
.service-description { margin-bottom: 40px; line-height: 1.8; font-size: 16px; }

/* ── Contact page ── */
.contact-grid { display: flex; justify-content: center; margin-top: 40px; }
.contact-info-card {
  background: var(--white);
  padding: 60px;
  max-width: 600px; width: 100%;
  border: 1px solid var(--gray-200);
  text-align: center;
}
.contact-info-card h4 { margin-top: 30px; margin-bottom: 8px; font-size: 14px; font-weight: 500; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.contact-info-card h4:first-child { margin-top: 0; }
.contact-info-card p { font-size: 16px; color: var(--navy); margin-bottom: 0; }
.contact-info-card a { color: var(--navy); font-weight: 500; }
.contact-info-card a:hover { color: var(--gold); }
.contact-info-card .btn-primary { margin-top: 40px; }


/* ── Responsive ── */
@media (max-width: 992px) {
  .hero h1 { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px;}
  .trust-stats { flex-direction: column; gap: 30px; margin-top: 40px;}
}
@media (max-width: 768px) {
  .hero-inner { padding: 60px 20px; }
  .hero h1 { font-size: 36px; }
  .hero-actions { justify-content: center; }
  
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; padding: 30px;
    gap: 20px; display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-wa { display: none; }
  
  .form-row { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-modal-inner { padding: 30px 20px; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px;}
}
