/* ========================================
   Sun Valley Medical Services PC
   Custom Styles — Bold Editorial Design
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #8c1d1d;
    color: #fefdf8;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(140, 29, 29, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 1px 20px rgba(140, 29, 29, 0.08);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #8c1d1d;
    transition: width 0.3s ease;
}

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

/* ========================================
   Hero Section
   ======================================== */
#hero {
    background: linear-gradient(135deg, #fefdf8 0%, #fdf9ee 50%, #fff5f5 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, #8c1d1d, #f7405d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
    outline: none;
}

/* ========================================
   Smooth transitions for all interactive elements
   ======================================== */
a, button {
    transition: all 0.25s ease;
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) {
    /* Subtle hover lift for cards */
    .service-card {
        will-change: transform;
    }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-burgundy-950 {
        background: #1c1917 !important;
        color: white !important;
    }
}
