/* Custom styles for Red Hill Mobile Home Park */

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

/* Typography */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #fefdf8;
    color: #14532d;
    line-height: 1.6;
}

/* Serif font for headings */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Custom gradient for hero */
.hero-gradient {
    background: linear-gradient(135deg, #14532d 0%, #166534 30%, #15803d 60%, #22c55e 100%);
}

/* Text shadow for hero */
.text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 83, 45, 0.15);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #166534, #15803d);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14532d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(20, 83, 45, 0.3);
}

/* Secondary button */
.btn-secondary {
    border: 2px solid #166534;
    color: #166534;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #166534;
    color: #fefdf8;
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

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

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

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

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Form styling */
input,
textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}
