/* ========================================
   Dr. James Incalcaterra — Custom Styles
   Bold Editorial | Plum & Amber
   ======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #F59E0B;
    color: #1A0D20;
}

/* --- Hero Background Circles --- */
.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-circle-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-bg-circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-bg-circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.02); }
    66% { transform: translate(-20px, 20px) scale(0.98); }
}

/* --- Service Card Hover --- */
.service-card {
    perspective: 1000px;
}

.service-card .service-card-inner {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reveal Animations (Progressive Enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* --- Mobile Menu Transitions --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #1A0D20;
}

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

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

/* --- Tablet --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* --- Print --- */
@media print {
    header, footer, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-bg-circle {
        display: none;
    }
}
