/* ============================================================
   TRAVEL TIME GLOBAL — MERIDIAN HERITAGE DESIGN SYSTEM
   2026/2027 Luxury Theme for Umrah Travel & Sacred Sanctuaries
   Brand Colors: Deep Teal #0A4D5C, Haramain Gold #D4A853, Warm Paper #F8F7F4, Action Coral #E8533F
   ============================================================ */

/* --- 1. CSS CUSTOM PROPERTIES --- */
:root {
    /* Meridian Heritage Core Palette */
    --bg-primary: #F8F7F4;       /* Warm Paper Canvas */
    --bg-secondary: #0A4D5C;     /* Primary Brand Teal */
    --bg-dark: #062F38;          /* Deep Teal 900 */
    --bg-sanctuary: #1B2B30;     /* Dark Sanctuary / Footer */
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F1EFEA;
    --bg-surface-dark: #132227;

    --text-primary: #1A2B32;     /* Charcoal for Light Canvas */
    --text-secondary: #5E7680;   /* Muted Teal-Slate */
    --text-muted: #94A3B8;
    --text-on-dark: #F8F7F4;
    --text-accent: #0A4D5C;

    --gold: #D4A853;             /* Haramain Burnished Gold */
    --gold-light: #F5E6C8;       /* Warm Ivory Tint */
    --gold-hover: #C59B27;
    
    --teal: #0A4D5C;             /* Meridian Primary Teal */
    --teal-dark: #062F38;
    --teal-light: #0E7490;
    --teal-tint: #ECFEFF;
    --teal-border: #CFFAFE;
    
    --coral: #E8533F;            /* Primary Action CTA */
    --coral-hover: #D03E2A;

    --emerald: #16A34A;
    --emerald-light: #22C55E;
    --emerald-glow: rgba(212, 168, 83, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: #E2E8F0;
    --glass-blur: 16px;

    /* Typography Scale */
    --text-hero: clamp(2.5rem, 6vw, 4.75rem);
    --text-section: clamp(1.75rem, 4vw, 3rem);
    --text-card-title: clamp(1.1rem, 2vw, 1.35rem);
    --text-body: clamp(0.9rem, 1.5vw, 1.05rem);
    --text-small: clamp(0.75rem, 1.2vw, 0.875rem);

    /* Spacing */
    --section-py: clamp(3.5rem, 8vw, 6.5rem);
    --container-max: 1280px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
}

/* --- 2. BASE RESETS --- */
body.celestial {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

body.celestial ::selection {
    background: var(--gold-light);
    color: var(--bg-dark);
}

/* --- 3. AMBIENT MESH BACKGROUND --- */
.ambient-mesh {
    position: relative;
}

.ambient-mesh::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(10, 77, 92, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

.ambient-mesh::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: 0;
}

.ambient-blob-teal {
    position: fixed;
    top: 25%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

/* Dot grid overlay */
.dot-grid-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(rgba(10, 77, 92, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* --- 4. CARD SYSTEM --- */
.glass-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(10, 77, 92, 0.04);
    transition: all var(--duration) var(--ease-smooth);
}

.glass-card:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 16px 40px rgba(10, 77, 92, 0.08);
    transform: translateY(-4px);
}

.glass-card-static {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    box-shadow: 0 2px 10px rgba(10, 77, 92, 0.03);
}

.glass-elevated {
    background: #062F38;
    color: #F8F7F4;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(6, 47, 56, 0.4);
}

/* --- 5. NAVIGATION --- */
.nav-celestial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s var(--ease-smooth);
    padding: 1rem 0;
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #E2E8F0;
}

.nav-celestial.scrolled {
    padding: 0.65rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(10, 77, 92, 0.06);
    border-bottom: 1px solid #CBD5E1;
}

.nav-link-glow {
    color: #1A2B32;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color var(--duration) ease;
    text-decoration: none;
}

.nav-link-glow:hover {
    color: var(--teal);
}

.nav-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #062F38;
    color: #F8F7F4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

.nav-mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-drawer a {
    color: #F8F7F4;
    font-size: 1.35rem;
    font-weight: 700;
    transition: color var(--duration) ease;
}

.nav-mobile-drawer a:hover {
    color: var(--gold);
}

/* --- 6. HERO SYSTEM --- */
.hero-celestial {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #062F38 0%, #0A4D5C 50%, #0E7490 100%);
    color: white;
}

.hero-celestial .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
}

.hero-celestial .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-celestial .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(6, 47, 56, 0.85) 100%);
    z-index: 1;
}

.hero-celestial .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 960px;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #E2E8F0;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* --- 7. TYPOGRAPHY UTILITIES --- */
.text-gold-gradient {
    color: var(--gold);
}

.text-emerald-gradient {
    color: var(--teal);
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: var(--text-section);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-body);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

/* --- 8. BUTTON SYSTEM --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--coral);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
    box-shadow: 0 4px 14px rgba(232, 83, 63, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 83, 63, 0.4);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.875rem;
    border: 1px solid #CBD5E1;
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
    background: #F8F7F4;
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gold);
    color: #062F38;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
    box-shadow: 0 4px 14px rgba(212, 168, 83, 0.35);
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.45);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #16A34A;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #15803D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

/* --- 9. TRUST BADGES --- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A2B32;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(10, 77, 92, 0.04);
}

.trust-badge .badge-icon {
    font-size: 1rem;
}

.tag-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #FDF9EE;
    border: 1px solid rgba(212, 168, 83, 0.4);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8C6512;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-emerald {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #ECFEFF;
    border: 1px solid #CFFAFE;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0A4D5C;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- 10. SECTION PATTERNS --- */
.section-celestial {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

.section-accent {
    background: #F1EFEA;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.section-deep {
    background: #1B2B30;
    color: #F8F7F4;
}

.section-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 0;
    border: none;
}

/* --- 11. PACKAGE CARD ACCENTS --- */
.package-card {
    position: relative;
    overflow: hidden;
}

.package-card .accent-bar {
    height: 4px;
    width: 100%;
    border-radius: 4px 4px 0 0;
}

.accent-amber { background: linear-gradient(to right, #D4A853, #F5E6C8); }
.accent-sky { background: linear-gradient(to right, #0A4D5C, #0E7490); }
.accent-emerald { background: linear-gradient(to right, #E8533F, #D4A853); }

.package-popular {
    border: 2px solid #0A4D5C !important;
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(10, 77, 92, 0.12) !important;
}

@media (max-width: 768px) {
    .package-popular { transform: scale(1); }
}

/* --- 12. STAR RATING --- */
.stars-gold {
    display: flex;
    gap: 2px;
    color: var(--gold);
    font-size: 1rem;
}

/* --- 13. FOOTER --- */
.footer-celestial {
    background: #1B2B30;
    color: #F8F7F4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-celestial .footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url('images/pattern_texture.png');
    background-size: 400px;
    pointer-events: none;
}

/* --- 14. FLOATING WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16A34A;
    color: white;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4), 0 0 0 3px rgba(22, 163, 74, 0.15);
    transition: all var(--duration) var(--ease-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.5);
}

/* --- 15. ANIMATIONS --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fade-up {
    from { opacity: 1; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(212, 168, 83, 0); }
}

@keyframes scroll-hint {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

.animate-float { animation: float-slow 6s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.5s var(--ease-smooth) both; }
.animate-glow { animation: glow-pulse 3s ease-in-out infinite; }
.animate-scroll-hint { animation: scroll-hint 2s ease-in-out infinite; }

/* --- 16. SCROLL REVEAL (Never Locked to Opacity 0) --- */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- 17. RESPONSIVE --- */
@media (max-width: 640px) {
    :root {
        --section-py: 3rem;
    }

    .hero-celestial {
        min-height: 72vh;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .nav-celestial {
        padding: 0.75rem 0;
    }

    .btn-primary, .btn-secondary, .btn-gold, .btn-whatsapp {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
}

/* --- 18. FEATURE CHECK ICON --- */
.check-emerald {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1A2B32;
    font-size: var(--text-small);
}

.check-emerald::before {
    content: '✓';
    color: #16A34A;
    font-weight: 700;
    font-size: 0.9rem;
}
