/* ========================================
   Dr. Shawn C Simek, MD — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(192, 89, 58, 0.2);
    color: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F0;
}
::-webkit-scrollbar-thumb {
    background: #D4C4B0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8A490;
}

/* --- Navbar transitions --- */
.nav-link {
    position: relative;
    color: rgba(68, 68, 68, 0.75);
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #C0593A;
}

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

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Hidden state for reduced motion - content remains visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(32px);
        opacity: 0;
    }
    .reveal-left {
        transform: translateX(-32px);
        opacity: 0;
    }
    .reveal-right {
        transform: translateX(32px);
        opacity: 0;
    }
}

/* Mobile nav links */
.mobile-nav-link {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(180, 160, 140, 0.15);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Custom Select Arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Image aspect ratios --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C0593A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Subtle hover lift for cards --- */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* --- Gradient text utility --- */
.gradient-text {
    background: linear-gradient(135deg, #C0593A, #D4A862);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Decorative divider --- */
.divider-terracotta {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C0593A, #E26845);
    border-radius: 2px;
}

/* --- Print styles --- */
@media print {
    nav, #contact, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    section {
        page-break-inside: avoid;
    }
}
