/*
Theme Name: OrthoMend
Theme URI: https://orthomend.example.com
Author: OrthoMend Team
Author URI: https://orthomend.example.com
Description: A custom WordPress theme for Dr. Arjun Mehta - Joint Replacement & Orthopedic Surgeon. Fully dynamic with ACF.
Version: 1.0.0
License: GPL v2 or later
Text Domain: orthomend
*/

/* ===== Base styles ===== */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #334155; /* slate-700 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== Accessibility / motion ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ROM arc animation (hero signature) ===== */
.rom-arc {
    transform-origin: 210px 210px;
    animation: sweep 3.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes sweep {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-46deg);
    }
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Utility: hide scrollbar ===== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== Heartline divider (decorative) ===== */
.heartline-divider {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24'%3E%3Cpath d='M0 12 H150 L165 2 L180 22 L195 6 L205 18 L215 12 H400' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 200px 12px;
    height: 4px;
}

/* ===== Carousel track ===== */
.carousel-track {
    transition: transform .55s cubic-bezier(.65, 0, .35, 1);
}

/* ===== Focus states ===== */
input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* ===== WordPress specific: align images, captions, etc. ===== */
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* ===== Additional Tailwind overrides / fine-tuning ===== */
/* Ensure images in gallery track are not distorted */
#gallery-track img,
#testimonial-track img {
    flex-shrink: 0;
}

/* Mobile sticky CTA animation */
#mobile-sticky-cta {
    transition: transform 0.3s cubic-bezier(.65, 0, .35, 1);
}

/* ===== Print styles ===== */
@media print {
    #site-header,
    #mobile-sticky-cta,
    #booking-form,
    .heartline-divider {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}