/* Go Pediatric Orthopedic — Custom Styles */

/* Base resets and utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: #c42a48;
    color: #fef6f7;
}

/* Smooth image rendering */
img {
    -webkit-font-smoothing: antialiased;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c42a48;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    vertical-align: middle;
}

/* Reduce motion preference */
@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;
    }
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-burgundy-700 {
        background-color: ButtonText;
    }
    
    .text-burgundy-700 {
        color: ButtonText;
    }
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-1px);
}

.group {
    transition: transform 0.3s ease;
}

/* Ensure navbar doesn't overlap content */
#hero {
    padding-top: 0;
}

/* Ensure anchor links account for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menuBtn.active #menuLine1 {
    transform: translateY(5px) rotate(45deg);
}

#menuBtn.active #menuLine2 {
    opacity: 0;
}

#menuBtn.active #menuLine3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 6px;
}

/* Service card number styling */
section#conditions .group:hover span:first-child {
    color: #c42a48;
    transition: color 0.3s ease;
}

/* Map container */
iframe {
    border-radius: 0 0 1rem 1rem;
}
