/* ============================================
   Dr. Eric D. Miller — 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;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e1b4b;
}
::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
    color: #f8fafc;
}

.nav-logo-sub {
    color: rgba(248, 250, 252, 0.6);
}

.nav-link {
    color: rgba(248, 250, 252, 0.8);
    position: relative;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
}

/* --- Hero Animations (above fold — no hidden state) --- */
@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 30px) scale(1.1); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.08); }
}

.hero-orb.orb-1 {
    animation: floatOrb1 8s ease-in-out infinite;
}

.hero-orb.orb-2 {
    animation: floatOrb2 10s ease-in-out infinite;
}

.hero-orb.orb-3 {
    animation: floatOrb3 12s ease-in-out infinite;
}

/* --- Section Labels --- */
.section-label {
    letter-spacing: 0.15em;
}

/* --- Section Titles --- */
.section-title {
    line-height: 1.15;
}

/* --- Section Descriptions --- */
.section-desc {
    line-height: 1.75;
}

/* --- Service Cards --- */
.service-card-inner {
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card-inner:hover {
    transform: translateY(-4px);
}

/* --- About Section --- */
.about-image-main {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.about-orb {
    animation: floatOrb2 14s ease-in-out infinite;
}

/* --- Value Items --- */
.value-desc {
    line-height: 1.5;
}

/* --- Info Cards --- */
.info-card-inner {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card-inner:hover {
    transform: translateY(-2px);
}

.hours-row:last-child {
    border-bottom: none;
}

/* --- Contact Info Card --- */
.map-link:hover {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

/* --- Scroll Reveal (below fold only, progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: if JS is disabled, all content is visible */
.no-js .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* --- Back to Top --- */
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:not(.visible) {
    transform: translateY(10px);
}

.back-to-top:hover {
    transform: translateY(-2px) !important;
}

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link:hover {
    color: #fbbf24;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .about-orb {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-trust {
        gap: 2px;
    }
    
    .hero-trust-item div:first-child {
        font-size: 1.5rem !important;
    }
}

/* --- Print Styles --- */
@media print {
    .nav-scrolled,
    .back-to-top,
    .hero-orb {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
