/* Custom styles for Brian Watson Real Estate website */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5a2d5c;
}

/* Navigation transitions */
#navbar.scrolled {
    background: rgba(36, 16, 36, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f5c764;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: translateY(3px) rotate(45deg);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: translateY(-3px) rotate(-45deg);
    width: 1.5rem;
}

/* Hero animations */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-badge h1 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-badge p {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-badge a {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #6B3A6E !important;
    box-shadow: 0 0 0 3px rgba(107, 58, 110, 0.1) !important;
}

/* Image hover effects */
.group:hover img {
    transform: scale(1.05);
}

/* Amber accent */
.text-amber-300 {
    color: #f5c764;
}

.text-amber-400 {
    color: #edbe64;
}

.bg-amber-500 {
    background-color: #c48a14;
}

.bg-amber-500:hover {
    background-color: #a6700e;
}

.bg-amber-100 {
    background-color: #faedcc;
}

/* Plum accent */
.text-plum-600 {
    color: #6B3A6E;
}

.bg-plum-600 {
    background-color: #6B3A6E;
}

.bg-plum-600:hover {
    background-color: #5a2d5c;
}

.bg-plum-900 {
    background-color: #3d1e40;
}

.bg-plum-900:hover {
    background-color: #241024;
}

/* Selection color */
::selection {
    background: #6B3A6E;
    color: #fff;
}

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

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .hero-scroll {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
