/* ===================================
   Darrin's Place — Custom Styles
   Premium Dark Luxury Medical Site
   =================================== */

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #fdf6e3;
}

/* Pulse Animation for Hero */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Scroll Reveal Base — Progressive Enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-pulse-slow {
        animation: none;
        opacity: 0.5;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scroll State */
nav.scrolled {
    background-color: rgba(3, 26, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

/* Input Autofill Styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a1f1e inset !important;
    -webkit-text-fill-color: #fdf6e3 !important;
    caret-color: #fdf6e3;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #031a19;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #059669, #d4a853);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #10b981, #e8c876);
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Button Hover Glow */
button:hover,
a:hover {
    cursor: pointer;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(135deg, #042f2e, #064e3b);
    min-height: 100px;
}

/* Gold Text Gradient Utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #e8c876, #d4a853, #b8923f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Shimmer on Hover */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.15;
    }
}
