/*
 * Mobile Polish — Mobile-First Optimizations for Front Page
 *
 * Covers:
 * 1. Mobile spacing & padding
 * 2. Touch targets (WCAG 2.5.5 — minimum 48px)
 * 3. Responsive typography via clamp()
 * 4. Mobile-specific layout (single column, full-width buttons, stacked cards)
 * 5. Scroll-snap for carousels
 * 6. Safe area insets for iPhone notch
 * 7. Performance: reduced animations, disabled parallax on mobile
 * 8. Touch-friendly scroll behavior
 *
 * @package Astra_Child
 * @version 1.0.0
 */

/* ============================================================
   0. SAFE AREA INSETS — iPhone Notch & Home Indicator
   ============================================================ */

/* Apply safe area to body and key containers */
body {
    padding-top: env(safe-area-inset-top, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
}

/* Hero safe area */
.medical-hero {
    padding-top: calc(6rem + env(safe-area-inset-top, 0));
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0));
}

/* Fixed header safe area */
.site-header {
    padding-top: env(safe-area-inset-top, 0);
}

/* Footer safe area */
.site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
}

/* ============================================================
   1. MOBILE SPACING — Reduced padding & margins on small screens
   ============================================================ */

/* --- 1a. Sections — tight padding on mobile --- */
@media (max-width: 768px) {
    .med-section {
        padding: 2rem 0;
    }
}

/* Extra-small screens (320px+) — even tighter */
@media (max-width: 480px) {
    .med-section {
        padding: 1.5rem 0;
    }
}

/* Very small screens (320-374px) — minimum padding */
@media (max-width: 374px) {
    .med-section {
        padding: 1rem 0;
    }
}

/* --- 1b. Container padding on mobile --- */
@media (max-width: 768px) {
    .med-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .med-container {
        padding: 0 0.75rem;
    }
}

/* --- 1c. Reduced margins between elements --- */
@media (max-width: 768px) {
    .med-grid {
        gap: 1rem;
    }

    .med-subtitle {
        margin-bottom: 1.5rem;
        font-size: clamp(0.95rem, 3vw, 1.125rem);
    }

    .med-h2 + .med-subtitle {
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .med-grid {
        gap: 0.75rem;
    }
}

/* --- 1d. Optimized line-height for small screens --- */
@media (max-width: 768px) {
    body {
        line-height: 1.55;
    }

    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .feature-desc,
    .quick-service-desc-sm,
    .hero-service-slogan {
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.5;
    }
}

/* ============================================================
   2. TOUCH TARGETS — WCAG 2.5.5 (minimum 48px for buttons, 44px for links)
   ============================================================ */

/* --- 2a. All buttons — minimum 48px height --- */
.med-btn,
.hero-btn-primary,
.hero-btn-outline {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
    .med-btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* --- 2b. All links — minimum 44px height --- */
a:not(.med-btn):not(.hero-btn-primary):not(.hero-btn-outline) {
    min-height: 44px;
}

/* Ensure inline links have adequate tap area */
a[href]:not(.med-btn):not(.hero-btn-primary):not(.hero-btn-outline):not(.skip-link):not(.hero-service-name-link):not(.doctor-name-link) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* --- 2c. Phone links — large tap targets --- */
.contact-phone-link {
    min-height: 56px;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .contact-phone-link {
        min-height: 56px;
        padding: 0.6rem 0.75rem;
    }
}

/* --- 2d. Messenger buttons — adequate touch targets --- */
.med-messenger-btn {
    min-height: 48px;
    min-width: 48px;
}

@media (max-width: 768px) {
    .med-messenger-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.6rem 1rem;
    }
}

/* --- 2e. Card tap targets — increased touch area --- */
@media (max-width: 768px) {
    .quick-service-card,
    .feature-card,
    .doctor-card,
    .review-card-sm,
    .hero-service-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .quick-service-card,
    .feature-card,
    .hero-service-item {
        padding: 1rem;
    }

    .doctor-card .doctor-info {
        padding: 0.85rem;
    }
}

/* --- 2f. Touch active states (replace hover on touch devices) --- */
@media (hover: none) and (pointer: coarse) {
    .quick-service-card:active,
    .feature-card:active,
    .doctor-card:active,
    .review-card-sm:active,
    .hero-service-item:active,
    .med-card:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }

    .med-btn:active {
        transform: scale(0.97);
        transition-duration: 0.1s;
    }

    .med-messenger-btn:active {
        transform: scale(0.96);
        transition-duration: 0.1s;
    }

    /* Pressed state for interactive links */
    a:active {
        opacity: 0.85;
    }
}

/* --- 2g. Hero service CTA button — touch-friendly --- */
.hero-service-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .hero-service-cta {
        min-height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================================
   3. RESPONSIVE TYPOGRAPHY — Fluid font sizes via clamp()
   ============================================================ */

/* --- 3a. Hero title — smaller on mobile (320px+) --- */
.hero-title-white {
    font-size: clamp(1.5rem, 8vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .hero-title-white {
        font-size: clamp(1.4rem, 9vw, 2rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 374px) {
    .hero-title-white {
        font-size: clamp(1.25rem, 10vw, 1.5rem);
        line-height: 1.2;
    }
}

/* --- 3b. Hero subtitle — smaller on mobile --- */
.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
    }
}

/* --- 3c. Hero description --- */
.hero-description {
    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .hero-description {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: 1.25rem;
    }
}

/* --- 3d. Section headings (H2) — smaller on mobile --- */
h2, .med-h2 {
    font-size: clamp(1.35rem, 5vw, 2.25rem);
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    h2, .med-h2 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 374px) {
    h2, .med-h2 {
        font-size: clamp(1.1rem, 7vw, 1.3rem);
    }
}

/* --- 3e. H3 headings — smaller on mobile --- */
h3, .med-h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}

@media (max-width: 480px) {
    h3, .med-h3 {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

/* --- 3f. H4-H6 — smaller on mobile --- */
h4 {
    font-size: clamp(0.95rem, 3vw, 1.25rem);
}

h5 {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

h6 {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* --- 3g. Body text — readable on small screens --- */
@media (max-width: 480px) {
    body {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    p,
    .feature-desc,
    .quick-service-desc-sm,
    .hero-service-slogan,
    .review-text-sm {
        font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    }
}

/* --- 3h. Card titles --- */
.quick-service-title-sm,
.feature-title,
.hero-service-name {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

@media (max-width: 480px) {
    .quick-service-title-sm,
    .feature-title,
    .hero-service-name {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }
}

/* --- 3i. Price badges — readable on mobile --- */
.hero-service-price-badge {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    padding: 0.3rem 0.6rem;
}

.quick-service-price {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    padding: 0.25rem 0.5rem;
}

/* --- 3j. FAQ items --- */
.faq-summary {
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    padding: 0.85rem 1rem;
}

@media (max-width: 480px) {
    .faq-summary {
        font-size: clamp(0.85rem, 3.2vw, 0.95rem);
        padding: 0.75rem 0.85rem;
    }
}

/* --- 3k. Contact details --- */
.contact-phone-number {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

@media (max-width: 480px) {
    .contact-phone-number {
        font-size: clamp(0.95rem, 5vw, 1.3rem);
    }
}

.contact-phone-label {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
}

/* --- 3l. Hero badge --- */
.hero-badge {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
        padding: 0.4rem 0.75rem;
        margin-bottom: 1rem;
    }
}

/* --- 3m. Hero status panel --- */
.hero-status-panel {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
}

.hero-status-icon {
    font-size: clamp(1.5rem, 6vw, 3rem);
}

.hero-status-text {
    font-size: clamp(1.1rem, 5vw, 1.8rem);
}

@media (max-width: 480px) {
    .hero-status-panel {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .hero-status-text {
        font-size: clamp(1rem, 6vw, 1.4rem);
    }
}

/* --- 3n. Glass panel hero badge inline --- */
.hero-badge-inline {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    padding: 0.5rem 0.85rem;
    margin-top: 50px;
    margin-right: 15px;
}

@media (max-width: 480px) {
    .hero-badge-inline {
        margin-top: 35px;
        margin-right: 10px;
        font-size: clamp(0.65rem, 2.8vw, 0.75rem);
    }
}

/* ============================================================
   4. MOBILE-SPECIFIC LAYOUT
   ============================================================ */

/* --- 4a. Single column layout for all grids on mobile --- */
@media (max-width: 768px) {
    /* Force single column - except mobile-specific grid classes that handle their own layout */
    .med-grid:not(.why-us-mobile-grid):not(.quick-services-mobile-grid):not(.doctors-mobile-grid),
    .med-grid-2,
    .med-grid-3,
    .med-grid-4,
    .med-grid-6 {
        grid-template-columns: 1fr !important;
    }

    /* Hero services — 2 columns on tablet, 1 on mobile */
    .hero-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Hero services — single column on small mobile */
    .hero-services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Why-us features — always single column */
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 4b. Full-width buttons on mobile --- */
@media (max-width: 768px) {
    .hero-buttons-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 100%;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 52px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons-grid {
        gap: 0.5rem;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        min-height: 48px;
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}

/* --- 4c. Stacked cards on mobile — enhanced spacing --- */
@media (max-width: 768px) {
    .med-card,
    .quick-service-card,
    .feature-card,
    .doctor-card,
    .review-card-sm {
        margin-bottom: 0;
    }

    /* Section internal spacing */
    .med-h2 {
        margin-bottom: 0.5rem;
    }

    .med-subtitle {
        margin-bottom: 1.25rem;
    }
}

/* --- 4d. Hero section — compact on mobile --- */
@media (max-width: 768px) {
    .medical-hero {
        min-height: 70vh;
        padding: 5rem 0 2rem;
    }

    .hero-container > * {
        margin-bottom: 1rem;
    }

    .hero-buttons-grid {
        margin-top: 1rem;
    }

    .hero-services-panel {
        padding: 1.25rem;
        margin-top: 1rem;
    }

    .hero-services-title {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .medical-hero {
        min-height: 60vh;
        padding: 4rem 0 1.5rem;
    }

    .hero-services-panel {
        padding: 1rem;
    }

    .hero-services-grid {
        gap: 0.5rem;
    }

    .hero-service-item {
        padding: 0.85rem;
    }

    .hero-service-img {
        height: 80px;
    }

    .hero-service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }
}

/* --- 4e. Hero services — responsive CTA visibility --- */
@media (max-width: 768px) {
    .hero-service-cta {
        opacity: 1;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* --- 4f. Messengers — compact on mobile --- */
@media (max-width: 768px) {
    .messengers-scroll {
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .med-messenger-btn .text {
        display: none;
    }

    .med-messenger-btn {
        width: 48px;
        height: 48px;
        padding: 0.6rem;
        justify-content: center;
    }
}

/* --- 4g. Doctor cards — mobile optimization --- */
@media (max-width: 768px) {
    .doctor-card {
        border-radius: 12px;
    }

    .doctor-image-wrap {
        aspect-ratio: 4/5;
    }

    .doctor-info {
        padding: 1rem;
        gap: 0.25rem;
    }

    .doctor-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .doctor-actions .med-btn {
        width: 100%;
        min-width: unset;
    }

    .doctor-experience-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* --- 4h. Review cards — mobile layout --- */
@media (max-width: 768px) {
    .review-card-sm {
        padding: 1.25rem;
    }

    .review-header-sm {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review-stars-sm {
        font-size: 0.85rem;
    }

    .review-text-sm {
        font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    }
}

/* --- 4i. Feature cards — mobile --- */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .feature-title {
        font-size: clamp(0.9rem, 3vw, 1.05rem);
    }

    .feature-desc {
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    }
}

/* --- 4j. License section — mobile --- */
@media (max-width: 768px) {
    .licenses-grid {
        gap: 1rem;
    }

    .license-image {
        max-width: 100%;
    }

    .license-copy-btn {
        width: 100%;
        font-size: 1rem;
    }
}

/* --- 4k. Quick services grid — mobile (legacy section) --- */
@media (max-width: 768px) {
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quick-services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* --- 4l. Contact details section --- */
@media (max-width: 768px) {
    .contact-details {
        gap: 0.75rem;
    }

    .contact-row {
        padding: 0.5rem 0;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* --- 4m. Hero clinic status — mobile --- */
@media (max-width: 480px) {
    .hero-clinic-title {
        font-size: clamp(1rem, 5vw, 1.5rem);
        margin-bottom: 1rem;
    }

    .hero-clinic-subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem);
        margin-bottom: 1rem;
    }
}

/* ============================================================
   5. SCROLL-SNAP — Improved carousel/scroll behavior
   ============================================================ */

/* Messengers scroll-snap on mobile */
@media (max-width: 768px) {
    .messengers-scroll {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.25rem;
    }

    .messengers-scroll::-webkit-scrollbar {
        display: none;
    }

    .messengers-scroll .med-messenger-btn {
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* Reviews scroll-snap (if horizontal scroll is used) */
@media (max-width: 768px) {
    .reviews-scroll-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .reviews-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .reviews-scroll-container .review-card-sm {
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* ============================================================
   6. PERFORMANCE — Reduced animations & parallax on mobile
   ============================================================ */

/* --- 6a. Reduce/disable heavy animations on mobile --- */
@media (max-width: 768px) {
    /* Disable hero gradient animation (battery saver) */
    .medical-hero {
        animation: none;
        background-size: 100% 100%;
    }

    /* Disable shimmer/pulse overlays */
    .medical-hero::before,
    .medical-hero::after {
        animation: none;
        opacity: 0.4;
    }

    /* Disable floating particles */
    .hero-particles .particle {
        animation: none !important;
        opacity: 0.3;
    }

    /* Disable decorative floating elements */
    .feature-icon {
        animation: none;
    }

    /* Disable section decorative dots animation */
    .med-section::after {
        animation: none;
    }

    /* Disable shimmer on price badges (auto-play) */
    .hero-service-price-badge.tier-budget.is-highlight::after,
    .hero-service-price-badge.tier-standard.is-highlight::after {
        animation: none;
    }

    /* Reduce entrance animation distances */
    .animate-on-scroll,
    .anim-on-scroll {
        transform: translateY(15px);
        transition-duration: 0.4s;
    }

    .section-reveal {
        transform: translateY(15px);
        transition-duration: 0.5s;
    }

    /* Reduce stagger delays */
    .stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5 {
        transition-delay: 0.04s;
    }

    .anim-stagger-1, .anim-stagger-2, .anim-stagger-3,
    .anim-stagger-4, .anim-stagger-5, .anim-stagger-6,
    .anim-stagger-7, .anim-stagger-8 {
        transition-delay: 0.04s;
    }

    /* Disable card entrance animation */
    .doctor-card {
        opacity: 1;
        animation: none;
    }

    /* Reduce icon bounce */
    @keyframes icon-bounce {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
}

/* --- 6b. Disable parallax on mobile --- */
@media (max-width: 768px) {
    .hero-parallax-bg,
    .hero-parallax-bg::before {
        transform: none !important;
        transition: none !important;
    }

    .hero-parallax-shape {
        animation: none !important;
        opacity: 0.04;
    }

    /* Disable scroll-driven parallax transforms */
    .hero-parallax-bg {
        will-change: auto;
    }
}

/* --- 6c. Ultra-small screens — extra reduction (320-374px) --- */
@media (max-width: 374px) {
    .medical-hero {
        animation: none !important;
    }

    .hero-particles {
        display: none;
    }

    .animate-on-scroll,
    .anim-on-scroll {
        transform: translateY(8px);
        transition-duration: 0.3s;
    }

    .section-reveal {
        transform: translateY(8px);
        transition-duration: 0.4s;
    }

    /* Kill all stagger */
    [class*="stagger-"],
    [class*="anim-stagger-"] {
        transition-delay: 0ms !important;
    }
}

/* --- 6d. prefers-reduced-motion respect for mobile --- */
@media (prefers-reduced-motion: reduce) {
    .medical-hero,
    .medical-hero::before,
    .medical-hero::after,
    .hero-particles .particle,
    .feature-icon,
    .med-section::after,
    .hero-parallax-shape {
        animation: none !important;
        animation-duration: 0.01ms !important;
    }

    .animate-on-scroll,
    .anim-on-scroll,
    .section-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition-duration: 0.01ms !important;
    }

    [class*="stagger-"],
    [class*="anim-stagger-"] {
        transition-delay: 0ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   7. TOUCH-FRIENDLY SCROLL
   ============================================================ */

/* Smooth momentum scrolling on iOS */
html,
body,
.med-container,
.site-main {
    -webkit-overflow-scrolling: touch;
}

/* Improve scroll performance */
.site-main {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body,
    html {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    /* Ensure images don't overflow */
    img,
    svg,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    /* Fix potential overflow from pre/code */
    pre,
    code {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================================
   8. IMAGE OPTIMIZATION — Mobile loading behavior
   ============================================================ */

/* Lazy-load visual feedback */
@media (max-width: 768px) {
    img[loading="lazy"] {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    img[loading="lazy"].loaded,
    img[loading="lazy"]:not([src=""]) {
        opacity: 1;
    }
}

/* Reduce image resolution hints for mobile */
@media (max-width: 480px) {
    .hero-service-img {
        height: auto;
        max-height: 120px;
    }
}

/* ============================================================
   9. ADDITIONAL MOBILE POLISH
   ============================================================ */

/* --- 9a. Remove hover-only effects on touch devices --- */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover-only color reveals */
    .quick-service-card::before {
        opacity: 0;
    }

    .feature-card::before {
        opacity: 0;
    }

    /* Remove shimmer effects */
    .quick-service-card::after {
        display: none;
    }

    /* Remove hover-only title color changes */
    .quick-service-title-sm,
    .feature-title,
    .hero-service-name {
        color: inherit;
    }
}

/* --- 9b. Improve readability of long text on mobile --- */
@media (max-width: 480px) {
    .hospitalization-tests details {
        margin-bottom: 0.5rem;
    }

    .hospitalization-tests summary {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        padding: 0.5rem 0;
    }

    .hospitalization-tests ul {
        padding-left: 1.25rem;
        margin: 0.5rem 0;
    }

    .hospitalization-tests li {
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
        line-height: 1.5;
        margin-bottom: 0.25rem;
    }

    .test-notice {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
}

/* --- 9c. Footer — mobile compact --- */
@media (max-width: 768px) {
    .footer-phone-main {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .footer-phone-secondary {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
    }

    .footer-booking {
        padding: 1rem;
    }

    .footer-booking-btn {
        min-height: 48px;
    }
}

/* --- 9d. Reviews external links — mobile --- */
@media (max-width: 768px) {
    .reviews-external-links .med-btn {
        min-height: 48px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* --- 9e. Pagination — mobile --- */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .pagination .med-btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* --- 9f. Breadcrumbs — mobile --- */
@media (max-width: 480px) {
    .breadcrumbs {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        padding: 0.5rem 0;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        min-height: 32px;
        align-items: center;
    }
}

/* --- 9g. Accordion / FAQ — mobile --- */
@media (max-width: 768px) {
    .faq-item {
        margin-bottom: 0.5rem;
    }

    .faq-summary {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .faq-item details[open] .faq-answer {
        padding: 0.75rem 0;
        font-size: clamp(0.85rem, 2.8vw, 0.95rem);
        line-height: 1.55;
    }
}

/* --- 9h. Appointment form — mobile --- */
@media (max-width: 768px) {
    .appointment-section form input,
    .appointment-section form textarea,
    .appointment-section form select {
        min-height: 48px;
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    .appointment-section form textarea {
        min-height: 120px;
    }

    .appointment-section form button[type="submit"] {
        min-height: 52px;
        width: 100%;
    }
}

/* ============================================================
   10. PRINT STYLES (mobile-aware)
   ============================================================ */
@media print {
    .hero-particles,
    .scroll-progress-bar,
    .animate-on-scroll,
    .section-reveal {
        display: none !important;
    }
}
