/* === Custom Styles for Quality Appraisal Services === */

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Nav text color transitions */
.nav-text-color {
    color: #5c1436;
    transition: color 0.5s ease;
}

.nav-subtext-color {
    color: #7b1848;
    transition: color 0.5s ease;
}

/* Dark nav state */
header.dark-nav .nav-text-color {
    color: #fdf2f8;
}

header.dark-nav .nav-subtext-color {
    color: #fbcfe8;
}

/* Hero animations - visible by default, enhanced with JS */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll reveal - progressive enhancement */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-up,
    .hero-anim {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal-up.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
    background: #c0267e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9f1b5c;
}

/* Print styles */
@media print {
    header, footer, #back-to-top, .reveal-up {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    section {
        page-break-inside: avoid;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
