/* ===== Custom Styles for Westshore Realty ===== */

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

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

/* ===== Navbar ===== */
.nav-logo-text {
    color: #ffffff;
}

.navbar-scrolled .nav-logo-text {
    color: #102a43;
}

.navbar-scrolled .nav-link {
    color: #486581;
}

.navbar-scrolled .nav-link:hover {
    color: #102a43;
}

/* ===== Gold Button ===== */
.btn-gold {
    background: linear-gradient(135deg, #f0b844 0%, #e5a02c 50%, #d4891e 100%);
    color: #102a43;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f5cc6a 0%, #f0b844 50%, #e5a02c 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px rgba(229, 160, 44, 0.4);
}

.btn-gold:active {
    transform: translateY(0);
}

/* ===== Card Hover ===== */
.card-hover {
    transition: transform 0.3s ease;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Hero Animations ===== */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.45s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(8px) translateX(-50%);
    }
    60% {
        transform: translateY(4px) translateX(-50%);
    }
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    transition: all 0.2s ease;
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* ===== Focus States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f0b844;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Form Inputs ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(240, 184, 68, 0.2);
}

/* ===== Selection ===== */
::selection {
    background-color: #f0b844;
    color: #102a43;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* ===== Large Screens ===== */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 72rem;
    }
}
