/* Custom styles for David P. Sheldon, DPM website */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F7EFE8;
}
::-webkit-scrollbar-thumb {
    background: #D4B8A0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C05838;
}

/* Selection color */
::selection {
    background: #C05838;
    color: #FDF8F5;
}

/* Image lazy loading fade */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.6s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Subtle hover lift for service cards */
.group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #FDF8F5 inset !important;
    -webkit-text-fill-color: #2C2420 !important;
}

/* Focus ring for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #C05838;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Prevent content flash before JS runs */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}
