/**
 * Discovery Air - Premium UI/UX design system
 * ------------------------------------------------------------------
 * Loaded LAST (after style.css / destinations.css / deals.css) so it
 * harmonises the whole site into one consistent, modern travel-brand
 * look. Additive only - no markup changes, no layout rewrites.
 */

:root {
    --da-primary: #0B5ED7;
    --da-primary-dark: #082B5C;
    --da-accent: #FFB020;
    --da-ink: #182033;
    --da-muted: #667085;
    --da-line: #E4EAF2;
    --da-bg-soft: #F5F9FF;
    --da-radius: 14px;
    --da-radius-lg: 20px;
    --da-shadow-sm: 0 2px 10px rgba(8,43,92,.06);
    --da-shadow: 0 10px 30px rgba(8,43,92,.10);
    --da-shadow-lg: 0 18px 44px rgba(8,43,92,.16);
    --da-transition: all .25s ease;
}

/* ---------- Base typography & rhythm ---------- */
html { scroll-behavior: smooth; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.65;
}
h1,h2,h3,h4,h5,h6 { letter-spacing: -0.01em; }
h1 { line-height: 1.15; }
h2 { line-height: 1.2; }
/* paragraphs inherit their container colour (dark on light, white on dark heroes) */
.lead { line-height: 1.6; }
::selection { background: rgba(11,94,215,.16); }
img { max-width: 100%; height: auto; }

/* ---------- Buttons (premium, consistent) ---------- */
.btn {
    font-weight: 600;
    border-radius: 10px;
    transition: var(--da-transition);
    letter-spacing: .01em;
}
.btn:focus-visible { outline: 3px solid rgba(11,94,215,.35); outline-offset: 2px; box-shadow: none; }
.btn-lg { padding: .75rem 1.5rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--da-primary) 0%, #0a52bd 100%);
    border: none;
    box-shadow: 0 6px 16px rgba(11,94,215,.28);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #0a52bd 0%, var(--da-primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11,94,215,.34);
}
.btn-outline-primary {
    border: 2px solid var(--da-primary);
    color: var(--da-primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--da-primary);
    border-color: var(--da-primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-warning {
    box-shadow: 0 6px 16px rgba(255,176,32,.32);
}
.btn-warning:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,176,32,.40); }
.btn-sign-in, .btn-sign-up { border-radius: 999px; }
.btn-sign-up { background: linear-gradient(135deg, var(--da-primary) 0%, #0a52bd 100%); border: none; }

/* ---------- Cards (unified) ---------- */
.card {
    border: 1px solid var(--da-line);
    border-radius: var(--da-radius);
    box-shadow: var(--da-shadow-sm);
    transition: var(--da-transition);
    overflow: hidden;
}
.card.border-0 { border: 1px solid var(--da-line) !important; }
.card.shadow-sm { box-shadow: var(--da-shadow-sm) !important; }
/* gentle lift only for linked/interactive cards */
a > .card:hover,
.card.h-100:hover {
    transform: translateY(-6px);
    box-shadow: var(--da-shadow);
    border-color: #d5e2f5;
}
/* don't lift form/auth cards */
.card:has(form):hover, .auth-wrapper .card:hover { transform: none; box-shadow: var(--da-shadow-sm); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1px solid var(--da-line);
    border-radius: 10px;
    padding: .6rem .85rem;
    transition: var(--da-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--da-primary);
    box-shadow: 0 0 0 .2rem rgba(11,94,215,.18);
}

/* ---------- Links ---------- */
a { transition: color .2s ease; }
a:focus-visible { outline: 3px solid rgba(11,94,215,.35); outline-offset: 2px; border-radius: 4px; }

/* ---------- Badges ---------- */
.badge { letter-spacing: .02em; }

/* ---------- Navbar / dropdown polish ---------- */
.navbar { backdrop-filter: saturate(1.1); }
.navbar-nav .nav-link { border-radius: 8px; }
.navbar-nav .nav-link:hover { background: var(--da-bg-soft); }
.dropdown-menu { animation: daFade .18s ease; }
@keyframes daFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Section eyebrow / heading balance ---------- */
.section-header h2, section > .container > .text-center h2 { letter-spacing: -0.02em; }

/* ---------- Hero legibility helper ---------- */
.service-hero, .da-hero { position: relative; }

/* ---------- Footer polish ---------- */
footer a { transition: color .2s ease; }
footer a:hover { color: var(--da-primary) !important; }

/* ---------- Utilities ---------- */
.da-soft-bg { background: var(--da-bg-soft); }
.object-cover { object-fit: cover; }

/* ---------- Responsive guards (prevent horizontal scroll / clipping) ---------- */
/* overflow-x: clip (not hidden) so the sticky navbar keeps working */
body { overflow-x: clip; }
.container, .container-fluid { max-width: 100%; }
@media (max-width: 575.98px) {
    h1, .display-4 { font-size: 1.9rem !important; }
    h2 { font-size: 1.45rem !important; }
    .btn-lg { padding: .65rem 1.15rem; font-size: .95rem; }
    section[style*="padding: 90px"], section[style*="padding: 80px"] { padding-top: 54px !important; padding-bottom: 54px !important; }
}
@media (max-width: 991.98px) {
    .service-hero h1 { font-size: 2rem !important; }
}


/* Hero / dark-section descriptions stay white for contrast */
.text-white p,
.service-hero p,
.tours-hero p,
.deals-hero p,
.visa-hero-content .subtitle,
.transfers-hero .subtitle,
.activities-hero .hero-subtitle,
.destination-detail-hero .hero-description,
.hero-content p { color: #ffffff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
