/**
 * Classica Hub — Build Specification Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Instrument+Sans:wght@400;500;600;700&family=Schibsted+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --cream: #FBF9F7;
    --dark: #2B261C;
    --gold: #F9A01B;
    --mid: #6F5C44;
    --tan: #C6B5A1;
    --white: #FFFFFF;
    --bg-alt: #F5F2ED;
    --border: rgba(43, 38, 28, 0.1);
    --border-dark: rgba(43, 38, 28, 0.2);
    --success: #2D8A4E;
    --info: #2563EB;
    --warning: #D97706;
    --muted: #9CA3AF;
    --sidebar-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
}

/* ── Layout ── */
.buildspec-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.buildspec-sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 2rem 1.25rem;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.sidebar-brand img {
    height: 28px;
    width: auto;
}

.sidebar-brand span {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    color: var(--dark);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.15rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--mid);
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
}

.sidebar-nav a:hover {
    background: var(--bg-alt);
    color: var(--dark);
}

.sidebar-nav a.active {
    background: rgba(249, 160, 27, 0.12);
    color: var(--gold);
    font-weight: 600;
}

.sidebar-nav a i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* ── Main Content ── */
.buildspec-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 3rem 4rem;
    max-width: 100%;
}

/* ── Header ── */
.buildspec-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.buildspec-header h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.buildspec-header .subtitle {
    font-size: 1.1rem;
    color: var(--mid);
    margin-bottom: 0.75rem;
}

.buildspec-header .updated {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 0.8rem;
    color: var(--tan);
}

/* ── Sections ── */
.spec-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 2rem;
}

.spec-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.spec-section h2 i {
    color: var(--gold);
    font-size: 1.3rem;
}

.section-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.status-built { background: rgba(45, 138, 78, 0.12); color: var(--success); }
.status-progress { background: rgba(37, 99, 235, 0.12); color: var(--info); }
.status-planned { background: rgba(217, 119, 6, 0.12); color: var(--warning); }
.status-future { background: rgba(156, 163, 175, 0.15); color: var(--muted); }

.section-desc {
    font-size: 0.95rem;
    color: var(--mid);
    margin-bottom: 1.25rem;
    max-width: 640px;
}

/* ── Feature Cards ── */
.feature-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.feature-group h3 {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-group h3 i {
    color: var(--gold);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.feature-list li i {
    color: var(--tan);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.feature-list li::before {
    content: none;
}

/* ── Tier Grid ── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.tier-card.highlight {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.tier-name {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mid);
    margin-bottom: 0.25rem;
}

.tier-price {
    font-family: 'Instrument Serif', serif;
    font-size: 1.6rem;
    color: var(--dark);
}

.tier-price span {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--tan);
}

.tier-desc {
    font-size: 0.78rem;
    color: var(--tan);
    margin-top: 0.25rem;
}

/* ── Tech Stack ── */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: var(--bg-alt);
    border-radius: 6px;
    color: var(--mid);
    border: 1px solid var(--border);
}

/* ── Callout ── */
.callout {
    background: rgba(249, 160, 27, 0.06);
    border: 1px solid rgba(249, 160, 27, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.9rem;
    color: var(--mid);
}

.callout strong {
    color: var(--dark);
}

/* ── Footer ── */
.buildspec-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    text-align: center;
    font-family: 'Instrument Serif', serif;
    font-size: 1rem;
    color: var(--tan);
}

/* ── Mobile Sidebar Toggle ── */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .buildspec-main {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .buildspec-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .buildspec-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }

    .buildspec-main {
        margin-left: 0;
        padding: 4rem 1.25rem 2rem;
    }

    .buildspec-header h1 {
        font-size: 1.8rem;
    }

    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tier-grid {
        grid-template-columns: 1fr;
    }
}
