/* Short Mountain Rentals — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Selection Color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #f5f0e8;
}

/* Scroll Reveal Animations */
.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.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
    background: #1a8a5e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}
#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}
#mobile-menu-btn.active #menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

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

/* Property card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gold shimmer on hover for buttons */
button, a {
    position: relative;
}

/* Form select arrow override */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a84c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Image loading placeholder */
img {
    background-color: #111a16;
}

/* Subtle pattern overlay for dark sections */
.bg-sm-dark::before,
.bg-sm-dark-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(13, 92, 63, 0.06) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.bg-sm-dark::before {
    position: absolute;
}

/* Print styles */
@media print {
    nav, .reveal, #contact-form, #form-success {
        display: none;
    }
    body {
        background: white;
        color: #333;
    }
}
