/* ============================================
   TRAVELNLIV — Global Design System
   Dark Luxury Travel Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ——— CSS VARIABLES ——— */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-1: #131313;
    --dark-2: #181818;
    --dark-3: #222222;
    --dark-4: #2a2a2a;
    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(143, 191, 159, 0.35);

    /* Primary brand accent — sage green from logo */
    --teal: #8FBF9F;
    --teal-dark: #6aa880;
    --teal-light: #b2d8bf;
    --teal-pale: rgba(143, 191, 159, 0.13);
    --teal-glow: rgba(143, 191, 159, 0.28);

    /* Gold kept as alias so existing components still compile */
    --gold: #8FBF9F;
    --gold-light: #b2d8bf;
    --gold-pale: rgba(143, 191, 159, 0.13);
    --gold-glow: rgba(143, 191, 159, 0.28);

    --coral: #f97316;

    --white: #ffffff;
    --off-white: #f0f5f2;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.35);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'DM Sans', 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-gold: 0 0 40px rgba(143, 191, 159, 0.18), 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ——— RESET & BASE ——— */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 3px;
}

/* ——— TYPOGRAPHY ——— */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

.display-xl {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-lg {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.display-md {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
}

.display-sm {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 500;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
}

.text-muted {
    color: var(--text-muted);
}

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

.text-center {
    text-align: center;
}

/* ——— LAYOUT ——— */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 64px 0;
}

/* ——— GLASS / CARD ——— */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ——— BUTTONS ——— */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: var(--black);
    box-shadow: 0 4px 20px rgba(143, 191, 159, 0.38);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(143, 191, 159, 0.55);
    filter: brightness(1.08);
}

.btn-outline {
    border: 1.5px solid var(--border-gold);
    color: var(--teal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--teal-pale);
    border-color: var(--teal);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--black);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* ——— NAVIGATION ——— */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.72) 0%, transparent 100%);
}

#nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.nav-logo span {
    color: var(--teal);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

/* ── NAV DROPDOWN ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown>a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-dropdown:hover>a::after {
    transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--teal-pale);
    color: var(--white) !important;
}

.nav-dropdown-menu a .dd-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-dropdown-menu a .dd-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--teal);
    color: var(--dark-1);
    padding: 2px 7px;
    border-radius: 999px;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 6px;
}


.nav-cta {
    margin-left: 12px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-nav-close:hover {
    color: var(--white);
}

/* Mobile nav — Upcoming Trips accordion */
.mobile-nav-accordion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.mobile-nav-accordion-trigger {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 0;
}

.mobile-nav-accordion-trigger:hover {
    color: var(--teal);
}

.mobile-nav-accordion-trigger .mob-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-nav-accordion-trigger.open .mob-arrow {
    transform: rotate(180deg);
}

.mobile-nav-accordion-items {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;
}

.mobile-nav-accordion-items.open {
    max-height: 300px;
    padding-top: 18px;
}

.mobile-nav-accordion-items a {
    font-size: 1.3rem !important;
    color: var(--text-muted) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-accordion-items a:hover {
    color: var(--teal) !important;
}

/* ——— DIVIDER ——— */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), transparent);
    margin: 16px auto 0;
}

.divider-left {
    margin-left: 0;
}

/* ——— GOLD LINE ——— */
.gold-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--teal);
    vertical-align: middle;
    margin-right: 12px;
}

/* ——— TAGS / BADGES ——— */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-gold {
    background: var(--teal-pale);
    color: var(--teal);
    border: 1px solid var(--border-gold);
}

.tag-teal {
    background: rgba(143, 191, 159, 0.13);
    color: var(--teal);
    border: 1px solid rgba(143, 191, 159, 0.3);
}

/* ——— ANIMATIONS ——— */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(143, 191, 159, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(143, 191, 159, 0.45);
    }
}

.animate-fade-up {
    animation: fadeUp 0.7s ease both;
}

.animate-fade-in {
    animation: fadeIn 0.7s ease both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.35s;
}

.animate-delay-4 {
    animation-delay: 0.5s;
}

/* Scroll-reveal via JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ——— FOOTER ——— */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--teal);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-icon svg {
    display: block;
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-pale);
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--teal);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ——— MAILERLITE SIGNUP MODAL ——— */
#ml-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#ml-modal-overlay.open {
    display: flex;
    animation: fadeIn 0.25s ease both;
}

#ml-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--dark-2);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    animation: fadeUp 0.3s ease both;
}

#ml-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 10;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

#ml-modal-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

#ml-modal-iframe {
    display: block;
    width: 100%;
    height: 560px;
    border: none;
    background: var(--dark-2);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 64px 0;
    }
}