/* ===== CSS Variables: Midnight Copper & Slate ===== */
:root {
    --bg-primary: #0B0F19;      /* Deep Midnight */
    --bg-secondary: #151B2B;    /* Lighter Midnight */
    --bg-card: #1E2538;         /* Card Background */
    
    --accent: #D97706;          /* Warm Copper/Amber */
    --accent-hover: #B45309;    /* Darker Copper */
    --accent-glow: rgba(217, 119, 6, 0.25);
    
    --text-primary: #F8FAFC;    /* Crisp White */
    --text-secondary: #94A3B8;  /* Soft Slate */
    --text-muted: #64748B;      /* Muted Slate */
    
    --border: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(217, 119, 6, 0.3);
    
    --radius: 8px;
    --radius-lg: 16px;
    
    --font-heading: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: var(--accent); transition: var(--transition); font-weight: 500; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 20px; color: var(--accent); }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
p { margin-bottom: 1.25rem; color: var(--text-secondary); font-size: 1.05rem; }

.first-paragraph {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ===== Pure CSS Background Art ===== */
.css-art {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent-glow); top: -200px; right: -200px; }
.orb-2 { width: 400px; height: 400px; background: rgba(6, 182, 212, 0.15); bottom: 10%; left: -100px; }

.css-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3;
}

/* ===== Utility Bar ===== */
.utility-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 0.9rem;
}
.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.utility-phone {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.pulse {
    width: 8px; height: 8px; background: #10B981;
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===== Main Layout Grid ===== */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ===== Sidebar Navigation ===== */
.sidebar-nav {
    position: sticky;
    top: 40px;
    height: fit-content;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.brand-mark {
    font-size: 1.8rem;
    color: var(--accent);
}
.toc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toc-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    border-left: 2px solid transparent;
    transition: var(--transition);
}
.toc-link:hover, .toc-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent);
}
.toc-link.highlight {
    color: var(--accent);
    font-weight: 600;
    margin-top: 16px;
    background: var(--accent-glow);
    border-left-color: var(--accent);
}
.mobile-menu-btn { display: none; }

/* ===== Content Area ===== */
.content-area { min-width: 0; }

.hero-section { margin-bottom: 60px; }
.hero-tag {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid var(--border-accent);
}
.hero-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary) !important;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
    color: var(--bg-primary) !important;
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.btn.large { padding: 18px 36px; font-size: 1.1rem; width: 100%; justify-content: center; margin-top: 24px; }

.section-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 60px 0;
}

.content-section { margin-bottom: 80px; }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.feature-box {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-box:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.feature-box.highlight-box {
    background: var(--accent-glow);
    border-color: var(--border-accent);
}
.feature-box h3 { color: var(--text-primary); font-size: 1.2rem; }
.feature-box p { font-size: 0.95rem; margin-bottom: 0; }

/* Timeline */
.timeline { list-style: none; margin-top: 32px; position: relative; padding-left: 20px; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline li {
    display: flex; gap: 24px; margin-bottom: 32px; position: relative;
}
.timeline-marker {
    flex-shrink: 0; width: 40px; height: 40px;
    background: var(--bg-primary); border: 2px solid var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; color: var(--accent);
    z-index: 2;
}
.timeline-content h3 { margin-bottom: 8px; font-size: 1.2rem; }
.timeline-content p { margin-bottom: 0; font-size: 0.95rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active { border-color: var(--accent); }
.faq-trigger {
    width: 100%; background: none; border: none; padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; text-align: left; color: var(--text-primary);
    font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
}
.faq-trigger .icon {
    font-size: 1.5rem; color: var(--accent); transition: var(--transition);
}
.faq-item.active .faq-trigger .icon { transform: rotate(45deg); }
.faq-content {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 24px;
}
.faq-item.active .faq-content { max-height: 300px; padding: 0 24px 24px; }
.faq-content p { margin: 0; font-size: 0.95rem; }

/* Contact Section */
.contact-section { margin-top: 40px; }
.contact-card-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-card-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.contact-header { margin-bottom: 40px; }
.contact-header h2 { color: var(--text-primary); }
.contact-details-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px; margin-bottom: 40px; text-align: left;
}
.contact-detail {
    display: flex; gap: 16px; align-items: flex-start;
}
.detail-icon { font-size: 1.5rem; }
.contact-detail h4 { font-size: 1rem; color: var(--text-muted); margin-bottom: 4px; font-family: var(--font-body); }
.contact-detail a, .contact-detail p { color: var(--text-primary); font-size: 1.1rem; font-weight: 600; margin: 0; }

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 80px;
}
.footer-inner {
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-size: 1.2rem; }
.site-footer p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar-nav {
        position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
        background: var(--bg-secondary); z-index: 2000; padding: 24px;
        transition: left 0.3s ease; border-right: 1px solid var(--border);
    }
    .sidebar-nav.open { left: 0; }
    .mobile-menu-btn {
        display: flex; flex-direction: column; gap: 6px; background: none;
        border: none; cursor: pointer; padding: 8px; position: fixed;
        bottom: 24px; right: 24px; z-index: 2001;
        background: var(--accent); border-radius: 50%; width: 56px; height: 56px;
        align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .mobile-menu-btn span {
        width: 24px; height: 2px; background: var(--bg-primary); border-radius: 2px;
    }
    .utility-inner { flex-direction: column; gap: 8px; text-align: center; }
    .contact-card-wrapper { padding: 32px 24px; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-details-grid { grid-template-columns: 1fr; }
}