/* ============================================
   Dr. Naresh Solanki, MD — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(114, 47, 55, 0.15);
    color: #722F37;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #722F37;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5d262e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.35);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #722F37;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(114, 47, 55, 0.25);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(114, 47, 55, 0.06);
    border-color: rgba(114, 47, 55, 0.5);
    color: #722F37;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #722F37;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background: #fef2f4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #722F37;
}

/* ============================================
   Inputs
   ============================================ */
.input-field {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
}

.input-field:focus {
    border-color: rgba(114, 47, 55, 0.4);
}

.input-field option {
    color: #374151;
    background: #fff;
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #722F37;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #722F37, #d4445e);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ============================================
   Visit Steps
   ============================================ */
.visit-step {
    position: relative;
}

.visit-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.5rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid rgba(114, 47, 55, 0.15);
    border-top: 2px solid rgba(114, 47, 55, 0.15);
}

@media (min-width: 1024px) {
    .visit-step:last-child::after {
        display: none;
    }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion fallback — everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #d4445e;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, .btn-primary, .btn-secondary, .btn-cta, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
