/* Custom styles for Lakes of Savannah HOA */

/* Base font imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Custom font families */
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.font-cormorant { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-lora { font-family: 'Lora', Georgia, serif; }

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

/* Custom selection color */
::selection {
    background-color: #f59e0b;
    color: #2d1520;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(250, 245, 247, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(82, 45, 62, 0.08);
}

.navbar-scrolled .menu-line {
    background-color: #522d3e !important;
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #f59e0b;
    transition: width 0.3s ease;
}

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

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

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

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

/* Scroll reveal animated state (applied via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover lift for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(82, 45, 62, 0.12);
}

/* Decorative divider */
.divider-amber {
    position: relative;
}

.divider-amber::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, transparent);
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a86b8a;
}

/* Print styles */
@media print {
    nav, #contact-form, button, iframe {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-playfair, .font-cormorant {
        font-family: Georgia, serif;
    }
}
