/* Custom styles for Hamilton Chiropractic */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

.geo-circle, .geo-square {
    animation: float 6s ease-in-out infinite;
}

.geo-square {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Button hover effects */
a[href="tel:+13105100024"]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
}

a[href="tel:+13105100024"],
button[type="submit"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile menu link styles */
.mobile-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-link:hover {
    background-color: rgba(212, 82, 33, 0.1);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .geo-circle, .geo-square, .geo-triangle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
