/* === Custom Styles for Coral Gable Fire Dept === */

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

/* Selection color */
::selection {
    background-color: rgba(22, 101, 52, 0.2);
    color: #14532d;
}

/* === Navbar transitions === */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.06);
}

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

/* === Service cards === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(22, 101, 52, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* === Process steps === */
.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -1.5rem;
    width: 1rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.3), transparent);
}

@media (max-width: 1023px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* === Testimonial cards === */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 6rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(22, 101, 52, 0.06);
    pointer-events: none;
}

/* === Select dropdown === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* === Fade-in animations (progressive enhancement) === */
.fade-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

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

/* === Button hover lift === */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Image loading === */
img {
    image-rendering: -webkit-optimize-contrast;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(22, 101, 52, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 101, 52, 0.4);
}
