/*
 Theme Name: Astra Child - Luxury V2
 Description: Astra Child Theme - Luxury V2 — Bali Ground Handling
 Author: BaliDev
 Template: astra
 Version: 2.0.0
 Text Domain: astra-child
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — Single source of truth for all colors
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Brand Colors */
  --brand-navy: #0A1628;
  --brand-navy-light: #111E30;
  --brand-gold: #C5A572;
  --brand-gold-light: #D4B98A;
  --brand-gold-dark: #A88B5C;
  --brand-white: #FAFAF8;
  --brand-white-70: rgba(250,250,248,0.7);
  --brand-white-50: rgba(250,250,248,0.5);
  --brand-dark-bg: #050D1A;
  --brand-card-bg: #111E30;
  --brand-border: rgba(197,165,114,0.2);
  --brand-success: #4CAF50;
  --brand-info: #2196F3;
  --brand-warning: #FF9800;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-hero: clamp(36px, 5vw, 64px);
  --fs-h1: clamp(32px, 4vw, 48px);
  --fs-h2: clamp(26px, 3.5vw, 38px);
  --fs-h3: clamp(20px, 2.5vw, 28px);
  --fs-h4: clamp(18px, 2vw, 22px);
  --fs-body: clamp(15px, 1.6vw, 17px);
  --fs-small: clamp(13px, 1.4vw, 14px);
  --fs-caption: 12px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-section: clamp(60px, 8vw, 120px);

  /* Layout */
  --max-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════ */
body {
  font-family: var(--font-body);
  color: var(--brand-white);
  background: var(--brand-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-white);
  line-height: 1.2;
}
html { scroll-behavior: smooth; }
::selection { background: var(--brand-gold); color: var(--brand-navy); }
a { color: var(--brand-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-gold-light); }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE GRID — DUAL SELECTORS (Bug #1 + #8 prevention)
   Both space and no-space variants for attribute selectors
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .entry-content [style*="grid-template-columns: repeat(3"],
  .entry-content [style*="grid-template-columns:repeat(3"],
  .entry-content [style*="grid-template-columns: repeat(4"],
  .entry-content [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .entry-content [style*="grid-template-columns: repeat(2"],
  .entry-content [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .entry-content [style*="display: flex"][style*="gap"],
  .entry-content [style*="display:flex"][style*="gap"] {
    flex-direction: column !important;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .entry-content [style*="grid-template-columns: repeat(3"],
  .entry-content [style*="grid-template-columns:repeat(3"],
  .entry-content [style*="grid-template-columns: repeat(4"],
  .entry-content [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════════════════════════════ */
.db-section {
  padding: var(--space-section) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}
.db-section-full {
  padding: var(--space-section) 0;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   CARD STYLES
   ═══════════════════════════════════════════════════════════ */
.entry-content [style*="border-radius: 16px"],
.entry-content [style*="border-radius:16px"] {
  overflow: hidden;
  transition: var(--transition);
}
.entry-content [style*="border-radius: 16px"]:hover,
.entry-content [style*="border-radius:16px"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@media (hover: hover) {
  .entry-content [style*="border-radius: 16px"]:hover,
  .entry-content [style*="border-radius:16px"]:hover {
    transform: translateY(-4px);
  }
}

/* ═══════════════════════════════════════════════════════════
   CTA BUTTON
   ═══════════════════════════════════════════════════════════ */
.db-cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--brand-navy) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}
.db-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197,165,114,0.3);
  color: var(--brand-navy) !important;
}

/* Secondary CTA */
.db-cta-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: var(--transition);
  background: transparent;
}
.db-cta-outline:hover {
  background: var(--brand-gold);
  color: var(--brand-navy) !important;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT IMAGE (figure)
   ═══════════════════════════════════════════════════════════ */
figure.db-content-image {
  margin: var(--space-lg) 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}
figure.db-content-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   AEO ATOMIC ANSWER
   ═══════════════════════════════════════════════════════════ */
.aeo-atomic-answer {
  border-left: 4px solid var(--brand-gold);
  padding: var(--space-md) var(--space-md);
  margin: var(--space-lg) 0;
  background: var(--brand-navy-light);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--brand-white-70);
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════ */
.entry-content h3 {
  color: var(--brand-gold);
  font-family: var(--font-heading);
  margin-top: var(--space-lg);
  font-size: var(--fs-h3);
}
.entry-content h2 {
  color: var(--brand-white);
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}
.entry-content p {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--brand-white-70);
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════
   GOLD DIVIDER
   ═══════════════════════════════════════════════════════════ */
.db-gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), transparent);
  margin: var(--space-md) auto;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.db-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.db-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION OVERRIDES (Bug #4 prevention)
   ═══════════════════════════════════════════════════════════ */
.main-header-bar {
  background: var(--brand-navy) !important;
  border-bottom: 1px solid var(--brand-border) !important;
}
.main-header-bar .main-header-menu > .menu-item > a {
  color: var(--brand-white) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.main-header-bar .main-header-menu > .menu-item > a:hover {
  color: var(--brand-gold) !important;
}
.main-header-bar .main-header-menu > .current-menu-item > a {
  color: var(--brand-gold) !important;
}
/* Dropdown */
.main-header-menu .sub-menu {
  background: var(--brand-navy-light) !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--border-radius-sm) !important;
}
.main-header-menu .sub-menu .menu-item a {
  color: var(--brand-white-70) !important;
}
.main-header-menu .sub-menu .menu-item a:hover {
  color: var(--brand-gold) !important;
  background: rgba(197,165,114,0.1) !important;
}
/* Mobile hamburger */
.ast-mobile-menu-buttons .menu-toggle {
  color: var(--brand-white) !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--brand-dark-bg) !important;
  border-top: 1px solid var(--brand-border) !important;
}

/* ═══════════════════════════════════════════════════════════
   ASTRA PAGE BUILDER OVERRIDE
   ═══════════════════════════════════════════════════════════ */
.ast-page-builder-template .entry-content {
  max-width: 100%;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .db-cta-button {
    padding: 14px 32px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
  .entry-content [style*="padding: 48px"],
  .entry-content [style*="padding:48px"] {
    padding: 24px 16px !important;
  }
  .entry-content [style*="padding: 80px"],
  .entry-content [style*="padding:80px"] {
    padding: 40px 16px !important;
  }
  .entry-content [style*="font-size: 48px"],
  .entry-content [style*="font-size:48px"] {
    font-size: 28px !important;
  }
  .entry-content [style*="font-size: 42px"],
  .entry-content [style*="font-size:42px"] {
    font-size: 26px !important;
  }
  .entry-content [style*="font-size: 36px"],
  .entry-content [style*="font-size:36px"] {
    font-size: 24px !important;
  }
  /* Touch targets */
  .entry-content a, .entry-content button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════════════════ */
.db-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  cursor: pointer;
}
.db-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
.db-whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ═══════════════════════════════════════════════════════════
   STAT COUNTERS
   ═══════════════════════════════════════════════════════════ */
.db-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
}
.db-stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--brand-white-70);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}