/* Custom styles for Seattle Children's Hospital Orthopaedics Clinic */

/* Base font sizing */
html {
    font-size: 16px;
}

/* Ensure all text is readable */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s ease;
}

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

/* Custom selection color */
::selection {
    background-color: #fad0d9;
    color: #380716;
}

/* Geometric decorative patterns */
.geo-pattern {
    background-image: 
        linear-gradient(45deg, rgba(181, 32, 77, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(181, 32, 77, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(181, 32, 77, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(181, 32, 77, 0.03) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #b5204d, #ff4060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle noise texture overlay */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Card shimmer on hover */
.card-shimmer {
    position: relative;
    overflow: hidden;
}
.card-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.card-shimmer:hover::before {
    left: 100%;
}

/* Pill badge */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Pulse ring for CTA elements */
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.pulse-ring {
    animation: pulseRing 2s ease-in-out infinite;
}

/* Counter digit style */
.stat-number {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #ffd5dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm, button { display: none !important; }
    body { color: #000 !important; background: #fff !important; }
    .hero-overlay { background: none !important; }
}
