/* ============================================
   Peripheral Vascular Associates
   Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-teal-700: #0f766e;
    --color-teal-600: #0d9488;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Lato', system-ui, sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: #1e293b;
    background-color: #fafaf9;
}

.font-cormorant {
    font-family: var(--font-serif);
}

/* --- Smooth Scroll Offset for Fixed Nav --- */
section[id] {
    scroll-margin-top: 80px;
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #475569 !important;
}

#navbar.scrolled .nav-link:hover {
    color: #0f766e !important;
}

#navbar.scrolled .nav-text-color {
    color: #1e293b !important;
}

#navbar.scrolled .nav-text-sub {
    color: #0f766e !important;
}

#navbar.scrolled .nav-text-fill {
    color: #0f766e !important;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.active {
    pointer-events: all;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

/* --- Subtle Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.5s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(15, 118, 110, 0.15);
    }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* --- Print Styles --- */
@media print {
    nav, #contact, .map-section, footer iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
