/* ============================================
   Oakley Terrace Apts — Custom Styles
   Classic & Elegant · Deep Navy + Warm Gold
   ============================================ */

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #15202f;
}
::-webkit-scrollbar-thumb {
    background: #c88f1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dfaa2e;
}

/* ---- Selection ---- */
::selection {
    background: #c88f1a;
    color: #15202f;
}

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

/* ---- Base Typography ---- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Navbar Transition ---- */
#navbar.scrolled {
    background: rgba(12, 19, 28, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Nav Link Hover Effect ---- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c88f1a;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ---- Mobile Menu Transition ---- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
    max-height: 500px;
}

/* ---- Mobile Link Transition ---- */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ---- Hero Scroll Indicator ---- */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.animate-bounce {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ---- Gold Shimmer on Cards ---- */
.group:hover .bg-gold-50 {
    background: #c88f1a !important;
}

/* ---- Form Select Arrow ---- */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ---- Image Hover Zoom ---- */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Button Ripple Effect (subtle) ---- */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Loading State ---- */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ---- Print Styles ---- */
@media print {
    #navbar, #mobile-menu, .reveal { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
