/**
 * ==========================================================================
 * QUO VADIS TRAVEL & TOURS OFFICIAL DESIGN SYSTEM & BOOTSTRAP 5 THEME
 * 
 * BRAND PALETTE ARCHITECTURE:
 * - Primary Colors:
 *     * Horizon Blue:     #1E6091 (Sky & Ocean, Trust, Prestige & Exploration)
 * - Accents:
 *     * Sunset Orange:    #FF5E36 (High-Energy CTAs, Booking Triggers, Action)
 *     * Golden Hour:      #FFB800 (Warm Sunshine, Luxury, Ratings & Highlights)
 * - Neutral:
 *     * Sandy Dunes:      #FBE3B5 (Backgrounds & Balance, Warmth & Cohesion)
 * - Secondary:
 *     * Deep Crimson:     #9E1A1A (Heritage, VIP Packages, Urgency & Badges)
 * ==========================================================================
 */

:root {
    /* ==========================================================================
       QUO VADIS BRAND CORE TOKENS
       ========================================================================== */
    /* Primary: Horizon Blue */
    --qv-horizon-blue:          #1E6091;
    --qv-horizon-blue-rgb:      30, 96, 145;
    --qv-horizon-blue-dark:     #15476D;
    --qv-horizon-blue-light:    #2E79B2;
    --qv-horizon-blue-subtle:   rgba(30, 96, 145, 0.10);

    /* Accents: Sunset Orange & Golden Hour */
    --qv-sunset-orange:         #FF5E36;
    --qv-sunset-orange-rgb:     255, 94, 54;
    --qv-sunset-orange-hover:   #E64923;
    --qv-sunset-orange-subtle:  rgba(255, 94, 54, 0.12);

    --qv-golden-hour:           #FFB800;
    --qv-golden-hour-rgb:       255, 184, 0;
    --qv-golden-hour-hover:     #E5A500;
    --qv-golden-hour-subtle:    rgba(255, 184, 0, 0.15);

    /* Neutral: Sandy Dunes */
    --qv-sandy-dunes:           #FBE3B5;
    --qv-sandy-dunes-rgb:       251, 227, 181;
    --qv-sandy-dunes-light:     #FCEDCE;
    --qv-sandy-dunes-dark:      #F0D39A;
    --qv-sandy-dunes-subtle:    rgba(251, 227, 181, 0.45);

    /* Secondary: Deep Crimson */
    --qv-deep-crimson:          #9E1A1A;
    --qv-deep-crimson-rgb:      158, 26, 26;
    --qv-deep-crimson-dark:     #7D1414;
    --qv-deep-crimson-light:    #BD2828;
    --qv-deep-crimson-subtle:   rgba(158, 26, 26, 0.10);

    /* Framework Aliases (--nga-*) */
    --nga-primary:              var(--qv-horizon-blue);
    --nga-primary-rgb:          var(--qv-horizon-blue-rgb);
    --nga-primary-dark:         var(--qv-horizon-blue-dark);
    --nga-primary-light:        var(--qv-horizon-blue-light);

    --nga-accent:               var(--qv-sunset-orange);
    --nga-accent-rgb:           var(--qv-sunset-orange-rgb);
    --nga-accent-hover:         var(--qv-sunset-orange-hover);
    --nga-accent-subtle:        var(--qv-sunset-orange-subtle);

    --nga-gold:                 var(--qv-golden-hour);
    --nga-gold-rgb:             var(--qv-golden-hour-rgb);
    --nga-gold-hover:           var(--qv-golden-hour-hover);

    --nga-bg:                   #FAFAFA;
    --nga-bg-rgb:               250, 250, 250;

    --nga-warm-secondary:       var(--qv-sandy-dunes);
    --nga-warm-secondary-rgb:   var(--qv-sandy-dunes-rgb);
    --nga-warm-secondary-dark:  var(--qv-sandy-dunes-dark);

    --nga-secondary:            var(--qv-deep-crimson);
    --nga-secondary-rgb:        var(--qv-deep-crimson-rgb);

    --nga-charcoal:             #1A202C;
    --nga-charcoal-rgb:         26, 32, 44;
    --nga-charcoal-muted:       #4A5568;
    --nga-charcoal-light:       #718096;

    /* Elevation & Shadows */
    --nga-shadow-subtle:        0 2px 8px rgba(30, 96, 145, 0.08);
    --nga-shadow-card:          0 8px 24px rgba(30, 96, 145, 0.10);
    --nga-shadow-floating:      0 16px 40px rgba(30, 96, 145, 0.16);
    --qv-shadow-crimson:        0 8px 24px rgba(158, 26, 26, 0.18);

    /* Gradients */
    --nga-gradient-primary:     linear-gradient(135deg, #1E6091 0%, #2E79B2 55%, #15476D 100%);
    --nga-gradient-accent:      linear-gradient(135deg, #FF5E36 0%, #FF8A00 55%, #FFB800 100%);
    --nga-gradient-sunset:      linear-gradient(135deg, #FF5E36 0%, #FFB800 100%);
    --nga-gradient-crimson:     linear-gradient(135deg, #9E1A1A 0%, #BD2828 60%, #7D1414 100%);
    --nga-gradient-sand:        linear-gradient(135deg, #FBE3B5 0%, #FCEDCE 100%);
    --nga-gradient-hero:        linear-gradient(135deg, rgba(30, 96, 145, 0.88) 0%, rgba(30, 96, 145, 0.55) 50%, rgba(26, 32, 44, 0.88) 100%);

    /* ==========================================================================
       BOOTSTRAP 5 CORE ENGINE OVERRIDES
       ========================================================================== */
    --bs-primary:               var(--qv-horizon-blue);
    --bs-primary-rgb:           var(--qv-horizon-blue-rgb);
    --bs-secondary:             var(--qv-sandy-dunes);
    --bs-secondary-rgb:         var(--qv-sandy-dunes-rgb);
    --bs-warning:               var(--qv-golden-hour);
    --bs-warning-rgb:           var(--qv-golden-hour-rgb);
    --bs-danger:                var(--qv-deep-crimson);
    --bs-danger-rgb:            var(--qv-deep-crimson-rgb);

    --bs-body-bg:               var(--nga-bg);
    --bs-body-bg-rgb:           var(--nga-bg-rgb);
    --bs-body-color:            var(--nga-charcoal);
    --bs-body-color-rgb:        var(--nga-charcoal-rgb);

    --bs-link-color:            var(--qv-horizon-blue);
    --bs-link-hover-color:      var(--qv-sunset-orange);

    /* ==========================================================================
       BACKWARD-COMPATIBLE BRAND MAPPINGS
       ========================================================================== */
    --aa-amber:                 var(--qv-sunset-orange);
    --aa-amber-hover:           var(--qv-sunset-orange-hover);
    --aa-orange:                var(--qv-sunset-orange);
    --aa-orange-hover:          var(--qv-sunset-orange-hover);
    --aa-coral:                 var(--qv-sunset-orange);
    --aa-coral-hover:           var(--qv-sunset-orange-hover);

    --aa-cyan:                  var(--qv-horizon-blue);
    --aa-cyan-hover:            var(--qv-horizon-blue-light);
    --aa-sky:                   var(--qv-horizon-blue-light);
    --aa-azure:                 var(--qv-horizon-blue);
    --aa-azure-hover:           var(--qv-horizon-blue-dark);
    --aa-royal:                 var(--qv-horizon-blue);
    --aa-cobalt:                var(--qv-horizon-blue);
    --aa-cobalt-hover:          var(--qv-horizon-blue-dark);
    --aa-navy:                  var(--qv-horizon-blue);
    --aa-navy-dark:             var(--qv-horizon-blue-dark);

    --aa-bg-surface:            var(--nga-bg);
    --aa-bg-card:               #FFFFFF;
    --aa-bg-muted:              var(--qv-sandy-dunes);
    --aa-border-light:          rgba(30, 96, 145, 0.12);
    --aa-border-warm:           rgba(255, 94, 54, 0.25);
    --aa-border-navy:           rgba(30, 96, 145, 0.18);
    --aa-text-primary:          var(--nga-charcoal);
    --aa-text-secondary:        var(--nga-charcoal-muted);
    --aa-text-muted:            var(--nga-charcoal-light);

    --aa-gradient-brand:        var(--nga-gradient-primary);
    --aa-gradient-warm:         var(--nga-gradient-accent);
    --aa-gradient-warm-hover:   linear-gradient(135deg, #E64923 0%, #D43F1A 100%);
    --aa-gradient-cool:         var(--nga-gradient-primary);
    --aa-gradient-cool-hover:   linear-gradient(135deg, #15476D 0%, #0F3450 100%);
    --aa-gradient-dark:         linear-gradient(180deg, #1E6091 0%, #15476D 100%);

    --rg-deep-blue:             var(--qv-horizon-blue);
    --rg-deep-blue-hover:       var(--qv-horizon-blue-dark);
    --rg-deep-blue-light:       var(--qv-horizon-blue-subtle);
    --rg-deep-blue-border:      rgba(30, 96, 145, 0.18);

    --rg-sky-blue:              var(--qv-horizon-blue-light);
    --rg-sky-blue-light:        #F0F6FA;
    --rg-sky-blue-surface:      var(--nga-bg);

    --rg-sun-gold:              var(--qv-golden-hour);
    --rg-sun-gold-hover:        var(--qv-golden-hour-hover);
    --rg-sun-gold-light:        var(--qv-golden-hour-subtle);
    --rg-sun-gold-text:         var(--nga-charcoal);

    --rg-sand-red:              var(--qv-sandy-dunes);
    --rg-sand-red-hover:        var(--qv-sandy-dunes-dark);
    --rg-sand-red-light:        var(--qv-sandy-dunes-subtle);

    --rg-palm-green:            #10B981;
    --rg-palm-green-hover:      #059669;
    --rg-palm-green-light:      rgba(16, 185, 129, 0.14);

    --rg-mist-white:            var(--nga-bg);
    --rg-mist-white-soft:       #F1F3F5;
    --rg-white:                 #FFFFFF;

    --rg-charcoal:              var(--nga-charcoal);
    --rg-charcoal-muted:        var(--nga-charcoal-muted);
    --rg-charcoal-light:        var(--nga-charcoal-light);

    --primary-tan:              var(--qv-sunset-orange);
    --primary-tan-hover:        var(--qv-sunset-orange-hover);
    --brand-tan:                var(--qv-sunset-orange);
    --brand-tan-hover:          var(--qv-sunset-orange-hover);
    --brand-tan-light:          var(--qv-sunset-orange-subtle);
    --brand-dark:               var(--qv-horizon-blue);
    --brand-dark-soft:          var(--qv-horizon-blue-light);
    --brand-cream:              var(--qv-sandy-dunes);
    --bg-offwhite:              var(--nga-bg);
    --text-dark:                var(--nga-charcoal);
    --text-muted:               var(--nga-charcoal-muted);
}

/* Base Body Application */
body {
    background-color: var(--nga-bg);
    color: var(--nga-charcoal);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Primary Headings */
h1, h2, h3, h4, h5, h6, .brand-heading, .brand-font {
    color: var(--qv-horizon-blue);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   BUTTONS (WCAG AA/AAA CONTRAST COMPLIANT)
   ========================================================================== */
/* Primary Action / Booking (Sunset Orange) */
.btn-nga-booking,
.btn-cta-gold,
.btn-sunset {
    background: var(--qv-sunset-orange) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border: 2px solid transparent !important;
    border-radius: 0.65rem !important;
    padding: 0.75rem 1.85rem !important;
    box-shadow: 0 4px 14px rgba(255, 94, 54, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.btn-nga-booking:hover,
.btn-cta-gold:hover,
.btn-sunset:hover {
    background: var(--qv-sunset-orange-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(255, 94, 54, 0.45) !important;
}

.btn-nga-booking:active,
.btn-cta-gold:active,
.btn-sunset:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 94, 54, 0.3) !important;
}

.btn-nga-booking:focus-visible,
.btn-cta-gold:focus-visible,
.btn-sunset:focus-visible {
    outline: 3px solid rgba(255, 94, 54, 0.6) !important;
    outline-offset: 3px !important;
}

/* Golden Hour Button */
.btn-golden {
    background: var(--qv-golden-hour) !important;
    color: var(--nga-charcoal) !important;
    font-weight: 700 !important;
    border: 1px solid var(--qv-golden-hour-hover) !important;
    border-radius: 0.65rem !important;
    padding: 0.75rem 1.75rem !important;
    box-shadow: 0 4px 14px rgba(255, 184, 0, 0.30) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-golden:hover {
    background: var(--qv-golden-hour-hover) !important;
    color: var(--nga-charcoal) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.40) !important;
}

/* Primary Brand Button (Horizon Blue) */
.btn-primary, 
.btn-brand-primary, 
.btn-quovadis-primary, .btn-nomad-primary,
.btn-navy-primary,
.btn-horizon {
    background: var(--qv-horizon-blue) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--qv-horizon-blue) !important;
    font-weight: 600 !important;
    border-radius: 0.65rem !important;
    padding: 0.75rem 1.75rem !important;
    box-shadow: 0 4px 14px rgba(30, 96, 145, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover, 
.btn-brand-primary:hover, 
.btn-quovadis-primary, .btn-nomad-primary:hover,
.btn-navy-primary:hover,
.btn-horizon:hover {
    background: var(--qv-horizon-blue-dark) !important;
    border-color: var(--qv-horizon-blue-dark) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(30, 96, 145, 0.35) !important;
}

/* Secondary Button (Sandy Dunes) */
.btn-secondary,
.btn-secondary-sand, 
.btn-warm-secondary,
.btn-sand {
    background: var(--qv-sandy-dunes) !important;
    color: var(--nga-charcoal) !important;
    border: 1px solid var(--qv-sandy-dunes-dark) !important;
    font-weight: 600 !important;
    border-radius: 0.65rem !important;
    padding: 0.75rem 1.75rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-secondary:hover,
.btn-secondary-sand:hover, 
.btn-warm-secondary:hover,
.btn-sand:hover {
    background: var(--qv-sandy-dunes-dark) !important;
    color: var(--nga-charcoal) !important;
    transform: translateY(-2px) !important;
}

/* Secondary: Deep Crimson Button */
.btn-crimson,
.btn-danger {
    background: var(--qv-deep-crimson) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--qv-deep-crimson) !important;
    font-weight: 600 !important;
    border-radius: 0.65rem !important;
    padding: 0.75rem 1.75rem !important;
    box-shadow: 0 4px 14px rgba(158, 26, 26, 0.28) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-crimson:hover,
.btn-danger:hover {
    background: var(--qv-deep-crimson-dark) !important;
    border-color: var(--qv-deep-crimson-dark) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(158, 26, 26, 0.38) !important;
}

/* Outline Brand Button */
.btn-outline-brand,
.btn-outline-primary {
    background: transparent !important;
    color: var(--qv-horizon-blue) !important;
    border: 2px solid var(--qv-horizon-blue) !important;
    font-weight: 600 !important;
    border-radius: 0.65rem !important;
    transition: all 0.25s ease !important;
}

.btn-outline-brand:hover,
.btn-outline-primary:hover {
    background: var(--qv-horizon-blue) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   COLOR UTILITY CLASSES
   ========================================================================== */
/* Background Utilities */
.bg-horizon-blue   { background-color: var(--qv-horizon-blue) !important; color: #FFFFFF !important; }
.bg-sunset-orange  { background-color: var(--qv-sunset-orange) !important; color: #FFFFFF !important; }
.bg-golden-hour    { background-color: var(--qv-golden-hour) !important; color: var(--nga-charcoal) !important; }
.bg-sandy-dunes    { background-color: var(--qv-sandy-dunes) !important; color: var(--nga-charcoal) !important; }
.bg-deep-crimson   { background-color: var(--qv-deep-crimson) !important; color: #FFFFFF !important; }

/* Text Utilities */
.text-horizon-blue  { color: var(--qv-horizon-blue) !important; }
.text-sunset-orange { color: var(--qv-sunset-orange) !important; }
.text-golden-hour   { color: var(--qv-golden-hour) !important; }
.text-sandy-dunes   { color: #C99A45 !important; }
.text-deep-crimson  { color: var(--qv-deep-crimson) !important; }

/* Border Utilities */
.border-horizon-blue  { border-color: var(--qv-horizon-blue) !important; }
.border-sunset-orange { border-color: var(--qv-sunset-orange) !important; }
.border-golden-hour   { border-color: var(--qv-golden-hour) !important; }
.border-sandy-dunes   { border-color: var(--qv-sandy-dunes) !important; }
.border-deep-crimson  { border-color: var(--qv-deep-crimson) !important; }

/* Badges */
.badge-horizon { background-color: var(--qv-horizon-blue-subtle) !important; color: var(--qv-horizon-blue) !important; border: 1px solid rgba(30, 96, 145, 0.25); }
.badge-sunset  { background-color: var(--qv-sunset-orange-subtle) !important; color: var(--qv-sunset-orange) !important; border: 1px solid rgba(255, 94, 54, 0.25); }
.badge-golden  { background-color: var(--qv-golden-hour-subtle) !important; color: #9A6F00 !important; border: 1px solid rgba(255, 184, 0, 0.35); }
.badge-sand    { background-color: var(--qv-sandy-dunes) !important; color: var(--nga-charcoal) !important; border: 1px solid var(--qv-sandy-dunes-dark); }
.badge-crimson { background-color: var(--qv-deep-crimson-subtle) !important; color: var(--qv-deep-crimson) !important; border: 1px solid rgba(158, 26, 26, 0.25); }

/* Nature & Amenity Badges */
.badge-nature, .amenity-icon-green {
    color: var(--rg-palm-green) !important;
}

/* Atmospheric Section Panels */
.section-sky-panel {
    background-color: var(--nga-bg) !important;
    border-top: 1px solid var(--qv-sandy-dunes);
    border-bottom: 1px solid var(--qv-sandy-dunes);
}

.section-warm-sand {
    background-color: var(--qv-sandy-dunes) !important;
    color: var(--nga-charcoal) !important;
}

/* Interactive Highlights & Active Links */
.active-nav-link, a.active-link {
    color: var(--qv-sunset-orange) !important;
}

/* Luminous Focus Rings */
input:focus, select:focus, textarea:focus {
    border-color: var(--qv-sunset-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 94, 54, 0.25) !important;
}
