/* ==========================================================================
   BALKAN TRAVEL OPS - THEME TOKENS
   Design tokens, color palette, typography scale, spacing
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     SHORTHAND VARIABLES (for itinerary pages)
     ------------------------------------------------------------------------- */
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-dark: #1e40af;
  --accent: #0891b2;
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --surface: #ffffff;
  --border: #e5e7eb;
  
  /* -------------------------------------------------------------------------
     COLOR PALETTE
     ------------------------------------------------------------------------- */
  
  /* Primary - Deep Mediterranean Blue */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1e40af;
  --color-primary-800: #1e3a8a;
  --color-primary-900: #172554;
  
  /* Neutral - Warm Grays */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f8f9fa;
  --color-neutral-100: #f1f3f5;
  --color-neutral-200: #e9ecef;
  --color-neutral-300: #dee2e6;
  --color-neutral-400: #ced4da;
  --color-neutral-500: #adb5bd;
  --color-neutral-600: #868e96;
  --color-neutral-700: #495057;
  --color-neutral-800: #343a40;
  --color-neutral-900: #212529;
  
  /* Accent - Adriatic Teal */
  --color-accent-500: #0891b2;
  --color-accent-600: #0e7490;
  --color-accent-700: #155e75;
  
  /* Semantic */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;
  
  /* -------------------------------------------------------------------------
     SEMANTIC COLOR ASSIGNMENTS
     ------------------------------------------------------------------------- */
  --color-bg-page: #f7fafc;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-bg-hero: #1e40af;
  
  --color-text-primary: #1f2937;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-text-inverse: #ffffff;
  
  --color-border-default: #e5e7eb;
  --color-border-strong: #d1d5db;
  
  --color-link: #2563eb;
  --color-link-hover: #1e40af;
  
  /* -------------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------------- */
  --font-family-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  
  /* Font Sizes - Minor Third Scale (1.2) */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 1.875rem;  /* 30px */
  --font-size-3xl: 2.25rem;   /* 36px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-5xl: 3.75rem;   /* 60px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  
  /* -------------------------------------------------------------------------
     SPACING SCALE (8px base, increased for generous whitespace)
     ------------------------------------------------------------------------- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3rem;      /* 48px */
  --space-9: 4rem;      /* 64px */
  --space-10: 6rem;     /* 96px - increased from 80px */
  --space-11: 7.5rem;   /* 120px - increased from 96px */
  --space-12: 10rem;    /* 160px - increased from 128px */
  
  /* -------------------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------------------- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: var(--space-5);
  
  /* -------------------------------------------------------------------------
     BORDERS & RADII (Increased for softer, modern feel)
     ------------------------------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  
  /* -------------------------------------------------------------------------
     SHADOWS (Blue-tinted for brand cohesion)
     ------------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(30, 64, 175, 0.04);
  --shadow-sm: 0 1px 3px rgba(30, 64, 175, 0.08), 0 1px 2px rgba(30, 64, 175, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(30, 64, 175, 0.08), 0 2px 4px -1px rgba(30, 64, 175, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(30, 64, 175, 0.10), 0 4px 6px -2px rgba(30, 64, 175, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(30, 64, 175, 0.12), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(30, 64, 175, 0.20);
  
  /* Colored hover shadows */
  --shadow-primary: 0 10px 40px -10px rgba(37, 99, 235, 0.35);
  --shadow-accent: 0 10px 40px -10px rgba(8, 145, 178, 0.30);
  
  /* -------------------------------------------------------------------------
     TRANSITIONS
     ------------------------------------------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;
  
  /* Smooth easing curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* -------------------------------------------------------------------------
     Z-INDEX SCALE
     ------------------------------------------------------------------------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  
  /* Hero overlay opacity */
  --hero-overlay-opacity: 0.4;
}

/* ==========================================================================
   DARK THEME (prepared for future use)
   ========================================================================== */
[data-theme="dark"] {
  --color-bg-page: #f7fafc;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #ffffff;
  
  --color-text-primary: #1f2937;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  
  --color-border-default: #e5e7eb;
  --color-border-strong: #d1d5db;
  
  --color-link: #2563eb;
  --color-link-hover: #1e40af;
}



/* ============================================================
   Builder Theme Alignment Overrides
   ============================================================ */
.site-header{
  background: linear-gradient(135deg, var(--color-primary-800) 0%, var(--color-primary-700) 100%);
  border-bottom: none;
  box-shadow: var(--shadow-md);
}
.site-logo{ color: rgba(255,255,255,.95) !important; }
.site-logo:hover{ color:#fff !important; }
.nav-link{ color: rgba(255,255,255,.85) !important; border-radius: var(--radius-md); }
.nav-link:hover{ background: rgba(255,255,255,.12); color:#fff !important; }
.nav-toggle span{ background: #fff !important; }

.nav-cta .btn--primary{
  background:#fff !important;
  color: var(--color-primary-700) !important;
  border-color: transparent !important;
}
.nav-cta .btn--primary:hover{ background: var(--color-neutral-100) !important; }

.hero{
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(30,64,175,.75) 0%, rgba(8,145,178,.55) 100%);
  pointer-events:none;
}
.hero > *{ position: relative; z-index: 1; }

.card--photo .card-image::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(30,64,175,.35) 0%, rgba(8,145,178,.15) 100%);
  pointer-events:none;
}

.btn{
  border-radius: var(--radius-md);
}
.btn--primary{
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
}
.btn--primary:hover{
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
}
.btn--outline{
  border-color: var(--color-primary-600);
  color: var(--color-primary-600);
}
.btn--outline:hover{
  background: var(--color-primary-600);
  color: #fff;
}


/* Mobile typography bump */
@media (max-width: 768px) {
  :root {
    /* Larger base text on mobile for readability (incl. large phones like iPhone Pro Max) */
    --font-size-base: 1.125rem;  /* 18px */
    --font-size-sm: 1rem;       /* 16px */
    --font-size-xs: 0.875rem;   /* 14px */
  }
}

