/* ============================================
   Krystyna Kalata — KW Infinity Real Estate
   Custom Styles
============================================ */

/* ---------- Reset & 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: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b3c2df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da4cf;
}

/* ---------- Selection ---------- */
::selection {
    background: #e5a01e;
    color: #151833;
}

/* ---------- Floating animations (hero cards) ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Navbar scroll state ---------- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(21, 24, 51, 0.08);
}

.navbar-scrolled .font-display,
.navbar-scrolled span {
    color: #151833 !important;
}

.navbar-scrolled a:not(.bg-navy-900):not(.bg-gold-500) {
    color: #2b4061 !important;
}

.navbar-scrolled .bg-navy-900 {
    background: #151833 !important;
}

.navbar-scrolled .bg-gold-500 {
    background: #e5a01e !important;
}

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

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

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

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

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    line-height: 1;
    color: rgba(229, 160, 30, 0.1);
    pointer-events: none;
}

/* ---------- Neighborhood card ---------- */
.neighborhood-card {
    position: relative;
}

/* ---------- Button ripple effect ---------- */
button, a {
    position: relative;
    overflow: visible;
}

/* ---------- Form focus states ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 160, 30, 0.15);
}

/* ---------- Mobile menu animation ---------- */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ---------- Custom gradient text utility ---------- */
.gradient-text {
    background: linear-gradient(135deg, #e5a01e, #f3cc6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Subtle pattern overlay ---------- */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(21, 24, 51, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ---------- Print styles ---------- */
@media print {
    nav, #contactForm, .animate-float, .animate-float-delayed {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
