@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

@import "tailwindcss";

@plugin "@tailwindcss/typography";


/* Light mode (default) */
@theme {
    --color-bg: #f0ece0;
    --color-text: #0d0d0d;
    --color-accent: #c8a96e;
}

/* Dark mode overrides automatically */
@media (prefers-color-scheme: dark) {
    @theme {
        --color-bg: #0d0d0d;
        --color-text: #f0ece0;
        --color-accent: #c8a96e;
    }
}
/* Smooth scrolling for all scrollable elements */
body {
    scroll-behavior: smooth;
}
.playfair {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}


/* ===========================
   APPLE LIQUID GLASS
=========================== */



/* Main Glass *//* =========================
   LIQUID GLASS WRAPPER
========================= */
.liquidGlass-wrapper{
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    transition: all .4s cubic-bezier(.175, .885, .32, 2.2);
}


/* =========================
   GLASS LAYER
========================= */

.liquidGlass-effect {
    position: absolute;
    inset: 0;
    z-index: 0;

    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);

    /* This is what makes background content look "pulled bigger" */
    filter: url(#glass-lens);

    overflow: hidden;
}

/* =========================
   WHITE FROST
========================= */

.liquidGlass-tint {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(255, 255, 255, .28);

    pointer-events: none;
}


/* =========================
   SHINE
========================= */

.liquidGlass-shine {
    position: absolute;
    inset: 0;
    z-index: 2;

    overflow: hidden;
    pointer-events: none;

    border-radius: inherit;

    box-shadow:
            inset 2px 2px 1px rgba(255, 255, 255, .6),
            inset -1px -1px 1px rgba(255, 255, 255, .4);
}




/* Top highlight */

.liquidGlass-shine::before {
    content: "";
    position: absolute;

    top: -25%;
    left: -10%;

    width: 120%;
    height: 55%;

    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .9),
            rgba(255, 255, 255, 0)
    );

    filter: blur(5px);
    opacity: .85;
}

/* Thin border */

.liquidGlass-shine::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .40);
}
/* Underline base */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #616161;
    transition: none; /* No transition by default */
}

/* Active state WITHOUT animation (instant on page load) */
.nav-link.active::after {
    width: 100%;
    transition: width 0.5s ease-in-out;
}

/* Active state WITH animation (after user interaction) */
.nav-link.active.animate::after {
    width: 100%;
    transition: width 0.5s ease-in-out;
}

/* Active link font weight */
.nav-link.active {
    font-weight: 600;
}


.pop-in {
    animation: popIn 0.6s ease-out both;
}
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: slideUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4); /* REQUIRED */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari */
    animation: fadeIn 0.3s ease-out;
}
/* ADDED: Modal content slide up animation */
.modal-content {
    animation: slideUp 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ADDED: Line clamp for description preview */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mobile-nav {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav a.active{
    color: #0a2b61;
    text-decoration: underline;
}
.mobile-nav.open {
    transform: translateX(0);
}
.backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}
.backdrop.open {
    opacity: 0.5;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
/* Hamburger to X */
.hamburger {
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 9px;
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, top 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.filter-btn.active {
    background-color: #114293;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
}

.rotate-icon {
    transition: transform 0.3s;
}

.rotate-icon.active {
    transform: rotate(180deg);
}

.package-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.show {
    display: none;
}

.filter-btn.active {
    background-color: #114293;
    color: white;
}

.sidebar-wrapper {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marquee 30s linear infinite;
}

/* Pause the whole track when hovering any card */
.marquee-track:has(.marquee-card:hover) {
    animation-play-state: paused;
}

/* Subtle lift effect on hovered card */
.marquee-card:hover > div.bg-white {
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    transform: translateY(-12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-card > div.bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-body img {
    display: block;
    margin: 20px auto;
    max-width: 550px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-body {
    line-height: 1.7;
}

.article-body p {
    margin-bottom: 1rem;
}
.article-body a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
