/* 
 * THEME: Neon Aqua Restoration 
 * Unique Palette: Deep Void (#050A14), Bioluminescent Teal (#00F0FF), Soft Pearl (#E0F7FA), Warm Amber Accent (#FFB347)
 */

:root {
    --bg-deep: #050A14;
    --glass-bg: rgba(10, 25, 47, 0.65);
    --glass-border: rgba(0, 240, 255, 0.15);
    --primary-glow: #00F0FF;
    --secondary-glow: #7000FF;
    --accent-warm: #FFB347;
    --text-main: #E0F7FA;
    --text-muted: #8BA3B5;
    --font-display: 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Georgia', serif;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-display);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Canvas Background */
#hero-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Layout */
.layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Glassmorphism Utilities */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    grid-column: 1 / -1;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
    perspective: 1000px;
}

.hero-content {
    padding: 4rem 2rem;
    transform-style: preserve-3d;
    animation: floatHero 6s ease-in-out infinite;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-glow) 50%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* TOC Sidebar */
#toc-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    padding: 1.5rem;
    display: block;
}

#toc-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

#toc-list { list-style: none; }
#toc-list li { margin-bottom: 0.75rem; }
#toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
#toc-list a:hover, #toc-list a.active {
    color: var(--primary-glow);
    background: rgba(0, 240, 255, 0.08);
    padding-left: 1rem;
}

/* Article Content */
.prose {
    padding: 3rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #fff;
    position: relative;
    padding-left: 1.5rem;
}
.prose h2::before {
    content: '';
    position: absolute;
    left: 0; top: 0.2em; bottom: 0.2em;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-glow), var(--secondary-glow));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.prose p { margin-bottom: 1.5rem; color: var(--text-main); }
.prose ul { margin: 1.5rem 0 2rem 1.5rem; }
.prose li { margin-bottom: 0.75rem; padding-left: 0.5rem; }
.prose li::marker { color: var(--primary-glow); }

.prose a {
    color: var(--primary-glow);
    text-decoration: underline;
    text-decoration-color: rgba(0, 240, 255, 0.3);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}
.prose a:hover {
    color: #fff;
    text-decoration-color: var(--accent-warm);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Business CTA */
.business-cta {
    margin-top: 4rem;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 179, 71, 0.3);
    background: linear-gradient(135deg, rgba(10,25,47,0.8), rgba(30,10,40,0.8));
}

.cta-inner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.location { color: var(--accent-warm); margin-bottom: 2rem; font-weight: bold; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    font-family: var(--font-display);
    font-size: 0.95rem;
}
.btn-primary { background: var(--primary-glow); color: #000; box-shadow: 0 0 20px rgba(0,240,255,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0,240,255,0.7); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { border: 1px solid var(--primary-glow); color: var(--primary-glow); }
.btn-outline:hover { background: var(--primary-glow); color: #000; }
.btn-gmb { background: #DB4437; color: #fff; }
.btn-gmb:hover { background: #C53929; transform: translateY(-3px); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
.social-links a {
    color: var(--text-muted);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s var(--ease-out);
}
.social-links svg { width: 20px; height: 20px; }
.social-links a:hover {
    color: #fff;
    background: var(--primary-glow);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Mobile Nav */
.mobile-nav { display: none; }

/* Animations */
@keyframes floatHero {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-15px) rotateX(2deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .layout-container { grid-template-columns: 1fr; padding: 1rem; }
    #toc-sidebar { display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 100; border-radius: 0; border-left: none; border-right: none; }
    #toc-sidebar.open { display: block; animation: slideDown 0.3s ease; }
    .mobile-nav { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 101; padding: 0.75rem; background: rgba(5,10,20,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); }
    #toc-toggle { background: none; border: 1px solid var(--primary-glow); color: var(--primary-glow); padding: 0.5rem 1rem; border-radius: 4px; font-family: var(--font-display); cursor: pointer; }
    .hero-section { min-height: 50vh; }
    .prose { padding: 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .hero-content { animation: none; }
}

/* Focus States */
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary-glow); outline-offset: 4px; }