/* ===== Custom Styles for Arlene Heck Real Estate ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

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

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Animated state — applied via JS only */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.animated,
    .reveal-left.animated,
    .reveal-right.animated {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left.animated {
        transform: translateX(-30px);
    }
    .reveal-right.animated {
        transform: translateX(30px);
    }

    .reveal-up.animated.is-visible,
    .reveal-left.animated.is-visible,
    .reveal-right.animated.is-visible {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* ===== Navbar ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #c9a84c, #5eead4);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Buttons ===== */
button, a {
    cursor: pointer;
}

/* ===== Cards ===== */
.group:hover .group-hover\:from-gold-500\/30 {
    background: rgba(201, 168, 76, 0.3);
}

/* ===== Form ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.1), transparent);
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::before {
    width: 100%;
}

/* ===== Hero Badge Pulse ===== */
@keyframes pulse-gold {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(201, 168, 76, 0);
    }
}
.animate-pulse {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* ===== Gold Shimmer ===== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ===== Floating Card Animation ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.floating {
    animation: float 4s ease-in-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* ===== Image Optimization ===== */
img {
    max-width: 100%;
    height: auto;
}
