/* === Custom Styles for Whitaker Properties === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #f4a7b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be2554;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(132, 22, 56, 0.08);
}

.navbar-scrolled .nav-link {
    color: #841638 !important;
}

/* Mobile menu animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal base - always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate on preference for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Button hover effects */
a {
    transition: all 0.3s ease;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #f9cfd9 100%);
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #be2554;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #711633;
}

/* Subtle pattern for sections */
.section-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(244, 167, 184, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(244, 167, 184, 0.06) 0%, transparent 50%);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 167, 184, 0.3);
}

/* Card hover lift */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #841638 0%, #be2554 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative divider */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #f4a7b8 50%, transparent 100%);
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    nav, #contact, .cta-banner, footer {
        display: none;
    }
}
