/* Custom styles for Angelica Ridley Realtor */

:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #0f2140;
    --color-gold-500: #c8a45e;
    --color-gold-400: #d4b76a;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Gold accent line */
.gold-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.gold-line::before,
.gold-line::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-500);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Scroll reveal base state — visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply hidden state when JS is enabled and animation is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a45e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

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

::-webkit-scrollbar-track {
    background: var(--color-navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-400);
}

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

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

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .gold-line::before,
    .gold-line::after {
        width: 30px;
    }
}
