@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

img, video, iframe { max-width: 100%; }
audio { width: 100%; max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(17, 24, 39, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.mobile-menu-overlay.is-open { opacity: 1; }

.mobile-travel-drawer {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    width: min(90vw, 24rem);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: -18px 0 45px rgba(49, 46, 129, .2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
}

.mobile-travel-drawer.is-open { transform: translateX(0); visibility: visible; }

.mobile-drawer-link {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e0e7ff;
    border-radius: .75rem;
    color: #374151;
    font-size: .875rem;
    font-weight: 600;
    background: linear-gradient(145deg, #fff, #f5f3ff);
}

.mobile-drawer-link i { width: 1.25rem; color: #6366f1; text-align: center; }

.mobile-account-link {
    min-height: 3rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    border-radius: .75rem;
    color: #374151;
    font-size: .875rem;
    font-weight: 600;
    background: #f9fafb;
}

body.menu-open { overflow: hidden; }

/* Keep the primary menu deterministic even if the optional Tailwind CDN is
   delayed or unavailable. Public pages must not depend on admin utility CSS. */
.primary-navigation { display: none; }

@media (min-width: 768px) {
    .primary-navigation { display: flex; }
}

.responsive-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.responsive-table table { min-width: 42rem; }

.hero-gradient {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.8), rgba(109, 40, 217, 0.7), rgba(147, 51, 234, 0.6));
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    text-decoration: none;
}

a.btn-primary {
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Text wrapping fixes */
.text-gray-700 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Feature list item fixes */
.space-y-3 > li {
    min-height: 2.5rem;
    align-items: flex-start;
}

/* Button fixes for anchor tags */
a.bg-gray-100 {
    text-decoration: none;
}

a.bg-gray-100:hover {
    text-decoration: none;
}

.hero-slider {
    position: relative;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.video-bg {
    position: relative;
    overflow: hidden;
}

@media (max-width: 639px) {
    .mobile-stack-actions { flex-direction: column; }
    .mobile-stack-actions > * { width: 100%; }
    .mobile-card-row { align-items: flex-start; flex-wrap: wrap; }
    .mobile-card-row .mobile-row-details { min-width: calc(100% - 6rem); }
    .mobile-card-row .mobile-row-action { width: 100%; }
    .mobile-card-row .mobile-row-action > * { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
