/*
Theme Name: Astra Luxury Child V2
Template: astra
Version: 2.0.0
Description: Luxury child theme for Komodo Yacht Charters
Author: Bali Dev Team
Text Domain: astra-luxury-child-v2
*/

/* ============================================
   DESIGN TOKENS - Brand Colors & Typography
   ============================================ */
:root {
  /* Primary Colors */
  --brand-navy: #0A1628;
  --brand-gold: #C5A572;
  --brand-teal: #1A7A7A;
  --brand-white: #FAFAF8;
  --brand-card-dark: #111E30;
  --brand-warm-bg: #FAFAF8;

  /* Extended Palette */
  --brand-gold-light: #D4BC92;
  --brand-gold-dark: #A8894F;
  --brand-navy-light: #1A2D4A;
  --brand-teal-light: #2A9A9A;
  --brand-teal-dark: #0F5C5C;
  --brand-border: #E8E0D0;
  --brand-text: #2C2C2C;
  --brand-text-muted: rgba(250, 250, 248, 0.7);
  --brand-overlay: rgba(10, 22, 40, 0.6);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.16);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.24);
  --shadow-gold: 0 4px 24px rgba(197, 165, 114, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
  font-family: var(--font-body);
  color: var(--brand-text);
  background: var(--brand-warm-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  line-height: 1.2;
}

a {
  color: var(--brand-teal);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-gold);
}

/* ============================================
   UTILITY: Full-Width Sections
   ============================================ */
.entry-content > section,
.entry-content > div[style] {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ============================================
   AEO ATOMIC ANSWER BOX
   ============================================ */
.aeo-atomic-answer {
  background: var(--brand-card-dark);
  border-left: 4px solid var(--brand-gold);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-xl) 0;
  color: var(--brand-white);
  font-size: var(--font-size-md);
  line-height: 1.8;
}

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

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

/* ============================================
   CTA BUTTON
   ============================================ */
.db-cta-button {
  display: inline-block;
  background: var(--brand-gold);
  color: var(--brand-navy) !important;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-gold);
}

.db-cta-button:hover {
  background: var(--brand-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 165, 114, 0.4);
}

/* ============================================
   RESPONSIVE GRID SYSTEM
   ============================================ */
@media (max-width: 768px) {
  .entry-content div[style*="grid-template-columns"],
  .entry-content div[style*="grid-template-columns: repeat"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .entry-content div[style*="grid-template-columns: repeat(3"],
  .entry-content div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================
   FAQ SECTION STYLES
   ============================================ */
.entry-content h3 {
  color: var(--brand-navy);
  font-size: var(--font-size-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
  }

  .db-cta-button {
    display: block;
    text-align: center;
    padding: 14px 24px;
  }
}