/* ============================================
   Visionary Properties — Custom Styles
   Classic & Elegant Real Estate Theme
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    --plum-700: #5a2e5a;
    --plum-600: #6b3a6b;
    --plum-500: #8c4f8c;
    --plum-100: #e8dce8;
    --amber-500: #d4a017;
    --amber-400: #f5c511;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-800: #292524;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Raleway', system-ui, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--stone-100);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--plum-700);
}

/* ---- Gold Button ---- */
.btn-gold {
    background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 100%);
    color: var(--stone-800);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.45);
}

/* ---- Plum Button ---- */
.btn-plum {
    background: linear-gradient(135deg, var(--plum-600) 0%, var(--plum-700) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 14px rgba(107, 58, 107, 0.3);
}

.btn-plum:hover {
    box-shadow: 0 8px 25px rgba(107, 58, 107, 0.45);
}

/* ---- Outline Light Button ---- */
.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ---- Navigation ---- */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(90, 46, 90, 0.08);
}

.nav-scrolled .nav-link {
    color: var(--stone-800) !important;
}

.nav-scrolled .font-\\[\'Lora\\\'\\] {
    color: var(--plum-700) !important;
}

/* ---- Hero ---- */
.hero {
    position: relative;
}

/* ---- Floating Stat Cards ---- */
@keyframes floatCard {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float-card {
    animation: floatCard 0.8s ease forwards;
}

@keyframes floatGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.service-card:hover .absolute.bottom-4,
.neighborhood-card:hover .absolute.bottom-0 {
    animation: floatGentle 2s ease-in-out infinite;
}

/* ---- Scroll Indicator ---- */
@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ---- Fade In Up Animation ---- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

/* ---- Service Cards ---- */
.service-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ---- Neighborhood Cards ---- */
.neighborhood-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(90, 46, 90, 0.2);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ---- Back to Top ---- */
.back-to-top {
    transition: all var(--transition-medium);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* ---- Mobile Menu Active State ---- */
.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open #bar2 {
    opacity: 0;
}
.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ---- Intersection Observer Animations ---- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Focus Styles ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        transform: scale(1);
    }
    .service-card:hover {
        transform: translateY(-6px);
    }
}

/* ---- Print Styles ---- */
@media print {
    .nav-scrolled,
    .back-to-top,
    .animate-scroll-line {
        display: none !important;
    }

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