/* ========================================
   Newman Clinical Associates — Custom Styles
   Premium Dark Luxury | Plum + Amber
   ======================================== */

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

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

body {
    background-color: #040208;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 150, 62, 0.3);
    color: #ffffff;
}

/* ---- Ambient Background Orbs ---- */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-plum {
    background: radial-gradient(circle, rgba(88, 28, 135, 0.4) 0%, transparent 70%);
    width: 600px;
    height: 600px;
}

.orb-amber {
    background: radial-gradient(circle, rgba(200, 150, 62, 0.2) 0%, transparent 70%);
    width: 500px;
    height: 500px;
}

.orb-plum-light {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
    width: 400px;
    height: 400px;
}

/* ---- Grid Overlay ---- */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(200, 150, 62, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(4, 2, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #C8963E, #F0C96E);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #F59E0B !important;
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.25rem;
}

.mobile-nav-link {
    position: relative;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ---- CTA Button ---- */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

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

.service-card > div {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover > div {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(200, 150, 62, 0.1);
}

/* ---- FAQ Items ---- */
.faq-item {
    overflow: hidden;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-content.open {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ---- Hero Orbs ---- */
.hero-orb {
    will-change: transform;
}

.orb-plum-glow {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(88, 28, 135, 0.1) 40%, transparent 70%);
}

.orb-amber-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(200, 150, 62, 0.08) 40%, transparent 70%);
}

/* ---- Form Styles ---- */
input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

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

::-webkit-scrollbar-track {
    background: #040208;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 150, 62, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 150, 62, 0.5);
}

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