/* ===== Base & Utilities ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #6ee7b7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ===== Primary Button ===== */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

/* ===== Nav ===== */
.nav-link {
    position: relative;
}

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

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

/* ===== Navbar Background ===== */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(6, 79, 70, 0.08);
}

.nav-scrolled .nav-link {
    color: rgba(6, 78, 59, 0.7) !important;
}

.nav-scrolled .nav-link:hover {
    color: #059669 !important;
}

.nav-scrolled .font-serif {
    color: #064e3b !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #059669;
    transform: scale(1.05);
}

/* ===== Cabin Cards ===== */
.cabin-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabin-card:hover {
    transform: translateY(-8px);
}

.cabin-card:hover .shadow-md {
    box-shadow: 0 20px 60px rgba(6, 79, 70, 0.15);
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card:hover .w-16 {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Fade In Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

/* ===== Selection ===== */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }

    .btn-primary {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
