/* Custom styles for Scotland Homes and Apartments */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #C8A45A;
    color: #0A1628;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.nav-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Hero parallax effect */
#top {
    position: relative;
}

#top img {
    will-change: transform;
}

/* Gold accent line animation */
.w-16.h-px.bg-gold-500 {
    transition: width 0.6s ease;
}

/* Card hover lift */
.bg-white.p-8 {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bg-white.p-8:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    background-color: #fff;
}

/* Map section */
section:has>iframe {
    position: relative;
}

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #C8A45A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4B76E;
}

/* 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;
    }
}
