/* ============================================
   Best Care for You — Custom Styles
   Classic & Elegant Medical Practice
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
    background: #a1a1aa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b7b87;
}

/* Selection */
::selection {
    background: #F4A261;
    color: #1e1e24;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #2a2a32;
}

#navbar.scrolled .nav-link:hover {
    color: #F4A261;
}

#navbar.scrolled .font-serif {
    color: #1e1e24;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 18, 22, 0.85) 0%,
        rgba(30, 30, 36, 0.70) 50%,
        rgba(18, 18, 22, 0.80) 100%
    );
    z-index: 1;
}

#hero > .absolute {
    z-index: 2;
}

#hero > .relative {
    z-index: 3;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — hidden state 
   applied via JS only
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Service Card Hover Effects
   ============================================ */
.group:hover .rounded-xl {
    transform: scale(1.05);
}

/* ============================================
   Form Styling
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.15);
}

/* ============================================
   Button Ripple / Press Effect
   ============================================ */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
    transform: scale(0.98);
}

/* ============================================
   Image Hover Zoom
   ============================================ */
img {
    transition: transform 0.5s ease;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1025px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
