/* ============================================
   Dr. Jeffrey S. Burket - Medical Website
   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;
}

/* ============================================
   Typography
   ============================================ */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(120, 31, 46, 0.06);
    transition: all duration-500;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 4px 30px rgba(120, 31, 46, 0.08);
}

/* ============================================
   Section Labels & Titles
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #781F2E;
    background: linear-gradient(135deg, #fce7eb 0%, #fad0d9 100%);
    padding: 6px 14px;
    border-radius: 50px;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.12;
    color: #3a0c14;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #a89078;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-content {
    opacity: 1;
    transform: none;
}

.hero-image-grid {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    z-index: 2;
}

.main-image {
    box-shadow: 24px 24px 0px rgba(120, 31, 46, 0.08);
}

.accent-card {
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.decorative-circle {
    animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.4; }
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #781F2E, #db4067);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ============================================
   Approach Cards
   ============================================ */
.approach-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.approach-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

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

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

    .reveal[data-delay="100"] { transition-delay: 0.1s; }
    .reveal[data-delay="200"] { transition-delay: 0.2s; }
    .reveal[data-delay="300"] { transition-delay: 0.3s; }
    .reveal[data-delay="400"] { transition-delay: 0.4s; }
}

/* Reduced motion: ensure everything is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 1;
    transform: none;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   Buttons & Links
   ============================================ */
a {
    text-decoration: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .main-image {
        box-shadow: 16px 16px 0px rgba(120, 31, 46, 0.08);
    }

    .accent-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    h1 {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(120, 31, 46, 0.15);
    color: #3a0c14;
}

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #781F2E;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   Smooth image loading
   ============================================ */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ============================================
   Subtle hover transitions on interactive elements
   ============================================ */
button, a {
    transition: all 0.3s ease;
}
