/* Custom styles for Tampa Landlord Source */

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

/* Navigation transitions */
.nav-link-text {
    transition: color 0.2s ease;
}

/* Mobile menu */
.mobile-nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Scroll reveal animations */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .section-reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .group:hover {
        transform: none;
    }
    
    .transform-rotate:hover {
        transform: none;
    }
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link-text {
    color: #4a2359 !important;
}

.navbar-scrolled .font-serif.font-bold {
    color: #2e1638 !important;
}

.navbar-scrolled .font-sans.text-xs {
    color: #5B2C6F !important;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #1a0d20;
}

/* Hero stat cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-8px) rotate(var(--rotate, 0deg)); }
}

/* Apply subtle float to stat cards */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 {
        --rotate: 2deg;
        animation: float 4s ease-in-out infinite;
    }
    
    .absolute.top-44.left-0 {
        --rotate: -1deg;
        animation: float 5s ease-in-out infinite 0.5s;
    }
    
    .absolute.bottom-0.right-8 {
        --rotate: 1deg;
        animation: float 4.5s ease-in-out infinite 1s;
    }
    
    .absolute.bottom-20.left-8 {
        --rotate: -3deg;
        animation: float 3.5s ease-in-out infinite 0.3s;
    }
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
