/*
 Theme Name: Astra Luxury Child V2
 Theme URI: https://baliluxuryspa.com
 Description: Premium luxury child theme for Bali Luxury Spa — $10M standard. Built with wp-zero-bug-workflow.
 Author: Bali Luxury Spa | Juara Holding Group
 Author URI: https://baliluxuryspa.com
 Template: astra
 Version: 2.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: astra-luxury-child-v2
*/

/* ================================================
   DESIGN TOKENS — Single Source of Truth
   ================================================ */
:root {
  /* Brand Colors */
  --brand-navy: #1B2A4A;
  --brand-gold: #C8A96E;
  --brand-cream: #FAF6F0;
  --brand-white: #FFFFFF;
  --brand-dark: #0D1B2A;
  --brand-accent: #D4AF37;
  --brand-teal: #2A7B88;
  --card-dark: #111E30;
  
  /* Functional Colors */
  --text-primary: #1B2A4A;
  --text-secondary: rgba(27, 42, 74, 0.7);
  --text-light: #FAFAF8;
  --text-light-secondary: rgba(250, 250, 248, 0.7);
  --border-light: rgba(200, 169, 110, 0.2);
  --border-gold: rgba(200, 169, 110, 0.4);
  
  /* Spacing Scale (8px base) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  --space-section: 5rem; /* 80px — consistent section spacing */
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 20px rgba(200,169,110,0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
  --transition-bounce: 0.5s cubic-bezier(0.34,1.56,0.64,1);
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
}

/* ================================================
   BASE TYPOGRAPHY
   ================================================ */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); margin-top: var(--space-2xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p { margin-bottom: var(--space-sm); }

a {
  color: var(--brand-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--brand-accent); }

/* ================================================
   RESPONSIVE GRID SYSTEM
   Dual attribute selectors: data-grid AND inline style
   ================================================ */

/* 3-column grid */
[data-grid="3"],
.db-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* 2-column grid */
[data-grid="2"],
.db-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* 4-column grid */
[data-grid="4"],
.db-grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Inline style grid support (REST API content) */
[style*="grid-template-columns: repeat(3"] {
  gap: var(--space-md) !important;
}
[style*="grid-template-columns: repeat(2"] {
  gap: var(--space-md) !important;
}
[style*="grid-template-columns: repeat(4"] {
  gap: var(--space-md) !important;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  [data-grid="4"], .db-grid-4,
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  [data-grid="3"], .db-grid-3,
  [data-grid="4"], .db-grid-4,
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

@media (max-width: 480px) {
  [data-grid="2"], .db-grid-2,
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================
   COMPONENT: CARDS
   ================================================ */
.db-card,
[style*="background: #111E30"][style*="border-radius"],
[style*="background:#111E30"][style*="border-radius"],
[style*="background: var(--card-dark)"][style*="border-radius"] {
  background: var(--card-dark) !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--space-md) !important;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.db-card:hover,
[style*="background: #111E30"][style*="border-radius"]:hover,
[style*="background:#111E30"][style*="border-radius"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.db-card h3,
[style*="background: #111E30"] h3,
[style*="background:#111E30"] h3 {
  color: var(--text-light) !important;
  font-family: var(--font-heading) !important;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.db-card p,
[style*="background: #111E30"] p,
[style*="background:#111E30"] p {
  color: var(--text-light-secondary) !important;
  line-height: var(--line-height-normal);
}

/* Light card variant */
.db-card-light {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.db-card-light:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--brand-gold);
}

/* ================================================
   COMPONENT: BUTTONS
   ================================================ */
.db-cta-button,
a.db-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-accent));
  color: var(--brand-white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  min-height: 48px;
  line-height: 1.4;
}

.db-cta-button:hover,
a.db-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--brand-white) !important;
  filter: brightness(1.1);
}

.db-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--brand-gold) !important;
  border: 2px solid var(--brand-gold);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: all var(--transition-base);
  min-height: 48px;
}
.db-cta-outline:hover {
  background: var(--brand-gold);
  color: var(--brand-white) !important;
}

/* ================================================
   COMPONENT: HERO SECTION
   ================================================ */
.db-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-navy) 100%);
}

.db-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--brand-cream));
  pointer-events: none;
}

.db-hero h1 {
  color: var(--text-light);
  font-size: var(--font-size-5xl);
  max-width: 900px;
  margin: 0 auto var(--space-md);
}

.db-hero p {
  color: var(--text-light-secondary);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

@media (max-width: 768px) {
  .db-hero { min-height: 70vh; padding: var(--space-xl) var(--space-sm); }
  .db-hero h1 { font-size: var(--font-size-3xl); }
}

/* ================================================
   COMPONENT: SECTIONS
   ================================================ */
section.db-section,
.entry-content > section {
  padding: var(--space-section) var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.db-section-dark {
  background: var(--brand-dark);
  color: var(--text-light);
}
.db-section-dark h2, .db-section-dark h3 {
  color: var(--text-light);
}
.db-section-dark p {
  color: var(--text-light-secondary);
}

.db-section-cream {
  background: var(--brand-cream);
}

.db-section-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Section title styling */
.db-section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.db-section-title h2 {
  margin-bottom: var(--space-xs);
}
.db-section-title p {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* Gold accent line */
.db-gold-line {
  width: 60px;
  height: 3px;
  background: var(--brand-gold);
  margin: var(--space-sm) auto var(--space-md);
  border-radius: var(--radius-full);
}

/* ================================================
   COMPONENT: CONTENT IMAGES
   ================================================ */
figure.db-content-image {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

figure.db-content-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

figure.db-content-image figcaption {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: center;
  background: var(--brand-cream);
}

/* ================================================
   COMPONENT: AEO ATOMIC ANSWER
   ================================================ */
.aeo-atomic-answer {
  border-left: 4px solid var(--brand-gold);
  background: var(--brand-cream);
  padding: var(--space-md);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-lg) 0;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

/* ================================================
   COMPONENT: FAQ SECTION
   ================================================ */
.db-faq h3,
.entry-content h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--brand-navy);
  margin-top: var(--space-lg);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-light);
}

.db-faq h3 + p,
.db-faq p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ================================================
   COMPONENT: PRICING TABLE
   ================================================ */
.db-price-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: var(--font-size-sm);
}

.db-price-table th {
  background: var(--brand-navy);
  color: var(--text-light);
  font-family: var(--font-heading);
  padding: var(--space-sm);
  text-align: left;
  font-weight: 500;
}

.db-price-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.db-price-table tr:hover td {
  background: var(--brand-cream);
}

.db-price-table .price {
  color: var(--brand-gold);
  font-weight: 600;
  font-size: var(--font-size-base);
}

@media (max-width: 768px) {
  .db-price-table { font-size: var(--font-size-xs); }
  .db-price-table th, .db-price-table td { padding: var(--space-xs); }
}

/* ================================================
   COMPONENT: TRUST SIGNALS / STATS
   ================================================ */
.db-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
}

.db-stat-item {
  text-align: center;
  min-width: 120px;
}

.db-stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
}

.db-stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================================
   COMPONENT: TESTIMONIALS
   ================================================ */
.db-testimonial {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  position: relative;
}

.db-testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--brand-gold);
  opacity: 0.3;
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  line-height: 1;
}

.db-testimonial p {
  font-style: italic;
  color: var(--text-secondary);
  padding-left: var(--space-lg);
}

.db-testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: var(--space-sm);
  padding-left: var(--space-lg);
}

/* ================================================
   COMPONENT: FOOTER
   ================================================ */
.db-footer-custom {
  background: var(--brand-dark);
  color: var(--text-light-secondary);
  padding: var(--space-3xl) var(--space-sm) var(--space-lg);
}

.db-footer-custom h4 {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.db-footer-custom a {
  color: var(--text-light-secondary);
  transition: color var(--transition-fast);
}

.db-footer-custom a:hover {
  color: var(--brand-gold);
}

.db-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--font-size-sm);
}

/* ================================================
   COMPONENT: WhatsApp CTA Bar
   ================================================ */
.db-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition-base);
  text-decoration: none !important;
}
.db-wa-float:hover {
  transform: scale(1.1);
}
.db-wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ================================================
   ANIMATIONS — Scroll Reveal
   ================================================ */
.db-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.db-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.db-animate-delay-1 { transition-delay: 0.1s; }
.db-animate-delay-2 { transition-delay: 0.2s; }
.db-animate-delay-3 { transition-delay: 0.3s; }

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--brand-gold); }
.text-navy { color: var(--brand-navy); }
.bg-cream { background: var(--brand-cream); }
.bg-dark { background: var(--brand-dark); }
.bg-navy { background: var(--brand-navy); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.py-section { padding-top: var(--space-section); padding-bottom: var(--space-section); }

/* ================================================
   ASTRA OVERRIDES
   ================================================ */
.ast-container { max-width: var(--max-width-wide); }
.site-content .ast-container { max-width: var(--max-width); }

/* Full-width page builder layout */
.ast-page-builder-template .site-content > .ast-container {
  max-width: 100%;
  padding: 0;
}

.ast-page-builder-template .entry-content {
  padding: 0;
}

/* Hide default Astra elements on page-builder pages */
.ast-page-builder-template .entry-header,
.ast-page-builder-template .ast-breadcrumbs-wrapper {
  display: none;
}

/* Navigation improvements */
.main-header-menu .menu-link {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .db-wa-float, .db-hero::after, nav { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
