/* ===== Custom Styles for Just Call Jackie ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #fff;
}

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

/* Navbar */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(4, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

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

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

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    color: rgba(212, 160, 23, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* Form inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(212, 160, 23, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2) !important;
}

/* Select dropdown */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4a017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Neighborhood cards */
.neighborhood-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}

.neighborhood-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.neighborhood-card:hover img {
    transform: scale(1.1);
}

.neighborhood-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 10, 20, 0.85) 0%, rgba(4, 10, 20, 0.1) 60%, transparent 100%);
}

/* CTA Section */
.cta-section {
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.gold-shimmer {
    background: linear-gradient(90deg, #d4a017 0%, #f8c54e 25%, #d4a017 50%, #f8c54e 75%, #d4a017 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA button */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212, 160, 23, 0);
    }
}

.btn-pulse {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn-pulse {
        animation: none;
    }
    .neighborhood-card img {
        transition: none;
    }
    .neighborhood-card:hover img {
        transform: none;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    #navbar {
        background-color: transparent;
    }

    #navbar.scrolled {
        background-color: rgba(4, 10, 20, 0.95);
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
