/* ==========================================================================
   procedure.css — Procedure detail page
   All values use the shared tokens from style.css (:root).
   No HSL overrides — 100% consistent with index.html.
   ========================================================================== */


/* ─── Banner Extension (proc-banner sits inside .services-banner) ───────── */

.proc-banner {
    /* Services-banner already handles the background + mesh.
       Just add bottom-padding for the metrics strip. */
    padding-bottom: 0;
}

.proc-banner-metrics {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    max-width: 52rem;
    margin: 0 auto;
}

.proc-banner-metric {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    flex: 1 1 160px;
    transition: background 0.2s;
}

.proc-banner-metric:hover {
    background: rgba(30, 41, 59, 0.7);
}

.proc-banner-metric-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.proc-banner-metric-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.proc-banner-metric-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}


/* ─── Sticky Sub-Nav (mirrors .services-nav) ────────────────────────────── */

.proc-subnav .services-nav-inner {
    gap: 0.5rem;
}

.proc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: transparent !important;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    padding: 0.4rem 0.875rem !important;
    border-radius: 9999px !important;
    transition: all 0.25s !important;
    white-space: nowrap;
}

.proc-back-btn:hover {
    color: var(--text-secondary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.proc-subnav-divider {
    width: 1px;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.proc-subnav-title {
    flex: 1;
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.proc-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    background: var(--brand-primary) !important;
    color: #fff !important;
    border-color: rgba(36, 144, 184, 0.3) !important;
    box-shadow: 0 4px 16px rgba(26, 107, 138, 0.25);
    white-space: nowrap;
    text-decoration: none;
}

.proc-book-btn:hover {
    background: var(--brand-primary-light) !important;
    box-shadow: 0 6px 20px rgba(26, 107, 138, 0.35) !important;
}


/* ─── Shared Container ──────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}


/* ─── Content Sections ──────────────────────────────────────────────────── */

.proc-section {
    padding: 2.5rem 0;
}

.proc-section + .proc-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.proc-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
}

#procedure-content {
    min-height: 60vh;
}


/* ─── Best For ──────────────────────────────────────────────────────────── */

.proc-best-for {
    background: rgba(255, 255, 255, 0.01);
}

.best-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.625rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.best-for-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.75rem 0.875rem;
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.best-for-item:hover {
    border-color: rgba(26, 107, 138, 0.2);
    background: var(--surface-elevated);
}

.best-for-check {
    color: #10b981;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}


/* ─── Overview Grid ─────────────────────────────────────────────────────── */

.proc-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

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

.proc-description {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.proc-description p {
    margin: 0 0 1rem;
}

.proc-sub-section {
    padding: 1.125rem 1.25rem;
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--brand-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    margin-bottom: 0.875rem;
}

.proc-sub-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}

.proc-sub-content {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.proc-sub-content p {
    margin: 0;
}

/* ─── Equipment Visual ──────────────────────────────────────────────────── */

.proc-visual {
    position: sticky;
    top: calc(44px + 1.25rem);
}

.equipment-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(26, 107, 138, 0.1) 0%, rgba(212, 168, 83, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.equipment-image-placeholder::after {
    content: 'precision_manufacturing';
    font-family: 'Material Symbols Outlined';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
}

.equipment-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}


/* ─── Sidebar ───────────────────────────────────────────────────────────── */

.proc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: sticky;
    top: calc(44px + 1.25rem); /* services-nav height + offset */
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.125rem;
    transition: border-color 0.2s;
}

.sidebar-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 0.875rem;
}

.sidebar-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.375rem 0.875rem;
    margin: 0;
}

.sidebar-facts dt {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
    align-self: center;
}

.sidebar-facts dd {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.sidebar-equipment {
    border-left: 3px solid var(--brand-primary-light);
}

.sidebar-equipment-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--brand-primary-light);
    margin: 0;
}

.sidebar-contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.25rem;
}

.sidebar-contact-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--brand-primary-light);
}


/* ─── Workflow ──────────────────────────────────────────────────────────── */

.proc-workflow {
    background: rgba(255, 255, 255, 0.01);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem;
    background: var(--surface-card);
    transition: background 0.2s;
}

.workflow-step:hover {
    background: var(--surface-elevated);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(26, 107, 138, 0.15);
    border: 1px solid rgba(26, 107, 138, 0.25);
    color: var(--brand-primary-light);
    font-size: 0.75rem;
    font-weight: 900;
    font-family: 'Sora', sans-serif;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.55;
}


/* ─── CTA Section ───────────────────────────────────────────────────────── */

.proc-cta-section {
    background: rgba(255, 255, 255, 0.01);
}

.proc-cta-card {
    background: rgba(26, 107, 138, 0.07);
    border: 1px solid rgba(26, 107, 138, 0.15);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    max-width: 680px;
    margin: 0 auto;
}

.proc-cta-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin: 0;
}

.proc-cta-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}

.proc-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.375rem;
}

.proc-back-link {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.proc-back-link:hover {
    color: var(--brand-primary-light);
}


/* ─── Badge Alignment (shared with index.html tokens) ───────────────────── */

.category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.category--medical {
    background: rgba(26, 107, 138, 0.15);
    color: var(--brand-primary-light);
    border: 1px solid rgba(26, 107, 138, 0.2);
}

.category--cosmetic {
    background: rgba(212, 168, 83, 0.12);
    color: var(--brand-accent);
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.procedure-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.07);
}


/* ─── Not Found ─────────────────────────────────────────────────────────── */

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 55vh;
    padding: 4rem 1.5rem;
    gap: 1rem;
}

.not-found h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.not-found p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}



/* ─── Applications & Treatments ─────────────────────────────────────────── */

.proc-applications {
    background: rgba(15, 23, 42, 0.3);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.application-card {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.application-card:hover {
    border-color: rgba(26, 107, 138, 0.4);
    background: var(--surface-elevated);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--brand-primary);
    transition: height 0.3s ease;
}

.application-card:hover::before {
    height: 100%;
}

.app-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.app-card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.app-card-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.app-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s;
}

.app-card-link:hover {
    color: #fff;
}

.app-card-link .material-symbols-outlined {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.app-card-link:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.app-card-tag {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
}

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

/* ─── Transition support ────────────────────────────────────────────────── */

