/* Small additions on top of the Tailwind CDN utility classes */

body {
    -webkit-font-smoothing: antialiased;
}

/* Smooth scroll for anchor links (e.g. /services#medical-billing) */
html {
    scroll-behavior: smooth;
}

/* Style native <details>/<summary> FAQ toggles a bit further than Tailwind alone can */
details summary::-webkit-details-marker {
    display: none;
}

/* ===================== Decorative animations ===================== */

/* Slow-floating background shapes used behind the hero */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-18px) translateX(10px); }
}
.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite;
}
.animate-float-slow-delayed {
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Gentle pulse for badges / trust icons */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}
.animate-pulse-soft {
    animation: pulse-soft 2.6s ease-in-out infinite;
}

/* Image zoom-on-hover for photo cards */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s ease;
}
.img-zoom:hover img {
    transform: scale(1.08);
}

/* Fade/slide used as a fallback for elements not covered by AOS */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.7s ease-out both;
}

/* Material-style benefit cards: a soft radial highlight follows hover/focus. */
.material-benefit-card {
    isolation: isolate;
    overflow: hidden;
}
.material-benefit-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: auto -35% -65% auto;
    width: 11rem;
    height: 11rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(44, 93, 166, 0.1), transparent 68%);
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.material-benefit-card:hover::after {
    transform: scale(1.6);
    opacity: 1;
}

/* Consistent Material-style boundaries between homepage sections. */
.section-separator {
    position: relative;
}
.section-separator::before {
    content: '';
    position: absolute;
    z-index: 5;
    top: 0;
    left: 50%;
    width: min(86%, 72rem);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(44, 93, 166, 0.32), rgba(30, 142, 90, 0.25), transparent);
}
.section-separator::after {
    content: '';
    position: absolute;
    z-index: 6;
    top: 0;
    left: 50%;
    width: 3.5rem;
    height: 0.45rem;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-top: 0;
    border-radius: 0 0 9999px 9999px;
    background: linear-gradient(90deg, #2c5da6, #1e8e5a);
    box-shadow: 0 5px 14px rgba(44, 93, 166, 0.2);
    transform: translateX(-50%);
    transition: width 0.4s ease, box-shadow 0.4s ease;
}
.section-separator:hover::after {
    width: 5rem;
    box-shadow: 0 7px 18px rgba(44, 93, 166, 0.28);
}
.section-separator-dark::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), rgba(108, 224, 168, 0.4), transparent);
}
.section-separator-dark::after {
    border-color: rgba(27, 42, 74, 0.95);
    background: linear-gradient(90deg, #ffffff, #85e0b4);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

/* Shared inner-page Material design system. */
.page-hero {
    min-height: 25rem;
    display: flex;
    align-items: center;
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(255,255,255,0.75) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to right, black, transparent 75%);
}
.page-hero img {
    transition: transform 8s ease;
}
.page-hero:hover img {
    transform: scale(1.04);
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    color: #dbeafe;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}
.material-page-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 45%, #f8fafc 100%);
}
.inner-page-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf1fb, #fff 55%, #edfdf5);
}
.inner-page-cta > div {
    position: relative;
    z-index: 1;
}
.inner-page-cta::before {
    content: '';
    position: absolute;
    width: 20rem;
    height: 20rem;
    right: -6rem;
    top: -10rem;
    border-radius: 9999px;
    background: rgba(44,93,166,0.1);
    filter: blur(30px);
}
.inner-page-cta::after {
    content: '';
    position: absolute;
    width: 15rem;
    height: 15rem;
    left: -5rem;
    bottom: -8rem;
    border-radius: 9999px;
    background: rgba(30,142,90,0.1);
    filter: blur(30px);
}
.contact-info-list > li {
    padding: 0.8rem;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    background: #f8fafc;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-info-list > li:hover {
    transform: translateX(0.25rem);
    border-color: rgba(44,93,166,0.2);
    box-shadow: 0 8px 20px rgba(27,42,74,0.08);
}
.contact-info-list > li > span:first-child {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: #eaf1fb;
    color: transparent;
    font-size: 0;
}
.contact-info-list > li > span:first-child::after {
    content: '•';
    color: #2c5da6;
    font-size: 1.5rem;
    line-height: 1;
}
.dark-cta-card p {
    color: #dbeafe !important;
    font-size: 1.05rem;
    line-height: 1.75;
}
.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.consultation-form input:hover,
.consultation-form select:hover,
.consultation-form textarea:hover {
    border-color: rgba(44,93,166,0.35);
    background: #fff;
}
.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(44,93,166,0.1);
}

@media (prefers-reduced-motion: reduce) {
    .material-benefit-card,
    .material-benefit-card *,
    .section-separator::after {
        transition-duration: 0.01ms !important;
    }
}

/* Underline sweep on nav links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #2C5DA6;
    transition: width 0.25s ease;
}
.nav-link:hover::after {
    width: 100%;
}
