/* ============================================
   Hawaii Brain & Spine — Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --plum-950: #3b0764;
    --plum-900: #581c87;
    --plum-800: #6b21a8;
    --plum-700: #7e22ce;
    --plum-600: #9333ea;
    --plum-500: #a855f7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
}

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Animations --- */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--amber-400);
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    top: 60%;
    right: 8%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--amber-400);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    bottom: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: float 10s ease-in-out infinite;
}

.geo-square-1 {
    top: 25%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--amber-400);
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.geo-square-2 {
    bottom: 30%;
    left: 8%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: spin 8s linear infinite reverse;
}

.geo-triangle-1 {
    top: 45%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid var(--amber-400);
    opacity: 0.15;
    animation: float 7s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navbar --- */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    color: var(--plum-900);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--plum-600), var(--amber-400));
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.navbar-scrolled .nav-link {
    color: var(--plum-900);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--plum-600), var(--amber-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* --- Condition Cards --- */
.condition-card {
    position: relative;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.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);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Button Ripple --- */
button, a {
    cursor: pointer;
}

/* --- Selection --- */
::selection {
    background: var(--plum-200);
    color: var(--plum-950);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-circle-2 {
        width: 80px;
        height: 80px;
    }
    
    .geo-square-1 {
        width: 40px;
        height: 40px;
    }
}

/* --- Print Styles --- */
@media print {
    nav, #back-to-top, .geo-shape {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
