/* Custom styles for Rosecrans Fire Department website */

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

/* Service card reveal animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
}

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

.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 24px;
    margin-left: 0;
}

/* Mobile link animation */
.mobile-link {
    opacity: 1;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(253, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Subtle geometric animations */
@keyframes float-1 {
    0%, 100% { transform: rotate(15deg) translateY(0px); }
    50% { transform: rotate(15deg) translateY(-15px); }
}

@keyframes float-2 {
    0%, 100% { transform: rotate(-10deg) translateY(0px); }
    50% { transform: rotate(-10deg) translateY(10px); }
}

@keyframes float-3 {
    0%, 100% { transform: rotate(5deg) translateY(0px); }
    50% { transform: rotate(5deg) translateY(-8px); }
}

.geo-shape-1 {
    animation: float-1 6s ease-in-out infinite;
}

.geo-shape-2 {
    animation: float-2 8s ease-in-out infinite;
}

.geo-shape-3 {
    animation: float-3 7s ease-in-out infinite;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d9ecce;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #1a3310;
    background-color: #fdfdf8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #3d7a28;
    box-shadow: 0 0 0 3px rgba(61, 122, 40, 0.15);
}

.form-input::placeholder {
    color: #82be6a;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    display: none;
    background-color: #d9ecce;
    border: 2px solid #82be6a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Image lazy-load placeholder */
img {
    background-color: #e8e8d8;
}
