/* ===== Custom Styles for Mk Services, Ltd ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F5F3;
}
::-webkit-scrollbar-thumb {
    background: #6D0027;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4A001B;
}

/* Selection color */
::selection {
    background: #6D0027;
    color: #FDF2F6;
}

/* ===== Animations ===== */

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.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; }

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* Nav link underline animation handled via Tailwind */

/* ===== Navbar scroll state ===== */
.navbar-scrolled {
    background: rgba(253, 242, 246, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(109, 0, 39, 0.08);
}
.navbar-scrolled .nav-link {
    color: #6D0027 !important;
}
.navbar-scrolled .nav-link::after {
    background: #6D0027 !important;
}
.navbar-scrolled .menu-line {
    background: #6D0027 !important;
}

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

/* ===== Hero section ===== */
#hero {
    scroll-margin-top: 0;
}

/* ===== Decorative elements ===== */
.ornament {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #C5A065;
    vertical-align: middle;
}

/* ===== Form styling ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #6D0027;
}

/* ===== Image hover ===== */
img {
    transition: transform 0.6s ease;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none;
    }
}

/* ===== Print styles ===== */
@media print {
    header, #contact .bg-white {
        background: white !important;
        color: black !important;
    }
}
