/* Custom styles for J Wayne Phillips, MD website */

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1826;
}
::-webkit-scrollbar-thumb {
    background: #253a5a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #324c78;
}

/* Selection color */
::selection {
    background: rgba(212, 154, 46, 0.3);
    color: #f0f3f9;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Gold shimmer on hover for buttons */
.bg-gold-500 {
    position: relative;
    overflow: hidden;
}

.bg-gold-500::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.bg-gold-500:hover::after {
    left: 100%;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

#mobileMenu.hidden {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(9, 15, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 58, 90, 0.5);
}

/* Card hover glow */
.group:hover .group-hover\:text-gold-300 {
    color: #edc86d;
}

/* Image placeholder fallback */
img {
    image-rendering: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d49a2e;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Service card subtle gradient on hover */
.group:hover {
    border-color: rgba(212, 154, 46, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(212, 154, 46, 0.05);
}

/* Map container */
iframe {
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .max-w-6xl {
        max-width: 72rem;
    }
}
