/* Custom Styles */
:root {
    --gold: #c9a962;
    --navy: #1a1a2e;
    --cream: #f8f6f1;
    --charcoal: #2d2d3a;
}

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

/* Selection styling */
::selection {
    background-color: var(--gold);
    color: var(--navy);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}

/* Form input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(26, 26, 46, 0.5) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section animations */
section {
    animation: fadeIn 0.6s ease-out;
}

/* Image hover effect enhancement */
.group:hover img {
    transform: scale(1.05);
}

/* Button hover lift effect */
a.inline-flex, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.inline-flex:hover, button:hover {
    transform: translateY(-2px);
}

/* Card hover enhancement */
article {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

article:hover {
    transform: translateY(-8px);
}

/* Gradient text support */
.text-gold {
    background: linear-gradient(135deg, #c9a962 0%, #e8d5a3 50%, #c9a962 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav link underline animation */
nav a:not(.bg-gold) {
    position: relative;
}

nav a:not(.bg-gold)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:not(.bg-gold):hover::after {
    width: 100%;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        letter-spacing: -0.02em;
    }
}

/* Loading state for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Staggered animation for grid items */
.grid > article:nth-child(1) { animation-delay: 0.1s; }
.grid > article:nth-child(2) { animation-delay: 0.2s; }
.grid > article:nth-child(3) { animation-delay: 0.3s; }
.grid > article:nth-child(4) { animation-delay: 0.4s; }
.grid > article:nth-child(5) { animation-delay: 0.5s; }
.grid > article:nth-child(6) { animation-delay: 0.6s; }

/* Footer social icons hover */
footer a[aria-label]:hover svg {
    transform: scale(1.15);
}

footer svg {
    transition: transform 0.2s ease;
}

/* Map placeholder gradient animation */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #1a1a2e, #2d2d3a, #1a1a2e, #2d2d3a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
